Makefile revision 52609
1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 2# $FreeBSD: head/etc/Makefile 52609 1999-10-28 21:31:46Z dillon $ 3 4SUBDIR= sendmail 5 6BIN1= aliases amd.map auth.conf crontab csh.cshrc csh.login csh.logout \ 7 dhclient.conf dm.conf fbtab ftpusers gettytab group hosts hosts.allow \ 8 host.conf hosts.equiv hosts.lpd inetd.conf login.access login.conf \ 9 motd modems networks newsyslog.conf pam.conf pccard.conf.sample \ 10 apmd.conf \ 11 phones printcap profile protocols rc rc.atm rc.devfs rc.diskless1 \ 12 rc.diskless2 rc.firewall rc.isdn rc.network rc.pccard rc.serial \ 13 rc.shutdown etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} remote security \ 14 services shells syslog.conf etc.${MACHINE_ARCH}/ttys \ 15 etc.${MACHINE_ARCH}/disktab rpc \ 16 ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 17 ${.CURDIR}/../usr.bin/mail/misc/mail.rc \ 18 ${.CURDIR}/../usr.bin/locate/locate/locate.rc 19 20# -rwxr-xr-x root.wheel, for the new cron root.wheel 21BIN2= netstart pccard_ether rc.suspend rc.resume 22 23MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 24 BSD.var.dist BSD.x11.dist 25NAMEDB= PROTO.localhost.rev named.conf named.root make-localhost 26PPPCNF= ppp.deny ppp.shells.sample 27PPPCF2= ppp.conf 28NOSPAM= Makefile README 29 30 31# Special top level files for FreeBSD 32COPYRIGHT= COPYRIGHT 33FREEBSD= 34FREEBSD+= ${COPYRIGHT} 35 36etc: 37 38distribute: 39 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin 40.if defined(OBJFORMAT) 41 echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat 42.endif 43 @echo 44 45distribution: 46 (cd ${.CURDIR}; \ 47 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 48 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \ 49 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \ 50 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/make.conf ${DESTDIR}/etc/defaults/; \ 51 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 52 ${DESTDIR}/var/log/cron; \ 53 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \ 54 master.passwd ${DESTDIR}/etc; \ 55 ( cd ${.CURDIR}/periodic; ${MAKE} install );\ 56 ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall );\ 57 ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ); \ 58 ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \ 59 ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \ 60 ( cd ${.CURDIR}/sendmail; ${MAKE} etc-sendmail.cf ); \ 61 ( cd ${.CURDIR}/isdn; ${MAKE} install );\ 62 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \ 63 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 64 MAKEDEV.local etc.${MACHINE_ARCH}/MAKEDEV ${DESTDIR}/dev ) 65 (cd ${DESTDIR}/dev; sh MAKEDEV all) ; 66 (cd ${.CURDIR}/root; \ 67 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 68 ${DESTDIR}/root/.cshrc; \ 69 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 70 ${DESTDIR}/root/.klogin; \ 71 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 72 ${DESTDIR}/root/.login; \ 73 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 74 ${DESTDIR}/root/.profile; \ 75 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 76 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 77 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 78 cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 79 ${MTREE} ${DESTDIR}/etc/mtree 80 cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 81 ${NAMEDB} ${DESTDIR}/etc/namedb 82 cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 83 ${PPPCNF} ${DESTDIR}/etc/ppp 84 cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \ 85 ${PPPCF2} ${DESTDIR}/etc/ppp 86 cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 87 ${NOSPAM} ${DESTDIR}/etc/mail 88 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 89 ${DESTDIR}/etc/dumpdates 90 ${INSTALL} -c -o nobody -g ${BINGRP} -m 664 /dev/null \ 91 ${DESTDIR}/var/db/locate.database 92 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 93 ${DESTDIR}/var/log/lpd-errs 94 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 95 ${DESTDIR}/var/log/maillog 96 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 97 ${DESTDIR}/var/log/lastlog 98 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 99 ${DESTDIR}/var/log/messages 100 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 101 ${DESTDIR}/var/log/security 102 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 103 ${DESTDIR}/var/log/slip.log 104 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 105 ${DESTDIR}/var/log/ppp.log 106 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 107 ${DESTDIR}/var/log/wtmp 108 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 /dev/null \ 109 ${DESTDIR}/var/run/utmp 110 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 664 ${.CURDIR}/minfree \ 111 ${DESTDIR}/var/crash 112 (cd ${.CURDIR}/..; \ 113 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 114 ${DESTDIR}/) 115 (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 116 117distrib-dirs: 118 mtree -deU -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 119 mtree -deU -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 120 mtree -deU -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 121 mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \ 122 -p ${DESTDIR}/usr/include 123 mtree -deU -f ${.CURDIR}/mtree/BSD.include.dist \ 124 -p ${DESTDIR}/usr/libdata/perl/5.00503/mach 125 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 126 cd ${DESTDIR}/usr/share/locale; \ 127 set - `cat ${.CURDIR}/locale.alias`; \ 128 while [ $$# -gt 0 ] ; \ 129 do \ 130 rm -rf "$$1"; \ 131 ln -s "$$2" "$$1"; \ 132 shift; shift; \ 133 done 134 cd ${DESTDIR}/usr/share/nls; \ 135 set - `cat ${.CURDIR}/locale.alias`; \ 136 while [ $$# -gt 0 ] ; \ 137 do \ 138 rm -rf "$$1"; \ 139 ln -s "$$2" "$$1"; \ 140 shift; shift; \ 141 done; \ 142 rm -rf POSIX; \ 143 ln -s C POSIX 144 145etc-examples: 146 (cd ${.CURDIR}; \ 147 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \ 148 ${DESTDIR}/usr/share/examples/etc; \ 149 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \ 150 ${DESTDIR}/usr/share/examples/etc/defaults; \ 151 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/make.conf \ 152 ${DESTDIR}/usr/share/examples/etc/defaults) 153 154.include <bsd.prog.mk> 155