Makefile revision 124831
11195Srgrimes# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 250472Speter# $FreeBSD: head/etc/Makefile 124831 2004-01-22 08:18:37Z ru $ 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 22121911Smarkm.if !defined(NO_LPR) 23121911SmarkmBIN1+= printcap 24121911Smarkm.endif 2537Srgrimes 26121911Smarkm.if !defined(NOCRYPT) && !defined(NO_OPENSSL) 2798548Sru.if !defined(NO_OPENSSH) 2857488SpeterSSH= ${.CURDIR}/../crypto/openssh/ssh_config \ 2974837Sgreen ${.CURDIR}/../crypto/openssh/sshd_config \ 30124214Sdes ${.CURDIR}/../crypto/openssh/moduli 3157459Smarkm.endif 3260677SkrisSSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf 3360677Skris.endif 3460677Skris 3582521Salex# -rwxr-xr-x root:wheel, for the new cron root:wheel 36108002SgreenBIN2= netstart pccard_ether rc.suspend rc.resume 37147Srgrimes 3827487SasamiMTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 3965168Sasami BSD.var.dist BSD.x11.dist BSD.x11-4.dist 4095144Sgshapiro.if !defined(NO_SENDMAIL) 4195144SgshapiroMTREE+= BSD.sendmail.dist 4295144Sgshapiro.endif 4399451Sru 4499451SruNAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \ 4590281Sume make-localhost 4699451Sru 4799451SruPPPCNF= ppp.conf 4899451Sru 49117292Sgshapiro.if defined(NO_SENDMAIL) 50117292SgshapiroETCMAIL=mailer.conf aliases 51117292Sgshapiro.else 5264598SgshapiroETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ 5364598Sgshapiro mailertable.sample aliases 54117292Sgshapiro.endif 5537Srgrimes 56263Srgrimes# Special top level files for FreeBSD 5799449SruFREEBSD=COPYRIGHT 58263Srgrimes 59124831Sruafterinstall: 60124831Sru.if !defined(NOMAN) 61124831Sru cd ${.CURDIR}/../share/man; ${MAKE} makedb 62124831Sru.endif 63124831Sru 644487Sphkdistribute: 65124831Sru cd ${.CURDIR} ; ${MAKE} install DESTDIR=${DISTDIR}/${DISTRIBUTION} 6695327Sobrien cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION} 67100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 6895509Sru ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \ 6995509Sru ${DISTDIR}/${DISTRIBUTION}/boot/device.hints 705948Sjkh 714487Sphkdistribution: 7299449Sru cd ${.CURDIR}; \ 73100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 7499451Sru ${BIN1} ${DESTDIR}/etc; \ 75111810Sru cap_mkdb ${DESTDIR}/etc/login.conf; \ 76100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \ 7799451Sru ${BIN2} ${DESTDIR}/etc; \ 78100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 7999451Sru master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \ 8099451Sru pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd 81121580Semax cd ${.CURDIR}/bluetooth; ${MAKE} install 82119385Smtm cd ${.CURDIR}/defaults; ${MAKE} install 8399449Sru cd ${.CURDIR}/periodic; ${MAKE} install 8499449Sru cd ${.CURDIR}/rc.d; ${MAKE} install 8599449Sru cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall 8699449Sru cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap 8799449Sru cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt 8899449Sru cd ${.CURDIR}/pam.d; ${MAKE} install 8977041Sru.if !defined(NO_I4B) 9099449Sru cd ${.CURDIR}/isdn; ${MAKE} install 9177041Sru.endif 9273251Sgshapiro.if !defined(NO_SENDMAIL) 9399449Sru cd ${.CURDIR}/sendmail; ${MAKE} distribution 9473251Sgshapiro.endif 95120202Smarkm.if !defined(NO_OPENSSL) 9698548Sru.if !defined(NO_OPENSSH) 97100872Sru cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 9899451Sru ${SSH} ${DESTDIR}/etc/ssh 9957488Speter.endif 100100872Sru cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 10199451Sru ${SSL} ${DESTDIR}/etc/ssl 10260677Skris.endif 103120709Sphk.if !defined(NO_KERBEROS) 10499449Sru cd ${.CURDIR}/root; \ 105100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 106120709Sphk dot.k5login ${DESTDIR}/root/.k5login; 107120709Sphk.endif 108120709Sphk cd ${.CURDIR}/root; \ 109120709Sphk ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 11099451Sru dot.cshrc ${DESTDIR}/root/.cshrc; \ 111100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 11299451Sru dot.login ${DESTDIR}/root/.login; \ 113100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 11499451Sru dot.profile ${DESTDIR}/root/.profile; \ 11599451Sru rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 11699451Sru ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 11799451Sru ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile 118100872Sru cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 1191731Sjkh ${MTREE} ${DESTDIR}/etc/mtree 120100872Sru cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 1211731Sjkh ${NAMEDB} ${DESTDIR}/etc/namedb 122119058Sobrien cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 1236177Samurai ${PPPCNF} ${DESTDIR}/etc/ppp 124100872Sru cd ${.CURDIR}/mail; ${INSTALL} -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 131100872Sru ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \ 13237Srgrimes ${DESTDIR}/etc/dumpdates 133100872Sru ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \ 134147Srgrimes ${DESTDIR}/var/db/locate.database 135100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 13692100Srwatson ${DESTDIR}/var/log/auth.log 137100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 13899449Sru ${DESTDIR}/var/log/cron 139103720Smarkm ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 140113259Sdes ${DESTDIR}/var/log/debug.log 141113259Sdes ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 142103738Smarkm ${DESTDIR}/var/log/xferlog 143100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 144147Srgrimes ${DESTDIR}/var/log/lpd-errs 145100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 14637Srgrimes ${DESTDIR}/var/log/maillog 147100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 148288Srgrimes ${DESTDIR}/var/log/lastlog 149100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 150147Srgrimes ${DESTDIR}/var/log/messages 151100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 15250126Sgreen ${DESTDIR}/var/log/security 153100872Sru ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \ 15413378Sache ${DESTDIR}/var/log/slip.log 155100872Sru ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \ 15617104Spst ${DESTDIR}/var/log/ppp.log 157100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 158147Srgrimes ${DESTDIR}/var/log/wtmp 159100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 16037Srgrimes ${DESTDIR}/var/run/utmp 161100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 1621759Sjkh ${DESTDIR}/var/crash 163100872Sru cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 16499451Sru ${FREEBSD} ${DESTDIR}/ 16537Srgrimes 166147Srgrimesdistrib-dirs: 16765884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 16865884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 16965884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 17065884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 1717129Srgrimes -p ${DESTDIR}/usr/include 17295144Sgshapiro.if !defined(NO_SENDMAIL) 17395144Sgshapiro mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/ 17495144Sgshapiro.endif 175410Srgrimes cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 17677993Sache cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* . 17777993Sache cd ${DESTDIR}/usr/share/man; \ 17877993Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 17977993Sache while [ $$# -gt 0 ] ; \ 18077993Sache do \ 18177993Sache rm -rf "$$1"; \ 18277993Sache ln -s "$$2" "$$1"; \ 18377993Sache shift; shift; \ 18477993Sache done 185110663Sache cd ${DESTDIR}/usr/share/openssl/man; \ 186110663Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 187110663Sache while [ $$# -gt 0 ] ; \ 188110663Sache do \ 189110663Sache rm -rf "$$1"; \ 190110663Sache ln -s "$$2" "$$1"; \ 191110663Sache shift; shift; \ 192110663Sache done 193110655Snectar cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* . 19411635Sache cd ${DESTDIR}/usr/share/nls; \ 19577999Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ 19611635Sache while [ $$# -gt 0 ] ; \ 19711635Sache do \ 19811635Sache rm -rf "$$1"; \ 19911635Sache ln -s "$$2" "$$1"; \ 20011635Sache shift; shift; \ 20177999Sache done 202147Srgrimes 20348185Ssheldonhetc-examples: 204100872Sru cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 20599451Sru ${BIN1} ${BIN2} nsmb.conf opieaccess \ 20699451Sru ${DESTDIR}/usr/share/examples/etc 207119385Smtm cd ${.CURDIR}/defaults; ${MAKE} install \ 208119385Smtm DESTDIR=${DESTDIR}/usr/share/examples 20948185Ssheldonh 21037Srgrimes.include <bsd.prog.mk> 211