--------------------------------------------------------------------------------
 Software Packaging
 
 Contents:
 
 * FreeBSD
 * IRIX
 * Solaris
 * RPM
 
--------------------------------------------------------------------------------
 FreeBSD
 
 References:
 
 * "FreeBSD Porter's Handbook",
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/index.html

 Create a temporary directory and copy the source package and packaging files
 into it:
 
 > mkdir /tmp/djv
 > cp djv-0.5.0.tar.gz /tmp/djv
 > cd /tmp/djv
 > gzcat djv-0.5.0.tar.gz | tar xvf -
 > cp djv-0.5.0/pkg/freebsd/* .
 
 Build the package:
 
 > setenv DISTDIR /tmp/djv
 > make makesum
 # make PLATFORM=freebsd package
 # make PLATFORM=freebsd deinstall
 
-------------------------------------------------------------------------------- 
 IRIX
 
 References:
 
 * Silicon Graphics, "Software Packager User's Guide"
 
 Compile the source code.
 
 Install to a temporary directory:
 
 > mkdir /tmp/djv
 > make CHROOT=/tmp/djv install
 
 Build the package:
 
 > cd pkg/irix
 > gendist -root /tmp/djv -idb djv.idb -spec djv.spec -dist /tmp/djv -verbose
 > cd /tmp/djv
 > tar cvf djv-0.5.0_irix-mips.tardist djv djv.idb djv.sw

--------------------------------------------------------------------------------
 Solaris
 
 References:
 
 * Sun Microsystems, "Application Packaging Developer's Guide",
   http://docs.sun.com/app/docs/doc/805-6338
 
 Compile the source code.
 
 Install to a temporary directory:
 
 > mkdir /tmp/djv
 > make CHROOT=/tmp/djv install

 Build the package:
 
 > cd pkg/solaris
 > pkgmk -r /tmp/djv
 > pkgtrans -s /var/spool/pkg djv-0.5.0_solaris-sparc djv
 > gzip /var/spool/pkg/djv-0.5.0_solaris-sparc
 
--------------------------------------------------------------------------------
 RPM
 
 References:
 
 * Donnie Barnes, "RPM HOWTO", http://www.rpm.org/RPM-HOWTO/
 
 Create a temporary directory and copy the source package and packaging files
 into it:
 
 > mkdir /tmp/djv /tmp/djv/SOURCES
 > cp djv-0.5.0.tar.gz /tmp/djv/SOURCES
 > cd /tmp/djv
 > mkdir BUILD RPMS SRPMS SPECS
 > tar zxvf SOURCES/djv-0.5.0.tar.gz
 > cp djv-0.5.0/pkg/rpm/djv.spec SPECS
 > echo "%_topdir /tmp/djv" >> ${HOME}/.rpmmacros
 
 Build the package:
 
 > rpmbuild -ba --buildroot /tmp/djv/work SPECS/djv.spec
 
