Commit | Line | Data |
---|---|---|
599d755e | 1 | # @(#)Makefile 5.26 (Berkeley) %G% |
77f73222 KB |
2 | |
3 | NOOBJ= oobj | |
c4500850 | 4 | |
812add4f | 5 | # disktab may be wrong -- hcx9 is a tahoe, but gets its own. |
c4500850 | 6 | # -rw-r--r-- |
af5d69aa KB |
7 | BIN1= aliases changelist csh.cshrc csh.login csh.logout crontab daily \ |
8 | dm.conf ftpusers gettytab group hosts hosts.equiv hosts.lpd \ | |
9 | inetd.conf man.conf monthly motd netstart phones printcap protocols \ | |
10 | rc rc.local remote security services shells syslog.conf ttys weekly \ | |
812add4f | 11 | etc.${MACHINE}/disktab |
c4500850 KB |
12 | |
13 | # -rw-rw-rw- | |
14 | BIN2= motd | |
15 | ||
9a78e863 | 16 | MTREE= 4.4alpha.dist special |
18fc0c30 | 17 | KRB= README krb.conf krb.realms |
74c3b0ba | 18 | NAMEDB= localhost.rev named.boot root.cache |
38309355 KB |
19 | PCS= pcs750.bin |
20 | WCS1= wcs fppwcs poc poc1 poc2 fppoc | |
21 | WCS2= fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual | |
a033e9ce | 22 | RBOOTD= rbootd.conf |
c4500850 KB |
23 | |
24 | all clean cleandir depend etc install lint: | |
25 | ||
26 | distribution: | |
9a78e863 | 27 | # Hand-craft the password file first. |
6e74e807 | 28 | -mkdir /etc /dev |
9a78e863 | 29 | cp master.passwd ${DESTDIR}/tmp/p |
eba2e515 KB |
30 | pwd_mkdb -p /tmp/p |
31 | rm -f /tmp/p | |
9a78e863 KB |
32 | cp group /etc/group |
33 | # Build the tree. | |
34 | -mtree -def mtree/4.4alpha.dist -p ${DESTDIR}/ -u | |
eba2e515 KB |
35 | # install devices |
36 | .if ${MACHINE} == "hp300" | |
37 | (cd etc.hp300; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ | |
8a25cd75 | 38 | MAKEDEV.hpux ${DESTDIR}/dev) |
eba2e515 | 39 | .endif |
27b11769 KB |
40 | install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ |
41 | MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev | |
eba2e515 | 42 | (cd /dev && ./MAKEDEV std) |
28f10a87 | 43 | install -c -o ${BINOWN} -g ${BINGRP} -m 444 COPYRIGHT ${DESTDIR}/ |
9a78e863 | 44 | install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc |
eba2e515 KB |
45 | install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc |
46 | install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc | |
d05906a8 KB |
47 | (cd root; \ |
48 | install -c -o root -g wheel -m 644 dot.cshrc \ | |
49 | ${DESTDIR}/root/.cshrc; \ | |
50 | install -c -o root -g wheel -m 644 dot.klogin \ | |
51 | ${DESTDIR}/root/.klogin; \ | |
52 | install -c -o root -g wheel -m 644 dot.login \ | |
53 | ${DESTDIR}/root/.login; \ | |
54 | install -c -o root -g wheel -m 644 dot.profile \ | |
55 | ${DESTDIR}/root/.profile; \ | |
56 | rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ | |
57 | ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ | |
58 | ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) | |
9a78e863 KB |
59 | (cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \ |
60 | ${DESTDIR}/etc/mtree) | |
61 | (cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ | |
62 | ${DESTDIR}/etc/namedb) | |
63 | (cd kerberosIV; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${KRB} \ | |
64 | ${DESTDIR}/etc/kerberosIV) | |
f4fe22ce KB |
65 | install -c -o ${BINOWN} -g operator -m 664 /dev/null \ |
66 | ${DESTDIR}/etc/dumpdates | |
c4500850 KB |
67 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ |
68 | ${DESTDIR}/var/log/messages | |
69 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ | |
70 | ${DESTDIR}/var/log/maillog | |
71 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ | |
72 | ${DESTDIR}/var/log/lpd-errs | |
73 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ | |
74 | ${DESTDIR}/var/run/utmp | |
cf184a31 | 75 | (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ |
d9b852b9 | 76 | fstab.* ${DESTDIR}/etc) |
a033e9ce KB |
77 | .if ${MACHINE} == "hp300" |
78 | (cd etc.hp300; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${RBOOTD} \ | |
79 | ${DESTDIR}/etc) | |
80 | .endif | |
38309355 | 81 | .if ${MACHINE} == "tahoe" |
cf184a31 KB |
82 | (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \ |
83 | ${DESTDIR}/) | |
38309355 KB |
84 | .endif |
85 | .if ${MACHINE} == "vax" | |
cf184a31 KB |
86 | (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \ |
87 | ${DESTDIR}/) | |
38309355 | 88 | .endif |
9a78e863 KB |
89 | # There are certain symbolic links we have to have, and |
90 | # no other place to have install them. | |
1006d0f3 | 91 | (cd / && rm -f sys && ln -s /usr/src/sys sys) |
599d755e KB |
92 | (cd /etc && rm -f rmt && ln -s /usr/sbin/rmt rmt) |
93 | (cd /etc && rm -f termcap && ln -s /usr/share/misc/termcap termcap) | |
c8004562 | 94 | (cd /usr/bin && rm -f X11 && ln -s /usr/X11R4/bin X11) |
9a78e863 KB |
95 | (cd /usr/lib && rm -f X && ln -s /usr/hpux/lib/X X) |
96 | (cd /usr/lib && rm -f X11 && ln -s /usr/X11R4/lib X11) | |
97 | (cd /usr/lib && rm -f grmd && ln -s /usr/hpux/lib/grmd grmd) | |
98 | (cd /usr/lib && rm -f tmac && ln -s /usr/share/tmac tmac) | |
99 | (cd /usr/ucb && rm -f rdist && ln -s /usr/bin/rdist rdist) | |
852a82bc KB |
100 | .if ${MACHINE} == "hp300" |
101 | (cd /usr/bin && rm -f X11 && ln -s /usr/X11/bin X11) | |
5285d42f | 102 | .endif |
38309355 KB |
103 | |
104 | hcx9-distribution: | |
cf184a31 KB |
105 | (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \ |
106 | ${DESTDIR}/) | |
c4500850 | 107 | |
c4500850 | 108 | .include <bsd.prog.mk> |