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

Annotation of src/etc/Makefile, Revision 1.35

1.35    ! graichen    1: #      $OpenBSD: Makefile,v 1.34 1997/01/03 04:04:52 etheisen 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; \
1.34      etheisen   75:                install -c -o root -g wheel -m 644 master.sample \
1.25      deraadt    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; \
1.32      deraadt    83:                install -c -o root -g wheel -m 600 chap-secrets \
1.6       deraadt    84:                    ${DESTDIR}/etc/ppp; \
1.32      deraadt    85:                install -c -o root -g wheel -m 600 options \
1.6       deraadt    86:                    ${DESTDIR}/etc/ppp; \
1.32      deraadt    87:                install -c -o root -g wheel -m 600 options.leaf \
1.6       deraadt    88:                    ${DESTDIR}/etc/ppp; \
1.32      deraadt    89:                install -c -o root -g wheel -m 600 options.sample \
                     90:                    ${DESTDIR}/etc/ppp; \
                     91:                install -c -o root -g wheel -m 600 chatscript.sample \
                     92:                    ${DESTDIR}/etc/ppp; \
                     93:                install -c -o root -g wheel -m 600 pap-secrets \
1.6       deraadt    94:                    ${DESTDIR}/etc/ppp)
1.1       deraadt    95:        cd namedb; install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${NAMEDB} \
                     96:            ${DESTDIR}/etc/namedb
                     97:        /bin/rm -f ${DESTDIR}/etc/localtime
                     98:        ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
                     99:        /bin/rm -f ${DESTDIR}/etc/rmt
                    100:        ln -s /usr/sbin/rmt ${DESTDIR}/etc/rmt
1.5       deraadt   101:        install -c -o root -g wheel -m 644 minfree \
                    102:                ${DESTDIR}/var/crash
1.1       deraadt   103:        install -c -o ${BINOWN} -g operator -m 664 /dev/null \
                    104:                ${DESTDIR}/etc/dumpdates
                    105:        install -c -o ${BINOWN} -g operator -m 644 /dev/null \
                    106:                ${DESTDIR}/etc/skeykeys
                    107:        install -c -o root -g wheel -m 600 /dev/null \
                    108:                ${DESTDIR}/var/cron/log
                    109:        install -c -o nobody -g ${BINGRP} -m 664 /dev/null \
                    110:                ${DESTDIR}/var/db/locate.database
                    111:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1.33      etheisen  112:                ${DESTDIR}/var/log/authlog
                    113:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                    114:                ${DESTDIR}/var/log/daemon
                    115:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1.1       deraadt   116:                ${DESTDIR}/var/log/lastlog
                    117:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                    118:                ${DESTDIR}/var/log/lpd-errs
                    119:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                    120:                ${DESTDIR}/var/log/maillog
                    121:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                    122:                ${DESTDIR}/var/log/messages
1.21      deraadt   123:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                    124:                ${DESTDIR}/var/log/ftpd
1.1       deraadt   125:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1.33      etheisen  126:                ${DESTDIR}/var/log/secure
                    127:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
1.1       deraadt   128:                ${DESTDIR}/var/log/wtmp
1.33      etheisen  129:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                    130:                ${DESTDIR}/var/log/xferlog
1.1       deraadt   131:        install -c -o daemon -g staff -m 664 /dev/null \
                    132:                ${DESTDIR}/var/msgs/bounds
                    133:        install -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \
                    134:                ${DESTDIR}/var/run/utmp
                    135:        (cd etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
                    136:            fstab.* ${DESTDIR}/etc)
                    137:        (cd ${DESTDIR}/dev; ./MAKEDEV all)
                    138: .if ${MACHINE} == "tahoe"
                    139:        (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS1} \
                    140:            ${DESTDIR}/)
                    141: .endif
                    142: .if ${MACHINE} == "vax"
                    143:        (cd etc.vax; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${PCS} \
                    144:            ${DESTDIR}/)
                    145: .endif
                    146:        (cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution)
1.26      deraadt   147:
                    148: distribution: distribution-etc-root-var
                    149:        (cd ..; ${MAKE} install)
1.1       deraadt   150:
                    151: hcx9-distribution:
                    152:        (cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \
                    153:            ${DESTDIR}/)
                    154:
                    155: distrib-dirs:
                    156:        install -d -o root -g wheel -m 755 ${DESTDIR}
                    157:        -mtree -def mtree/4.4BSD.dist -p ${DESTDIR}/ -u
