Makefile revision 158115
11195Srgrimes# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 250472Speter# $FreeBSD: head/etc/Makefile 158115 2006-04-28 12:03:38Z ume $ 337Srgrimes 4156813Sru.include <bsd.own.mk> 5156813Sru 6156813Sru.if ${MK_SENDMAIL} != "no" 738103SpeterSUBDIR= sendmail 873251Sgshapiro.endif 938103Speter 1099451SruBIN1= amd.map apmd.conf auth.conf \ 11114780Sdougb crontab csh.cshrc csh.login csh.logout devd.conf devfs.conf \ 12114780Sdougb dhclient.conf disktab fbtab ftpusers gettytab group \ 1365532Snectar hosts hosts.allow hosts.equiv hosts.lpd \ 1455230Speter inetd.conf login.access login.conf \ 15113674Smtm mac.conf motd netconfig network.subr networks newsyslog.conf \ 16148871Scperciva portsnap.conf pf.conf pf.os phones profile protocols \ 17145693Sbrooks rc rc.bsdextended rc.firewall rc.firewall6 rc.initdiskless \ 18145693Sbrooks rc.sendmail rc.shutdown \ 19145184Sglebius rc.subr remote rpc services shells \ 20153430Siedowse snmpd.config sysctl.conf syslog.conf \ 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 25155210Srwatson 26155210SrwatsonOPENBSMDIR= ${.CURDIR}/../contrib/openbsm 27155210SrwatsonBSM_ETC_OPEN_FILES= ${OPENBSMDIR}/etc/audit_class \ 28155210Srwatson ${OPENBSMDIR}/etc/audit_event 29155210SrwatsonBSM_ETC_RESTRICTED_FILES= ${OPENBSMDIR}/etc/audit_control \ 30155210Srwatson ${OPENBSMDIR}/etc/audit_user 31155210SrwatsonBSM_ETC_EXEC_FILES= ${OPENBSMDIR}/etc/audit_warn 32155210SrwatsonBSM_ETC_DIR= ${DESTDIR}/etc/security 33155210Srwatson 34156813Sru.if ${MK_LPR} != "no" 35121911SmarkmBIN1+= printcap 36121911Smarkm.endif 3737Srgrimes 38158115Sume.if ${MK_NS_CACHING} != "no" 39158115SumeBIN1+= cached.conf 40158115Sume.endif 41158115Sume 42156813Sru.if ${MK_OPENSSH} != "no" 4357488SpeterSSH= ${.CURDIR}/../crypto/openssh/ssh_config \ 4474837Sgreen ${.CURDIR}/../crypto/openssh/sshd_config \ 45124214Sdes ${.CURDIR}/../crypto/openssh/moduli 4657459Smarkm.endif 47156813Sru.if ${MK_OPENSSL} != "no" 4860677SkrisSSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf 4960677Skris.endif 5060677Skris 5182521Salex# -rwxr-xr-x root:wheel, for the new cron root:wheel 52108002SgreenBIN2= netstart pccard_ether rc.suspend rc.resume 53147Srgrimes 5427487SasamiMTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 5565168Sasami BSD.var.dist BSD.x11.dist BSD.x11-4.dist 56156813Sru.if ${MK_SENDMAIL} != "no" 5795144SgshapiroMTREE+= BSD.sendmail.dist 5895144Sgshapiro.endif 59156813Sru.if ${MK_BIND} != "no" 60135851SdougbMTREE+= BIND.chroot.dist 61156813Sru.if ${MK_BIND_LIBS} != "no" 62135851SdougbMTREE+= BIND.include.dist 63135851Sdougb.endif 64135851Sdougb.endif 6599451Sru 66156813Sru.if ${MK_BIND_ETC} != "no" 6799451SruNAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \ 6890281Sume make-localhost 69135851Sdougb.endif 7099451Sru 7199451SruPPPCNF= ppp.conf 7299451Sru 73156813Sru.if ${MK_SENDMAIL} == "no" 74117292SgshapiroETCMAIL=mailer.conf aliases 75117292Sgshapiro.else 7664598SgshapiroETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ 7764598Sgshapiro mailertable.sample aliases 78117292Sgshapiro.endif 7937Srgrimes 80263Srgrimes# Special top level files for FreeBSD 8199449SruFREEBSD=COPYRIGHT 82263Srgrimes 83124831Sruafterinstall: 84156813Sru.if ${MK_MAN} != "no" 85124831Sru cd ${.CURDIR}/../share/man; ${MAKE} makedb 86124831Sru.endif 87124831Sru 884487Sphkdistribute: 89124831Sru cd ${.CURDIR} ; ${MAKE} install DESTDIR=${DISTDIR}/${DISTRIBUTION} 9095327Sobrien cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION} 915948Sjkh 92142794Sru.include <bsd.endian.mk> 93142794Sru.if ${TARGET_ENDIANNESS} == "1234" 94152471SruCAP_MKDB_ENDIAN?= -l 95152471SruPWD_MKDB_ENDIAN?= -L 96142794Sru.elif ${TARGET_ENDIANNESS} == "4321" 97152471SruCAP_MKDB_ENDIAN?= -b 98152471SruPWD_MKDB_ENDIAN?= -B 99142794Sru.else 100149515SimpCAP_MKDB_ENDIAN?= 101149515SimpPWD_MKDB_ENDIAN?= 102142794Sru.endif 103142794Sru 1044487Sphkdistribution: 105148282Sru.if !defined(DESTDIR) 106148282Sru @echo "set DESTDIR before running \"make ${.TARGET}\"" 107148282Sru @false 108148282Sru.endif 10999449Sru cd ${.CURDIR}; \ 110100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 11199451Sru ${BIN1} ${DESTDIR}/etc; \ 112142794Sru cap_mkdb ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf; \ 113100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \ 11499451Sru ${BIN2} ${DESTDIR}/etc; \ 115100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 11699451Sru master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \ 117148053Sru pwd_mkdb ${PWD_MKDB_ENDIAN} -i -p -d ${DESTDIR}/etc \ 118142838Sru ${DESTDIR}/etc/master.passwd 119121580Semax cd ${.CURDIR}/bluetooth; ${MAKE} install 120119385Smtm cd ${.CURDIR}/defaults; ${MAKE} install 121153838Sdfr cd ${.CURDIR}/gss; ${MAKE} install 12299449Sru cd ${.CURDIR}/periodic; ${MAKE} install 12399449Sru cd ${.CURDIR}/rc.d; ${MAKE} install 12499449Sru cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall 12599449Sru cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap 12699449Sru cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt 12799449Sru cd ${.CURDIR}/pam.d; ${MAKE} install 128155210Srwatson cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0444 \ 129155210Srwatson ${BSM_ETC_OPEN_FILES} ${BSM_ETC_DIR} 130155571Srwatson cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0600 \ 131155210Srwatson ${BSM_ETC_RESTRICTED_FILES} ${BSM_ETC_DIR} 132155210Srwatson cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0500 \ 133155210Srwatson ${BSM_ETC_EXEC_FILES} ${BSM_ETC_DIR} 134156813Sru.if ${MK_I4B} != "no" 13599449Sru cd ${.CURDIR}/isdn; ${MAKE} install 13677041Sru.endif 137156813Sru.if ${MK_SENDMAIL} != "no" 13899449Sru cd ${.CURDIR}/sendmail; ${MAKE} distribution 13973251Sgshapiro.endif 140156813Sru.if ${MK_OPENSSH} != "no" 141100872Sru cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 14299451Sru ${SSH} ${DESTDIR}/etc/ssh 14357488Speter.endif 144156813Sru.if ${MK_OPENSSL} != "no" 145100872Sru cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 14699451Sru ${SSL} ${DESTDIR}/etc/ssl 14760677Skris.endif 148156813Sru.if ${MK_KERBEROS} != "no" 14999449Sru cd ${.CURDIR}/root; \ 150100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 151120709Sphk dot.k5login ${DESTDIR}/root/.k5login; 152120709Sphk.endif 153120709Sphk cd ${.CURDIR}/root; \ 154120709Sphk ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 15599451Sru dot.cshrc ${DESTDIR}/root/.cshrc; \ 156100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 15799451Sru dot.login ${DESTDIR}/root/.login; \ 158100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 15999451Sru dot.profile ${DESTDIR}/root/.profile; \ 16099451Sru rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 16199451Sru ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 16299451Sru ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile 163100872Sru cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 1641731Sjkh ${MTREE} ${DESTDIR}/etc/mtree 165156813Sru.if ${MK_BIND_ETC} != "no" 166100872Sru cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 167135963Sdougb ${NAMEDB} ${DESTDIR}/var/named/etc/namedb 168135851Sdougb.endif 169156813Sru.if ${MK_BIND_MTREE} != "no" 170136242Sdougb @if [ ! -e ${DESTDIR}/etc/namedb ]; then \ 171136242Sdougb set -x; \ 172136242Sdougb ln -s ../var/named/etc/namedb ${DESTDIR}/etc/namedb; \ 173136242Sdougb fi 174136242Sdougb.endif 175119058Sobrien cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 1766177Samurai ${PPPCNF} ${DESTDIR}/etc/ppp 177100872Sru cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 17864598Sgshapiro ${ETCMAIL} ${DESTDIR}/etc/mail 17964629Sgshapiro @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 18064629Sgshapiro ! -f ${DESTDIR}/etc/aliases ]; then \ 18164629Sgshapiro set -x; \ 18264629Sgshapiro ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 18364629Sgshapiro fi 184100872Sru ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \ 18537Srgrimes ${DESTDIR}/etc/dumpdates 186100872Sru ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \ 187147Srgrimes ${DESTDIR}/var/db/locate.database 188100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 1891759Sjkh ${DESTDIR}/var/crash 190100872Sru cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 19199451Sru ${FREEBSD} ${DESTDIR}/ 192126977Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 193126977Sru ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \ 194126977Sru ${DESTDIR}/boot/device.hints 19537Srgrimes 196147Srgrimesdistrib-dirs: 197127339Sdes mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 198127339Sdes mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 199127339Sdes mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 200127339Sdes mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 2017129Srgrimes -p ${DESTDIR}/usr/include 202156813Sru.if ${MK_BIND_LIBS} != "no" 203135875Sdougb mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.include.dist \ 204135875Sdougb -p ${DESTDIR}/usr/include 205135875Sdougb.endif 206156813Sru.if ${MK_BIND_MTREE} != "no" 207135875Sdougb mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.chroot.dist \ 208135875Sdougb -p ${DESTDIR}/var/named 209135875Sdougb.endif 210156813Sru.if ${MK_SENDMAIL} != "no" 21195144Sgshapiro mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/ 21295144Sgshapiro.endif 213410Srgrimes cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 21477993Sache cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* . 21577993Sache cd ${DESTDIR}/usr/share/man; \ 21677993Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 21777993Sache while [ $$# -gt 0 ] ; \ 21877993Sache do \ 21977993Sache rm -rf "$$1"; \ 22077993Sache ln -s "$$2" "$$1"; \ 22177993Sache shift; shift; \ 22277993Sache done 223110663Sache cd ${DESTDIR}/usr/share/openssl/man; \ 224110663Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 225110663Sache while [ $$# -gt 0 ] ; \ 226110663Sache do \ 227110663Sache rm -rf "$$1"; \ 228110663Sache ln -s "$$2" "$$1"; \ 229110663Sache shift; shift; \ 230110663Sache done 231110655Snectar cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* . 23211635Sache cd ${DESTDIR}/usr/share/nls; \ 23377999Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ 23411635Sache while [ $$# -gt 0 ] ; \ 23511635Sache do \ 23611635Sache rm -rf "$$1"; \ 23711635Sache ln -s "$$2" "$$1"; \ 23811635Sache shift; shift; \ 23977999Sache done 240147Srgrimes 24148185Ssheldonhetc-examples: 242100872Sru cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 24399451Sru ${BIN1} ${BIN2} nsmb.conf opieaccess \ 24499451Sru ${DESTDIR}/usr/share/examples/etc 245119385Smtm cd ${.CURDIR}/defaults; ${MAKE} install \ 246119385Smtm DESTDIR=${DESTDIR}/usr/share/examples 24748185Ssheldonh 24837Srgrimes.include <bsd.prog.mk> 249