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

Annotation of src/etc/Makefile, Revision 1.30

1.30    ! deraadt     1: #      $OpenBSD: Makefile,v 1.29 1996/12/08 21:27:11 tholo 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 \
1.29      tholo      17:        daily dm.conf exports ftpusers ftpchroot gettytab group hosts \
                     18:        hosts.equiv hosts.lpd ifaliases inetd.conf ipf.rules ksh.kshrc \
                     19:        locate.rc man.conf monthly motd mrouted.conf myname netstart \
                     20:        networks newsyslog.conf phones printcap protocols rbootd.conf rc \
1.27      downsj     21:        rc.local remote rpc security services shells syslog.conf virc weekly \
1.15      deraadt    22:        etc.${MACHINE}/disktab
1.1       deraadt    23:
                     24: # -rw-rw-r--
                     25: BIN2=  motd
                     26:
                     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:
                     34: .ifndef DESTDIR
1.26      deraadt    35: distribution-etc-root-var distribution distrib-dirs snapshot:
1.1       deraadt    36:        @echo setenv DESTDIR before doing that!
                     37:        @false
                     38: .else
1.26      deraadt    39: distribution-etc-root-var: distrib-dirs
1.1       deraadt    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
                    107:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                    108:                ${DESTDIR}/var/log/lastlog
                    109:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                    110:                ${DESTDIR}/var/log/lpd-errs
                    111:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                    112:                ${DESTDIR}/var/log/maillog
                    113:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                    114:                ${DESTDIR}/var/log/messages
1.21      deraadt   115:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                    116:                ${DESTDIR}/var/log/ftpd
1.1       deraadt   117:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                    118:                ${DESTDIR}/var/log/wtmp
                    119:        install -c -o daemon -g staff -m 664 /dev/null \
                    120:                ${DESTDIR}/var/msgs/bounds
                    121:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                    122:                ${DESTDIR}/var/run/utmp
                    123:        (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
                    124:            fstab.* ${DESTDIR}/etc)
                    125:        (cd ${DESTDIR}/dev; ./MAKEDEV all)
                    126: .if ${MACHINE} == "tahoe"
                    127:        (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \
                    128:            ${DESTDIR}/)
                    129: .endif
                    130: .if ${MACHINE} == "vax"
                    131:        (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \
                    132:            ${DESTDIR}/)
                    133: .endif
                    134:        (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution)
1.26      deraadt   135:
                    136: distribution: distribution-etc-root-var
                    137:        (cd ..; ${MAKE} install)
1.1       deraadt   138:
                    139: hcx9-distribution:
                    140:        (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \
                    141:            ${DESTDIR}/)
                    142:
                    143: distrib-dirs:
                    144:        install -d -o root -g wheel -m 755 ${DESTDIR}
                    145:        -mtree -def mtree/4.4BSD.dist -p ${DESTDIR}/ -u
1.16      deraadt   146:        if [ ! -f ${DESTDIR}/usr/src ]; then \
1.17      dm        147:                install -d -o root -g wheel -m 755 ${DESTDIR}/usr/src; \
1.16      deraadt   148:        fi
1.1       deraadt   149:        cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys
                    150:
                    151: snapshot: distribution snap_pre snap_tar snap_md
                    152:        cd ${DESTDIR}/snapshot && cksum * > CKSUMS
                    153:
                    154: snap_pre:
                    155:        /bin/rm -rf ${DESTDIR}/snapshot
                    156:        install -d -o root -g wheel -m 755 ${DESTDIR}/snapshot
                    157:
                    158: snap_tar:
                    159:        cd ${DESTDIR} && tar cf - bin | gzip -9 > snapshot/bin.tar.gz
                    160:        cd ${DESTDIR} && tar cf - dev | gzip -9 > snapshot/dev.tar.gz
                    161:        cd ${DESTDIR} && tar cf - .profile .cshrc etc mnt root sys tmp | \
                    162:            gzip -9 > snapshot/etc.tar.gz
                    163:        cd ${DESTDIR} && tar cf - sbin | gzip -9 > snapshot/sbin.tar.gz
                    164:        cd ${DESTDIR} && tar cf - usr/bin | gzip -9 > snapshot/usr.bin.tar.gz
                    165:        cd ${DESTDIR} && tar cf - usr/games | gzip -9 > \
                    166:            snapshot/usr.games.tar.gz
                    167:        cd ${DESTDIR} && tar cf - usr/include | gzip -9 > \
                    168:            snapshot/usr.include.tar.gz
                    169:        cd ${DESTDIR} && tar cf - usr/lib | gzip -9 > snapshot/usr.lib.tar.gz
                    170:        cd ${DESTDIR} && tar cf - usr/libexec | gzip -9 > \
                    171:            snapshot/usr.libexec.tar.gz
1.2       deraadt   172:        cd ${DESTDIR} && tar cf - usr/mdec usr/libdata usr/local usr/src \
                    173:            usr/obj | gzip -9 > snapshot/usr.misc.tar.gz
1.1       deraadt   174:        cd ${DESTDIR} && tar cf - usr/sbin | gzip -9 > snapshot/usr.sbin.tar.gz
                    175:        cd ${DESTDIR} && tar cf - usr/share | gzip -9 > \
                    176:            snapshot/usr.share.tar.gz
                    177:        cd ${DESTDIR} && tar cf - var | gzip -9 > snapshot/var.tar.gz
                    178:
                    179: snap_md:
                    180: # nothing here -- look in the machine-dependent Makefile.inc
                    181:
                    182: .endif # DESTDIR check
                    183:
                    184: .include <bsd.prog.mk>