| 1 | # @(#)Makefile 5.11 (Berkeley) 5/21/91 |
| 2 | |
| 3 | LOCALTIME= US/Pacific |
| 4 | TZDIR=/usr/share/zoneinfo |
| 5 | |
| 6 | NOOBJ= oobj |
| 7 | |
| 8 | # disktab may be wrong -- hcx9 is a tahoe, but gets its own. |
| 9 | # -rw-r--r-- |
| 10 | BINOWN= root |
| 11 | BINGRP= wheel |
| 12 | BIN1= aliases csh.cshrc csh.login csh.logout dm.conf \ |
| 13 | ftpusers gettytab group hosts hosts.equiv hosts.lpd inetd.conf \ |
| 14 | 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- |
| 19 | BIN2= motd |
| 20 | |
| 21 | # -rwxr-xr-x root.wheel, for the new f***ing cron root.wheel |
| 22 | BIN3= daily weekly monthly |
| 23 | |
| 24 | MTREE= BSD.root.dist BSD.usr.dist BSD.var.dist |
| 25 | NAMEDB= localhost.rev named.boot root.cache |
| 26 | PCS= pcs750.bin |
| 27 | WCS1= wcs fppwcs poc poc1 poc2 fppoc |
| 28 | WCS2= fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual |
| 29 | |
| 30 | all clean cleandir depend etc install lint: |
| 31 | |
| 32 | distribution: 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 master.passwd ${DESTDIR}/etc |
| 38 | # |
| 39 | # This is broken, it always does /etc. It IGNORES the $DESTDIR for |
| 40 | # where to write the spwd.db pwd.db files. |
| 41 | #(cd ${DESTDIR}/etc; pwd_mkdb -p master.passwd) |
| 42 | # |
| 43 | # Work around for above problem. |
| 44 | install -c -o root -g wheel -m 644 pwd.db ${DESTDIR}/etc |
| 45 | install -c -o root -g wheel -m 600 spwd.db ${DESTDIR}/etc |
| 46 | install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ |
| 47 | MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev |
| 48 | (cd ${DESTDIR}/dev; sh MAKEDEV all) |
| 49 | (cd root; \ |
| 50 | install -c -o root -g wheel -m 644 dot.cshrc \ |
| 51 | ${DESTDIR}/root/.cshrc; \ |
| 52 | install -c -o root -g wheel -m 644 dot.klogin \ |
| 53 | ${DESTDIR}/root/.klogin; \ |
| 54 | install -c -o root -g wheel -m 644 dot.login \ |
| 55 | ${DESTDIR}/root/.login; \ |
| 56 | install -c -o root -g wheel -m 644 dot.profile \ |
| 57 | ${DESTDIR}/root/.profile; \ |
| 58 | rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ |
| 59 | ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ |
| 60 | ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) |
| 61 | cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \ |
| 62 | ${DESTDIR}/etc/mtree |
| 63 | cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ |
| 64 | ${DESTDIR}/etc/namedb |
| 65 | /bin/rm -f ${DESTDIR}/etc/localtime |
| 66 | ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime |
| 67 | install -c -o ${BINOWN} -g operator -m 664 /dev/null \ |
| 68 | ${DESTDIR}/etc/dumpdates |
| 69 | install -c -o nobody -g ${BINGRP} -m 664 /dev/null \ |
| 70 | ${DESTDIR}/var/db/locate.database |
| 71 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ |
| 72 | ${DESTDIR}/var/log/lpd-errs |
| 73 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ |
| 74 | ${DESTDIR}/var/log/maillog |
| 75 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ |
| 76 | ${DESTDIR}/var/log/messages |
| 77 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ |
| 78 | ${DESTDIR}/var/log/wtmp |
| 79 | install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ |
| 80 | ${DESTDIR}/var/run/utmp |
| 81 | (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ |
| 82 | fstab.* ${DESTDIR}/etc) |
| 83 | .if ${MACHINE} == "tahoe" |
| 84 | (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \ |
| 85 | ${DESTDIR}/) |
| 86 | .endif |
| 87 | .if ${MACHINE} == "vax" |
| 88 | (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \ |
| 89 | ${DESTDIR}/) |
| 90 | .endif |
| 91 | |
| 92 | hcx9-distribution: |
| 93 | (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \ |
| 94 | ${DESTDIR}/) |
| 95 | |
| 96 | distrib-dirs: |
| 97 | mtree -du -f mtree/BSD.root.dist -p ${DESTDIR} |
| 98 | mtree -u -f mtree/BSD.var.dist -p ${DESTDIR}/var |
| 99 | mtree -u -f mtree/BSD.usr.dist -p ${DESTDIR}/usr |
| 100 | (cd ${DESTDIR}; rm -f ${DESTDIR}/sys; \ |
| 101 | ln -s usr/src/sys.386bsd sys ) |
| 102 | |
| 103 | .include <bsd.prog.mk> |