Makefile revision 238
137Srgrimes#	@(#)Makefile	5.11 (Berkeley) 5/21/91
237Srgrimes
3147SrgrimesLOCALTIME=	US/Pacific
4147SrgrimesTZDIR=/usr/share/zoneinfo
5147Srgrimes
637SrgrimesNOOBJ=	oobj
737Srgrimes
837Srgrimes# disktab may be wrong -- hcx9 is a tahoe, but gets its own.
937Srgrimes# -rw-r--r--
10147SrgrimesBINOWN= root
11147SrgrimesBINGRP= wheel
12147SrgrimesBIN1=	aliases csh.cshrc csh.login csh.logout dm.conf \
13207Snate	ftpusers gettytab group hosts host.conf hosts.equiv hosts.lpd \
14207Snate	inetd.conf man.conf motd myname netstart phones \
15147Srgrimes	printcap protocols rc rc.local remote security services shells \
16147Srgrimes	syslog.conf ttys etc.${MACHINE}/disktab rpc
1737Srgrimes
1837Srgrimes# -rw-rw-rw-
1937SrgrimesBIN2=	motd
2037Srgrimes
21147Srgrimes# -rwxr-xr-x root.wheel, for the new f***ing cron root.wheel
22147SrgrimesBIN3=	daily weekly monthly
23147Srgrimes
2437SrgrimesMTREE=	BSD.root.dist BSD.usr.dist BSD.var.dist
2537SrgrimesNAMEDB=	localhost.rev named.boot root.cache
2637SrgrimesPCS=	pcs750.bin
2737SrgrimesWCS1=	wcs fppwcs poc poc1 poc2 fppoc
2837SrgrimesWCS2=	fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual
2937Srgrimes
3037Srgrimesall clean cleandir depend etc install lint:
3137Srgrimes
32147Srgrimesdistribution: distrib-dirs
3337Srgrimes	install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc
3437Srgrimes	install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc
35147Srgrimes	install -c -o root -g wheel -m 755 ${BIN3} ${DESTDIR}/etc
36147Srgrimes	install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root
37238Sroot	install -c -o root -g wheel -m 600 /dev/null ${DESTDIR}/var/cron/log
3837Srgrimes	install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
39163Srgrimes	#
40238Sroot	# This is broken, it always does /etc. It IGNORES the ${DESTDIR} for 
41163Srgrimes	# where to write the spwd.db pwd.db files.  
42163Srgrimes	#(cd ${DESTDIR}/etc; pwd_mkdb -p master.passwd)
43163Srgrimes	#
44163Srgrimes	# Work around for above problem.
45163Srgrimes	install -c -o root -g wheel -m 644 pwd.db ${DESTDIR}/etc
46163Srgrimes	install -c -o root -g wheel -m 600 spwd.db ${DESTDIR}/etc
4737Srgrimes	install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
4837Srgrimes	     MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
49147Srgrimes	(cd ${DESTDIR}/dev; sh MAKEDEV all)
5037Srgrimes	(cd root; \
5137Srgrimes		install -c -o root -g wheel -m 644 dot.cshrc \
5237Srgrimes		    ${DESTDIR}/root/.cshrc; \
5337Srgrimes		install -c -o root -g wheel -m 644 dot.klogin \
5437Srgrimes		    ${DESTDIR}/root/.klogin; \
5537Srgrimes		install -c -o root -g wheel -m 644 dot.login \
5637Srgrimes		    ${DESTDIR}/root/.login; \
5737Srgrimes		install -c -o root -g wheel -m 644 dot.profile \
5837Srgrimes		    ${DESTDIR}/root/.profile; \
5937Srgrimes		rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
6037Srgrimes		ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
6137Srgrimes		ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
6237Srgrimes	cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \
6337Srgrimes	    ${DESTDIR}/etc/mtree
6437Srgrimes	cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \
6537Srgrimes	    ${DESTDIR}/etc/namedb
66147Srgrimes	/bin/rm -f ${DESTDIR}/etc/localtime
67147Srgrimes	ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
6837Srgrimes	install -c -o ${BINOWN} -g operator -m 664 /dev/null \
6937Srgrimes	    ${DESTDIR}/etc/dumpdates
70147Srgrimes	install -c -o nobody -g ${BINGRP} -m 664 /dev/null \
71147Srgrimes	    ${DESTDIR}/var/db/locate.database
7237Srgrimes	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
73147Srgrimes	    ${DESTDIR}/var/log/lpd-errs
7437Srgrimes	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
7537Srgrimes	    ${DESTDIR}/var/log/maillog
7637Srgrimes	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
77147Srgrimes	    ${DESTDIR}/var/log/messages
7837Srgrimes	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
79147Srgrimes	    ${DESTDIR}/var/log/wtmp
80147Srgrimes	install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
8137Srgrimes	    ${DESTDIR}/var/run/utmp
8237Srgrimes	(cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
83147Srgrimes	    fstab.* ${DESTDIR}/etc)
8437Srgrimes.if ${MACHINE} == "tahoe"
8537Srgrimes	(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \
8637Srgrimes	    ${DESTDIR}/)
8737Srgrimes.endif
8837Srgrimes.if ${MACHINE} == "vax"
8937Srgrimes	(cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \
9037Srgrimes	    ${DESTDIR}/)
9137Srgrimes.endif
92168Srgrimes.if ${MACHINE} == "i386"
93238Sroot	(cd ../sys/i386/boot; make depend all install cleandir; \
94168Srgrimes	 cd /usr/mdec; find . | cpio -pdalmuv ${DESTDIR}/usr/mdec)
95238Sroot	(cd ../include; make copies)
96238Sroot	(cd ../usr.sbin/sendmail/src; make install; \
97238Sroot	 cd ../cf/cf; make tcpproto.cf; \
98238Sroot	    install -o root -g wheel -m 644 tcpproto.cf \
99238Sroot	        ${DESTDIR}/etc/sendmail.cf)
100168Srgrimes	(cd ..; make install)
101168Srgrimes.endif
10237Srgrimes
10337Srgrimeshcx9-distribution:
10437Srgrimes	(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \
10537Srgrimes	    ${DESTDIR}/)
10637Srgrimes
107147Srgrimesdistrib-dirs:
108238Sroot	mtree -u -f mtree/BSD.root.dist -p ${DESTDIR}/
109147Srgrimes	mtree -u -f mtree/BSD.var.dist -p ${DESTDIR}/var
110147Srgrimes	mtree -u -f mtree/BSD.usr.dist -p ${DESTDIR}/usr
111147Srgrimes	(cd ${DESTDIR}; rm -f ${DESTDIR}/sys; \
112196Snate	    ln -s usr/src/sys sys )
113147Srgrimes
11437Srgrimes.include <bsd.prog.mk>
115