Annotation of src/etc/Makefile, Revision 1.55
1.55 ! perry 1: # $NetBSD: Makefile,v 1.54 1996/10/15 23:59:32 perry Exp $
1.24 mycroft 2: # from: @(#)Makefile 5.11 (Berkeley) 5/21/91
1.1 cgd 3:
1.23 cgd 4: TZDIR= /usr/share/zoneinfo
1.19 deraadt 5: LOCALTIME= US/Pacific
6:
1.55 ! perry 7: # setting NOOBJ prevents "make obj" from doing anything;
! 8: # an objdir would break the installation stuff below
1.1 cgd 9: NOOBJ= oobj
10:
1.32 jtc 11: .if exists(etc.${MACHINE}/Makefile.inc)
1.34 cgd 12: .include "etc.${MACHINE}/Makefile.inc"
1.32 jtc 13: .endif
14:
1.21 cgd 15: # -rw-r--r--
16: BINOWN= root
17: BINGRP= wheel
1.45 cgd 18: BIN1= aliases bootptab changelist csh.cshrc csh.login csh.logout daily \
19: dm.conf ftpusers ftpchroot gettytab group hosts hosts.equiv hosts.lpd \
1.52 mrg 20: inetd.conf man.conf monthly motd mrouted.conf myname netstart \
21: networks newsyslog.conf phones printcap protocols rbootd.conf rc \
22: rc.local remote rpc security services shells syslog.conf weekly \
23: etc.${MACHINE}/ttys etc.${MACHINE}/disktab
1.1 cgd 24:
1.46 deraadt 25: # -rw-rw-r--
1.1 cgd 26: BIN2= motd
27:
28: NAMEDB= localhost.rev named.boot root.cache
29: PCS= pcs750.bin
30:
1.53 cgd 31: all clean cleandir depend etc includes install lint:
1.1 cgd 32:
1.34 cgd 33: .ifndef DESTDIR
1.41 cgd 34: distribution distrib-dirs snapshot:
1.36 cgd 35: @echo setenv DESTDIR before doing that!
1.34 cgd 36: @false
37: .else
1.7 cgd 38: distribution: distrib-dirs
1.53 cgd 39: (cd ..; ${MAKE} includes)
1.32 jtc 40: (cd ..; ${MAKE} install)
1.21 cgd 41: install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc
1.46 deraadt 42: install -c -o ${BINOWN} -g ${BINGRP} -m 664 ${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)
1.47 cgd 60: (cd mtree; \
61: install -c -o root -g wheel -m 600 special \
62: ${DESTDIR}/etc/mtree; \
63: install -c -o root -g wheel -m 444 4.4BSD.dist \
64: ${DESTDIR}/etc/mtree)
1.1 cgd 65: cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \
66: ${DESTDIR}/etc/namedb
1.19 deraadt 67: /bin/rm -f ${DESTDIR}/etc/localtime
68: ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
1.48 deraadt 69: /bin/rm -f ${DESTDIR}/etc/rmt
70: ln -s /usr/sbin/rmt ${DESTDIR}/etc/rmt
1.1 cgd 71: install -c -o ${BINOWN} -g operator -m 664 /dev/null \
1.32 jtc 72: ${DESTDIR}/etc/dumpdates
1.44 deraadt 73: install -c -o ${BINOWN} -g operator -m 644 /dev/null \
74: ${DESTDIR}/etc/skeykeys
1.38 cgd 75: install -c -o root -g wheel -m 600 /dev/null \
76: ${DESTDIR}/var/cron/log
1.16 cgd 77: install -c -o nobody -g ${BINGRP} -m 664 /dev/null \
1.32 jtc 78: ${DESTDIR}/var/db/locate.database
79: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
80: ${DESTDIR}/var/log/lastlog
81: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
82: ${DESTDIR}/var/log/lpd-errs
1.1 cgd 83: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1.32 jtc 84: ${DESTDIR}/var/log/maillog
1.1 cgd 85: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1.32 jtc 86: ${DESTDIR}/var/log/messages
1.1 cgd 87: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1.32 jtc 88: ${DESTDIR}/var/log/wtmp
1.39 cgd 89: install -c -o daemon -g staff -m 664 /dev/null \
90: ${DESTDIR}/var/msgs/bounds
1.1 cgd 91: install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1.32 jtc 92: ${DESTDIR}/var/run/utmp
1.1 cgd 93: (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
1.6 cgd 94: fstab.* ${DESTDIR}/etc)
1.49 tls 95: (cd ${DESTDIR}/dev; ./MAKEDEV all)
1.1 cgd 96: .if ${MACHINE} == "vax"
97: (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \
98: ${DESTDIR}/)
99: .endif
1.35 cgd 100: (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution)
1.1 cgd 101:
102:
1.7 cgd 103: distrib-dirs:
1.37 cgd 104: install -d -o root -g wheel -m 755 ${DESTDIR}
1.47 cgd 105: -mtree -def mtree/4.4BSD.dist -p ${DESTDIR}/ -u
1.28 jtc 106: cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys
1.41 cgd 107:
108: snapshot: distribution snap_pre snap_tar snap_md
109: cd ${DESTDIR}/snapshot && cksum * > CKSUMS
110:
111: snap_pre:
112: /bin/rm -rf ${DESTDIR}/snapshot
113: install -d -o root -g wheel -m 755 ${DESTDIR}/snapshot
114:
115: snap_tar:
116: cd ${DESTDIR} && tar cf - bin | gzip -9 > snapshot/bin.tar.gz
117: cd ${DESTDIR} && tar cf - dev | gzip -9 > snapshot/dev.tar.gz
118: cd ${DESTDIR} && tar cf - .profile .cshrc etc mnt root sys tmp | \
119: gzip -9 > snapshot/etc.tar.gz
120: cd ${DESTDIR} && tar cf - sbin | gzip -9 > snapshot/sbin.tar.gz
121: cd ${DESTDIR} && tar cf - usr/bin | gzip -9 > snapshot/usr.bin.tar.gz
122: cd ${DESTDIR} && tar cf - usr/games | gzip -9 > \
123: snapshot/usr.games.tar.gz
124: cd ${DESTDIR} && tar cf - usr/include | gzip -9 > \
125: snapshot/usr.include.tar.gz
126: cd ${DESTDIR} && tar cf - usr/lib | gzip -9 > snapshot/usr.lib.tar.gz
127: cd ${DESTDIR} && tar cf - usr/libexec | gzip -9 > \
128: snapshot/usr.libexec.tar.gz
1.51 pk 129: cd ${DESTDIR} && tar cf - usr/mdec usr/libdata usr/local usr/src \
130: usr/obj | gzip -9 > snapshot/usr.misc.tar.gz
1.41 cgd 131: cd ${DESTDIR} && tar cf - usr/sbin | gzip -9 > snapshot/usr.sbin.tar.gz
132: cd ${DESTDIR} && tar cf - usr/share | gzip -9 > \
133: snapshot/usr.share.tar.gz
134: cd ${DESTDIR} && tar cf - var | gzip -9 > snapshot/var.tar.gz
135:
136: snap_md:
137: # nothing here -- look in the machine-dependent Makefile.inc
138:
1.34 cgd 139: .endif # DESTDIR check
1.7 cgd 140:
1.1 cgd 141: .include <bsd.prog.mk>
CVSweb <webmaster@jp.NetBSD.org>