1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
$NetBSD: patch-ar,v 1.1.1.1 1998/10/21 19:59:30 garbled Exp $
--- progs/tools/gluinstall.pl.orig Thu Sep 11 16:28:03 1997
+++ progs/tools/gluinstall.pl Sat May 23 14:16:26 1998
@@ -2,3 +2,6 @@
-$glunix_base = "%%GLUNIX_DIR%%/release";
+$install_man = "/usr/bin/install -c -m 644 -o glunix -g glunix ";
+$install_bin = "/usr/bin/install -c -m 755 -o glunix -g glunix ";
+$imkdir = "/usr/bin/install -d -m 755 -o glunix -g glunix";
+$glunix_base = "%%GLUNIX_BASE%%";
$now_base = "%%INSTALL_DIR%%";
@@ -23,9 +26,9 @@
-&my_mkdir("$now_base/bin");
-&my_mkdir("$now_base/lib");
-&my_mkdir("$now_base/include");
-&my_mkdir("$now_base/man");
-if ($http_base ne "") {
- &my_mkdir("$http_base/man/html");
-}
+#&my_mkdir("$now_base/bin");
+#&my_mkdir("$now_base/lib");
+#&my_mkdir("$now_base/include");
+#&my_mkdir("$now_base/man");
+#if ($http_base ne "") {
+# &my_mkdir("$http_base/man/html");
+#}
@@ -50,18 +53,39 @@
-@files = <$glunix_base/glunix/include/*>;
-@files = &strip_garbage(@files);
+#@files = <$glunix_base/glunix/include/*>;
+#@files = &strip_garbage(@files);
#print "Found include files: ", join(" ", @dirs), "\n";
-foreach $val (@files) {
- $install_path = "$now_base/include/" . &path_tail($val);
- print "Installing $install_path\n";
- if ($justTesting) {
- print "Unlinking $install_path\n";
- print "Linking $install_path to $val\n";
- } else {
- unlink($install_path);
- symlink($val, $install_path);
- }
+#foreach $val (@files) {
+# $install_path = "$now_base/include/" . &path_tail($val);
+# print "Installing $install_path\n";
+# if ($justTesting) {
+# print "Unlinking $install_path\n";
+# print "Linking $install_path to $val\n";
+# } else {
+# unlink($install_path);
+# system("$install_man $val $install_path");
+# }
+#}
+# create necc dirs.
+system("$imkdir $now_base/include");
+system("$imkdir $now_base/lib/$glunix_arch");
+system("$imkdir $now_base/bin/$glunix_arch");
+system("$imkdir $now_base/include/glib");
+system("$imkdir $now_base/lib/perl-lib/Time");
+system("$imkdir $now_base/man");
+
+system("$install_bin $glunix_base/glunix/bin/$glunix_arch/master $now_base/bin/$glunix_arch");
+system("$install_bin $glunix_base/glunix/bin/$glunix_arch/daemon $now_base/bin/$glunix_arch");
+system("$install_man $glunix_base/glunix/include/glib/*.h $now_base/include/glib");
+system("$install_man $glunix_base/glunix/include/*.h $now_base/include");
+system("$install_man $glunix_base/progs/tools/perl-lib/Time/* $now_base/lib/perl-lib/Time");
+system("$install_man $glunix_base/progs/tools/perl-lib/*.pl $now_base/lib/perl-lib");
+system("cp -R -p $glunix_base/glunix/man/* $now_base/man");
+system("rm $now_base/man/Makefile");
+@chownme = `find $glunix_base/glunix/man -name \\*`;
+foreach (@chownme) {
+ chomp;
+ $_ =~ s+$glunix_base/glunix/man++;
+ system("chown glunix:glunix $now_base/man/$_");
}
-
print "\n";
@@ -74,3 +98,3 @@
# Find all of the man pages in the release directory
-@dirs = <$glunix_base/man/man?>;
+@dirs = <$glunix_base/glunix/man/man?>;
push(@dirs, <$glunix_base/glunix/man/man?>);
@@ -79,21 +103,22 @@
-foreach $val (@dirs) {
- @f = <$val/*.*>;
+#foreach $val (@dirs) {
+# @f = <$val/*.*>;
# print "Found man pages: ", join(" ", &man_pagename(@f)), "\n";
- push(@files, @f);
-}
+# push(@files, @f);
+#}
-@files = <$glunix_base/man/man?/*.*>;
-&install_manpages("$now_base/man/man", @files);
+#@files = <$glunix_base/man/man?/*.*>;
+#&install_manpages("$now_base/man/man", @files);
-if ($http_base ne "") {
- @files = <$glunix_base/man/html?/*.*>;
- &install_manpages("$http_base/man/html", @files);
-}
-
-print "Creating windex file (this may take a while)\n";
-if (!$justTesting) {
- system("/usr/bin/catman -M $now_base/man -w");
- print "Done with catman!\n";
-}
+#if ($http_base ne "") {
+# @files = <$glunix_base/man/html?/*.*>;
+# &install_manpages("$http_base/man/html", @files);
+#}
+
+# no windex file in bsd.
+#print "Creating windex file (this may take a while)\n";
+#if (!$justTesting) {
+# system("/usr/bin/catman -M $now_base/man -w");
+# print "Done with catman!\n";
+#}
@@ -104,3 +129,3 @@
-@files = <$glunix_base/lib/$glunix_arch/*>;
+@files = <$glunix_base/glunix/lib/$glunix_arch/*>;
@files = &strip_garbage(@files);
@@ -115,3 +140,3 @@
# print "Linking $install_path to $val\n";
- symlink($val, $install_path);
+ system("$install_man $val $install_path");
}
@@ -131,9 +156,9 @@
foreach $val (@copy_progs) {
- if (-e "$glunix_base/bin/$glunix_arch/$val") {
- print "Copying $glunix_base/bin/$glunix_arch/$val to $now_base/bin/$val\n";
+ if (-e "$glunix_base/glunix/bin/$glunix_arch/$val") {
+ print "Copying $glunix_base/glunix/bin/$glunix_arch/$val to $now_base/bin/$val\n";
if (!$justTesting) {
- system("/bin/cp $glunix_base/bin/$glunix_arch/$val $now_base/bin/$val");
+ system("$install_bin $glunix_base/glunix/bin/$glunix_arch/$val $now_base/bin/$val");
}
} else {
- print "Cannot find $glunix_base/bin/$glunix_arch/$val to copy\n";
+ print "Cannot find $glunix_base/glunix/bin/$glunix_arch/$val to copy\n";
}
@@ -142,3 +167,3 @@
# Find all of the programs in the release directory
-@dirs = <$glunix_base/bin/*>;
+@dirs = <$glunix_base/glunix/bin/*>;
@@ -181,3 +206,3 @@
# print "symlink(\"GLUnix-bin\", $install_path);\n";
- symlink("GLUnix-bin", $install_path);
+ system("$install_bin $val $install_path");
}
@@ -188,3 +213,5 @@
if (!$justTesting) {
- chmod 06511, $val;
+# chmod 06511, $val;
+ system("chown root:glunix $now_base/bin/$val");
+ system("chmod 6511 $now_base/bin/$val");
}
@@ -227,3 +254,3 @@
# print "symlink($val, $install_path)\n";
- symlink($val, $install_path);
+ system("$install_man $val $install_path");
}
|