root/trunk/fink/main/finkinfo/macathena-afs-config.info

Revision 197, 2.2 kB (checked in by broder, 14 years ago)

Update AFS configuration without restarting AFS.

Line 
1 Package: macathena-afs-config
2 Version: 196
3 Revision: 1
4 Source: http://macathena.mit.edu/dist/afs-config-svn%v.tar.gz
5 Maintainer: SIPB MacAthena Project <sipb-macathena@mit.edu>
6 HomePage: http://macathena.mit.edu/
7 License: Public Domain
8 Description: AFS configuration for MacAthena
9 Source-MD5: d1412db9d53ef79315b4f4e211ac5d52
10 DocFiles: copyright
11 ConfFiles: /private/var/db/openafs/etc/CellAlias.macathena /private/var/db/openafs/etc/CellServDB.macathena /private/var/db/openafs/etc/ThisCell.macathena /private/var/db/openafs/etc/config/afs.conf.macathena /private/var/db/openafs/etc/config/settings.plist.macathena
12
13 Depends: macathena-config-common, macathena-afs-conf-patch, macathena-machtype
14 CompileScript: <<
15         autoconf
16         ./configure %c
17 <<
18 InstallScript: <<
19         mkdir -p %d/private/var/db/openafs/etc/config/
20         cp CellAlias.macathena %d/private/var/db/openafs/etc/
21         cp CellServDB.macathena %d/private/var/db/openafs/etc/
22         cp ThisCell.macathena %d/private/var/db/openafs/etc/
23         cp afs.conf.macathena %d/private/var/db/openafs/etc/config/
24         cp settings.plist.macathena %d/private/var/db/openafs/etc/config/
25
26         mkdir -p %i/libexec/macathena-afs-config
27         cp update-cellservdb %i/libexec/macathena-afs-config
28 <<
29 PostInstScript: <<
30         source %p/share/macathena-config-common/divert.sh
31         package=%n
32        
33         divert_link /private/var/db/openafs/etc/CellAlias
34         divert_link /private/var/db/openafs/etc/CellServDB
35         divert_link /private/var/db/openafs/etc/ThisCell
36         divert_link /private/var/db/openafs/etc/config/afs.conf
37         divert_link /private/var/db/openafs/etc/config/settings.plist
38
39         if [ -n "$(mount -t afs)" ]; then
40                 %p/libexec/macathena-afs-config/update-cellservdb
41
42                 . /private/var/db/openafs/etc/config/afs.conf
43                 fs sysname $AFS_SYSNAME || true
44         fi
45 <<
46 PreRmScript: <<
47         source %p/share/macathena-config-common/divert.sh
48         package=%n
49        
50         undivert_unlink /private/var/db/openafs/etc/CellAlias
51         undivert_unlink /private/var/db/openafs/etc/CellServDB
52         undivert_unlink /private/var/db/openafs/etc/ThisCell
53         undivert_unlink /private/var/db/openafs/etc/config/afs.conf
54         undivert_unlink /private/var/db/openafs/etc/config/settings.plist
55        
56         if [ -n "$(mount -t afs)" ]; then
57                 %p/libexec/macathena-afs-config/update-cellservdb
58
59                 . /private/var/db/openafs/etc/config/afs.conf
60                 fs sysname $AFS_SYSNAME || true
61         fi
62 <<
Note: See TracBrowser for help on using the browser.