Makefile revision 98187
11195Srgrimes# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 250472Speter# $FreeBSD: head/etc/Makefile 98187 2002-06-13 22:26:15Z gordon $ 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 3057479Speter.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH) 3157488SpeterSSH= ${.CURDIR}/../crypto/openssh/ssh_config \ 3274837Sgreen ${.CURDIR}/../crypto/openssh/sshd_config \ 3392898Sdes moduli 3457459Smarkm.endif 3557459Smarkm 3660677Skris.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) 3760677SkrisSSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf 3860677Skris.endif 3960677Skris 4082521Salex# -rwxr-xr-x root:wheel, for the new cron root:wheel 4148734SiwasakiBIN2= netstart pccard_ether rc.suspend rc.resume 42147Srgrimes 4327487SasamiMTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 4465168Sasami BSD.var.dist BSD.x11.dist BSD.x11-4.dist 4595144Sgshapiro.if !defined(NO_SENDMAIL) 4695144SgshapiroMTREE+= BSD.sendmail.dist 4795144Sgshapiro.endif 4890281SumeNAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \ 4990281Sume make-localhost 5089936ScjcPPPCNF= ppp.conf 5164598SgshapiroETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ 5264598Sgshapiro mailertable.sample aliases 5337Srgrimes 5417639Swosch 55263Srgrimes# Special top level files for FreeBSD 562779SrgrimesCOPYRIGHT= COPYRIGHT 578857SrgrimesFREEBSD= 58993SrgrimesFREEBSD+= ${COPYRIGHT} 59263Srgrimes 6038103Speteretc: 6137Srgrimes 624487Sphkdistribute: 6395327Sobrien cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION} 6439590Sjkh.if defined(OBJFORMAT) 6595327Sobrien echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/${DISTRIBUTION}/etc/objformat 6639590Sjkh.endif 6795509Sru ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ 6895509Sru ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \ 6995509Sru ${DISTDIR}/${DISTRIBUTION}/boot/device.hints 705948Sjkh 714487Sphkdistribution: 721759Sjkh (cd ${.CURDIR}; \ 739970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 7436902Sguido ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \ 7543832Sjkh ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \ 7658979Siwasaki ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/pccard.conf ${DESTDIR}/etc/defaults/; \ 7761981Sbrian ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/periodic.conf ${DESTDIR}/etc/defaults/; \ 789970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 7951033Sn_hibma ${DESTDIR}/var/log/cron; \ 809970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \ 8188878Ssheldonh master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \ 8257488Speter ( cd ${.CURDIR}/periodic; ${MAKE} install ); \ 8398187Sgordon ( cd ${.CURDIR}/rc.d; ${MAKE} install ); \ 8457488Speter ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall ); \ 8517639Swosch ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \ 8617645Swosch ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \ 8774194Sdes pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; ) 8887447Sdes ( cd ${.CURDIR}/pam.d; ${MAKE} install ) 8977041Sru.if !defined(NO_I4B) 9077041Sru ( cd ${.CURDIR}/isdn; ${MAKE} install ) 9177041Sru.endif 9273251Sgshapiro.if !defined(NO_SENDMAIL) 9373251Sgshapiro ( cd ${.CURDIR}/sendmail; ${MAKE} distribution ); 9473251Sgshapiro.endif 9557488Speter.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH) 9657488Speter (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \ 9757488Speter ${DESTDIR}/etc/ssh ) 9857488Speter.endif 9960677Skris.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) 10060677Skris (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \ 10160677Skris ${DESTDIR}/etc/ssl ) 10260677Skris.endif 10374990Sasmodai.if !defined(NO_MAKEDEV_INSTALL) 10474194Sdes ( cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 10574194Sdes MAKEDEV.local MAKEDEV ${DESTDIR}/dev ) 10674990Sasmodai.if !defined(NO_MAKEDEV_RUN) 10757488Speter (cd ${DESTDIR}/dev; sh MAKEDEV all) 10857071Srwatson.endif 10974990Sasmodai.endif 1101731Sjkh (cd ${.CURDIR}/root; \ 1119970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 11237Srgrimes ${DESTDIR}/root/.cshrc; \ 1139970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 11437Srgrimes ${DESTDIR}/root/.klogin; \ 1159970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 11637Srgrimes ${DESTDIR}/root/.login; \ 1179970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 11837Srgrimes ${DESTDIR}/root/.profile; \ 11937Srgrimes rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 12037Srgrimes ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 12137Srgrimes ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 1229970Sbde cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 1231731Sjkh ${MTREE} ${DESTDIR}/etc/mtree 1249970Sbde cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 1251731Sjkh ${NAMEDB} ${DESTDIR}/etc/namedb 12689936Scjc cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \ 1276177Samurai ${PPPCNF} ${DESTDIR}/etc/ppp 12830589Sjmb cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 12964598Sgshapiro ${ETCMAIL} ${DESTDIR}/etc/mail 13064629Sgshapiro @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 13164629Sgshapiro ! -f ${DESTDIR}/etc/aliases ]; then \ 13264629Sgshapiro set -x; \ 13364629Sgshapiro ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 13464629Sgshapiro fi 1359970Sbde ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 13637Srgrimes ${DESTDIR}/etc/dumpdates 13763097Speter ${INSTALL} -c -o nobody -g ${BINGRP} -m 644 /dev/null \ 138147Srgrimes ${DESTDIR}/var/db/locate.database 13992099Srwatson ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 14092100Srwatson ${DESTDIR}/var/log/auth.log 14163097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 142147Srgrimes ${DESTDIR}/var/log/lpd-errs 14383561Sjlemon ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 14437Srgrimes ${DESTDIR}/var/log/maillog 14563097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 146288Srgrimes ${DESTDIR}/var/log/lastlog 14763097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 148147Srgrimes ${DESTDIR}/var/log/messages 14913378Sache ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 15050126Sgreen ${DESTDIR}/var/log/security 15182866Sbrian ${INSTALL} -c -o ${BINOWN} -g network -m 640 /dev/null \ 15213378Sache ${DESTDIR}/var/log/slip.log 15382866Sbrian ${INSTALL} -c -o ${BINOWN} -g network -m 640 /dev/null \ 15417104Spst ${DESTDIR}/var/log/ppp.log 15563097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 156147Srgrimes ${DESTDIR}/var/log/wtmp 15763097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 15837Srgrimes ${DESTDIR}/var/run/utmp 15964665Skris ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 1601759Sjkh ${DESTDIR}/var/crash 1611759Sjkh (cd ${.CURDIR}/..; \ 1629970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 1639970Sbde ${DESTDIR}/) 16461888Sasmodai.if !defined(NOMAN) 1651759Sjkh (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 16661888Sasmodai.endif 16737Srgrimes 168147Srgrimesdistrib-dirs: 16989074Sphantom -set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.deprecated`; \ 17089074Sphantom while [ $$# -gt 0 ] ; \ 17189074Sphantom do \ 17289074Sphantom for dir in /usr/share/locale \ 17389074Sphantom /usr/share/nls \ 17489074Sphantom /usr/local/share/nls; \ 17589074Sphantom do \ 17689074Sphantom test -d ${DESTDIR}/$${dir} && cd ${DESTDIR}/$${dir}; \ 17789074Sphantom test -L "$$2" && rm -rf "$$2"; \ 17889074Sphantom test \! -L "$$1" && test -d "$$1" && mv "$$1" "$$2"; \ 17989074Sphantom done; \ 18089074Sphantom shift; shift; \ 18189074Sphantom done 18265884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 18365884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 18465884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 18565884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 1867129Srgrimes -p ${DESTDIR}/usr/include 18795144Sgshapiro.if !defined(NO_SENDMAIL) 18895144Sgshapiro mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/ 18995144Sgshapiro.endif 190410Srgrimes cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 19177993Sache cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* . 19277993Sache cd ${DESTDIR}/usr/share/man; \ 19377993Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 19477993Sache while [ $$# -gt 0 ] ; \ 19577993Sache do \ 19677993Sache rm -rf "$$1"; \ 19777993Sache ln -s "$$2" "$$1"; \ 19877993Sache shift; shift; \ 19977993Sache done 2007129Srgrimes cd ${DESTDIR}/usr/share/locale; \ 20177976Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.alias`; \ 20211635Sache while [ $$# -gt 0 ] ; \ 20311635Sache do \ 20411635Sache rm -rf "$$1"; \ 20511635Sache ln -s "$$2" "$$1"; \ 20611635Sache shift; shift; \ 2077129Srgrimes done 20811635Sache cd ${DESTDIR}/usr/share/nls; \ 20977999Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ 21011635Sache while [ $$# -gt 0 ] ; \ 21111635Sache do \ 21211635Sache rm -rf "$$1"; \ 21311635Sache ln -s "$$2" "$$1"; \ 21411635Sache shift; shift; \ 21577999Sache done 216147Srgrimes 21748185Ssheldonhetc-examples: 21848185Ssheldonh (cd ${.CURDIR}; \ 21948185Ssheldonh ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \ 22081656Sache opieaccess ${DESTDIR}/usr/share/examples/etc; \ 22148185Ssheldonh ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \ 22252609Sdillon ${DESTDIR}/usr/share/examples/etc/defaults; \ 22358979Siwasaki ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/pccard.conf \ 22462006Snbm ${DESTDIR}/usr/share/examples/etc/defaults; \ 22561981Sbrian ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/periodic.conf \ 22648185Ssheldonh ${DESTDIR}/usr/share/examples/etc/defaults) 22748185Ssheldonh 22837Srgrimes.include <bsd.prog.mk> 229