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# 33# Floppy drive name and files for building FreeBSD Floppies 34FLOPPY= fd0 35MOUNT= /mnt 36KC_DIR= bin dev mnt sbin 37KC_BIN= [ cp echo sh test 38KC_SBIN= fsck halt init mount umount 39 40all clean cleandir depend etc install lint: 41 42distribution: distrib-dirs 43 install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 44 install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc 45 install -c -o root -g wheel -m 755 ${BIN3} ${DESTDIR}/etc 46 install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root 47 install -c -o root -g wheel -m 600 /dev/null ${DESTDIR}/var/cron/log 48 install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 49 # 50 # This is broken, it always does /etc. It IGNORES the ${DESTDIR} for 51 # where to write the spwd.db pwd.db files. 52 #(cd ${DESTDIR}/etc; pwd_mkdb -p master.passwd) 53 # 54 # Work around for above problem. 55 install -c -o root -g wheel -m 644 pwd.db ${DESTDIR}/etc 56 install -c -o root -g wheel -m 600 spwd.db ${DESTDIR}/etc 57 install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 58 MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 59 (cd ${DESTDIR}/dev; sh MAKEDEV all) 60 (cd root; \ 61 install -c -o root -g wheel -m 644 dot.cshrc \ 62 ${DESTDIR}/root/.cshrc; \ 63 install -c -o root -g wheel -m 644 dot.klogin \ 64 ${DESTDIR}/root/.klogin; \ 65 install -c -o root -g wheel -m 644 dot.login \ 66 ${DESTDIR}/root/.login; \ 67 install -c -o root -g wheel -m 644 dot.profile \ 68 ${DESTDIR}/root/.profile; \ 69 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 70 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 71 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 72 cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \ 73 ${DESTDIR}/etc/mtree 74 cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ 75 ${DESTDIR}/etc/namedb 76 /bin/rm -f ${DESTDIR}/etc/localtime 77 ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime 78 install -c -o ${BINOWN} -g operator -m 664 /dev/null \ 79 ${DESTDIR}/etc/dumpdates 80 install -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 81 ${DESTDIR}/var/db/locate.database 82 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 83 ${DESTDIR}/var/log/lpd-errs 84 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 85 ${DESTDIR}/var/log/maillog 86 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 87 ${DESTDIR}/var/log/messages 88 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 89 ${DESTDIR}/var/log/wtmp 90 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 91 ${DESTDIR}/var/run/utmp 92 (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 93 fstab.* ${DESTDIR}/etc) 94.if ${MACHINE} == "tahoe" 95 (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \ 96 ${DESTDIR}/) 97.endif 98.if ${MACHINE} == "vax" 99 (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \ 100 ${DESTDIR}/) 101.endif 102.if ${MACHINE} == "i386" 103 (cd ../sys/i386/boot; \ 104 make depend all install cleandir) 105 (cd /usr/mdec; \ 106 find . | cpio -pdalmuv ${DESTDIR}/usr/mdec) 107 (cd ../usr.sbin/sendmail/src; \ 108 make install; \ 109 cd ../cf/cf; \ 110 make tcpproto.cf; \ 111 install -o root -g wheel -m 644 tcpproto.cf \ 112 ${DESTDIR}/etc/sendmail.cf) 113 (cd ../; \ 114 install -c -o root -g wheel -m 444 ${FREEBSD} ${DESTDIR}/) 115 (cd ..; make install) 116 (cd ../sys/compile; rm -rf GENERICISA) 117 (cd ../sys/i386/conf; config GENERICISA) 118 (cd ../sys/compile/GENERICISA; make depend; make all; \ 119 install -c -o root -g wheel -m 755 386bsd \ 120 ${DESTDIR}/386bsd.GENERICISA) 121 (cd ../include; make copies) 122.endif 123 124hcx9-distribution: 125 (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \ 126 ${DESTDIR}/) 127 128i386-kc_floppy: 129 disklabel -w -r ${FLOPPY} floppy5 /usr/mdec/fdboot /usr/mdec/bootfd 130 newfs -b 4096 -c 80 -f 512 -i 16384 -m 0 -o space r${FLOPPY}a floppy5 131 mount /dev/${FLOPPY}a ${MOUNT} 132 (cd ${MOUNT}; \ 133 mkdir ${KC_DIR}; \ 134 chown root.wheel ${KC_DIR}; \ 135 chmod 755 ${KC_DIR}) 136 (cd ${DESTDIR}/bin; \ 137 install -c -o root -g wheel -m 555 ${KC_BIN} ${MOUNT}/bin) 138 (cd ${DESTDIR}/sbin; \ 139 install -c -o root -g wheel -m 555 ${KC_SBIN} ${MOUNT}/sbin) 140 (cd ${MOUNT}/dev; \ 141 sh ${DESTDIR}/dev/MAKEDEV std; \ 142 rm -rf fd; \ 143 sh ${DESTDIR}/dev/MAKEDEV fd0 wd0 sd0) 144 install -c -o root -g wheel -m 755 etc.i386/kc.profile \ 145 ${MOUNT}/.profile 146 (cd ../sys/compile/GENERICISA; \ 147 install -c -o root -g wheel -m 755 386bsd ${MOUNT}/) 148 df -ik ${MOUNT} 149 umount /dev/${FLOPPY}a 150 fsck /dev/r${FLOPPY}a 151 152distrib-dirs: 153 mtree -u -f mtree/BSD.root.dist -p ${DESTDIR}/ 154 mtree -u -f mtree/BSD.var.dist -p ${DESTDIR}/var 155 mtree -u -f mtree/BSD.usr.dist -p ${DESTDIR}/usr 156 (cd ${DESTDIR}; rm -f ${DESTDIR}/sys; \ 157 ln -s usr/src/sys sys ) 158 159.include <bsd.prog.mk> 160