
 OpenPTS
 -------

 Author Seiji Munetoh (munetoh@users.sourceforge.jp)

 DESCRIPTION
 -----------
 openpts-embedded is an open-source package of Platform Trust Service (PTS)
 defined by Trusted Computing Group (TCG). Trusted Computing is a set of
 specifications set forth by the Trusted Computing Group (TCG).  For more
 information on the TCG and Trusted Computing please visit the Trusted
 Computing Group website at:
   http://www.trustedcomputinggroup.org.

 The openptsd package contains PTS commands and daemon which work with TSS (TrouSerS)
 The openpts package is released under the Common Public License.


 BUILD REQUIREMENTS
 ----- ------------
 Packages needed to build:

  Redhat/Fedora
    automake
    autoconf
    libtool
    gettext gettext-devel
    trousers trousers-devel
    libxml2 libxml2-devel
    libuuid libuuid-devel
    libtnc libtnc-devel
    check  (TBD, for unit testing)

  Ubuntu/Debian
    automake
    autoconf
    libtool
    gettext gettext-dev
    trousers
    libxml2 libxml2-dev
    libuuid1 uuid-dev 
    check (TBD, for unit testing)

    libtnc is not available. build from source
    http://sourceforge.net/projects/libtnc/files/
    $ ./configure --prefix=/usr
    $ make
    $ sudo make install

 BUILDING openpts
 -------- ----------------
 $ sh ./bootstrap.sh
 $ ./configure --with-tss --with-aide --prefix=/usr
 $ make
 # make install

 By default the build will place everything in /usr/local. Issue
   ./configure --help
 to see how to install to a different location.

 --with-aide      use AIDE as integrity database, (Fedora 12 and IMA)
 --with-tss       build with tss
 --with-libtnc    build with libtnc


 BUILDING a OPENPTS RPM
 -------- - ------- ---

 $ sh bootstrap.sh
 $ ./configure
 $ make rpmbuild-ba

 BUILDING a OPENPTS DEB
 -------- - ------- ---

 $ sh bootstrap.sh
 $ ./configure
 $ make dpkg-buildpackage
 $ sudo dpkg -i ../openpts_0.2.3_i386.deb

 UNIT TESTING (TBD)
 ---- ------- -----

 We use "check" Unit Testing Framework since it is supported by Fedora and Ubuntu.
 http://check.sourceforge.net/

 $ make
 $ make check


 SECURIRY TESTING
 -------- -------

 $ rats src/*.c

 $ cd tests/
 $ valgrind check_*


 RUNNING the OPENPTS (STANDALONE)
 ------- --- ------- ------------

 # service openpts start


 RUNNING the OPENPTS as TNC IMC
 ------- --- ------- -- --- ---



 RUNNING the OPENPTS as TNC IMV
 ------- --- ------- -- --- ---


 MODIFY MODEL
 ------ -----

 Tool to update models/*.uml
 - Any text editer :-P
 - Eclipse MDT
   http://www.eclipse.org/downloads/packages/eclipse-modeling-tools-includes-incubating-components/galileosr2
   1. right click *.uml file
   2. select "Initialize State Machine Diagram". it create *.umlstm file
   3. select all, and "Daigram->Arrange->all" to relocate objects.


