xref: /original-bsd/etc/Makefile (revision c98fd05d)
1#	@(#)Makefile	5.25 (Berkeley) 08/24/92
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 /etc && rm -f rmt && ln -s /usr/sbin/rmt rmt)
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)
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)
66	install -c -o ${BINOWN} -g operator -m 664 /dev/null \
67	    ${DESTDIR}/etc/dumpdates
68	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
69	    ${DESTDIR}/var/log/messages
70	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
71	    ${DESTDIR}/var/log/maillog
72	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
73	    ${DESTDIR}/var/log/lpd-errs
74	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
75	    ${DESTDIR}/var/run/utmp
76	(cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
77	    fstab.* ${DESTDIR}/etc)
78.if ${MACHINE} == "hp300"
79	(cd etc.hp300; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${RBOOTD} \
80	    ${DESTDIR}/etc)
81.endif
82.if ${MACHINE} == "tahoe"
83	(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \
84	    ${DESTDIR}/)
85.endif
86.if ${MACHINE} == "vax"
87	(cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \
88	    ${DESTDIR}/)
89.endif
90	# There are certain symbolic links we have to have, and
91	# no other place to have install them.
92	(cd / && rm -f sys && ln -s /usr/src/sys sys)
93	(cd /usr/bin && rm -f X11 && ln -s /usr/X11R4/bin X11)
94	(cd /usr/lib && rm -f X && ln -s /usr/hpux/lib/X X)
95	(cd /usr/lib && rm -f X11 && ln -s /usr/X11R4/lib X11)
96	(cd /usr/lib && rm -f grmd && ln -s /usr/hpux/lib/grmd grmd)
97	(cd /usr/lib && rm -f tmac && ln -s /usr/share/tmac tmac)
98	(cd /usr/ucb && rm -f rdist && ln -s /usr/bin/rdist rdist)
99.if ${MACHINE} == "hp300"
100	(cd /usr/bin && rm -f X11 && ln -s /usr/X11/bin X11)
101.endif
102
103hcx9-distribution:
104	(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \
105	    ${DESTDIR}/)
106
107.include <bsd.prog.mk>
108