macos-packaging-updates-20071109
authorDerrick Brashear <shadow@dementia.org>
Fri, 9 Nov 2007 19:47:18 +0000 (19:47 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 9 Nov 2007 19:47:18 +0000 (19:47 +0000)
make the readme correct. make dmgs which have a useful name

configure.in
src/packaging/MacOS/DS_Store
src/packaging/MacOS/ReadMe.rtf.8 [moved from src/packaging/MacOS/ReadMe.rtf with 98% similarity]
src/packaging/MacOS/ReadMe.rtf.9 [new file with mode: 0644]
src/packaging/MacOS/afslogo.jpg
src/packaging/MacOS/background.jpg
src/packaging/MacOS/buildpkg.sh.in [moved from src/packaging/MacOS/buildpkg.sh with 95% similarity]

index 53d21ff..3e28961 100644 (file)
@@ -82,6 +82,7 @@ src/lwp/Makefile \
 src/lwp/test/Makefile \
 src/packaging/MacOS/OpenAFS.Info.plist \
 src/packaging/MacOS/OpenAFS.info \
+src/packaging/MacOS/buildpkg.sh \
 src/packaging/RedHat/openafs.spec \
 src/pam/Makefile \
 src/platform/Makefile \
index 646bda6..84fc18a 100644 (file)
Binary files a/src/packaging/MacOS/DS_Store and b/src/packaging/MacOS/DS_Store differ
similarity index 98%
rename from src/packaging/MacOS/ReadMe.rtf
rename to src/packaging/MacOS/ReadMe.rtf.8
index a2c5ddd..ada1c7d 100644 (file)
@@ -4,7 +4,7 @@
 \margl1440\margr1440\vieww9000\viewh9000\viewkind0
 \pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
 
-\f0\fs20 \cf0 This release of OpenAFS is targeted at MacOS 10.4. 
+\f0\fs20 \cf0 This release of OpenAFS is targeted at MacOS 10.4. (Tiger)
 \
 Select a client cell name by editing /var/db/openafs/etc/ThisCell\
 \
diff --git a/src/packaging/MacOS/ReadMe.rtf.9 b/src/packaging/MacOS/ReadMe.rtf.9
new file mode 100644 (file)
index 0000000..dfba64d
--- /dev/null
@@ -0,0 +1,13 @@
+{\rtf1\mac\ansicpg10000\cocoartf824\cocoasubrtf100
+{\fonttbl\f0\fswiss\fcharset77 Helvetica;}
+{\colortbl;\red255\green255\blue255;}
+\margl1440\margr1440\vieww9000\viewh9000\viewkind0
+\pard\tx1440\tx2880\tx4320\tx5760\tx7200\ql\qnatural
+
+\f0\fs20 \cf0 This release of OpenAFS is targeted at MacOS 10.5. (Leopard)
+\
+Select a client cell name by editing /var/db/openafs/etc/ThisCell\
+\
+The included afssettings program is distributed under the Apple Public Source License, version 2.0. See http://www.opensource.apple.com/apsl/2.0.txt or the included file 2.0.txt.\
+\
+Reboot when all of this is done.}
index f7345ce..e3fc7aa 100644 (file)
Binary files a/src/packaging/MacOS/afslogo.jpg and b/src/packaging/MacOS/afslogo.jpg differ
index 980f3c9..c37ec24 100644 (file)
Binary files a/src/packaging/MacOS/background.jpg and b/src/packaging/MacOS/background.jpg differ
similarity index 95%
rename from src/packaging/MacOS/buildpkg.sh
rename to src/packaging/MacOS/buildpkg.sh.in
index 4e92493..9c1e272 100644 (file)
@@ -25,6 +25,15 @@ CURDIR=`pwd`
 RESSRC=`dirname $0`
 RESSRC=`cd $RESSRC && pwd`
 majorvers=`uname -r | sed 's/\..*//'`
+if [ $majorvers -eq 7 ]; then
+  RELNAME="Panther"
+fi
+if [ $majorvers -eq 8 ]; then
+  RELNAME="Tiger"
+fi
+if [ $majorvers -eq 9 ]; then
+  RELNAME="Leopard"
+fi
 
 PKGROOT=$CURDIR/pkgroot
 PKGRES=$CURDIR/pkgres
@@ -67,7 +76,7 @@ if [ $firstpass = yes ]; then
           die=1
        fi
     fi
-    FILES="ReadMe.rtf License.rtf CellServDB.list OpenAFS.info OpenAFS.post_install OpenAFS.pre_upgrade csrvdbmerge.pl 2.0.txt"
+    FILES="ReadMe.rtf.$majorvers License.rtf CellServDB.list OpenAFS.info OpenAFS.post_install OpenAFS.pre_upgrade csrvdbmerge.pl 2.0.txt"
     for f in $FILES; do
        if [ ! -f $RESSRC/$f ]; then
         echo "file missing: " $RESSRC/$f
@@ -194,7 +203,8 @@ if [ $secondpass = yes ]; then
        cp OpenAFS.post_install $PKGRES/OpenAFS.post_upgrade
        chmod a+x $PKGRES/OpenAFS.post_install $PKGRES/OpenAFS.post_upgrade $PKGRES/OpenAFS.pre_upgrade
     fi
-    cp License.rtf ReadMe.rtf $PKGRES
+    cp License.rtf $PKGRES
+    cp ReadMe.rtf.$majorvers $PKGRES/ReadMe.rtf
     cp csrvdbmerge.pl $PKGRES
     chmod a+x $PKGRES/csrvdbmerge.pl
     cp CellServDB.list $PKGRES
@@ -236,7 +246,7 @@ if [ $secondpass = yes ]; then
     cp afslogo.jpg $CURDIR/dmg/.background
 #    hdiutil create -srcfolder $CURDIR/dmg -volname OpenAFS -anyowners $CURDIR/OpenAFS.dmg
     hdiutil makehybrid -hfs -hfs-volume-name OpenAFS -hfs-openfolder $CURDIR/dmg $CURDIR/dmg -o $CURDIR/TMP.dmg
-    hdiutil convert -format UDZO $CURDIR/TMP.dmg -o $CURDIR/OpenAFS.dmg
+    hdiutil convert -format UDZO $CURDIR/TMP.dmg -o $CURDIR/OpenAFS-@VERSION@-$RELNAME.dmg
     rm $CURDIR/TMP.dmg
     rm -rf $CURDIR/dmg
     # Unfortunately, sudo sets $USER to root, so I can't chown the