1# @(#)Makefile 8.1 (Berkeley) 06/13/93 2 3NOOBJ= oobj 4 5# disktab may be wrong -- hcx9 is a tahoe, but gets its own. 6# -rw-r--r-- 7BIN1= aliases amd-home amd-n changelist csh.cshrc csh.login csh.logout \ 8 crontab crontab.local daily dm.conf exports ftpusers ftpwelcome \ 9 gettytab group hosts hosts.equiv hosts.lpd inetd.conf man.conf \ 10 monthly motd netgroup netstart phones printcap protocols rc \ 11 rc.local remote security services shells syslog.conf ttys weekly \ 12 etc.${MACHINE}/disktab 13 14# -rw-rw-rw- 15BIN2= motd 16 17MTREE= 4.4BSD.dist special 18KRB= README krb.conf krb.realms 19NAMEDB= localhost.rev named.boot root.cache 20PCS= pcs750.bin 21WCS1= wcs fppwcs poc poc1 poc2 fppoc 22WCS2= fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual 23RBOOTD= rbootd.conf 24 25all clean cleandir depend etc install lint: 26 27distribution: 28 # Hand-craft the password file first. 29 -mkdir /etc /dev 30 cp master.passwd ${DESTDIR}/tmp/p 31 pwd_mkdb -p /tmp/p 32 rm -f /tmp/p 33 cp group /etc/group 34 # Build the tree. 35 -mtree -def mtree/4.4BSD.dist -p ${DESTDIR}/ -u 36 # install devices 37.if ${MACHINE} == "hp300" 38 (cd etc.hp300; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 39 MAKEDEV.hpux ${DESTDIR}/dev) 40.endif 41 install -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 42 MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev 43 (cd /dev && ./MAKEDEV std) 44 install -c -o ${BINOWN} -g ${BINGRP} -m 444 COPYRIGHT ${DESTDIR}/ 45 install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc 46 install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc 47 install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc 48 (cd root; \ 49 install -c -o root -g wheel -m 644 dot.cshrc \ 50 ${DESTDIR}/root/.cshrc; \ 51 install -c -o root -g wheel -m 644 dot.klogin \ 52 ${DESTDIR}/root/.klogin; \ 53 install -c -o root -g wheel -m 644 dot.login \ 54 ${DESTDIR}/root/.login; \ 55 install -c -o root -g wheel -m 644 dot.profile \ 56 ${DESTDIR}/root/.profile; \ 57 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 58 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 59 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 60 (cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \ 61 ${DESTDIR}/etc/mtree) 62 (cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \ 63 ${DESTDIR}/etc/namedb) 64 (cd kerberosIV; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${KRB} \ 65 ${DESTDIR}/etc/kerberosIV) 66 install -c -o ${BINOWN} -g operator -m 664 /dev/null \ 67 ${DESTDIR}/etc/dumpdates 68 install -c -o root -g staff -m 644 /dev/null \ 69 ${DESTDIR}/var/log/lastlog 70 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 71 ${DESTDIR}/var/log/messages 72 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 73 ${DESTDIR}/var/log/maillog 74 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 75 ${DESTDIR}/var/log/lpd-errs 76 install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 77 ${DESTDIR}/var/run/utmp 78 (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 79 fstab.* ${DESTDIR}/etc) 80.if ${MACHINE} == "hp300" 81 (cd etc.hp300; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${RBOOTD} \ 82 ${DESTDIR}/etc) 83.endif 84.if ${MACHINE} == "tahoe" 85 (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \ 86 ${DESTDIR}/) 87.endif 88.if ${MACHINE} == "vax" 89 (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \ 90 ${DESTDIR}/) 91.endif 92 # There are certain symbolic links we have to have, and 93 # no other place to have install them. 94 (cd / && rm -f sys && ln -s usr/src/sys sys) 95 (cd /etc && rm -f rmt && ln -s /usr/sbin/rmt rmt) 96 (cd /etc && rm -f termcap && ln -s /usr/share/misc/termcap termcap) 97 (cd /usr && rm -f X11 && ln -s X11R5 X11) 98 (cd /usr/bin && rm -f X11 && ln -s /usr/X11/bin X11) 99 (cd /usr/lib && rm -f X && ln -s /usr/hpux/lib/X X) 100 (cd /usr/lib && rm -f X11 && ln -s /usr/X11/lib X11) 101 (cd /usr/lib && rm -f grmd && ln -s /usr/hpux/lib/grmd grmd) 102 (cd /usr/lib && rm -f tmac && ln -s /usr/share/tmac tmac) 103 (cd /usr/ucb && rm -f rdist && ln -s /usr/bin/rdist rdist) 104.if ${MACHINE} == "hp300" 105 (cd /usr/bin && rm -f X11 && ln -s /usr/X11/bin X11) 106.endif 107 108hcx9-distribution: 109 (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \ 110 ${DESTDIR}/) 111 112.include <bsd.prog.mk> 113