add mtree, make distribution cleaner
[unix-history] / usr / src / etc / Makefile
CommitLineData
9a78e863 1# @(#)Makefile 5.17 (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--
af5d69aa
KB
7BIN1= 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-
14BIN2= motd
15
9a78e863 16MTREE= 4.4alpha.dist special
18fc0c30 17KRB= README krb.conf krb.realms
74c3b0ba 18NAMEDB= localhost.rev named.boot root.cache
38309355
KB
19PCS= pcs750.bin
20WCS1= wcs fppwcs poc poc1 poc2 fppoc
21WCS2= fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual
c4500850
KB
22
23all clean cleandir depend etc install lint:
24
25distribution:
9a78e863
KB
26 # Hand-craft the password file first.
27 mkdir /etc /dev
28 cp master.passwd ${DESTDIR}/tmp/p
eba2e515
KB
29 pwd_mkdb -p /tmp/p
30 rm -f /tmp/p
9a78e863
KB
31 cp group /etc/group
32 # Build the tree.
33 -mtree -def mtree/4.4alpha.dist -p ${DESTDIR}/ -u
eba2e515
KB
34 # install devices
35.if ${MACHINE} == "hp300"
36 (cd etc.hp300; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
37 MAKEDEV.hpux ${DESTDIR}/)
38.endif
27b11769
KB
39 install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
40 MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
eba2e515 41 (cd /dev && ./MAKEDEV std)
28f10a87 42 install -c -o ${BINOWN} -g ${BINGRP} -m 444 COPYRIGHT ${DESTDIR}/
9a78e863 43 install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
eba2e515
KB
44 install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc
45 install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc
9a78e863 46 (cd /etc && rm -f rmt && ln -s /usr/sbin/rmt rmt)
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
KB
75 (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
76 fstab.* ${DESTDIR}/)
38309355 77.if ${MACHINE} == "tahoe"
cf184a31
KB
78 (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \
79 ${DESTDIR}/)
38309355
KB
80.endif
81.if ${MACHINE} == "vax"
cf184a31
KB
82 (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \
83 ${DESTDIR}/)
38309355 84.endif
9a78e863
KB
85 # There are certain symbolic links we have to have, and
86 # no other place to have install them.
87 (cd /usr/lib && rm -f X && ln -s /usr/hpux/lib/X X)
88 (cd /usr/lib && rm -f X11 && ln -s /usr/X11R4/lib X11)
89 (cd /usr/lib && rm -f grmd && ln -s /usr/hpux/lib/grmd grmd)
90 (cd /usr/lib && rm -f tmac && ln -s /usr/share/tmac tmac)
91 (cd /usr/ucb && rm -f rdist && ln -s /usr/bin/rdist rdist)
38309355
KB
92
93hcx9-distribution:
cf184a31
KB
94 (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \
95 ${DESTDIR}/)
c4500850 96
c4500850 97.include <bsd.prog.mk>