Annotation of src/etc/Makefile, Revision 1.6
1.3 deraadt 1: # $NetBSD: Makefile,v 1.51 1995/11/01 13:52:40 pk Exp $
1.1 deraadt 2: # from: @(#)Makefile 5.11 (Berkeley) 5/21/91
3:
4: TZDIR= /usr/share/zoneinfo
5: LOCALTIME= US/Pacific
6:
7: NOOBJ= oobj
8:
9: .if exists(etc.${MACHINE}/Makefile.inc)
10: .include "etc.${MACHINE}/Makefile.inc"
11: .endif
12:
13: # disktab may be wrong -- hcx9 is a tahoe, but gets its own.
14: # -rw-r--r--
15: BINOWN= root
16: BINGRP= wheel
17: BIN1= aliases bootptab changelist csh.cshrc csh.login csh.logout daily \
18: dm.conf ftpusers ftpchroot gettytab group hosts hosts.equiv hosts.lpd \
19: inetd.conf man.conf monthly motd myname netstart newsyslog.conf \
20: phones printcap protocols rc rc.local remote rpc security services \
21: shells syslog.conf weekly etc.${MACHINE}/ttys etc.${MACHINE}/disktab
22:
23: # -rw-rw-r--
24: BIN2= motd
25:
26: NAMEDB= localhost.rev named.boot root.cache
27: PCS= pcs750.bin
28: WCS1= wcs fppwcs poc poc1 poc2 fppoc
29: WCS2= fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual
30:
31: all clean cleandir depend etc install lint:
32:
33: .ifndef DESTDIR
34: distribution distrib-dirs snapshot:
35: @echo setenv DESTDIR before doing that!
36: @false
37: .else
38: distribution: distrib-dirs
39: (cd ..; ${MAKE} install)
40: install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc
41: install -c -o ${BINOWN} -g ${BINGRP} -m 664 ${BIN2} ${DESTDIR}/etc
42: install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root
43: install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
44: chroot ${DESTDIR}/ pwd_mkdb -p /etc/master.passwd
45: install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
46: MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
47: (cd root; \
48: install -c -o root -g wheel -m 644 dot.cshrc \
49: ${DESTDIR}/root/.cshrc; \
50: install -c -o root -g wheel -m 644 dot.klogin \
51: ${DESTDIR}/root/.klogin; \
52: install -c -o root -g wheel -m 644 dot.login \
53: ${DESTDIR}/root/.login; \
54: install -c -o root -g wheel -m 644 dot.profile \
55: ${DESTDIR}/root/.profile; \
56: rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
57: ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
58: ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
1.4 tholo 59: (cd kerberosIV; \
60: install -c -o root -g wheel -m 644 README \
61: ${DESTDIR}/etc/kerberosIV; \
62: install -c -o root -g wheel -m 644 krb.conf \
63: ${DESTDIR}/etc/kerberosIV; \
64: install -c -o root -g wheel -m 644 krb.equiv \
65: ${DESTDIR}/etc/kerberosIV; \
66: install -c -o root -g wheel -m 444 krb.realms \
67: ${DESTDIR}/etc/kerberosIV)
1.1 deraadt 68: (cd mtree; \
69: install -c -o root -g wheel -m 600 special \
70: ${DESTDIR}/etc/mtree; \
71: install -c -o root -g wheel -m 444 4.4BSD.dist \
72: ${DESTDIR}/etc/mtree)
1.6 ! deraadt 73: (cd ppp; \
! 74: install -c -o root -g wheel -m 644 chap-secrets \
! 75: ${DESTDIR}/etc/ppp; \
! 76: install -c -o root -g wheel -m 644 options \
! 77: ${DESTDIR}/etc/ppp; \
! 78: install -c -o root -g wheel -m 644 options.leaf \
! 79: ${DESTDIR}/etc/ppp; \
! 80: install -c -o root -g wheel -m 644 pap-secrets \
! 81: ${DESTDIR}/etc/ppp; \
! 82: ${DESTDIR}/etc/ppp)
1.1 deraadt 83: cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \
84: ${DESTDIR}/etc/namedb
85: /bin/rm -f ${DESTDIR}/etc/localtime
86: ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
87: /bin/rm -f ${DESTDIR}/etc/rmt
88: ln -s /usr/sbin/rmt ${DESTDIR}/etc/rmt
1.5 deraadt 89: install -c -o root -g wheel -m 644 minfree \
90: ${DESTDIR}/var/crash
1.3 deraadt 91: install -c -o root -g wheel -m 644 Makefile.yp \
92: ${DESTDIR}/var/yp.no/Makefile
1.1 deraadt 93: install -c -o ${BINOWN} -g operator -m 664 /dev/null \
94: ${DESTDIR}/etc/dumpdates
95: install -c -o ${BINOWN} -g operator -m 644 /dev/null \
96: ${DESTDIR}/etc/skeykeys
97: install -c -o root -g wheel -m 600 /dev/null \
98: ${DESTDIR}/var/cron/log
99: install -c -o nobody -g ${BINGRP} -m 664 /dev/null \
100: ${DESTDIR}/var/db/locate.database
101: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
102: ${DESTDIR}/var/log/lastlog
103: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
104: ${DESTDIR}/var/log/lpd-errs
105: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
106: ${DESTDIR}/var/log/maillog
107: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
108: ${DESTDIR}/var/log/messages
109: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
110: ${DESTDIR}/var/log/wtmp
111: install -c -o daemon -g staff -m 664 /dev/null \
112: ${DESTDIR}/var/msgs/bounds
113: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
114: ${DESTDIR}/var/run/utmp
115: (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
116: fstab.* ${DESTDIR}/etc)
117: (cd ${DESTDIR}/dev; ./MAKEDEV all)
118: .if ${MACHINE} == "tahoe"
119: (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \
120: ${DESTDIR}/)
121: .endif
122: .if ${MACHINE} == "vax"
123: (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \
124: ${DESTDIR}/)
125: .endif
126: (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution)
127:
128: hcx9-distribution:
129: (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \
130: ${DESTDIR}/)
131:
132: distrib-dirs:
133: install -d -o root -g wheel -m 755 ${DESTDIR}
134: -mtree -def mtree/4.4BSD.dist -p ${DESTDIR}/ -u
135: cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys
136:
137: snapshot: distribution snap_pre snap_tar snap_md
138: cd ${DESTDIR}/snapshot && cksum * > CKSUMS
139:
140: snap_pre:
141: /bin/rm -rf ${DESTDIR}/snapshot
142: install -d -o root -g wheel -m 755 ${DESTDIR}/snapshot
143:
144: snap_tar:
145: cd ${DESTDIR} && tar cf - bin | gzip -9 > snapshot/bin.tar.gz
146: cd ${DESTDIR} && tar cf - dev | gzip -9 > snapshot/dev.tar.gz
147: cd ${DESTDIR} && tar cf - .profile .cshrc etc mnt root sys tmp | \
148: gzip -9 > snapshot/etc.tar.gz
149: cd ${DESTDIR} && tar cf - sbin | gzip -9 > snapshot/sbin.tar.gz
150: cd ${DESTDIR} && tar cf - usr/bin | gzip -9 > snapshot/usr.bin.tar.gz
151: cd ${DESTDIR} && tar cf - usr/games | gzip -9 > \
152: snapshot/usr.games.tar.gz
153: cd ${DESTDIR} && tar cf - usr/include | gzip -9 > \
154: snapshot/usr.include.tar.gz
155: cd ${DESTDIR} && tar cf - usr/lib | gzip -9 > snapshot/usr.lib.tar.gz
156: cd ${DESTDIR} && tar cf - usr/libexec | gzip -9 > \
157: snapshot/usr.libexec.tar.gz
1.2 deraadt 158: cd ${DESTDIR} && tar cf - usr/mdec usr/libdata usr/local usr/src \
159: usr/obj | gzip -9 > snapshot/usr.misc.tar.gz
1.1 deraadt 160: cd ${DESTDIR} && tar cf - usr/sbin | gzip -9 > snapshot/usr.sbin.tar.gz
161: cd ${DESTDIR} && tar cf - usr/share | gzip -9 > \
162: snapshot/usr.share.tar.gz
163: cd ${DESTDIR} && tar cf - var | gzip -9 > snapshot/var.tar.gz
164:
165: snap_md:
166: # nothing here -- look in the machine-dependent Makefile.inc
167:
168: .endif # DESTDIR check
169:
170: .include <bsd.prog.mk>