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