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