aklog: work around lion kerberos disaster
[openafs.git] / src / packaging / MacOS / buildpkg.sh.in
index f3b88ab..2b4f1cc 100644 (file)
@@ -37,6 +37,9 @@ fi
 if [ $majorvers -eq 10 ]; then
   RELNAME="Snowleopard"
 fi
+if [ $majorvers -eq 11 ]; then
+  RELNAME="Lion"
+fi
 
 PKGROOT=$CURDIR/pkgroot
 PKGRES=$CURDIR/pkgres
@@ -141,6 +144,7 @@ if [ $firstpass = yes ]; then
        echo /Network/afs:/var/db/openafs/cache:30000 > $PKGROOT/private/var/db/openafs/etc/cacheinfo.sample
     fi
     cp afs.conf $PKGROOT/private/var/db/openafs/etc/config/afs.conf.sample
+    cp krb5-weak.conf $PKGROOT/private/var/db/openafs/etc/krb5-weak.conf
 
     cp decode-panic $PKGROOT/Library/OpenAFS/Tools/tools
     chmod a+x $PKGROOT/Library/OpenAFS/Tools/tools/decode-panic
@@ -168,6 +172,7 @@ if [ $firstpass = yes ]; then
 
     BINLIST="fs klog klog.krb pagsh pagsh.krb pts sys tokens tokens.krb unlog unlog.krb aklog"
     ETCLIST="vos"
+    SHLIBLIST="libafsauthent.dylib libafsauthent.dylib.1 libafsauthent.dylib.1.1 libafshcrypto.dylib libafshcrypto.dylib.1 libafshcrypto.dylib.1.1 libafsrpc.dylib libafsrpc.dylib.1 libafsrpc.dylib.1.4 libkopenafs.dylib libkopenafs.dylib.1 libkopenafs.dylib.1.1 librokenafs.dylib librokenafs.dylib.1 librokenafs.dylib.1.1"
 
 # Should these be linked into /usr too?
     OTHER_BINLIST="bos cmdebug rxgen translate_et udebug xstat_cm_test xstat_fs_test"
@@ -179,6 +184,9 @@ if [ $firstpass = yes ]; then
     for f in $ETCLIST; do
        ln -s ../../Library/OpenAFS/Tools/etc/$f $PKGROOT/usr/sbin/$f
     done
+    for f in $SHLIBLIST; do
+       ln -s ../../Library/OpenAFS/Tools/lib/$f $PKGROOT/usr/lib/$f
+    done
     for f in `ls $PKGROOT/Library/OpenAFS/Tools/man/man1`; do
        gzip -9 $PKGROOT/Library/OpenAFS/Tools/man/man1/$f
        ln -s ../../../../Library/OpenAFS/Tools/man/man1/$f.gz $PKGROOT/usr/share/man/man1/$f.gz