Annotation of src/etc/Makefile, Revision 1.63
1.63 ! mikel 1: # $NetBSD: Makefile,v 1.62 1997/01/16 23:10:43 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 \
1.60 mrg 19: daily.conf dm.conf floppytab ftpusers ftpchroot gettytab group hosts \
20: hosts.equiv hosts.lpd inetd.conf lkm.conf man.conf monthly \
21: monthly.conf motd mrouted.conf myname netstart networks \
22: newsyslog.conf phones printcap protocols rbootd.conf rc rc.conf \
1.61 thorpej 23: rc.lkm rc.local remote rpc security security.conf services shells \
1.60 mrg 24: syslog.conf weekly weekly.conf etc.${MACHINE}/ttys \
25: etc.${MACHINE}/disktab
1.1 cgd 26:
1.46 deraadt 27: # -rw-rw-r--
1.1 cgd 28: BIN2= motd
29:
30: NAMEDB= localhost.rev named.boot root.cache
31: PCS= pcs750.bin
32:
1.53 cgd 33: all clean cleandir depend etc includes install lint:
1.1 cgd 34:
1.34 cgd 35: .ifndef DESTDIR
1.41 cgd 36: distribution distrib-dirs snapshot:
1.36 cgd 37: @echo setenv DESTDIR before doing that!
1.34 cgd 38: @false
39: .else
1.7 cgd 40: distribution: distrib-dirs
1.53 cgd 41: (cd ..; ${MAKE} includes)
1.32 jtc 42: (cd ..; ${MAKE} install)
1.56 thorpej 43: ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc
44: ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${BIN2} ${DESTDIR}/etc
45: ${INSTALL} -c -o root -g wheel -m 600 crontab \
46: ${DESTDIR}/var/cron/tabs/root
47: ${INSTALL} -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
1.32 jtc 48: chroot ${DESTDIR}/ pwd_mkdb -p /etc/master.passwd
1.56 thorpej 49: ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \
1.1 cgd 50: MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
51: (cd root; \
1.56 thorpej 52: ${INSTALL} -c -o root -g wheel -m 644 dot.cshrc \
1.1 cgd 53: ${DESTDIR}/root/.cshrc; \
1.56 thorpej 54: ${INSTALL} -c -o root -g wheel -m 644 dot.klogin \
1.1 cgd 55: ${DESTDIR}/root/.klogin; \
1.56 thorpej 56: ${INSTALL} -c -o root -g wheel -m 644 dot.login \
1.1 cgd 57: ${DESTDIR}/root/.login; \
1.56 thorpej 58: ${INSTALL} -c -o root -g wheel -m 644 dot.profile \
1.1 cgd 59: ${DESTDIR}/root/.profile; \
60: rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
61: ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
62: ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
1.47 cgd 63: (cd mtree; \
1.56 thorpej 64: ${INSTALL} -c -o root -g wheel -m 600 special \
1.47 cgd 65: ${DESTDIR}/etc/mtree; \
1.56 thorpej 66: ${INSTALL} -c -o root -g wheel -m 444 4.4BSD.dist \
1.47 cgd 67: ${DESTDIR}/etc/mtree)
1.63 ! mikel 68: (cd namedb; \
! 69: ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \
! 70: ${DESTDIR}/etc/namedb
1.19 deraadt 71: /bin/rm -f ${DESTDIR}/etc/localtime
72: ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
1.48 deraadt 73: /bin/rm -f ${DESTDIR}/etc/rmt
74: ln -s /usr/sbin/rmt ${DESTDIR}/etc/rmt
1.56 thorpej 75: ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \
1.32 jtc 76: ${DESTDIR}/etc/dumpdates
1.56 thorpej 77: ${INSTALL} -c -o ${BINOWN} -g operator -m 644 /dev/null \
1.44 deraadt 78: ${DESTDIR}/etc/skeykeys
1.56 thorpej 79: ${INSTALL} -c -o root -g wheel -m 600 /dev/null \
1.38 cgd 80: ${DESTDIR}/var/cron/log
1.56 thorpej 81: ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \
1.32 jtc 82: ${DESTDIR}/var/db/locate.database
1.56 thorpej 83: ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1.32 jtc 84: ${DESTDIR}/var/log/lastlog
1.58 lukem 85: ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \
1.32 jtc 86: ${DESTDIR}/var/log/lpd-errs
1.58 lukem 87: ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
1.32 jtc 88: ${DESTDIR}/var/log/maillog
1.58 lukem 89: ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
1.32 jtc 90: ${DESTDIR}/var/log/messages
1.58 lukem 91: ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \
92: ${DESTDIR}/var/log/secure
93: ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \
1.32 jtc 94: ${DESTDIR}/var/log/wtmp
1.56 thorpej 95: ${INSTALL} -c -o daemon -g staff -m 664 /dev/null \
1.39 cgd 96: ${DESTDIR}/var/msgs/bounds
1.56 thorpej 97: ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1.32 jtc 98: ${DESTDIR}/var/run/utmp
1.56 thorpej 99: (cd etc.${MACHINE}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
1.6 cgd 100: fstab.* ${DESTDIR}/etc)
1.49 tls 101: (cd ${DESTDIR}/dev; ./MAKEDEV all)
1.62 perry 102: (cd ../usr.bin/mail; ${MAKE} distribution)
1.35 cgd 103: (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution)
1.1 cgd 104:
105:
1.7 cgd 106: distrib-dirs:
1.56 thorpej 107: ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}
1.47 cgd 108: -mtree -def mtree/4.4BSD.dist -p ${DESTDIR}/ -u
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
1.56 thorpej 116: ${INSTALL} -d -o root -g wheel -m 755 ${DESTDIR}/snapshot
1.41 cgd 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
1.51 pk 132: cd ${DESTDIR} && tar cf - usr/mdec usr/libdata usr/local usr/src \
133: usr/obj | gzip -9 > snapshot/usr.misc.tar.gz
1.41 cgd 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>