home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / unix / riscbsd / sources / src_tgz / src_tgz~ / src / etc / Makefile < prev    next >
Encoding:
Makefile  |  1996-06-06  |  5.3 KB  |  149 lines

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