1.16      deraadt   158:        if [ ! -f ${DESTDIR}/usr/src ]; then \
1.31      millert   159:                install -d -o root -g wsrc -m 775 ${DESTDIR}/usr/src; \
1.16      deraadt   160:        fi
1.1       deraadt   161:        cd ${DESTDIR}; rm -f sys; ln -s usr/src/sys sys
                    162:
                    163: snapshot: distribution snap_pre snap_tar snap_md
                    164:        cd ${DESTDIR}/snapshot && cksum * > CKSUMS
                    165:
                    166: snap_pre:
                    167:        /bin/rm -rf ${DESTDIR}/snapshot
                    168:        install -d -o root -g wheel -m 755 ${DESTDIR}/snapshot
                    169:
1.35    ! graichen  170: # check if SNAP_GZIP_CMD is set - else set it to "gzip -9"
        !           171: # you may set it to "cat" alternatively for architectures
        !           172: # where the gzip'ing would take too much time (pmax or slower :-)
        !           173: # this way you get only tar'ed snap files and you can gzip
        !           174: # them on a faster machine
        !           175:
        !           176: .ifndef SNAP_GZIP_CMD
        !           177: SNAP_GZIP_CMD= gzip -9
        !           178: SNAP_GZIP_EXT= .gz
        !           179: .endif
        !           180:
1.1       deraadt   181: snap_tar:
1.35    ! graichen  182:        cd ${DESTDIR} && tar cf - bin \
        !           183:            | ${SNAP_GZIP_CMD} > snapshot/bin.tar${SNAP_GZIP_EXT}
        !           184:        cd ${DESTDIR} && tar cf - dev \
        !           185:            | ${SNAP_GZIP_CMD} > snapshot/dev.tar${SNAP_GZIP_EXT}
        !           186:        cd ${DESTDIR} && tar cf - .profile .cshrc altroot etc home mnt \
        !           187:            root stand sys tmp | ${SNAP_GZIP_CMD} \
        !           188:            > snapshot/etc.tar${SNAP_GZIP_EXT}
        !           189:        cd ${DESTDIR} && tar cf - sbin \
        !           190:            | ${SNAP_GZIP_CMD} > snapshot/sbin.tar${SNAP_GZIP_EXT}
        !           191:        cd ${DESTDIR} && tar cf - usr/bin \
        !           192:            | ${SNAP_GZIP_CMD} > snapshot/usr.bin.tar${SNAP_GZIP_EXT}
        !           193:        cd ${DESTDIR} && tar cf - usr/games \
        !           194:            | ${SNAP_GZIP_CMD} > snapshot/usr.games.tar${SNAP_GZIP_EXT}
        !           195:        cd ${DESTDIR} && tar cf - usr/include \
        !           196:            | ${SNAP_GZIP_CMD} > snapshot/usr.include.tar${SNAP_GZIP_EXT}
        !           197:        cd ${DESTDIR} && tar cf - usr/lib \
        !           198:            | ${SNAP_GZIP_CMD} > snapshot/usr.lib.tar${SNAP_GZIP_EXT}
        !           199:        cd ${DESTDIR} && tar cf - usr/libexec \
        !           200:            | ${SNAP_GZIP_CMD} > snapshot/usr.libexec.tar${SNAP_GZIP_EXT}
1.2       deraadt   201:        cd ${DESTDIR} && tar cf - usr/mdec usr/libdata usr/local usr/src \
1.35    ! graichen  202:            usr/obj | ${SNAP_GZIP_CMD} \
        !           203:            > snapshot/usr.misc.tar${SNAP_GZIP_EXT}
        !           204:        cd ${DESTDIR} && tar cf - usr/sbin \
        !           205:            | ${SNAP_GZIP_CMD} > snapshot/usr.sbin.tar${SNAP_GZIP_EXT}
        !           206:        cd ${DESTDIR} && tar cf - usr/share \
        !           207:            | ${SNAP_GZIP_CMD} > snapshot/usr.share.tar${SNAP_GZIP_EXT}
        !           208:        cd ${DESTDIR} && tar cf - var \
        !           209:            | ${SNAP_GZIP_CMD} > snapshot/var.tar${SNAP_GZIP_EXT}
1.1       deraadt   210:
                    211: snap_md:
                    212: # nothing here -- look in the machine-dependent Makefile.inc
                    213:
                    214: .endif # DESTDIR check
                    215:
                    216: .include <bsd.prog.mk>