Commit | Line | Data |
---|---|---|
805e021f CE |
1 | # Copyright 2000, International Business Machines Corporation and others. |
2 | # All Rights Reserved. | |
3 | # | |
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 | |
7 | ||
8 | # An InstallGuide for installing static AFS kernel libraries | |
9 | # For HP systems running HPUX 10.20 | |
10 | # | |
11 | ||
12 | sub bldkernel { | |
13 | if ($Configuration{"NFSEXTENSIONS"}) { | |
14 | &Copy("root.client/bin/libafs.a", "/usr/conf/lib"); } | |
15 | else { | |
16 | &Copy("root.client/bin/libafs.nonfs.a", "/usr/conf/lib/libafs.a"); }; | |
17 | ||
18 | &CreateDir("/usr/vice/etc"); | |
19 | &Copy("root.client/usr/vice/etc/afsd", "/usr/vice/etc"); | |
20 | &Chmod(0744, "/usr/vice/etc/afsd"); | |
21 | &Copy("root.client/usr/vice/etc/afs.driver", "/usr/conf/master.d/afs"); | |
22 | &Copy("bin/fs", "/usr/vice/etc/fs"); | |
23 | ||
24 | ||
25 | # Patch the files | |
26 | &ErrorsAreFatal(1); | |
27 | $FILE="/stand/system"; | |
28 | ||
29 | &Patch::Verbose if ($InstallVerbose); | |
30 | ||
31 | &Patch::FileOpen($FILE); | |
32 | ||
33 | $Search = <<"xxENDxx"; | |
34 | nfs | |
35 | xxENDxx | |
36 | ||
37 | $Add = <<"xxENDxx"; | |
38 | afs | |
39 | xxENDxx | |
40 | ||
41 | if (!&Patch::Patch($FILE, [[0, "Insert", $Search, $Add]])) { | |
42 | &ErrorMsg("Did not succeed with patch", $FILE); | |
43 | } | |
44 | } | |
45 |