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