Index: /trunk/fink/main/finkinfo/macathena-config-common.info =================================================================== --- /trunk/fink/main/finkinfo/macathena-config-common.info (revision 114) +++ /trunk/fink/main/finkinfo/macathena-config-common.info (revision 114) @@ -0,0 +1,17 @@ +Package: macathena-config-common +Version: 111 +Revision: 1 +Source: http://macathena.mit.edu/dist/config-common-svn%v.tar.gz +Maintainer: SIPB MacAthena Project +HomePage: http://macathena.mit.edu/ +License: Public Domain +Description: Support files for building MacAthena packages +Source-MD5: 5dcea0028fea12dc8e15c2e10503061b +DocFiles: copyright + +CompileScript: << +<< +InstallScript: << + mkdir -p %i/share/%n + cp divert.sh %i/share/%n/ +<< Index: /trunk/fink/main/finkinfo/macathena-machtype.info =================================================================== --- /trunk/fink/main/finkinfo/macathena-machtype.info (revision 84) +++ /trunk/fink/main/finkinfo/macathena-machtype.info (revision 114) @@ -1,5 +1,5 @@ Package: macathena-machtype Version: 22699 -Revision: 2 +Revision: 3 Source: http://macathena.mit.edu/dist/machtype-svn%v.tar.gz Maintainer: SIPB MacAthena Project @@ -14,5 +14,5 @@ UpdateConfigGuess: true PatchFile: %n.patch -PatchFile-MD5: b3640db9d86c7e3800da8ae75c3bca3d +PatchFile-MD5: 0449dc3fae00f6f1e327ab5c0e19bf8b PatchScript: patch -p0 < %{PatchFile} CompileScript: << Index: /trunk/fink/main/finkinfo/macathena-afs-config.info =================================================================== --- /trunk/fink/main/finkinfo/macathena-afs-config.info (revision 114) +++ /trunk/fink/main/finkinfo/macathena-afs-config.info (revision 114) @@ -0,0 +1,48 @@ +Package: macathena-afs-config +Version: 113 +Revision: 1 +Source: http://macathena.mit.edu/dist/afs-config-svn%v.tar.gz +Maintainer: SIPB MacAthena Project +HomePage: http://macathena.mit.edu/ +License: Public Domain +Description: AFS configuration for MacAthena +Source-MD5: 6e1f693ad73d430288ef4d2085fcf4aa +DocFiles: copyright + +Depends: macathena-config-common, macathena-afs-conf-patch, macathena-machtype +CompileScript: << + autoconf + ./configure %c +<< +InstallScript: << + mkdir -p %d/var/db/openafs/etc/config/ + cp CellAlias.macathena %d/var/db/openafs/etc/ + cp CellServDB.macathena %d/var/db/openafs/etc/ + cp ThisCell.macathena %d/var/db/openafs/etc/ + cp afs.conf.macathena %d/var/db/openafs/etc/config/ +<< +PostInstScript: << + #!/bin/bash + + source %p/share/macathena-config-common/divert.sh + package=%n + + divert_link /var/db/openafs/etc/CellAlias + divert_link /var/db/openafs/etc/CellServDB + divert_link /var/db/openafs/etc/ThisCell + divert_link /var/db/openafs/etc/config/afs.conf + + /Library/StartupItems/OpenAFS/OpenAFS restart +<< +PreRmScript: << + #!/bin/bash + source %p/share/macathena-config-common/divert.sh + package=%n + + undivert_unlink /var/db/openafs/etc/CellAlias + undivert_unlink /var/db/openafs/etc/CellServDB + undivert_unlink /var/db/openafs/etc/ThisCell + undivert_unlink /var/db/openafs/etc/config/afs.conf + + /Library/StartupItems/OpenAFS/OpenAFS restart +<< Index: /trunk/fink/main/finkinfo/macathena-machtype.patch =================================================================== --- /trunk/fink/main/finkinfo/macathena-machtype.patch (revision 48) +++ /trunk/fink/main/finkinfo/macathena-machtype.patch (revision 114) @@ -81,5 +81,5 @@ +darwin_ver = int(getoutput('uname -r').split('.')[0]) * 10 + -+ver_list = range(darwin_ver, 40, -10) ++ver_list = range(darwin_ver, 70, -10) +x86_list = ["x86_darwin_%d" % ver for ver in ver_list] +ppc_list = ["ppc_darwin_%d" % ver for ver in ver_list] @@ -90,5 +90,5 @@ + versions = ppc_list + -+versions += ['share', 'common', 'any'] ++versions += ['share', 'common', 'any', 'all'] + +print 'ATHENA_SYS=%s ATHENA_SYS_COMPAT="%s"' % (versions[0], ':'.join(versions[1:]))