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 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 30# Special top level files for FreeBSD 31FREEBSD= CONTRIB.386BSD CONTRIB.FreeBSD COPYRIGHT 32 33all clean cleandir depend etc install lint: 34 35distribution: distrib-dirs 36 install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 37 install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc 38 install -c -o root -g wheel -m 755 ${BIN3} ${DESTDIR}/etc 39 install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root 40 install -c -o root -g wheel -m 600 /dev/null ${DESTDIR}/var/cron/log 41 install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 42 # 43 # This is broken, it always does /etc. It IGNORES the ${DESTDIR} for 44 # where to write the spwd.db pwd.db files. 45 #(cd ${DESTDIR}/etc; pwd_mkdb -p master.passwd) 46 # 47 # Work around for above problem. 48 install -c -o root -g wheel -m 644 pwd.db ${DESTDIR}/etc 49 install -c -o root -g wheel -m 600 spwd.db ${DESTDIR}/etc 50 install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 51 MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 52 (cd ${DESTDIR}/dev; sh MAKEDEV all) 53 (cd root; \ 54 install -c -o root -g wheel -m 644 dot.cshrc \ 55 ${DESTDIR}/root/.cshrc; \ 56 install -c -o root -g wheel -m 644 dot.klogin \ 57 ${DESTDIR}/root/.klogin; \ 58 install -c -o root -g wheel -m 644 dot.login \ 59 ${DESTDIR}/root/.login; \ 60 install -c -o root -g wheel -m 644 dot.profile \ 61 ${DESTDIR}/root/.profile; \ 62 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 63 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 64 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 65 cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \ 66 ${DESTDIR}/etc/mtree 67 cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ 68 ${DESTDIR}/etc/namedb 69 /bin/rm -f ${DESTDIR}/etc/localtime 70 ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime 71 install -c -o ${BINOWN} -g operator -m 664 /dev/null \ 72 ${DESTDIR}/etc/dumpdates 73 install -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 74 ${DESTDIR}/var/db/locate.database 75 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 76 ${DESTDIR}/var/log/lpd-errs 77 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 78 ${DESTDIR}/var/log/maillog 79 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 80 ${DESTDIR}/var/log/messages 81 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 82 ${DESTDIR}/var/log/wtmp 83 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 84 ${DESTDIR}/var/run/utmp 85 (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 86 fstab.* ${DESTDIR}/etc) 87.if ${MACHINE} == "tahoe" 88 (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \ 89 ${DESTDIR}/) 90.endif 91.if ${MACHINE} == "vax" 92 (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \ 93 ${DESTDIR}/) 94.endif 95.if ${MACHINE} == "i386" 96 (cd ../sys/i386/boot; make depend all install cleandir; \ 97 cd /usr/mdec; find . | cpio -pdalmuv ${DESTDIR}/usr/mdec) 98 (cd ../include; make copies) 99 (cd ../usr.sbin/sendmail/src; make install; \ 100 cd ../cf/cf; make tcpproto.cf; \ 101 install -o root -g wheel -m 644 tcpproto.cf \ 102 ${DESTDIR}/etc/sendmail.cf) 103 (cd ../; install -c -o root -g wheel -m 444 ${FREEBSD} ${DESTDIR}/) 104 (cd ..; make install) 105.endif 106 107hcx9-distribution: 108 (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \ 109 ${DESTDIR}/) 110 111distrib-dirs: 112 mtree -u -f mtree/BSD.root.dist -p ${DESTDIR}/ 113 mtree -u -f mtree/BSD.var.dist -p ${DESTDIR}/var 114 mtree -u -f mtree/BSD.usr.dist -p ${DESTDIR}/usr 115 (cd ${DESTDIR}; rm -f ${DESTDIR}/sys; \ 116 ln -s usr/src/sys sys ) 117 118.include <bsd.prog.mk> 119