Makefile revision 82480
11195Srgrimes# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 250472Speter# $FreeBSD: head/etc/Makefile 82480 2001-08-29 04:03:41Z brian $ 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 \ 1374462Salfred motd modems netconfig networks newsyslog.conf \ 1477698Sume pam.conf phones printcap profile protocols \ 1567929Sume rc rc.atm rc.devfs rc.diskless1 rc.diskless2 rc.firewall rc.firewall6 \ 1677041Sru rc.network rc.network6 rc.pccard rc.serial rc.shutdown \ 1775703Ssobomax rc.syscons rc.sysctl remote rpc security services shells sysctl.conf \ 1875703Ssobomax 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 \ 3374837Sgreen primes 3457459Smarkm.endif 3557459Smarkm 3660677Skris.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) 3760677SkrisSSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf 3860677Skris.endif 3960677Skris 401773Sjkh# -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 4535832SacheNAMEDB= PROTO.localhost.rev named.conf named.root make-localhost 4643901SbrianPPPCNF= ppp.deny ppp.shells.sample 4749110SbrianPPPCF2= ppp.conf 4864598SgshapiroETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ 4964598Sgshapiro mailertable.sample aliases 5037Srgrimes 5117639Swosch 52263Srgrimes# Special top level files for FreeBSD 532779SrgrimesCOPYRIGHT= COPYRIGHT 548857SrgrimesFREEBSD= 55993SrgrimesFREEBSD+= ${COPYRIGHT} 56263Srgrimes 5738103Speteretc: 5837Srgrimes 594487Sphkdistribute: 606717Sphk cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin 6139590Sjkh.if defined(OBJFORMAT) 6239636Sdima echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat 6339590Sjkh.endif 6439590Sjkh @echo 655948Sjkh 664487Sphkdistribution: 671759Sjkh (cd ${.CURDIR}; \ 689970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 6936902Sguido ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \ 7043832Sjkh ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \ 7152609Sdillon ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/make.conf ${DESTDIR}/etc/defaults/; \ 7258979Siwasaki ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/pccard.conf ${DESTDIR}/etc/defaults/; \ 7361981Sbrian ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/periodic.conf ${DESTDIR}/etc/defaults/; \ 749970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 7551033Sn_hibma ${DESTDIR}/var/log/cron; \ 769970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \ 7781656Sache opieaccess master.passwd ${DESTDIR}/etc; \ 7857488Speter ( cd ${.CURDIR}/periodic; ${MAKE} install ); \ 7957488Speter ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall ); \ 8017639Swosch ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \ 8117645Swosch ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \ 8274194Sdes pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; ) 8377041Sru.if !defined(NO_I4B) 8477041Sru ( cd ${.CURDIR}/isdn; ${MAKE} install ) 8577041Sru.endif 8673251Sgshapiro.if !defined(NO_SENDMAIL) 8773251Sgshapiro ( cd ${.CURDIR}/sendmail; ${MAKE} distribution ); 8873251Sgshapiro.endif 8967849Sdougb.if !defined(NOUUCP) 9067849Sdougb ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ) 9167849Sdougb.endif 9257488Speter.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH) 9357488Speter (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \ 9457488Speter ${DESTDIR}/etc/ssh ) 9557488Speter.endif 9660677Skris.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) 9760677Skris (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \ 9860677Skris ${DESTDIR}/etc/ssl ) 9960677Skris.endif 10074990Sasmodai.if !defined(NO_MAKEDEV_INSTALL) 10174194Sdes ( cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 10274194Sdes MAKEDEV.local MAKEDEV ${DESTDIR}/dev ) 10374990Sasmodai.if !defined(NO_MAKEDEV_RUN) 10457488Speter (cd ${DESTDIR}/dev; sh MAKEDEV all) 10557071Srwatson.endif 10674990Sasmodai.endif 1071731Sjkh (cd ${.CURDIR}/root; \ 1089970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 10937Srgrimes ${DESTDIR}/root/.cshrc; \ 1109970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 11137Srgrimes ${DESTDIR}/root/.klogin; \ 1129970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 11337Srgrimes ${DESTDIR}/root/.login; \ 1149970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 11537Srgrimes ${DESTDIR}/root/.profile; \ 11637Srgrimes rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 11737Srgrimes ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 11837Srgrimes ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 1199970Sbde cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 1201731Sjkh ${MTREE} ${DESTDIR}/etc/mtree 1219970Sbde cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 1221731Sjkh ${NAMEDB} ${DESTDIR}/etc/namedb 1239970Sbde cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 1246177Samurai ${PPPCNF} ${DESTDIR}/etc/ppp 12549110Sbrian cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \ 12649110Sbrian ${PPPCF2} ${DESTDIR}/etc/ppp 12730589Sjmb cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 12864598Sgshapiro ${ETCMAIL} ${DESTDIR}/etc/mail 12964629Sgshapiro @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 13064629Sgshapiro ! -f ${DESTDIR}/etc/aliases ]; then \ 13164629Sgshapiro set -x; \ 13264629Sgshapiro ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 13364629Sgshapiro fi 1349970Sbde ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 13537Srgrimes ${DESTDIR}/etc/dumpdates 13663097Speter ${INSTALL} -c -o nobody -g ${BINGRP} -m 644 /dev/null \ 137147Srgrimes ${DESTDIR}/var/db/locate.database 13863097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 139147Srgrimes ${DESTDIR}/var/log/lpd-errs 14063097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 14137Srgrimes ${DESTDIR}/var/log/maillog 14263097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 143288Srgrimes ${DESTDIR}/var/log/lastlog 14463097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 145147Srgrimes ${DESTDIR}/var/log/messages 14613378Sache ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 14750126Sgreen ${DESTDIR}/var/log/security 14850126Sgreen ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 14913378Sache ${DESTDIR}/var/log/slip.log 15017104Spst ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 15117104Spst ${DESTDIR}/var/log/ppp.log 15263097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 153147Srgrimes ${DESTDIR}/var/log/wtmp 15463097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 15537Srgrimes ${DESTDIR}/var/run/utmp 15664665Skris ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 1571759Sjkh ${DESTDIR}/var/crash 1581759Sjkh (cd ${.CURDIR}/..; \ 1599970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 1609970Sbde ${DESTDIR}/) 16161888Sasmodai.if !defined(NOMAN) 1621759Sjkh (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 16361888Sasmodai.endif 16437Srgrimes 165147Srgrimesdistrib-dirs: 16665884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 16765884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 16865884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 16965884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 1707129Srgrimes -p ${DESTDIR}/usr/include 17165884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 17262416Smarkm -p ${DESTDIR}/usr/libdata/perl/5.6.0/mach 173410Srgrimes cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 17477993Sache cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* . 17577993Sache cd ${DESTDIR}/usr/share/man; \ 17677993Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 17777993Sache while [ $$# -gt 0 ] ; \ 17877993Sache do \ 17977993Sache rm -rf "$$1"; \ 18077993Sache ln -s "$$2" "$$1"; \ 18177993Sache shift; shift; \ 18277993Sache done 1837129Srgrimes cd ${DESTDIR}/usr/share/locale; \ 18477976Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.alias`; \ 18511635Sache while [ $$# -gt 0 ] ; \ 18611635Sache do \ 18711635Sache rm -rf "$$1"; \ 18811635Sache ln -s "$$2" "$$1"; \ 18911635Sache shift; shift; \ 1907129Srgrimes done 19111635Sache cd ${DESTDIR}/usr/share/nls; \ 19277999Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ 19311635Sache while [ $$# -gt 0 ] ; \ 19411635Sache do \ 19511635Sache rm -rf "$$1"; \ 19611635Sache ln -s "$$2" "$$1"; \ 19711635Sache shift; shift; \ 19877999Sache done 199147Srgrimes 20048185Ssheldonhetc-examples: 20148185Ssheldonh (cd ${.CURDIR}; \ 20248185Ssheldonh ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \ 20381656Sache opieaccess ${DESTDIR}/usr/share/examples/etc; \ 20448185Ssheldonh ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \ 20552609Sdillon ${DESTDIR}/usr/share/examples/etc/defaults; \ 20652609Sdillon ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/make.conf \ 20758979Siwasaki ${DESTDIR}/usr/share/examples/etc/defaults; \ 20858979Siwasaki ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/pccard.conf \ 20962006Snbm ${DESTDIR}/usr/share/examples/etc/defaults; \ 21061981Sbrian ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/periodic.conf \ 21148185Ssheldonh ${DESTDIR}/usr/share/examples/etc/defaults) 21248185Ssheldonh 21337Srgrimes.include <bsd.prog.mk> 214