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