Annotation of src/etc/Makefile, Revision 1.25
1.25 ! deraadt 1: # $OpenBSD: Makefile,v 1.24 1996/08/24 20:52:22 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 \
18: hosts.lpd ifaliases inetd.conf ksh.kshrc man.conf monthly motd \
19: myname netstart newsyslog.conf phones printcap protocols rc \
20: rc.local remote rpc 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.25 ! deraadt 74: (cd amd; \
! 75: install -c -o root -g wheel -m 644 master \
! 76: ${DESTDIR}/etc/amd)
1.1 deraadt 77: (cd mtree; \
78: install -c -o root -g wheel -m 600 special \
79: ${DESTDIR}/etc/mtree; \
80: install -c -o root -g wheel -m 444 4.4BSD.dist \
81: ${DESTDIR}/etc/mtree)
1.6 deraadt 82: (cd ppp; \
83: install -c -o root -g wheel -m 644 chap-secrets \
84: ${DESTDIR}/etc/ppp; \
85: install -c -o root -g wheel -m 644 options \
86: ${DESTDIR}/etc/ppp; \
87: install -c -o root -g wheel -m 644 options.leaf \
88: ${DESTDIR}/etc/ppp; \
89: install -c -o root -g wheel -m 644 pap-secrets \
90: ${DESTDIR}/etc/ppp)
1.1 deraadt 91: cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \
92: ${DESTDIR}/etc/namedb
93: /bin/rm -f ${DESTDIR}/etc/localtime
94: ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
95: /bin/rm -f ${DESTDIR}/etc/rmt
96: ln -s /usr/sbin/rmt ${DESTDIR}/etc/rmt
1.5 deraadt 97: install -c -o root -g wheel -m 644 minfree \
98: ${DESTDIR}/var/crash
1.1 deraadt 99: install -c -o ${BINOWN} -g operator -m 664 /dev/null \
100: ${DESTDIR}/etc/dumpdates
101: install -c -o ${BINOWN} -g operator -m 644 /dev/null \
102: ${DESTDIR}/etc/skeykeys
103: install -c -o root -g wheel -m 600 /dev/null \
104: ${DESTDIR}/var/cron/log
105: install -c -o nobody -g ${BINGRP} -m 664 /dev/null \
106: ${DESTDIR}/var/db/locate.database
1.23 michaels 107: install -c -o root -g wheel -m 644 /dev/null \
108: ${DESTDIR}/etc/locate.rc
1.1 deraadt 109: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
110: ${DESTDIR}/var/log/lastlog
111: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
112: ${DESTDIR}/var/log/lpd-errs
113: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
114: ${DESTDIR}/var/log/maillog
115: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
116: ${DESTDIR}/var/log/messages
1.21 deraadt 117: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
118: ${DESTDIR}/var/log/ftpd
1.1 deraadt 119: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
120: ${DESTDIR}/var/log/wtmp
121: install -c -o daemon -g staff -m 664 /dev/null \
122: ${DESTDIR}/var/msgs/bounds
123: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
124: ${DESTDIR}/var/run/utmp
125: (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
126: fstab.* ${DESTDIR}/etc)
127: (cd ${DESTDIR}/dev; ./MAKEDEV all)
128: .if ${MACHINE} == "tahoe"
129: (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \
130: ${DESTDIR}/)
131: .endif
132: .if ${MACHINE} == "vax"
133: (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \
134: ${DESTDIR}/)
135: .endif
136: (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution)
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>