under construction


How To Build OpenPlatformTrustServices for RedHat EL5 / CentOS5.

Following instruction is tested by using CentOS5.


Preparing

Download and Install Java Development Kit V6 from http://java.sun.com/javase/downloads/index.jsp

# sh jdk-6u4-linux-i586-rpm.bin
# export JAVA_HOME=/usr/java/jdk1.6.0_04
# export PATH=/usr/java/jdk1.6.0_04/bin:$PATH

Install TrouSers(0.2.9.x) and tpm-tools from http://sourceforge.net/projects/trousers/

Download jTreemap and Install from http://jaist.dl.sourceforge.net/sourceforge/jtreemap/jtreemap-1.1.0.zip

# cp jtreemap-1.1.0.zip /tmp/
# cd /opt
# unzip /tmp/jtreemap-1.1.0.zip

Build and Install OpenPlatformTrustServices

Download OpenPlatformTrustServices OpenPlatformTrustServices-tools OpenPlatformTrustServices-tcdemo packages from http://sourceforge.jp/projects/openpts.

  1. Copy dist/*.spec files to /usr/src/redhat/SPECS/
  2. Copy tar files to /usr/src/redhat/SOURCES/ as tar.gz
  3. Build and install OpenPlatformTrustServices and OpenPlatformTrustServices-tools
  4. Build and install OpenPlatformTrustServices-tcdemo
$ tar xzvf OpenPlatformTrustServices-0.1.0.tgz
$ tar xzvf OpenPlatformTrustServices-tools-0.1.0.tgz
$ tar xzvf OpenPlatformTrustServices-tcdemo-0.1.0.tgz

$ cp OpenPlatformTrustServices-0.1.0/dist/OpenPlatformTrustServices.spec /usr/src/redhat/SPECS/
$ cp OpenPlatformTrustServices-tools-0.1.0/dist/OpenPlatformTrustServices* /usr/src/redhat/SPECS/
$ cp OpenPlatformTrustServices-tcdemo-0.1.0/dist/OpenPlatformTrustServices-tcdemo.spec /usr/src/redhat/SPECS/

$ cp OpenPlatformTrustServices-0.1.0.tgz /usr/src/redhat/SOURCES/OpenPlatformTrustServices-0.1.0.tar.gz
$ cp OpenPlatformTrustServices-tools-0.1.0.tgz /usr/src/redhat/SOURCES/OpenPlatformTrustServices-tools-0.1.0.tar.gz
$ cp OpenPlatformTrustServices-tcdemo-0.1.0.tgz /usr/src/redhat/SOURCES/OpenPlatformTrustServices-tcdemo-0.1.0.tar.gz

# cd /usr/src/redhat/SPECS/
# rpmbuild -bb OpenPlatformTrustServices-tools.spec
# rpmbuild -bb OpenPlatformTrustServices.spec

# cd /usr/src/redhat/RPMS/i386/
# rpm -ivh --nodeps OpenPlatformTrustServices-tools-0.1.0-1.i386.rpm

# cd /usr/src/redhat/RPMS/noarch/
# rpm -ivh OpenPlatformTrustServices-0.1.0-1.noarch.rpm

# cd /usr/src/redhat/SPECS/
# rpmbuild -bb OpenPlatformTrustServices-tcdemo.spec
# cd /usr/src/redhat/RPMS/i386/
# rpm -ivh --nodeps OpenPlatformTrustServices-tcdemo-0.1.0-1.i386.rpm