xref: /original-bsd/etc/Makefile (revision 8fb622f6)
1#	@(#)Makefile	5.26 (Berkeley) 01/23/93
2
3NOOBJ=	oobj
4
5# disktab may be wrong -- hcx9 is a tahoe, but gets its own.
6# -rw-r--r--
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 \
11	etc.${MACHINE}/disktab
12
13# -rw-rw-rw-
14BIN2=	motd
15
16MTREE=	4.4alpha.dist special
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 /etc /dev
29	cp master.passwd ${DESTDIR}/tmp/p
30	pwd_mkdb -p /tmp/p
31	rm -f /tmp/p
32	cp group /etc/group
33	# Build the tree.
34	-mtree -def mtree/4.4alpha.dist -p ${DESTDIR}/ -u
35	# install devices
36.if ${MACHINE} == "hp300"
37	(cd etc.hp300; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
38	    MAKEDEV.hpux ${DESTDIR}/dev)
39.endif
40	install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
41	     MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
42	(cd /dev && ./MAKEDEV std)
43	install -c -o ${BINOWN} -g ${BINGRP} -m 444 COPYRIGHT ${DESTDIR}/
44	install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
45	install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc
46	install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc
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)
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)
65	install -c -o ${BINOWN} -g operator -m 664 /dev/null \
66	    ${DESTDIR}/etc/dumpdates
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
75	(cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
76	    fstab.* ${DESTDIR}/etc)
77.if ${MACHINE} == "hp300"
78	(cd etc.hp300; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${RBOOTD} \
79	    ${DESTDIR}/etc)
80.endif
81.if ${MACHINE} == "tahoe"
82	(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \
83	    ${DESTDIR}/)
84.endif
85.if ${MACHINE} == "vax"
86	(cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \
87	    ${DESTDIR}/)
88.endif
89	# There are certain symbolic links we have to have, and
90	# no other place to have install them.
91	(cd / && rm -f sys && ln -s /usr/src/sys sys)
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)
94	(cd /usr/bin && rm -f X11 && ln -s /usr/X11R4/bin X11)
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)
100.if ${MACHINE} == "hp300"
101	(cd /usr/bin && rm -f X11 && ln -s /usr/X11/bin X11)
102.endif
103
104hcx9-distribution:
105	(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \
106	    ${DESTDIR}/)
107
108.include <bsd.prog.mk>
109