1 # @(#)Makefile 5.11 (Berkeley) 5/21/91 2 3 LOCALTIME= US/Pacific 4 5 NOOBJ= oobj 6 7 # disktab may be wrong -- hcx9 is a tahoe, but gets its own. 8 # -rw-r--r-- 9 BINOWN= root 10 BINGRP= wheel 11 BIN1= aliases csh.cshrc csh.login csh.logout dm.conf \ 12 ftpusers gettytab group hosts hosts.equiv hosts.lpd inetd.conf \ 13 man.conf motd myname netstart newsyslog.conf phones \ 14 printcap protocols rc rc.local remote security services shells \ 15 syslog.conf ttys etc.${MACHINE}/disktab rpc 16 17 # -rw-rw-rw- 18 BIN2= motd 19 20 # -rwxr-xr-x root.wheel, for the new f***ing cron root.wheel, for the new f***ing cron root.wheel, for the new f***ing cron root.wheel, for the new f***ing cron 21 BIN3= daily weekly monthly 22 23 MTREE= BSD.root.dist BSD.usr.dist BSD.var.dist 24 NAMEDB= localhost.rev named.boot root.cache 25 PCS= pcs750.bin 26 WCS1= wcs fppwcs poc poc1 poc2 fppoc 27 WCS2= fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual 28 29 all clean cleandir depend etc install lint: 30 31 distribution: distrib-dirs 32 install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 33 install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc 34 install -c -o root -g wheel -m 755 ${BIN3} ${DESTDIR}/etc 35 install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root 36 install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 37 (cd ${DESTDIR}/etc; pwd_mkdb -p master.passwd) 38 install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 39 MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 40 (cd root; \ 41 install -c -o root -g wheel -m 644 dot.cshrc \ 42 ${DESTDIR}/root/.cshrc; \ 43 install -c -o root -g wheel -m 644 dot.klogin \ 44 ${DESTDIR}/root/.klogin; \ 45 install -c -o root -g wheel -m 644 dot.login \ 46 ${DESTDIR}/root/.login; \ 47 install -c -o root -g wheel -m 644 dot.profile \ 48 ${DESTDIR}/root/.profile; \ 49 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 50 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 51 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 52 cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \ 53 ${DESTDIR}/etc/mtree 54 cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ 55 ${DESTDIR}/etc/namedb 56 /bin/rm -f ${DESTDIR}/etc/localtime 57 ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime 58 install -c -o ${BINOWN} -g operator -m 664 /dev/null \ 59 ${DESTDIR}/etc/dumpdates 60 install -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 61 ${DESTDIR}/var/db/locate.database 62 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 63 ${DESTDIR}/var/log/messages 64 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 65 ${DESTDIR}/var/log/maillog 66 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 67 ${DESTDIR}/var/log/lpd-errs 68 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 69 ${DESTDIR}/var/run/utmp 70 (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 71 fstab.* ${DESTDIR}/etc) 72 .if ${MACHINE} == "tahoe" 73 (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \ 74 ${DESTDIR}/) 75 .endif 76 .if ${MACHINE} == "vax" 77 (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \ 78 ${DESTDIR}/) 79 .endif 80 81 hcx9-distribution: 82 (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \ 83 ${DESTDIR}/) 84 85 distrib-dirs: 86 -mkdir ${DESTDIR}/dev ${DESTDIR}/etc ${DESTDIR}/kern ${DESTDIR}/root \ 87 ${DESTDIR}/tmp ${DESTDIR}/var 88 chmod 755 ${DESTDIR}/dev ${DESTDIR}/etc ${DESTDIR}/kern \ 89 ${DESTDIR}/root ${DESTDIR}/var 90 chmod 1777 ${DESTDIR}/tmp 91 -mkdir ${DESTDIR}/etc/mtree ${DESTDIR}/etc/namedb 92 chmod 755 ${DESTDIR}/etc/mtree ${DESTDIR}/etc/namedb 93 -mkdir ${DESTDIR}/var/backups ${DESTDIR}/var/cron ${DESTDIR}/var/db \ 94 ${DESTDIR}/var/log ${DESTDIR}/var/mail ${DESTDIR}/var/preserve \ 95 ${DESTDIR}/var/run ${DESTDIR}/var/rwho ${DESTDIR}/var/spool \ 96 ${DESTDIR}/var/tmp 97 chmod 755 ${DESTDIR}/var/backups ${DESTDIR}/var/cron ${DESTDIR}/var/db \ 98 ${DESTDIR}/var/log ${DESTDIR}/var/mail ${DESTDIR}/var/preserve \ 99 ${DESTDIR}/var/run ${DESTDIR}/var/rwho ${DESTDIR}/var/spool 100 chmod 1777 ${DESTDIR}/var/tmp 101 -mkdir ${DESTDIR}/var/cron/tabs 102 chmod 700 ${DESTDIR}/var/cron/tabs 103 -mkdir ${DESTDIR}/var/spool/lock ${DESTDIR}/var/spool/mqueue \ 104 ${DESTDIR}/var/spool/output ${DESTDIR}/var/spool/uucp \ 105 ${DESTDIR}/var/spool/uucppublic 106 chown uucp.dialer ${DESTDIR}/var/spool/lock 107 chmod 755 ${DESTDIR}/var/spool/lock ${DESTDIR}/var/spool/mqueue \ 108 ${DESTDIR}/var/spool/output ${DESTDIR}/var/spool/uucp \ 109 ${DESTDIR}/var/spool/uucppublic 110 rm -f ${DESTDIR}/sys 111 ln -s ${DESTDIR}/usr/src/sys ${DESTDIR}/sys 112 -mkdir ${DESTDIR}/usr/obj 113 chmod 755 ${DESTDIR}/usr/obj 114 115 .include <bsd.prog.mk> 116