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