xref: /original-bsd/etc/Makefile (revision 928d7d33)
1#	@(#)Makefile	8.2 (Berkeley) 01/25/94
2
3NOOBJ=	oobj
4
5# disktab may be wrong -- hcx9 is a tahoe, but gets its own.
6# -rw-r--r--
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 \
12	etc.${MACHINE}/disktab
13
14# -rw-rw-rw-
15BIN2=	motd
16
17MTREE=	4.4BSD.dist special
18KRB=	README krb.conf krb.realms
19NAMEDB=	localhost.rev named.boot root.cache
20PCS=	pcs750.bin
21WCS1=	wcs fppwcs poc poc1 poc2 fppoc
22WCS2=	fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual
23RBOOTD=	rbootd.conf
24
25all clean cleandir depend etc install lint:
26
27distribution:
28	# Hand-craft the password file first.
29	-mkdir /etc /dev
30	cp master.passwd ${DESTDIR}/tmp/p
31	pwd_mkdb -p /tmp/p
32	rm -f /tmp/p
33	cp group /etc/group
34	# Build the tree.
35	-mtree -def mtree/4.4BSD.dist -p ${DESTDIR}/ -u
36	# install devices
37.if ${MACHINE} == "hp300"
38	(cd etc.hp300; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
39	    MAKEDEV.hpux ${DESTDIR}/dev)
40.endif
41	install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
42	     MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
43	(cd /dev && ./MAKEDEV std)
44	install -c -o ${BINOWN} -g ${BINGRP} -m 444 COPYRIGHT ${DESTDIR}/
45	install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
46	install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc
47	install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc
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 600 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		install -c -o root -g wheel -m 600 dot.rhosts \
58		    ${DESTDIR}/root/.rhosts; \
59		rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
60		ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
61		ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
62	(cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \
63	    ${DESTDIR}/etc/mtree)
64	(cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \
65	    ${DESTDIR}/etc/namedb)
66	(cd kerberosIV; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${KRB} \
67	    ${DESTDIR}/etc/kerberosIV)
68	install -c -o ${BINOWN} -g operator -m 664 /dev/null \
69	    ${DESTDIR}/etc/dumpdates
70	install -c -o root -g staff -m 644 /dev/null \
71	    ${DESTDIR}/var/log/lastlog
72	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
73	    ${DESTDIR}/var/log/messages
74	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
75	    ${DESTDIR}/var/log/maillog
76	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
77	    ${DESTDIR}/var/log/lpd-errs
78	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
79	    ${DESTDIR}/var/run/utmp
80	(cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
81	    fstab.* ${DESTDIR}/etc)
82.if ${MACHINE} == "hp300"
83	(cd etc.hp300; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${RBOOTD} \
84	    ${DESTDIR}/etc)
85.endif
86.if ${MACHINE} == "tahoe"
87	(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \
88	    ${DESTDIR}/)
89.endif
90.if ${MACHINE} == "vax"
91	(cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \
92	    ${DESTDIR}/)
93.endif
94	# There are certain symbolic links we have to have, and
95	# no other place to have install them.
96	(cd / && rm -f sys && ln -s usr/src/sys sys)
97	(cd /etc && rm -f rmt && ln -s /usr/sbin/rmt rmt)
98	(cd /etc && rm -f termcap && ln -s /usr/share/misc/termcap termcap)
99	(cd /usr && rm -f X11 && ln -s X11R5 X11)
100	(cd /usr/bin && rm -f X11 && ln -s /usr/X11/bin X11)
101	(cd /usr/lib && rm -f X && ln -s /usr/hpux/lib/X X)
102	(cd /usr/lib && rm -f X11 && ln -s /usr/X11/lib X11)
103	(cd /usr/lib && rm -f grmd && ln -s /usr/hpux/lib/grmd grmd)
104	(cd /usr/lib && rm -f tmac && ln -s /usr/share/tmac tmac)
105	(cd /usr/ucb && rm -f rdist && ln -s /usr/bin/rdist rdist)
106.if ${MACHINE} == "hp300"
107	(cd /usr/bin && rm -f X11 && ln -s /usr/X11/bin X11)
108.endif
109
110hcx9-distribution:
111	(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \
112	    ${DESTDIR}/)
113
114.include <bsd.prog.mk>
115