Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / afsinstall / lib / InstallGuides / SUN4x_4x / bldkernel
CommitLineData
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 SUN systems running SunOS 4.x
10#
11
12sub bldkernel {
13my($arch);
14&ErrorsAreFatal(1);
15$arch = `/bin/uname -m`;
16chop $arch;
17&ErrorMsg("Couldn't get sun kernel architecture type with","/bin/uname -m")
18 unless ($arch =~ /sun/);
19&ErrorsAreFatal(0);
20
21if ($Configuration{"NFSEXTENSIONS"}) {
22 &Copy("root.client/bin/libafs.a", "/usr/sys/$arch/OBJ/libafs.o"); }
23else {
24 &Copy("root.client/bin/libafs.nonfs.a", "/usr/sys/$arch/OBJ/libafs.o"); }
25&VPrint("Running ranlib on library");
26system("ranlib /usr/sys/$arch/OBJ/libafs.o");
27
28&Copy("root.client/usr/vice/etc/afsd", "/usr/vice/etc");
29&Chmod(0744, "/usr/vice/etc/afsd");
30&Copy("bin/fs", "/usr/vice/etc/fs");
31}