Annotation of src/etc/Makefile, Revision 1.44
1.24 mycroft 1: # from: @(#)Makefile 5.11 (Berkeley) 5/21/91
1.44 ! deraadt 2: # $Id: Makefile,v 1.43 1994/04/18 05:15:36 glass Exp $
1.1 cgd 3:
1.23 cgd 4: TZDIR= /usr/share/zoneinfo
1.19 deraadt 5: LOCALTIME= US/Pacific
6:
1.1 cgd 7: NOOBJ= oobj
8:
1.32 jtc 9: .if exists(etc.${MACHINE}/Makefile.inc)
1.34 cgd 10: .include "etc.${MACHINE}/Makefile.inc"
1.32 jtc 11: .endif
12:
1.1 cgd 13: # disktab may be wrong -- hcx9 is a tahoe, but gets its own.
1.21 cgd 14: # -rw-r--r--
15: BINOWN= root
16: BINGRP= wheel
1.43 glass 17: BIN1= aliases bootptab csh.cshrc csh.login csh.logout daily dm.conf \
1.42 cgd 18: 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
1.1 cgd 22:
23: # -rw-rw-rw-
24: BIN2= motd
25:
26: MTREE= BSD.root.dist BSD.usr.dist BSD.var.dist
27: NAMEDB= localhost.rev named.boot root.cache
28: PCS= pcs750.bin
29: WCS1= wcs fppwcs poc poc1 poc2 fppoc
30: WCS2= fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual
31:
32: all clean cleandir depend etc install lint:
33:
1.34 cgd 34: .ifndef DESTDIR
1.41 cgd 35: distribution distrib-dirs snapshot:
1.36 cgd 36: @echo setenv DESTDIR before doing that!
1.34 cgd 37: @false
38: .else
1.7 cgd 39: distribution: distrib-dirs
1.32 jtc 40: (cd ..; ${MAKE} install)
1.21 cgd 41: install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc
1.1 cgd 42: install -c -o ${BINOWN} -g ${BINGRP} -m 666 ${BIN2} ${DESTDIR}/etc
1.3 glass 43: install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root
1.1 cgd 44: install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
1.32 jtc 45: chroot ${DESTDIR}/ pwd_mkdb -p /etc/master.passwd
1.1 cgd 46: install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
47: MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
48: (cd root; \
49: install -c -o root -g wheel -m 644 dot.cshrc \
50: ${DESTDIR}/root/.cshrc; \
51: install -c -o root -g wheel -m 644 dot.klogin \
52: ${DESTDIR}/root/.klogin; \
53: install -c -o root -g wheel -m 644 dot.login \
54: ${DESTDIR}/root/.login; \
55: install -c -o root -g wheel -m 644 dot.profile \
56: ${DESTDIR}/root/.profile; \
57: rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
58: ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
59: ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
60: cd mtree; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${MTREE} \
61: ${DESTDIR}/etc/mtree
62: cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \
63: ${DESTDIR}/etc/namedb
1.19 deraadt 64: /bin/rm -f ${DESTDIR}/etc/localtime
65: ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
1.1 cgd 66: install -c -o ${BINOWN} -g operator -m 664 /dev/null \
1.32 jtc 67: ${DESTDIR}/etc/dumpdates
1.44 ! deraadt 68: install -c -o ${BINOWN} -g operator -m 644 /dev/null \
! 69: ${DESTDIR}/etc/skeykeys
1.38 cgd 70: install -c -o root -g wheel -m 600 /dev/null \
71: ${DESTDIR}/var/cron/log
1.16 cgd 72: install -c -o nobody -g ${BINGRP} -m 664 /dev/null \
1.32 jtc 73: ${DESTDIR}/var/db/locate.database
74: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
75: ${DESTDIR}/var/log/lastlog
76: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
77: ${DESTDIR}/var/log/lpd-errs
1.1 cgd 78: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1.32 jtc 79: ${DESTDIR}/var/log/maillog
1.1 cgd 80: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1.32 jtc 81: ${DESTDIR}/var/log/messages
1.1 cgd 82: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1.32 jtc 83: ${DESTDIR}/var/log/wtmp
1.39 cgd 84: install -c -o daemon -g staff -m 664 /dev/null \
85: ${DESTDIR}/var/msgs/bounds
1.1 cgd 86: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1.32 jtc 87: ${DESTDIR}/var/run/utmp
1.1 cgd 88: (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
1.6 cgd 89: fstab.* ${DESTDIR}/etc)
1.1 cgd 90: .if ${MACHINE} == "tahoe"
91: (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \
92: ${DESTDIR}/)
93: .endif
94: .if ${MACHINE} == "vax"
95: (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \
96: ${DESTDIR}/)
97: .endif
1.35 cgd 98: (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution)
1.1 cgd 99:
100: hcx9-distribution:
101: (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \
102: ${DESTDIR}/)
103:
1.7 cgd 104: distrib-dirs:
1.37 cgd 105: install -d -o root -g wheel -m 755 ${DESTDIR}
1.30 jtc 106: mtree -u -d -p ${DESTDIR}/ -f ${.CURDIR}/mtree/BSD.root.dist
1.31 jtc 107: mtree -u -d -p ${DESTDIR}/usr -f ${.CURDIR}/mtree/BSD.usr.dist
1.30 jtc 108: mtree -u -d -p ${DESTDIR}/var -f ${.CURDIR}/mtree/BSD.var.dist
1.28 jtc 109: cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys
1.41 cgd 110:
111: snapshot: distribution snap_pre snap_tar snap_md
112: cd ${DESTDIR}/snapshot && cksum * > CKSUMS
113:
114: snap_pre:
115: /bin/rm -rf ${DESTDIR}/snapshot
116: install -d -o root -g wheel -m 755 ${DESTDIR}/snapshot
117:
118: snap_tar:
119: cd ${DESTDIR} && tar cf - bin | gzip -9 > snapshot/bin.tar.gz
120: cd ${DESTDIR} && tar cf - dev | gzip -9 > snapshot/dev.tar.gz
121: cd ${DESTDIR} && tar cf - .profile .cshrc etc mnt root sys tmp | \
122: gzip -9 > snapshot/etc.tar.gz
123: cd ${DESTDIR} && tar cf - sbin | gzip -9 > snapshot/sbin.tar.gz
124: cd ${DESTDIR} && tar cf - usr/bin | gzip -9 > snapshot/usr.bin.tar.gz
125: cd ${DESTDIR} && tar cf - usr/games | gzip -9 > \
126: snapshot/usr.games.tar.gz
127: cd ${DESTDIR} && tar cf - usr/include | gzip -9 > \
128: snapshot/usr.include.tar.gz
129: cd ${DESTDIR} && tar cf - usr/lib | gzip -9 > snapshot/usr.lib.tar.gz
130: cd ${DESTDIR} && tar cf - usr/libexec | gzip -9 > \
131: snapshot/usr.libexec.tar.gz
132: cd ${DESTDIR} && tar cf - usr/mdec usr/local usr/src usr/obj | \
133: gzip -9 > snapshot/usr.misc.tar.gz
134: cd ${DESTDIR} && tar cf - usr/sbin | gzip -9 > snapshot/usr.sbin.tar.gz
135: cd ${DESTDIR} && tar cf - usr/share | gzip -9 > \
136: snapshot/usr.share.tar.gz
137: cd ${DESTDIR} && tar cf - var | gzip -9 > snapshot/var.tar.gz
138:
139: snap_md:
140: # nothing here -- look in the machine-dependent Makefile.inc
141:
1.34 cgd 142: .endif # DESTDIR check
1.7 cgd 143:
1.1 cgd 144: .include <bsd.prog.mk>
CVSweb <webmaster@jp.NetBSD.org>