Comment: | Started preliminary work to support PackageMaker templates for CACKey builds |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: | 34f573e3f8365b2501118096370945687dce3ffb |
User & Date: | kvanals on 2010-07-24 18:47:47 |
Other Links: | manifest | tags |
2010-07-24
| ||
18:56 | Modified OSX cackey build script to support automatically generating UUIDs check-in: 578368c8b1 user: kvanals tags: trunk | |
18:47 | Started preliminary work to support PackageMaker templates for CACKey builds check-in: 34f573e3f8 user: kvanals tags: trunk | |
2010-07-23
| ||
23:08 | Added platform build notes check-in: 031f9f08b9 user: rkeene tags: trunk | |
Added build/cackey_osx_build/Template_pmbuild.pmdoc/01libcackey-contents.xml.in version [c0bd9f9d51].
1 +<pkg-contents spec="1.12"> 2 + <f n="libcackey.dylib" o="root" g="admin" p="33261" pt="@@BUILDROOTDIR@@/macbuild/Leopard/libcackey.dylib" m="false" t="file"> 3 + <mod>owner</mod> 4 + <mod>group</mod> 5 + </f> 6 +</pkg-contents>
Added build/cackey_osx_build/Template_pmbuild.pmdoc/01libcackey.xml.in version [fe70bceb11].
1 +<pkgref spec="1.12" uuid="@@UUID@@"> 2 + <config> 3 + <identifier>mil.army.usace.cackeyForMacOsX@@OSXVERSION@@.libcackey.pkg</identifier> 4 + <version>1</version> 5 + <description></description> 6 + <post-install type="none"/> 7 + <requireAuthorization/> 8 + <installFrom relative="true" mod="true">../../macbuild/@@OSXVERSION@@/libcackey.dylib</installFrom> 9 + <installTo mod="true" relocatable="true">/Library/CACKey/</installTo> 10 + <flags> 11 + <followSymbolicLinks/> 12 + </flags> 13 + <packageStore type="internal"></packageStore> 14 + <mod>parent</mod> 15 + <mod>scripts.postinstall.path</mod> 16 + <mod>relocatable</mod> 17 + <mod>installTo.path</mod> 18 + <mod>installFrom.path</mod> 19 + <mod>installTo</mod> 20 + </config> 21 + <contents> 22 + <file-list>01libcackey-contents.xml</file-list> 23 + <filter>/CVS$</filter> 24 + <filter>/\.svn$</filter> 25 + <filter>/\.cvsignore$</filter> 26 + <filter>/\.cvspass$</filter> 27 + <filter>/\.DS_Store$</filter> 28 + </contents> 29 +</pkgref>
Added build/cackey_osx_build/Template_pmbuild.pmdoc/02libcackey-contents.xml.in version [76f0baeb74].
1 +<pkg-contents spec="1.12"> 2 + <f n="libcackey_g.dylib" o="root" g="admin" p="33261" pt="@@BUILDROOTDIR@@/macbuild/Leopard/libcackey_g.dylib" m="false" t="file"> 3 + <mod>owner</mod> 4 + <mod>group</mod> 5 + </f> 6 +</pkg-contents>
Added build/cackey_osx_build/Template_pmbuild.pmdoc/02libcackey.xml.in version [593a22e1b4].
1 +<pkgref spec="1.12" uuid="@@UUID@@"> 2 + <config> 3 + <identifier>mil.army.usace.cackeyForMacOsX@@OSXVERSION@@.libcackeyg.pkg</identifier> 4 + <version>1</version> 5 + <description></description> 6 + <post-install type="none"/> 7 + <requireAuthorization/> 8 + <installFrom relative="true" mod="true">../../macbuild/@@OSXVERSION@@/libcackey_g.dylib</installFrom> 9 + <installTo mod="true" relocatable="true">/Library/CACKey/</installTo> 10 + <flags> 11 + <followSymbolicLinks/> 12 + </flags> 13 + <packageStore type="internal"></packageStore> 14 + <mod>parent</mod> 15 + <mod>scripts.postinstall.path</mod> 16 + <mod>relocatable</mod> 17 + <mod>installTo.path</mod> 18 + <mod>installFrom.path</mod> 19 + <mod>installTo</mod> 20 + </config> 21 + <contents> 22 + <file-list>02libcackey-contents.xml</file-list> 23 + <filter>/CVS$</filter> 24 + <filter>/\.svn$</filter> 25 + <filter>/\.cvsignore$</filter> 26 + <filter>/\.cvspass$</filter> 27 + <filter>/\.DS_Store$</filter> 28 + </contents> 29 +</pkgref>
Added build/cackey_osx_build/Template_pmbuild.pmdoc/03libcackey-contents.xml.in version [c50c97b69f].
1 +<pkg-contents spec="1.12"> 2 + <f n="cackey.dylib" o="root" g="wheel" p="33261" pt="@@BUILDROOTDIR@@/build/cackey_osx_build/cackey.dylib" m="true" t="file"> 3 + <mod>owner</mod> 4 + <mod>mode</mod> 5 + <mod>group</mod> 6 + </f> 7 +</pkg-contents>
Added build/cackey_osx_build/Template_pmbuild.pmdoc/03libcackey.xml.in version [057a954678].
1 +<pkgref spec="1.12" uuid="@@OSXVERSION@@"> 2 + <config> 3 + <identifier>mil.army.usace.cackeyForMacOsX@@OSXVERSION@@.cackey.pkg</identifier> 4 + <version>1</version> 5 + <description></description> 6 + <post-install type="none"/> 7 + <requireAuthorization/> 8 + <installFrom relative="true" mod="true">cackey.dylib</installFrom> 9 + <installTo mod="true" relocatable="true">/usr/lib/pkcs11</installTo> 10 + <flags></flags> 11 + <packageStore type="internal"></packageStore> 12 + <mod>parent</mod> 13 + <mod>scripts.postinstall.path</mod> 14 + <mod>installTo.isAbsoluteType</mod> 15 + <mod>installTo.isRelativeType</mod> 16 + <mod>scripts.postflight.path</mod> 17 + <mod>relocatable</mod> 18 + <mod>version</mod> 19 + <mod>installTo.path</mod> 20 + <mod>installFrom.path</mod> 21 + <mod>installTo</mod> 22 + </config> 23 + <contents> 24 + <file-list>03libcackey-contents.xml</file-list> 25 + <filter>/CVS$</filter> 26 + <filter>/\.svn$</filter> 27 + <filter>/\.cvsignore$</filter> 28 + <filter>/\.cvspass$</filter> 29 + <filter>/\.DS_Store$</filter> 30 + </contents> 31 +</pkgref>
Added build/cackey_osx_build/Template_pmbuild.pmdoc/index.xml.in version [7d23f00ebd].
1 +<pkmkdoc spec="1.12"> 2 + <properties> 3 + <title>CACKey for Mac OS X @@OSXVERSION@@</title> 4 + <organization>mil.army.usace</organization> 5 + <userSees ui="both"/> 6 + <min-target os="@@TARGETOS@@"/> 7 + <domain system="true"/> 8 + </properties> 9 + <distribution> 10 + <versions min-spec="1.000000"/> 11 + <scripts></scripts> 12 + </distribution> 13 + <description>CACKey</description> 14 + <contents> 15 + <choice title="CACKey PKCS#11 Library (Core)" id="cackey" starts_selected="true" starts_enabled="true" starts_hidden="false"> 16 + <pkgref id="mil.army.usace.cackeyForMacOsX@@OSXVERSION@@.libcackey.pkg"/> 17 + <pkgref id="mil.army.usace.cackeyForMacOsX@@OSXVERSION@@.cackey.pkg"/> 18 + </choice> 19 + <choice title="CACKey PKCS#11 Library (Debug)" id="cackeydebug" starts_selected="true" starts_enabled="true" starts_hidden="false"> 20 + <pkgref id="mil.army.usace.cackeyForMacOsX@@OSXVERSION@@.libcackeyg.pkg"/> 21 + </choice> 22 + </contents> 23 + <resources bg-scale="none" bg-align="topleft"> 24 + <locale lang="en"> 25 + <resource mime-type="text/rtf" kind="embedded" type="license"> 26 + <![CDATA[{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540 27 +{\fonttbl\f0\fnil\fcharset0 LucidaGrande;} 28 +{\colortbl;\red255\green255\blue255;} 29 +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural 30 + 31 +\f0\fs26 \cf0 Release information:\ 32 + pkg: CACKey\ 33 + author: US Army Corps of Engineers\ 34 +Mac build contact: Kenneth Van Alstyne <kenneth.l.vanalstyne@usace.army.mil>\ 35 + US Army Corps of Engineers\ 36 + Information Technology Laboratory\ 37 + Vicksburg, MS 39180\ 38 +contact: Roy Keene <roy.s.keene@usace.army.mil>\ 39 +------------------------------------------------\ 40 +\ 41 +The following files in the source directory are the intellectual property of the\ 42 +Free Software Foundation and are licensed under the terms of the GNU General\ 43 +Public License (GPL):\ 44 + config.guess, config.sub, install-sh\ 45 +\ 46 +The files in the source directory and the "leakcheck" directory are the intellectual\ 47 +property of the United States Government. It is not clear which, if any,\ 48 +license is made on them. In addition, as of 07-JUN-2010 they have not be\ 49 +cleared for public release.\ 50 +\ 51 +The files in the "pkcs11/" directory are licensed under the terms of the\ 52 +following licenses:\ 53 + mypkcs11.h : GNU General Public License 2.1.\ 54 + pkcs11.h : GNU General Public License 2.1.\ 55 + pkcs11f.h : GNU General Public License 2.1.\ 56 + pkcs11n.h : Mozilla Public License or GNU General Public License\ 57 + pkcs11t.h : GNU General Public License 2.1.}]]> 58 + </resource> 59 + <resource mime-type="text/rtf" kind="embedded" type="readme"> 60 + <![CDATA[{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540 61 +{\fonttbl\f0\fnil\fcharset0 LucidaGrande;} 62 +{\colortbl;\red255\green255\blue255;} 63 +\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural 64 + 65 +\f0\fs26 \cf0 Thank you for choosing to install CACKey.\ 66 +\ 67 +To use CACKey, install /Library/CACKey/libcackey.dylib or\ 68 +/usr/lib/pkcs11/cackey.dylib as a security module into any application that can use a PKCS#11 provider.\ 69 +\ 70 +A debug version, /Library/CACKey/libcackey_g.dylib is provided if debug output is necessary.}]]> 71 + </resource> 72 + </locale> 73 + </resources> 74 + <requirements> 75 + <requirement id="tosv" operator="lt" value="'@@NEXTOSXVER@@'"> 76 + <message>This CACKey release requires Mac OS X @@CUROSXVER@@.</message> 77 + </requirement> 78 + <requirement id="tosv" operator="ge" value="'@@CUROSXVER@@'"> 79 + <message>This CACKey release requires Mac OS X @@CUROSXVER@@.</message> 80 + </requirement> 81 + </requirements> 82 + <flags/> 83 + <item type="file">01libcackey.xml</item> 84 + <item type="file">02libcackey.xml</item> 85 + <item type="file">03libcackey.xml</item> 86 + <mod>properties.customizeOption</mod> 87 + <mod>properties.title</mod> 88 + <mod>description</mod> 89 + <mod>properties.systemDomain</mod> 90 + <mod>properties.anywhereDomain</mod> 91 +</pkmkdoc>
Modified build/cackey_osx_build/build_osx.sh from [ba9acb7d77] to [2b8374712c].
1 1 #!/bin/bash 2 2 # Shell Script to make Mac OS X Releases of CACKey 3 3 # Kenneth Van Alstyne 4 4 # kenneth.l.vanalstyne@usace.army.mil 5 -# 20100712 6 5 CACKEY_VERSION=`cat configure.ac | grep AC_INIT | cut -d " " -f 2 | sed 's_)__'` 7 6 8 7 # Usage function 9 8 usage() { 10 9 echo "Usage: build_osx.sh <target>" 11 10 echo Where target is one of: 12 11 echo " panther - (Builds 10.3 Library for PPCG3)" ................................................................................ 53 52 54 53 # Build function for Panther 55 54 panther() { 56 55 makedir 57 56 HEADERS=/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/PCSC.framework/Versions/A/Headers/ 58 57 LIBRARY=/Developer/SDKs/MacOSX10.3.9.sdk/System/Library/Frameworks/PCSC.framework/PCSC 59 58 OSX=Panther 59 + PKTARGETOS=1 60 + NEXTOSXVER=10.4 61 + CUROSXVER=10.3 60 62 HOST=powerpc-apple-darwin7 61 63 make distclean 62 64 ARCH="ppc -mcpu=G3" 63 65 CFLAGS="-arch ${ARCH}" ./configure --with-pcsc-headers=${HEADERS} --with-pcsc-libs=${LIBRARY} --host=${HOST} 64 66 make 65 67 cp libcackey.dylib macbuild/${OSX}/libcackey.dylib 66 68 cp libcackey_g.dylib macbuild/${OSX}/libcackey_g.dylib ................................................................................ 73 75 HEADERS=/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/PCSC.framework/Versions/A/Headers/ 74 76 LIBRARY=/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/PCSC.framework/PCSC 75 77 LIB="" 76 78 ARCHLIST="" 77 79 DLIB="" 78 80 DARCHLIST="" 79 81 OSX=Tiger 82 + PKTARGETOS=2 83 + NEXTOSXVER=10.5 84 + CUROSXVER=10.4 80 85 for HOST in powerpc-apple-darwin8 i386-apple-darwin8; do 81 86 genbuild 82 87 done 83 88 libbuild 84 89 pkgbuild 85 90 } 86 91 ................................................................................ 90 95 HEADERS=/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/PCSC.framework/Versions/A/Headers/ 91 96 LIBRARY=/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/PCSC.framework/PCSC 92 97 LIB="" 93 98 ARCHLIST="" 94 99 DLIB="" 95 100 DARCHLIST="" 96 101 OSX=Leopard 102 + PKTARGETOS=3 103 + NEXTOSXVER=10.6 104 + CUROSXVER=10.5 97 105 for HOST in powerpc-apple-darwin9 i386-apple-darwin9; do 98 106 genbuild 99 107 done 100 108 libbuild 101 109 pkgbuild 102 110 } 103 111 ................................................................................ 107 115 HEADERS=/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/PCSC.framework/Versions/A/Headers/ 108 116 LIBRARY=/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/PCSC.framework/PCSC 109 117 LIB="" 110 118 ARCHLIST="" 111 119 DLIB="" 112 120 DARCHLIST="" 113 121 OSX=SnowLeopard 122 + PKTARGETOS=3 123 + NEXTOSXVER=10.7 124 + CUROSXVER=10.6 114 125 for HOST in i386-apple-darwin10 x86_64-apple-darwin10; do 115 126 genbuild 116 127 done 117 128 libbuild 118 129 pkgbuild 119 130 } 120 131 ................................................................................ 151 162 # Function to build Mac OS X Packages 152 163 pkgbuild() { 153 164 rm -f build/cackey_osx_build/cackey.dylib 154 165 ln macbuild/${OSX}/libcackey.dylib build/cackey_osx_build/cackey.dylib 155 166 for PMDOC in build/cackey_osx_build/${OSX}_pmbuild.pmdoc/*.in; do 156 167 PMDOC="`echo "${PMDOC}" | sed 's_.in__g'`" 157 168 sed "s|@@BUILDROOTDIR@@|$(pwd)|g" ${PMDOC}.in > ${PMDOC} 169 + sed "s|@@OSXVERSION@@|${OSX}|g" ${PMDOC}.in > ${PMDOC} 170 + sed "s|@@UUID@@|${UUID}|g" ${PMDOC}.in > ${PMDOC} 171 + sed "s|@@TARGETOS@@|${PKTARGETOS}|g" ${PMDOC}.in > ${PMDOC} 172 + sed "s|@@NEXTOSXVER@@|${NEXTOSXVER}|g" ${PMDOC}.in > ${PMDOC} 173 + sed "s|@@CUROSXVER@@|${CUROSXVER}|g" ${PMDOC}.in > ${PMDOC} 158 174 done 159 175 if [ ${OSX} == "Panther" ]; then 160 176 EXT=mpkg 161 177 else 162 178 EXT=pkg 163 179 fi 164 180 /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker -d build/cackey_osx_build/${OSX}_pmbuild.pmdoc -o macbuild/pkg/CACKey_${CACKEY_VERSION}_${OSX}.${EXT}