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

Annotation of src/etc/Makefile, Revision 1.29

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