Makefile revision 99449
11195Srgrimes# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 250472Speter# $FreeBSD: head/etc/Makefile 99449 2002-07-05 13:17:24Z ru $ 337Srgrimes 473251Sgshapiro.if !defined(NO_SENDMAIL) 538103SpeterSUBDIR= sendmail 673251Sgshapiro.endif 738103Speter 864618SgshapiroBIN1= amd.map apmd.conf auth.conf \ 955230Speter crontab csh.cshrc csh.login csh.logout \ 1082480Sbrian dhclient.conf dm.conf fbtab ftpusers gettytab group \ 1165532Snectar hosts hosts.allow hosts.equiv hosts.lpd \ 1255230Speter inetd.conf login.access login.conf \ 1388878Ssheldonh motd modems netconfig networks newsyslog.conf \ 1489364Sdes phones printcap profile protocols \ 1567929Sume rc rc.atm rc.devfs rc.diskless1 rc.diskless2 rc.firewall rc.firewall6 \ 1695227Sgshapiro rc.network rc.network6 rc.pccard rc.sendmail rc.serial rc.shutdown \ 1798187Sgordon rc.subr rc.syscons rc.sysctl remote rpc services \ 1898187Sgordon shells sysctl.conf syslog.conf usbd.conf \ 1955230Speter etc.${MACHINE_ARCH}/disktab \ 2055230Speter etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \ 2155230Speter etc.${MACHINE_ARCH}/ttys \ 221734Sjkh ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 2317639Swosch ${.CURDIR}/../usr.bin/mail/misc/mail.rc \ 2417639Swosch ${.CURDIR}/../usr.bin/locate/locate/locate.rc 2537Srgrimes 2677041Sru.if !defined(NO_I4B) 2777041SruBIN1+= rc.isdn 2877041Sru.endif 2977041Sru 3098548Sru.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) 3198548Sru.if !defined(NO_OPENSSH) 3257488SpeterSSH= ${.CURDIR}/../crypto/openssh/ssh_config \ 3374837Sgreen ${.CURDIR}/../crypto/openssh/sshd_config \ 3492898Sdes moduli 3557459Smarkm.endif 3660677SkrisSSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf 3760677Skris.endif 3860677Skris 3982521Salex# -rwxr-xr-x root:wheel, for the new cron root:wheel 4048734SiwasakiBIN2= netstart pccard_ether rc.suspend rc.resume 41147Srgrimes 4299449SruDEFAULTS= rc.conf pccard.conf periodic.conf 4399449Sru 4427487SasamiMTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 4565168Sasami BSD.var.dist BSD.x11.dist BSD.x11-4.dist 4695144Sgshapiro.if !defined(NO_SENDMAIL) 4795144SgshapiroMTREE+= BSD.sendmail.dist 4895144Sgshapiro.endif 4990281SumeNAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \ 5090281Sume make-localhost 5189936ScjcPPPCNF= ppp.conf 5264598SgshapiroETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ 5364598Sgshapiro mailertable.sample aliases 5437Srgrimes 5517639Swosch 56263Srgrimes# Special top level files for FreeBSD 5799449SruFREEBSD=COPYRIGHT 58263Srgrimes 5938103Speteretc: 6037Srgrimes 614487Sphkdistribute: 6295327Sobrien cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION} 6339590Sjkh.if defined(OBJFORMAT) 6495327Sobrien echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/${DISTRIBUTION}/etc/objformat 6539590Sjkh.endif 6695509Sru ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ 6795509Sru ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \ 6895509Sru ${DISTDIR}/${DISTRIBUTION}/boot/device.hints 695948Sjkh 704487Sphkdistribution: 7199449Sru cd ${.CURDIR}; \ 729970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 7336902Sguido ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \ 749970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \ 7588878Ssheldonh master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \ 7699449Sru pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd 7799449Sru cd ${.CURDIR}/defaults; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 7899449Sru ${DEFAULTS} ${DESTDIR}/etc/defaults 7999449Sru cd ${.CURDIR}/periodic; ${MAKE} install 8099449Sru cd ${.CURDIR}/rc.d; ${MAKE} install 8199449Sru cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall 8299449Sru cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap 8399449Sru cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt 8499449Sru cd ${.CURDIR}/pam.d; ${MAKE} install 8577041Sru.if !defined(NO_I4B) 8699449Sru cd ${.CURDIR}/isdn; ${MAKE} install 8777041Sru.endif 8873251Sgshapiro.if !defined(NO_SENDMAIL) 8999449Sru cd ${.CURDIR}/sendmail; ${MAKE} distribution 9073251Sgshapiro.endif 9198548Sru.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) 9298548Sru.if !defined(NO_OPENSSH) 9399449Sru cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \ 9499449Sru ${DESTDIR}/etc/ssh 9557488Speter.endif 9699449Sru cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \ 9799449Sru ${DESTDIR}/etc/ssl 9860677Skris.endif 9974990Sasmodai.if !defined(NO_MAKEDEV_INSTALL) 10099449Sru cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 10199449Sru MAKEDEV.local MAKEDEV ${DESTDIR}/dev 10274990Sasmodai.if !defined(NO_MAKEDEV_RUN) 10399449Sru cd ${DESTDIR}/dev; sh MAKEDEV all 10457071Srwatson.endif 10574990Sasmodai.endif 10699449Sru cd ${.CURDIR}/root; \ 1079970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 10837Srgrimes ${DESTDIR}/root/.cshrc; \ 1099970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 11037Srgrimes ${DESTDIR}/root/.klogin; \ 1119970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 11237Srgrimes ${DESTDIR}/root/.login; \ 1139970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 11437Srgrimes ${DESTDIR}/root/.profile; \ 11537Srgrimes rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 11637Srgrimes ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 11799449Sru ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile 1189970Sbde cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 1191731Sjkh ${MTREE} ${DESTDIR}/etc/mtree 1209970Sbde cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 1211731Sjkh ${NAMEDB} ${DESTDIR}/etc/namedb 12289936Scjc cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \ 1236177Samurai ${PPPCNF} ${DESTDIR}/etc/ppp 12430589Sjmb cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 12564598Sgshapiro ${ETCMAIL} ${DESTDIR}/etc/mail 12664629Sgshapiro @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 12764629Sgshapiro ! -f ${DESTDIR}/etc/aliases ]; then \ 12864629Sgshapiro set -x; \ 12964629Sgshapiro ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 13064629Sgshapiro fi 1319970Sbde ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 13237Srgrimes ${DESTDIR}/etc/dumpdates 13363097Speter ${INSTALL} -c -o nobody -g ${BINGRP} -m 644 /dev/null \ 134147Srgrimes ${DESTDIR}/var/db/locate.database 13592099Srwatson ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 13692100Srwatson ${DESTDIR}/var/log/auth.log 13799449Sru ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 13899449Sru ${DESTDIR}/var/log/cron 13963097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 140147Srgrimes ${DESTDIR}/var/log/lpd-errs 14183561Sjlemon ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 14237Srgrimes ${DESTDIR}/var/log/maillog 14363097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 144288Srgrimes ${DESTDIR}/var/log/lastlog 14563097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 146147Srgrimes ${DESTDIR}/var/log/messages 14713378Sache ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 14850126Sgreen ${DESTDIR}/var/log/security 14982866Sbrian ${INSTALL} -c -o ${BINOWN} -g network -m 640 /dev/null \ 15013378Sache ${DESTDIR}/var/log/slip.log 15182866Sbrian ${INSTALL} -c -o ${BINOWN} -g network -m 640 /dev/null \ 15217104Spst ${DESTDIR}/var/log/ppp.log 15363097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 154147Srgrimes ${DESTDIR}/var/log/wtmp 15563097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 15637Srgrimes ${DESTDIR}/var/run/utmp 15764665Skris ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 1581759Sjkh ${DESTDIR}/var/crash 15999449Sru cd ${.CURDIR}/..; \ 1609970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 16199449Sru ${DESTDIR}/ 16261888Sasmodai.if !defined(NOMAN) 16399449Sru cd ${.CURDIR}/../share/man; ${MAKE} makedb 16461888Sasmodai.endif 16537Srgrimes 166147Srgrimesdistrib-dirs: 16789074Sphantom -set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.deprecated`; \ 16889074Sphantom while [ $$# -gt 0 ] ; \ 16989074Sphantom do \ 17089074Sphantom for dir in /usr/share/locale \ 17189074Sphantom /usr/share/nls \ 17289074Sphantom /usr/local/share/nls; \ 17389074Sphantom do \ 17489074Sphantom test -d ${DESTDIR}/$${dir} && cd ${DESTDIR}/$${dir}; \ 17589074Sphantom test -L "$$2" && rm -rf "$$2"; \ 17689074Sphantom test \! -L "$$1" && test -d "$$1" && mv "$$1" "$$2"; \ 17789074Sphantom done; \ 17889074Sphantom shift; shift; \ 17989074Sphantom done 18065884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 18165884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 18265884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 18365884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 1847129Srgrimes -p ${DESTDIR}/usr/include 18595144Sgshapiro.if !defined(NO_SENDMAIL) 18695144Sgshapiro mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/ 18795144Sgshapiro.endif 188410Srgrimes cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 18977993Sache cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* . 19077993Sache cd ${DESTDIR}/usr/share/man; \ 19177993Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 19277993Sache while [ $$# -gt 0 ] ; \ 19377993Sache do \ 19477993Sache rm -rf "$$1"; \ 19577993Sache ln -s "$$2" "$$1"; \ 19677993Sache shift; shift; \ 19777993Sache done 1987129Srgrimes cd ${DESTDIR}/usr/share/locale; \ 19977976Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.alias`; \ 20011635Sache while [ $$# -gt 0 ] ; \ 20111635Sache do \ 20211635Sache rm -rf "$$1"; \ 20311635Sache ln -s "$$2" "$$1"; \ 20411635Sache shift; shift; \ 2057129Srgrimes done 20611635Sache cd ${DESTDIR}/usr/share/nls; \ 20777999Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ 20811635Sache while [ $$# -gt 0 ] ; \ 20911635Sache do \ 21011635Sache rm -rf "$$1"; \ 21111635Sache ln -s "$$2" "$$1"; \ 21211635Sache shift; shift; \ 21377999Sache done 214147Srgrimes 21548185Ssheldonhetc-examples: 21699449Sru cd ${.CURDIR}; \ 21748185Ssheldonh ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \ 21899449Sru nsmb.conf opieaccess ${DESTDIR}/usr/share/examples/etc 21999449Sru cd ${.CURDIR}/defaults; \ 22099449Sru ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${DEFAULTS} \ 22199449Sru ${DESTDIR}/usr/share/examples/etc/defaults 22248185Ssheldonh 22337Srgrimes.include <bsd.prog.mk> 224