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