[BACK]Return to Makefile CVS log [TXT][DIR] Up to [local] / src / etc

Annotation of src/etc/Makefile, Revision 1.12

1.12    ! tholo       1: #      $OpenBSD: Makefile,v 1.11 1996/05/26 10:25:16 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
                     16: BIN1=  aliases bootptab changelist csh.cshrc csh.login csh.logout daily \
                     17:        dm.conf ftpusers ftpchroot gettytab group hosts hosts.equiv hosts.lpd \
                     18:        inetd.conf man.conf monthly motd myname netstart newsyslog.conf \
                     19:        phones printcap protocols rc rc.local remote rpc security services \
                     20:        shells syslog.conf weekly etc.${MACHINE}/ttys etc.${MACHINE}/disktab
                     21:
                     22: # -rw-rw-r--
                     23: BIN2=  motd
                     24:
                     25: NAMEDB=        localhost.rev named.boot root.cache
                     26: PCS=   pcs750.bin
                     27: WCS1=  wcs fppwcs poc poc1 poc2 fppoc
                     28: WCS2=  fpevent fppwcs fppwcs_dual hdcwcs load_diags start_fpp wcs wcs_dual
                     29:
                     30: all clean cleandir depend etc install lint:
                     31:
                     32: .ifndef DESTDIR
                     33: distribution distrib-dirs snapshot:
                     34:        @echo setenv DESTDIR before doing that!
                     35:        @false
                     36: .else
                     37: distribution: distrib-dirs
                     38:        (cd ..; ${MAKE} install)
                     39:        install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc
                     40:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 ${BIN2} ${DESTDIR}/etc
                     41:        install -c -o root -g wheel -m 600 crontab ${DESTDIR}/var/cron/tabs/root
                     42:        install -c -o root -g wheel -m 600 master.passwd ${DESTDIR}/etc
1.9       deraadt    43:        pwd_mkdb -p -d ${DESTDIR}/etc /etc/master.passwd
1.1       deraadt    44:        install -c -o ${BINOWN} -g ${BINGRP} -m 555 \
                     45:             MAKEDEV.local etc.${MACHINE}/MAKEDEV ${DESTDIR}/dev
                     46:        (cd root; \
                     47:                install -c -o root -g wheel -m 644 dot.cshrc \
                     48:                    ${DESTDIR}/root/.cshrc; \
                     49:                install -c -o root -g wheel -m 644 dot.klogin \
                     50:                    ${DESTDIR}/root/.klogin; \
                     51:                install -c -o root -g wheel -m 644 dot.login \
                     52:                    ${DESTDIR}/root/.login; \
                     53:                install -c -o root -g wheel -m 644 dot.profile \
                     54:                    ${DESTDIR}/root/.profile; \
                     55:                rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \
                     56:                ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \
                     57:                ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile)
1.4       tholo      58:        (cd kerberosIV; \
                     59:                install -c -o root -g wheel -m 644 README \
                     60:                    ${DESTDIR}/etc/kerberosIV; \
                     61:                install -c -o root -g wheel -m 644 krb.conf \
                     62:                    ${DESTDIR}/etc/kerberosIV; \
                     63:                install -c -o root -g wheel -m 444 krb.realms \
                     64:                    ${DESTDIR}/etc/kerberosIV)
1.1       deraadt    65:        (cd mtree; \
                     66:                install -c -o root -g wheel -m 600 special \
                     67:                    ${DESTDIR}/etc/mtree; \
                     68:                install -c -o root -g wheel -m 444 4.4BSD.dist \
                     69:                    ${DESTDIR}/etc/mtree)
1.6       deraadt    70:        (cd ppp; \
                     71:                install -c -o root -g wheel -m 644 chap-secrets \
                     72:                    ${DESTDIR}/etc/ppp; \
                     73:                install -c -o root -g wheel -m 644 options \
                     74:                    ${DESTDIR}/etc/ppp; \
                     75:                install -c -o root -g wheel -m 644 options.leaf \
                     76:                    ${DESTDIR}/etc/ppp; \
                     77:                install -c -o root -g wheel -m 644 pap-secrets \
                     78:                    ${DESTDIR}/etc/ppp)
1.1       deraadt    79:        cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \
                     80:            ${DESTDIR}/etc/namedb
                     81:        /bin/rm -f ${DESTDIR}/etc/localtime
                     82:        ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
                     83:        /bin/rm -f ${DESTDIR}/etc/rmt
                     84:        ln -s /usr/sbin/rmt ${DESTDIR}/etc/rmt
