ADDED build/cackey_osx_build/._.DS_Store Index: build/cackey_osx_build/._.DS_Store ================================================================== --- /dev/null +++ build/cackey_osx_build/._.DS_Store cannot compute difference between binary files ADDED build/cackey_osx_build/._Leopard_pmbuild.pmdoc Index: build/cackey_osx_build/._Leopard_pmbuild.pmdoc ================================================================== --- /dev/null +++ build/cackey_osx_build/._Leopard_pmbuild.pmdoc cannot compute difference between binary files ADDED build/cackey_osx_build/._Panther_pmbuild.pmdoc Index: build/cackey_osx_build/._Panther_pmbuild.pmdoc ================================================================== --- /dev/null +++ build/cackey_osx_build/._Panther_pmbuild.pmdoc cannot compute difference between binary files ADDED build/cackey_osx_build/._SnowLeopard_pmbuild.pmdoc Index: build/cackey_osx_build/._SnowLeopard_pmbuild.pmdoc ================================================================== --- /dev/null +++ build/cackey_osx_build/._SnowLeopard_pmbuild.pmdoc cannot compute difference between binary files ADDED build/cackey_osx_build/._Tiger_pmbuild.pmdoc Index: build/cackey_osx_build/._Tiger_pmbuild.pmdoc ================================================================== --- /dev/null +++ build/cackey_osx_build/._Tiger_pmbuild.pmdoc cannot compute difference between binary files ADDED build/cackey_osx_build/Leopard_pmbuild.pmdoc/01libcackey-contents.xml Index: build/cackey_osx_build/Leopard_pmbuild.pmdoc/01libcackey-contents.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/Leopard_pmbuild.pmdoc/01libcackey-contents.xml @@ -0,0 +1,1 @@ + ADDED build/cackey_osx_build/Leopard_pmbuild.pmdoc/01libcackey.xml Index: build/cackey_osx_build/Leopard_pmbuild.pmdoc/01libcackey.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/Leopard_pmbuild.pmdoc/01libcackey.xml @@ -0,0 +1,1 @@ +mil.army.usace.cackeyForMacOsXLeopard.libcackey.pkg1../cackey/macbuild/Leopard/libcackey.dylib/Library/CACKey/parentrelocatableinstallTo.pathinstallFrom.pathinstallTo01libcackey-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$ ADDED build/cackey_osx_build/Leopard_pmbuild.pmdoc/02libcackey-contents.xml Index: build/cackey_osx_build/Leopard_pmbuild.pmdoc/02libcackey-contents.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/Leopard_pmbuild.pmdoc/02libcackey-contents.xml @@ -0,0 +1,1 @@ + ADDED build/cackey_osx_build/Leopard_pmbuild.pmdoc/02libcackey.xml Index: build/cackey_osx_build/Leopard_pmbuild.pmdoc/02libcackey.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/Leopard_pmbuild.pmdoc/02libcackey.xml @@ -0,0 +1,1 @@ +mil.army.usace.cackeyForMacOsXLeopard.libcackeyg.pkg1../cackey/macbuild/Leopard/libcackey_g.dylib/Library/CACKey/parentrelocatableinstallTo.pathinstallFrom.pathinstallTo02libcackey-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$ ADDED build/cackey_osx_build/Leopard_pmbuild.pmdoc/index.xml Index: build/cackey_osx_build/Leopard_pmbuild.pmdoc/index.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/Leopard_pmbuild.pmdoc/index.xml @@ -0,0 +1,40 @@ +CACKey for Mac OS X Leopard/Users/kvanals/Desktop/cackey/release/cackey-0.5.15/macbuild/pkg/cackey_leopard.pkgmil.army.usaceCACKey\ + US Army Corps of Engineers\ + Information Technology Laboratory\ + Vicksburg, MS 39180\ +------------------------------------------------\ +\ +The following files in the source directory are the intellectual property of the\ +Free Software Foundation and are licensed under the terms of the GNU General\ +Public License (GPL):\ + config.guess, config.sub, install-sh\ +\ +The files in the source directory and the "leakcheck" directory are the intellectual\ +property of the United States Government. It is not clear which, if any,\ +license is made on them. In addition, as of 07-JUN-2010 they have not be\ +cleared for public release.\ +\ +The files in the "pkcs11/" directory are licensed under the terms of the\ +following licenses:\ + mypkcs11.h : GNU General Public License 2.1.\ + pkcs11.h : GNU General Public License 2.1.\ + pkcs11f.h : GNU General Public License 2.1.\ + pkcs11n.h : Mozilla Public License or GNU General Public License\ + pkcs11t.h : GNU General Public License 2.1.}]]>This CACKey release requires Mac OS X 10.5.This CACKey release requires Mac OS X 10.4.01libcackey.xml02libcackey.xmlproperties.customizeOptionproperties.titledescriptionproperties.systemDomainproperties.anywhereDomain ADDED build/cackey_osx_build/Panther_pmbuild.pmdoc/01libcackey-contents.xml Index: build/cackey_osx_build/Panther_pmbuild.pmdoc/01libcackey-contents.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/Panther_pmbuild.pmdoc/01libcackey-contents.xml @@ -0,0 +1,1 @@ + ADDED build/cackey_osx_build/Panther_pmbuild.pmdoc/01libcackey.xml Index: build/cackey_osx_build/Panther_pmbuild.pmdoc/01libcackey.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/Panther_pmbuild.pmdoc/01libcackey.xml @@ -0,0 +1,1 @@ +mil.army.usace.cackeyForMacOsXPanther.libcackey.pkg1../cackey/macbuild/Panther/libcackey.dylib/Library/CACKey/parentinstallTo.isAbsoluteTypeinstallTo.isRelativeTyperelocatableversioninstallTo.pathinstallFrom.pathinstallTo01libcackey-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$ ADDED build/cackey_osx_build/Panther_pmbuild.pmdoc/02libcackey-contents.xml Index: build/cackey_osx_build/Panther_pmbuild.pmdoc/02libcackey-contents.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/Panther_pmbuild.pmdoc/02libcackey-contents.xml @@ -0,0 +1,1 @@ + ADDED build/cackey_osx_build/Panther_pmbuild.pmdoc/02libcackey.xml Index: build/cackey_osx_build/Panther_pmbuild.pmdoc/02libcackey.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/Panther_pmbuild.pmdoc/02libcackey.xml @@ -0,0 +1,1 @@ +mil.army.usace.cackeyForMacOsXPanther.libcackeyg.pkg1../cackey/macbuild/Panther/libcackey_g.dylib/Library/CACKey/parentrelocatableversioninstallTo.pathinstallFrom.pathinstallTo02libcackey-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$ ADDED build/cackey_osx_build/Panther_pmbuild.pmdoc/index.xml Index: build/cackey_osx_build/Panther_pmbuild.pmdoc/index.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/Panther_pmbuild.pmdoc/index.xml @@ -0,0 +1,41 @@ +CACKey for Mac OS X Panther/Users/kvanals/Desktop/cackey/release/cackey-0.5.15/macbuild/pkg/CACKey_Panther.mpkgmil.army.usaceCACKey\ + US Army Corps of Engineers\ + Information Technology Laboratory\ + Vicksburg, MS 39180\ +------------------------------------------------\ +\ +The following files in the source directory are the intellectual property of the\ +Free Software Foundation and are licensed under the terms of the GNU General\ +Public License (GPL):\ + config.guess, config.sub, install-sh\ +\ +The files in the source directory and the "leakcheck" directory are the intellectual\ +property of the United States Government. It is not clear which, if any,\ +license is made on them. In addition, as of 07-JUN-2010 they have not be\ +cleared for public release.\ +\ +The files in the "pkcs11/" directory are licensed under the terms of the\ +following licenses:\ + mypkcs11.h : GNU General Public License 2.1.\ + pkcs11.h : GNU General Public License 2.1.\ + pkcs11f.h : GNU General Public License 2.1.\ + pkcs11n.h : Mozilla Public License or GNU General Public License\ + pkcs11t.h : GNU General Public License 2.1.\ +}]]>01libcackey.xml02libcackey.xmlproperties.customizeOptionproperties.titledescriptionproperties.systemDomainproperties.anywhereDomain ADDED build/cackey_osx_build/SnowLeopard_pmbuild.pmdoc/01libcackey-contents.xml Index: build/cackey_osx_build/SnowLeopard_pmbuild.pmdoc/01libcackey-contents.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/SnowLeopard_pmbuild.pmdoc/01libcackey-contents.xml @@ -0,0 +1,1 @@ + ADDED build/cackey_osx_build/SnowLeopard_pmbuild.pmdoc/01libcackey.xml Index: build/cackey_osx_build/SnowLeopard_pmbuild.pmdoc/01libcackey.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/SnowLeopard_pmbuild.pmdoc/01libcackey.xml @@ -0,0 +1,1 @@ +mil.army.usace.cackeyForMacOsXSnowLeopard.libcackey.pkg1../cackey/macbuild/SnowLeopard/libcackey.dylib/Library/CACKey/parentrelocatableinstallTo.pathinstallFrom.pathinstallTo01libcackey-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$ ADDED build/cackey_osx_build/SnowLeopard_pmbuild.pmdoc/02libcackey-contents.xml Index: build/cackey_osx_build/SnowLeopard_pmbuild.pmdoc/02libcackey-contents.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/SnowLeopard_pmbuild.pmdoc/02libcackey-contents.xml @@ -0,0 +1,1 @@ + ADDED build/cackey_osx_build/SnowLeopard_pmbuild.pmdoc/02libcackey.xml Index: build/cackey_osx_build/SnowLeopard_pmbuild.pmdoc/02libcackey.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/SnowLeopard_pmbuild.pmdoc/02libcackey.xml @@ -0,0 +1,1 @@ +mil.army.usace.cackeyForMacOsXSnowLeopard.libcackeyg.pkg1../cackey/macbuild/SnowLeopard/libcackey_g.dylib/Library/CACKey/parentrelocatableinstallTo.pathinstallFrom.pathinstallTo02libcackey-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$ ADDED build/cackey_osx_build/SnowLeopard_pmbuild.pmdoc/index.xml Index: build/cackey_osx_build/SnowLeopard_pmbuild.pmdoc/index.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/SnowLeopard_pmbuild.pmdoc/index.xml @@ -0,0 +1,40 @@ +CACKey for Mac OS X Snow Leopardmil.army.usace\ + US Army Corps of Engineers\ + Information Technology Laboratory\ + Vicksburg, MS 39180\ +------------------------------------------------\ +\ +The following files in the source directory are the intellectual property of the\ +Free Software Foundation and are licensed under the terms of the GNU General\ +Public License (GPL):\ + config.guess, config.sub, install-sh\ +\ +The files in the source directory and the "leakcheck" directory are the intellectual\ +property of the United States Government. It is not clear which, if any,\ +license is made on them. In addition, as of 07-JUN-2010 they have not be\ +cleared for public release.\ +\ +The files in the "pkcs11/" directory are licensed under the terms of the\ +following licenses:\ + mypkcs11.h : GNU General Public License 2.1.\ + pkcs11.h : GNU General Public License 2.1.\ + pkcs11f.h : GNU General Public License 2.1.\ + pkcs11n.h : Mozilla Public License or GNU General Public License\ + pkcs11t.h : GNU General Public License 2.1.}]]>This CACKey release requires Mac OS X 10.6.This CACKey release requires Mac OS X 10.6.01libcackey.xml02libcackey.xmlproperties.customizeOptionproperties.userDomainproperties.titleproperties.systemDomainproperties.anywhereDomain ADDED build/cackey_osx_build/Tiger_pmbuild.pmdoc/01libcackey-contents.xml Index: build/cackey_osx_build/Tiger_pmbuild.pmdoc/01libcackey-contents.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/Tiger_pmbuild.pmdoc/01libcackey-contents.xml @@ -0,0 +1,1 @@ + ADDED build/cackey_osx_build/Tiger_pmbuild.pmdoc/01libcackey.xml Index: build/cackey_osx_build/Tiger_pmbuild.pmdoc/01libcackey.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/Tiger_pmbuild.pmdoc/01libcackey.xml @@ -0,0 +1,1 @@ +mil.army.usace.cackeyForMacOsXTiger.libcackey.pkg1../cackey/macbuild/Tiger/libcackey.dylib/Library/CACKey/parentrelocatableinstallTo.pathinstallFrom.pathinstallTo01libcackey-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$ ADDED build/cackey_osx_build/Tiger_pmbuild.pmdoc/02libcackey-contents.xml Index: build/cackey_osx_build/Tiger_pmbuild.pmdoc/02libcackey-contents.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/Tiger_pmbuild.pmdoc/02libcackey-contents.xml @@ -0,0 +1,1 @@ + ADDED build/cackey_osx_build/Tiger_pmbuild.pmdoc/02libcackey.xml Index: build/cackey_osx_build/Tiger_pmbuild.pmdoc/02libcackey.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/Tiger_pmbuild.pmdoc/02libcackey.xml @@ -0,0 +1,1 @@ +mil.army.usace.cackeyForMacOsXTiger.libcackeyg.pkg1../cackey/macbuild/Tiger/libcackey_g.dylib/Library/CACKey/parentrelocatableinstallTo.pathinstallFrom.pathinstallTo02libcackey-contents.xml/CVS$/\.svn$/\.cvsignore$/\.cvspass$/\.DS_Store$ ADDED build/cackey_osx_build/Tiger_pmbuild.pmdoc/index.xml Index: build/cackey_osx_build/Tiger_pmbuild.pmdoc/index.xml ================================================================== --- /dev/null +++ build/cackey_osx_build/Tiger_pmbuild.pmdoc/index.xml @@ -0,0 +1,40 @@ +CACKey for Mac OS X Tiger/Users/kvanals/Desktop/cackey/release/cackey-0.5.15/macbuild/pkg/cackey_tiger.mpkgmil.army.usaceCACKey\ + US Army Corps of Engineers\ + Information Technology Laboratory\ + Vicksburg, MS 39180\ +------------------------------------------------\ +\ +The following files in the source directory are the intellectual property of the\ +Free Software Foundation and are licensed under the terms of the GNU General\ +Public License (GPL):\ + config.guess, config.sub, install-sh\ +\ +The files in the source directory and the "leakcheck" directory are the intellectual\ +property of the United States Government. It is not clear which, if any,\ +license is made on them. In addition, as of 07-JUN-2010 they have not be\ +cleared for public release.\ +\ +The files in the "pkcs11/" directory are licensed under the terms of the\ +following licenses:\ + mypkcs11.h : GNU General Public License 2.1.\ + pkcs11.h : GNU General Public License 2.1.\ + pkcs11f.h : GNU General Public License 2.1.\ + pkcs11n.h : Mozilla Public License or GNU General Public License\ + pkcs11t.h : GNU General Public License 2.1.}]]>This CACKey release requires Mac OS X 10.4.This CACKey release requires Mac OS X 10.4.01libcackey.xml02libcackey.xmlproperties.customizeOptionproperties.titledescriptionproperties.systemDomainproperties.anywhereDomain ADDED build/cackey_osx_build/build_osx.sh Index: build/cackey_osx_build/build_osx.sh ================================================================== --- /dev/null +++ build/cackey_osx_build/build_osx.sh @@ -0,0 +1,195 @@ +#!/bin/bash +# Shell Script to make Mac OS X Releases of CACKey +# Kenneth Van Alstyne +# kenneth.l.vanalstyne@usace.army.mil +# 20100711 + +# Usage function +usage() { + echo "Usage: build_osx.sh " + echo Where target is one of: + echo " panther - (Builds 10.3 Library for PPCG3)" + echo " tiger - (Builds Universal 10.4 Library for PPCG3/i386)" + echo " leopard - (Builds Universal 10.5 Library for PPCG4/i386)" + echo " snowleopard - (Builds Universal 10.6 Library for i386/x86_64)" + echo " all - (Builds for all supported targets)" + echo " clean - (Cleans up)" + echo "Run from CACKey Build Root." + echo "CACKey Build Root Directory MUST be named 'cackey'" + exit $? +} + +# Clean up function +clean() { + rm -rf macbuild + make distclean +} + +# Directory creation function +makedir() { + if [ ! -d macbuild ]; then + mkdir macbuild + mkdir macbuild/Panther + mkdir macbuild/Tiger + mkdir macbuild/Leopard + mkdir macbuild/SnowLeopard + mkdir macbuild/pkg + fi +} + +# Build function for Panther +panther() { + makedir + HEADERS=/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/PCSC.framework/Versions/A/Headers/ + LIBRARY=/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/PCSC.framework/PCSC + OSX=Panther + HOST=powerpc-apple-darwin7 + make distclean + ARCH="ppc -mcpu=G3" + CFLAGS="-arch ${ARCH}" ./configure --with-pcsc-headers=${HEADERS} --with-pcsc-libs=${LIBRARY} --host=${HOST} + make + cp libcackey.dylib macbuild/${OSX}/libcackey.dylib + cp libcackey_g.dylib macbuild/${OSX}/libcackey_g.dylib + pkgbuild +} + +# Build function for Tiger +tiger() { + makedir + HEADERS=/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/PCSC.framework/Versions/A/Headers/ + LIBRARY=/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/PCSC.framework/PCSC + LIB="" + ARCHLIST="" + DLIB="" + DARCHLIST="" + OSX=Tiger + for HOST in powerpc-apple-darwin8 i386-apple-darwin8; do + genbuild + done + libbuild + pkgbuild +} + +# Build function for Leopard +leopard() { + makedir + HEADERS=/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/PCSC.framework/Versions/A/Headers/ + LIBRARY=/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/PCSC.framework/PCSC + LIB="" + ARCHLIST="" + DLIB="" + DARCHLIST="" + OSX=Leopard + for HOST in powerpc-apple-darwin9 i386-apple-darwin9; do + genbuild + done + libbuild + pkgbuild +} + +# Build function for Snow Leopard +snowleopard() { + makedir + HEADERS=/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/PCSC.framework/Versions/A/Headers/ + LIBRARY=/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/PCSC.framework/PCSC + LIB="" + ARCHLIST="" + DLIB="" + DARCHLIST="" + OSX=SnowLeopard + for HOST in i386-apple-darwin10 x86_64-apple-darwin10; do + genbuild + done + libbuild + pkgbuild +} + +# Generic build function +genbuild() { + make distclean + ARCH=`echo ${HOST} | cut -d "-" -f 1` + if [ ${ARCH} == "powerpc" ]; then + if [ ${OSX} == "Leopard" ]; then + ARCH="ppc -mcpu=G4" + else + ARCH="ppc -mcpu=G3" + fi + fi + CFLAGS="-arch ${ARCH}" ./configure --with-pcsc-headers=${HEADERS} --with-pcsc-libs=${LIBRARY} --host=${HOST} + make + cp libcackey.dylib macbuild/${OSX}/libcackey.dylib.`echo ${ARCH} | cut -d ' ' -f 1` + cp libcackey_g.dylib macbuild/${OSX}/libcackey_g.dylib.`echo ${ARCH} | cut -d ' ' -f 1` +} + +# Library build function +libbuild() { + for LIB in macbuild/${OSX}/libcackey.dylib.*; do + ARCHLIST="${ARCHLIST} `echo '-arch '` `echo ${LIB} | cut -d . -f 3` `echo ' '` `echo ${LIB}`" + done + lipo -create ${ARCHLIST} -output macbuild/${OSX}/libcackey.dylib + for DLIB in macbuild/${OSX}/libcackey_g.dylib.*; do + DARCHLIST="${DARCHLIST} `echo '-arch '` `echo ${DLIB} | cut -d . -f 3` `echo ' '` `echo ${DLIB}`" + done + lipo -create ${DARCHLIST} -output macbuild/${OSX}/libcackey_g.dylib + rm macbuild/${OSX}/libcackey*.dylib.* +} + +# Function to build Mac OS X Packages +pkgbuild() { + if [ ${OSX} == "Panther" ]; then + EXT=mpkg + else + EXT=pkg + fi + /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker -d ../cackey_osx_build/${OSX}_pmbuild.pmdoc -o macbuild/pkg/CACKey_${OSX}.${EXT} + tar --create --directory macbuild/pkg/ --file macbuild/pkg/CACKey_${OSX}.${EXT}.tar CACKey_${OSX}.${EXT} + gzip -9 macbuild/pkg/CACKey_${OSX}.${EXT}.tar + rm -rf macbuild/pkg/CACKey_${OSX}.${EXT} + echo "${OSX} build complete" +} + +# Take command line arguments and execute +case "$1" in + "") + usage + exit $? + ;; + + "panther") + panther + exit $? + ;; + + "tiger") + tiger + exit $? + ;; + + "leopard") + leopard + exit $? + ;; + + "snowleopard") + snowleopard + exit $? + ;; + + "all") + panther + tiger + leopard + snowleopard + exit $? + ;; + + "clean") + clean + exit $? + ;; + + *) + usage + exit $? + ;; +esac