Makefile revision 120709
11195Srgrimes# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 250472Speter# $FreeBSD: head/etc/Makefile 120709 2003-10-03 19:38:21Z phk $ 337Srgrimes 473251Sgshapiro.if !defined(NO_SENDMAIL) 538103SpeterSUBDIR= sendmail 673251Sgshapiro.endif 738103Speter 899451SruBIN1= amd.map apmd.conf auth.conf \ 9114780Sdougb crontab csh.cshrc csh.login csh.logout devd.conf devfs.conf \ 10114780Sdougb dhclient.conf disktab fbtab ftpusers gettytab group \ 1165532Snectar hosts hosts.allow hosts.equiv hosts.lpd \ 1255230Speter inetd.conf login.access login.conf \ 13113674Smtm mac.conf motd netconfig network.subr networks newsyslog.conf \ 14120521Smarkm phones profile protocols \ 15114555Sdougb rc rc.firewall rc.firewall6 rc.sendmail rc.shutdown \ 16114492Sdougb rc.subr remote rpc services \ 1798187Sgordon shells sysctl.conf syslog.conf usbd.conf \ 1855230Speter etc.${MACHINE_ARCH}/ttys \ 191734Sjkh ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 2017639Swosch ${.CURDIR}/../usr.bin/mail/misc/mail.rc \ 2117639Swosch ${.CURDIR}/../usr.bin/locate/locate/locate.rc 2237Srgrimes 23120202Smarkm.if !defined(NO_OPENSSL) 2498548Sru.if !defined(NO_OPENSSH) 2557488SpeterSSH= ${.CURDIR}/../crypto/openssh/ssh_config \ 2674837Sgreen ${.CURDIR}/../crypto/openssh/sshd_config \ 2792898Sdes moduli 2857459Smarkm.endif 2960677SkrisSSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf 3060677Skris.endif 3160677Skris 3282521Salex# -rwxr-xr-x root:wheel, for the new cron root:wheel 33108002SgreenBIN2= netstart pccard_ether rc.suspend rc.resume 34147Srgrimes 3527487SasamiMTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 3665168Sasami BSD.var.dist BSD.x11.dist BSD.x11-4.dist 3795144Sgshapiro.if !defined(NO_SENDMAIL) 3895144SgshapiroMTREE+= BSD.sendmail.dist 3995144Sgshapiro.endif 4099451Sru 4199451SruNAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \ 4290281Sume make-localhost 4399451Sru 4499451SruPPPCNF= ppp.conf 4599451Sru 46117292Sgshapiro.if defined(NO_SENDMAIL) 47117292SgshapiroETCMAIL=mailer.conf aliases 48117292Sgshapiro.else 4964598SgshapiroETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ 5064598Sgshapiro mailertable.sample aliases 51117292Sgshapiro.endif 5237Srgrimes 53263Srgrimes# Special top level files for FreeBSD 5499449SruFREEBSD=COPYRIGHT 55263Srgrimes 564487Sphkdistribute: 5795327Sobrien cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION} 58100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 5995509Sru ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \ 6095509Sru ${DISTDIR}/${DISTRIBUTION}/boot/device.hints 615948Sjkh 624487Sphkdistribution: 6399449Sru cd ${.CURDIR}; \ 64100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 6599451Sru ${BIN1} ${DESTDIR}/etc; \ 66111810Sru cap_mkdb ${DESTDIR}/etc/login.conf; \ 67100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \ 6899451Sru ${BIN2} ${DESTDIR}/etc; \ 69100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 7099451Sru master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \ 7199451Sru pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd 72119385Smtm cd ${.CURDIR}/defaults; ${MAKE} install 7399449Sru cd ${.CURDIR}/periodic; ${MAKE} install 7499449Sru cd ${.CURDIR}/rc.d; ${MAKE} install 7599449Sru cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall 7699449Sru cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap 7799449Sru cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt 7899449Sru cd ${.CURDIR}/pam.d; ${MAKE} install 7977041Sru.if !defined(NO_I4B) 8099449Sru cd ${.CURDIR}/isdn; ${MAKE} install 8177041Sru.endif 82120521Smarkm.if !defined(NO_LPR) 83120521Smarkm cd ${.CURDIR}; \ 84120521Smarkm ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 85120521Smarkm printcap ${DESTDIR}/etc 86120521Smarkm.endif 8773251Sgshapiro.if !defined(NO_SENDMAIL) 8899449Sru cd ${.CURDIR}/sendmail; ${MAKE} distribution 8973251Sgshapiro.endif 90120202Smarkm.if !defined(NO_OPENSSL) 9198548Sru.if !defined(NO_OPENSSH) 92100872Sru cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 9399451Sru ${SSH} ${DESTDIR}/etc/ssh 9457488Speter.endif 95100872Sru cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 9699451Sru ${SSL} ${DESTDIR}/etc/ssl 9760677Skris.endif 98120709Sphk.if !defined(NO_KERBEROS) 9999449Sru cd ${.CURDIR}/root; \ 100100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 101120709Sphk dot.k5login ${DESTDIR}/root/.k5login; 102120709Sphk.endif 103120709Sphk cd ${.CURDIR}/root; \ 104120709Sphk ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 10599451Sru dot.cshrc ${DESTDIR}/root/.cshrc; \ 106100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 10799451Sru dot.login ${DESTDIR}/root/.login; \ 108100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 10999451Sru dot.profile ${DESTDIR}/root/.profile; \ 11099451Sru rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 11199451Sru ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 11299451Sru ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile 113100872Sru cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 1141731Sjkh ${MTREE} ${DESTDIR}/etc/mtree 115100872Sru cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 1161731Sjkh ${NAMEDB} ${DESTDIR}/etc/namedb 117119058Sobrien cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 1186177Samurai ${PPPCNF} ${DESTDIR}/etc/ppp 119100872Sru cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 12064598Sgshapiro ${ETCMAIL} ${DESTDIR}/etc/mail 12164629Sgshapiro @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 12264629Sgshapiro ! -f ${DESTDIR}/etc/aliases ]; then \ 12364629Sgshapiro set -x; \ 12464629Sgshapiro ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 12564629Sgshapiro fi 126100872Sru ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \ 12737Srgrimes ${DESTDIR}/etc/dumpdates 128100872Sru ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \ 129147Srgrimes ${DESTDIR}/var/db/locate.database 130100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 13192100Srwatson ${DESTDIR}/var/log/auth.log 132100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 13399449Sru ${DESTDIR}/var/log/cron 134103720Smarkm ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 135113259Sdes ${DESTDIR}/var/log/debug.log 136113259Sdes ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 137103738Smarkm ${DESTDIR}/var/log/xferlog 138100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 139147Srgrimes ${DESTDIR}/var/log/lpd-errs 140100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 14137Srgrimes ${DESTDIR}/var/log/maillog 142100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 143288Srgrimes ${DESTDIR}/var/log/lastlog 144100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 145147Srgrimes ${DESTDIR}/var/log/messages 146100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 14750126Sgreen ${DESTDIR}/var/log/security 148100872Sru ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \ 14913378Sache ${DESTDIR}/var/log/slip.log 150100872Sru ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \ 15117104Spst ${DESTDIR}/var/log/ppp.log 152100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 153147Srgrimes ${DESTDIR}/var/log/wtmp 154100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 15537Srgrimes ${DESTDIR}/var/run/utmp 156100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 1571759Sjkh ${DESTDIR}/var/crash 158100872Sru cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 15999451Sru ${FREEBSD} ${DESTDIR}/ 16061888Sasmodai.if !defined(NOMAN) 16199449Sru cd ${.CURDIR}/../share/man; ${MAKE} makedb 16261888Sasmodai.endif 16337Srgrimes 164147Srgrimesdistrib-dirs: 16565884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 16665884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 16765884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 16865884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 1697129Srgrimes -p ${DESTDIR}/usr/include 17095144Sgshapiro.if !defined(NO_SENDMAIL) 17195144Sgshapiro mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/ 17295144Sgshapiro.endif 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 183110663Sache cd ${DESTDIR}/usr/share/openssl/man; \ 184110663Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 185110663Sache while [ $$# -gt 0 ] ; \ 186110663Sache do \ 187110663Sache rm -rf "$$1"; \ 188110663Sache ln -s "$$2" "$$1"; \ 189110663Sache shift; shift; \ 190110663Sache done 191110655Snectar cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* . 19211635Sache cd ${DESTDIR}/usr/share/nls; \ 19377999Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ 19411635Sache while [ $$# -gt 0 ] ; \ 19511635Sache do \ 19611635Sache rm -rf "$$1"; \ 19711635Sache ln -s "$$2" "$$1"; \ 19811635Sache shift; shift; \ 19977999Sache done 200147Srgrimes 20148185Ssheldonhetc-examples: 202100872Sru cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 20399451Sru ${BIN1} ${BIN2} nsmb.conf opieaccess \ 20499451Sru ${DESTDIR}/usr/share/examples/etc 205119385Smtm cd ${.CURDIR}/defaults; ${MAKE} install \ 206119385Smtm DESTDIR=${DESTDIR}/usr/share/examples 20748185Ssheldonh 20837Srgrimes.include <bsd.prog.mk> 209