1.5       deraadt    85:        install -c -o root -g wheel -m 644 minfree \
                     86:                ${DESTDIR}/var/crash
1.1       deraadt    87:        install -c -o ${BINOWN} -g operator -m 664 /dev/null \
                     88:                ${DESTDIR}/etc/dumpdates
                     89:        install -c -o ${BINOWN} -g operator -m 644 /dev/null \
                     90:                ${DESTDIR}/etc/skeykeys
                     91:        install -c -o root -g wheel -m 600 /dev/null \
                     92:                ${DESTDIR}/var/cron/log
                     93:        install -c -o nobody -g ${BINGRP} -m 664 /dev/null \
                     94:                ${DESTDIR}/var/db/locate.database
                     95:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                     96:                ${DESTDIR}/var/log/lastlog
                     97:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                     98:                ${DESTDIR}/var/log/lpd-errs
                     99:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                    100:                ${DESTDIR}/var/log/maillog
                    101:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                    102:                ${DESTDIR}/var/log/messages
                    103:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                    104:                ${DESTDIR}/var/log/wtmp
                    105:        install -c -o daemon -g staff -m 664 /dev/null \
                    106:                ${DESTDIR}/var/msgs/bounds
                    107:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                    108:                ${DESTDIR}/var/run/utmp
                    109:        (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
                    110:            fstab.* ${DESTDIR}/etc)
                    111:        (cd ${DESTDIR}/dev; ./MAKEDEV all)
                    112: .if ${MACHINE} == "tahoe"
                    113:        (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \
                    114:            ${DESTDIR}/)
                    115: .endif
                    116: .if ${MACHINE} == "vax"
                    117:        (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \
                    118:            ${DESTDIR}/)
                    119: .endif
                    120:        (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution)
                    121:
                    122: hcx9-distribution:
                    123:        (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \
                    124:            ${DESTDIR}/)
                    125:
                    126: distrib-dirs:
                    127:        install -d -o root -g wheel -m 755 ${DESTDIR}
                    128:        -mtree -def mtree/4.4BSD.dist -p ${DESTDIR}/ -u
                    129:        cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys
                    130:
                    131: snapshot: distribution snap_pre snap_tar snap_md
                    132:        cd ${DESTDIR}/snapshot && cksum * > CKSUMS
                    133:
                    134: snap_pre:
                    135:        /bin/rm -rf ${DESTDIR}/snapshot
                    136:        install -d -o root -g wheel -m 755 ${DESTDIR}/snapshot
                    137:
                    138: snap_tar:
                    139:        cd ${DESTDIR} && tar cf - bin | gzip -9 > snapshot/bin.tar.gz
                    140:        cd ${DESTDIR} && tar cf - dev | gzip -9 > snapshot/dev.tar.gz
                    141:        cd ${DESTDIR} && tar cf - .profile .cshrc etc mnt root sys tmp | \
                    142:            gzip -9 > snapshot/etc.tar.gz
                    143:        cd ${DESTDIR} && tar cf - sbin | gzip -9 > snapshot/sbin.tar.gz
                    144:        cd ${DESTDIR} && tar cf - usr/bin | gzip -9 > snapshot/usr.bin.tar.gz
                    145:        cd ${DESTDIR} && tar cf - usr/games | gzip -9 > \
                    146:            snapshot/usr.games.tar.gz
                    147:        cd ${DESTDIR} && tar cf - usr/include | gzip -9 > \
                    148:            snapshot/usr.include.tar.gz
                    149:        cd ${DESTDIR} && tar cf - usr/lib | gzip -9 > snapshot/usr.lib.tar.gz
                    150:        cd ${DESTDIR} && tar cf - usr/libexec | gzip -9 > \
                    151:            snapshot/usr.libexec.tar.gz
1.2       deraadt   152:        cd ${DESTDIR} && tar cf - usr/mdec usr/libdata usr/local usr/src \
                    153:            usr/obj | gzip -9 > snapshot/usr.misc.tar.gz
1.1       deraadt   154:        cd ${DESTDIR} && tar cf - usr/sbin | gzip -9 > snapshot/usr.sbin.tar.gz
                    155:        cd ${DESTDIR} && tar cf - usr/share | gzip -9 > \
                    156:            snapshot/usr.share.tar.gz
                    157:        cd ${DESTDIR} && tar cf - var | gzip -9 > snapshot/var.tar.gz
                    158:
                    159: snap_md:
                    160: # nothing here -- look in the machine-dependent Makefile.inc
                    161:
                    162: .endif # DESTDIR check
                    163:
                    164: .include <bsd.prog.mk>