1 # Copyright 2000, International Business Machines Corporation and others.
4 # This software has been released under the terms of the IBM Public
5 # License. For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
8 # An InstallGuide for static kernel built libraries
9 # For Alpha systems running Digital Unix 4.0
15 if ($Configuration{"NFSEXTENSIONS"}) {
16 &Copy("root.client/bin/libafs.o", "/usr/sys/BINARY/afs.mod"); }
18 &Copy("root.client/bin/libafs.nonfs.o", "/usr/sys/BINARY/afs.mod"); };
20 &CreateDir("/usr/vice/etc");
21 &Copy("root.client/usr/vice/etc/afsd", "/usr/vice/etc");
22 &Chmod(0744, "/usr/vice/etc/afsd");
23 &Copy("bin/fs", "/usr/vice/etc/fs");
27 if (!-f "/usr/sys/conf/AFS") {
30 &Copy("/usr/sys/conf/$host", "/usr/sys/conf/AFS"); };
33 $FILES="/sys/conf/files";
34 $VFSCONF="/sys/vfs/vfs_conf.c";
36 &Patch::Verbose if ($InstallVerbose);
38 &Patch::FileOpen($AFS);
39 &Patch::FileOpen($FILES);
40 &Patch::FileOpen($VFSCONF);
42 $AFSSearchInsert = <<"xxENDxx";
46 $AFSNewInsert = <<"xxENDxx";
49 $AFSSearchReplace = "ident\\s+.+";
50 $AFSNewReplace = "ident\t\t\"AFS\"";
52 if (!&Patch::Patch($AFS, [[0, "Insert", $AFSSearchInsert, $AFSNewInsert],
53 [1, "Replace", $AFSSearchReplace, $AFSNewReplace]])) {
54 &ErrorMsg("Did not succeed with patch", $AFS);
57 $FILESSearch1 = << "xxENDxx";
58 OPTIONS/nfs optional nfs
60 $FILESNew1 = << "xxENDxx";
61 OPTIONS/afs optional afs
64 $FILESSearch2 = << "xxENDxx";
65 nfs/nfs3_server.c module nfs_server optimize -g3
68 $FILESNew2 = << "xxENDxx";
69 MODULE/afs optional afs Binary
70 afs/libafs.c module afs
74 if (!&Patch::Patch($FILES, [[0, "Insert", $FILESSearch1, $FILESNew1],
75 [0, "Insert", $FILESSearch2, $FILESNew2]])) {
76 &ErrorMsg("Did not succeed with patch", $FILES);
79 $VFSSearch1 = "#include <cdfs.h>";
80 $VFSNew1 = << "xxENDxx";
82 #if defined(AFS) && AFS
83 extern struct vfsops afs_vfsops;
89 $VFSSearch2 = << "xxENDxx";
90 (struct vfsops *)0, "", /* 13 = MOUNT_ADDON */
93 $VFSNew2 = << "xxENDxx";
97 (struct vfsops *)0, "", /* 13 = MOUNT_ADDON */
103 if (!&Patch::Patch($VFSCONF, [[0, "Replace", $VFSSearch1, $VFSNew1],
104 [0, "Replace", $VFSSearch2, $VFSNew2]])) {
105 &ErrorMsg("Did not succeed with patch", $VFSCONF);