Makefile revision 238
1#	@(#)Makefile	5.11 (Berkeley) 5/21/91
2
3LOCALTIME=	US/Pacific
4TZDIR=/usr/share/zoneinfo
5
6NOOBJ=	oobj
7
8# disktab may be wrong -- hcx9 is a tahoe, but gets its own.
9# -rw-r--r--
10BINOWN= root
11BINGRP= wheel
12BIN1=	aliases csh.cshrc csh.login csh.logout dm.conf \
13	ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \
14	inetd.conf man.conf motd myname netstart phones \
15	printcap protocols rc rc.local remote security services shells \
16	syslog.conf ttys etc.${MACHINE}/disktab rpc
17
18# -rw-rw-rw-
19BIN2=	motd
20
21# -rwxr-xr-x root.wheel, for the new f***ing cron root.wheel
22BIN3=	daily weekly monthly
23
24MTREE=	BSD.root.dist BSD.usr.dist BSD.var.dist
25NAMEDB=	localhost.rev named.boot root.cache
26PCS=	pcs750.bin
27WCS1=	wcs fppwcs poc poc1 poc2 fppoc
28WCS2=	fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual
29
30all clean cleandir depend etc install lint:
31
32distribution: distrib-dirs
33	install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc
34	install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc
35	install -c -o root -g wheel -m 755 ${BIN3} ${DESTDIR}/etc
36	install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root
37	install -c -o root -g wheel -m 600 /dev/null ${DESTDIR}/var/cron/log
38	install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
39	#
40	# This is broken, it always does /etc. It IGNORES the ${DESTDIR} for 
41	# where to write the spwd.db pwd.db files.  
42	#(cd ${DESTDIR}/etc; pwd_mkdb -p master.passwd)
43	#
44	# Work around for above problem.
45	install -c -o root -g wheel -m 644 pwd.db ${DESTDIR}/etc
46	install -c -o root -g wheel -m 600 spwd.db ${DESTDIR}/etc
47	install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
48	     MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
49	(cd ${DESTDIR}/dev; sh MAKEDEV all)
50	(cd root; \
51		install -c -o root -g wheel -m 644 dot.cshrc \
52		    ${DESTDIR}/root/.cshrc; \
53		install -c -o root -g wheel -m 644 dot.klogin \
54		    ${DESTDIR}/root/.klogin; \
55		install -c -o root -g wheel -m 644 dot.login \
56		    ${DESTDIR}/root/.login; \
57		install -c -o root -g wheel -m 644 dot.profile \
58		    ${DESTDIR}/root/.profile; \
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	/bin/rm -f ${DESTDIR}/etc/localtime
67	ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
68	install -c -o ${BINOWN} -g operator -m 664 /dev/null \
69	    ${DESTDIR}/etc/dumpdates
70	install -c -o nobody -g ${BINGRP} -m 664 /dev/null \
71	    ${DESTDIR}/var/db/locate.database
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/log/maillog
76	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
77	    ${DESTDIR}/var/log/messages
78	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
79	    ${DESTDIR}/var/log/wtmp
80	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
81	    ${DESTDIR}/var/run/utmp
82	(cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
83	    fstab.* ${DESTDIR}/etc)
84.if ${MACHINE} == "tahoe"
85	(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \
86	    ${DESTDIR}/)
87.endif
88.if ${MACHINE} == "vax"
89	(cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \
90	    ${DESTDIR}/)
91.endif
92.if ${MACHINE} == "i386"
93	(cd ../sys/i386/boot; make depend all install cleandir; \
94	 cd /usr/mdec; find . | cpio -pdalmuv ${DESTDIR}/usr/mdec)
95	(cd ../include; make copies)
96	(cd ../usr.sbin/sendmail/src; make install; \
97	 cd ../cf/cf; make tcpproto.cf; \
98	    install -o root -g wheel -m 644 tcpproto.cf \
99	        ${DESTDIR}/etc/sendmail.cf)
100	(cd ..; make install)
101.endif
102
103hcx9-distribution:
104	(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \
105	    ${DESTDIR}/)
106
107distrib-dirs:
108	mtree -u -f mtree/BSD.root.dist -p ${DESTDIR}/
109	mtree -u -f mtree/BSD.var.dist -p ${DESTDIR}/var
110	mtree -u -f mtree/BSD.usr.dist -p ${DESTDIR}/usr
111	(cd ${DESTDIR}; rm -f ${DESTDIR}/sys; \
112	    ln -s usr/src/sys sys )
113
114.include <bsd.prog.mk>
115