Makefile revision 161748
11195Srgrimes# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 250472Speter# $FreeBSD: head/etc/Makefile 161748 2006-08-31 09:51:34Z cperciva $ 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 \ 12161748Scperciva dhclient.conf disktab fbtab freebsd-update.conf \ 13161748Scperciva ftpusers gettytab group \ 1465532Snectar hosts hosts.allow hosts.equiv hosts.lpd \ 15158266Sume inetd.conf login.access login.conf mac.conf motd \ 16158266Sume netconfig network.subr networks newsyslog.conf nsswitch.conf \ 17148871Scperciva portsnap.conf pf.conf pf.os phones profile protocols \ 18145693Sbrooks rc rc.bsdextended rc.firewall rc.firewall6 rc.initdiskless \ 19145693Sbrooks rc.sendmail rc.shutdown \ 20145184Sglebius rc.subr remote rpc services shells \ 21153430Siedowse snmpd.config sysctl.conf syslog.conf \ 2255230Speter etc.${MACHINE_ARCH}/ttys \ 231734Sjkh ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 2417639Swosch ${.CURDIR}/../usr.bin/mail/misc/mail.rc \ 2517639Swosch ${.CURDIR}/../usr.bin/locate/locate/locate.rc 26155210Srwatson 27155210SrwatsonOPENBSMDIR= ${.CURDIR}/../contrib/openbsm 28155210SrwatsonBSM_ETC_OPEN_FILES= ${OPENBSMDIR}/etc/audit_class \ 29155210Srwatson ${OPENBSMDIR}/etc/audit_event 30155210SrwatsonBSM_ETC_RESTRICTED_FILES= ${OPENBSMDIR}/etc/audit_control \ 31155210Srwatson ${OPENBSMDIR}/etc/audit_user 32155210SrwatsonBSM_ETC_EXEC_FILES= ${OPENBSMDIR}/etc/audit_warn 33155210SrwatsonBSM_ETC_DIR= ${DESTDIR}/etc/security 34155210Srwatson 35156813Sru.if ${MK_LPR} != "no" 36121911SmarkmBIN1+= printcap 37121911Smarkm.endif 3837Srgrimes 39158115Sume.if ${MK_NS_CACHING} != "no" 40158115SumeBIN1+= cached.conf 41158115Sume.endif 42158115Sume 43156813Sru.if ${MK_OPENSSH} != "no" 4457488SpeterSSH= ${.CURDIR}/../crypto/openssh/ssh_config \ 4574837Sgreen ${.CURDIR}/../crypto/openssh/sshd_config \ 46124214Sdes ${.CURDIR}/../crypto/openssh/moduli 4757459Smarkm.endif 48156813Sru.if ${MK_OPENSSL} != "no" 4960677SkrisSSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf 5060677Skris.endif 5160677Skris 5282521Salex# -rwxr-xr-x root:wheel, for the new cron root:wheel 53108002SgreenBIN2= netstart pccard_ether rc.suspend rc.resume 54147Srgrimes 5527487SasamiMTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 5665168Sasami BSD.var.dist BSD.x11.dist BSD.x11-4.dist 57156813Sru.if ${MK_SENDMAIL} != "no" 5895144SgshapiroMTREE+= BSD.sendmail.dist 5995144Sgshapiro.endif 60156813Sru.if ${MK_BIND} != "no" 61135851SdougbMTREE+= BIND.chroot.dist 62156813Sru.if ${MK_BIND_LIBS} != "no" 63135851SdougbMTREE+= BIND.include.dist 64135851Sdougb.endif 65135851Sdougb.endif 6699451Sru 67156813Sru.if ${MK_BIND_ETC} != "no" 6899451SruNAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \ 6990281Sume make-localhost 70135851Sdougb.endif 7199451Sru 7299451SruPPPCNF= ppp.conf 7399451Sru 74156813Sru.if ${MK_SENDMAIL} == "no" 75117292SgshapiroETCMAIL=mailer.conf aliases 76117292Sgshapiro.else 7764598SgshapiroETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ 7864598Sgshapiro mailertable.sample aliases 79117292Sgshapiro.endif 8037Srgrimes 81263Srgrimes# Special top level files for FreeBSD 8299449SruFREEBSD=COPYRIGHT 83263Srgrimes 84124831Sruafterinstall: 85156813Sru.if ${MK_MAN} != "no" 86124831Sru cd ${.CURDIR}/../share/man; ${MAKE} makedb 87124831Sru.endif 88124831Sru 894487Sphkdistribute: 90124831Sru cd ${.CURDIR} ; ${MAKE} install DESTDIR=${DISTDIR}/${DISTRIBUTION} 9195327Sobrien cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION} 925948Sjkh 93142794Sru.include <bsd.endian.mk> 94142794Sru.if ${TARGET_ENDIANNESS} == "1234" 95152471SruCAP_MKDB_ENDIAN?= -l 96152471SruPWD_MKDB_ENDIAN?= -L 97142794Sru.elif ${TARGET_ENDIANNESS} == "4321" 98152471SruCAP_MKDB_ENDIAN?= -b 99152471SruPWD_MKDB_ENDIAN?= -B 100142794Sru.else 101149515SimpCAP_MKDB_ENDIAN?= 102149515SimpPWD_MKDB_ENDIAN?= 103142794Sru.endif 104142794Sru 1054487Sphkdistribution: 106148282Sru.if !defined(DESTDIR) 107148282Sru @echo "set DESTDIR before running \"make ${.TARGET}\"" 108148282Sru @false 109148282Sru.endif 11099449Sru cd ${.CURDIR}; \ 111100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 11299451Sru ${BIN1} ${DESTDIR}/etc; \ 113142794Sru cap_mkdb ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf; \ 114100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \ 11599451Sru ${BIN2} ${DESTDIR}/etc; \ 116100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 11799451Sru master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \ 118148053Sru pwd_mkdb ${PWD_MKDB_ENDIAN} -i -p -d ${DESTDIR}/etc \ 119142838Sru ${DESTDIR}/etc/master.passwd 120121580Semax cd ${.CURDIR}/bluetooth; ${MAKE} install 121119385Smtm cd ${.CURDIR}/defaults; ${MAKE} install 122153838Sdfr cd ${.CURDIR}/gss; ${MAKE} install 12399449Sru cd ${.CURDIR}/periodic; ${MAKE} install 12499449Sru cd ${.CURDIR}/rc.d; ${MAKE} install 12599449Sru cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall 12699449Sru cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap 12799449Sru cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt 12899449Sru cd ${.CURDIR}/pam.d; ${MAKE} install 129155210Srwatson cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0444 \ 130155210Srwatson ${BSM_ETC_OPEN_FILES} ${BSM_ETC_DIR} 131155571Srwatson cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0600 \ 132155210Srwatson ${BSM_ETC_RESTRICTED_FILES} ${BSM_ETC_DIR} 133155210Srwatson cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0500 \ 134155210Srwatson ${BSM_ETC_EXEC_FILES} ${BSM_ETC_DIR} 135156813Sru.if ${MK_I4B} != "no" 13699449Sru cd ${.CURDIR}/isdn; ${MAKE} install 13777041Sru.endif 138156813Sru.if ${MK_SENDMAIL} != "no" 13999449Sru cd ${.CURDIR}/sendmail; ${MAKE} distribution 14073251Sgshapiro.endif 141156813Sru.if ${MK_OPENSSH} != "no" 142100872Sru cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 14399451Sru ${SSH} ${DESTDIR}/etc/ssh 14457488Speter.endif 145156813Sru.if ${MK_OPENSSL} != "no" 146100872Sru cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 14799451Sru ${SSL} ${DESTDIR}/etc/ssl 14860677Skris.endif 149156813Sru.if ${MK_KERBEROS} != "no" 15099449Sru cd ${.CURDIR}/root; \ 151100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 152120709Sphk dot.k5login ${DESTDIR}/root/.k5login; 153120709Sphk.endif 154120709Sphk cd ${.CURDIR}/root; \ 155120709Sphk ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 15699451Sru dot.cshrc ${DESTDIR}/root/.cshrc; \ 157100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 15899451Sru dot.login ${DESTDIR}/root/.login; \ 159100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 16099451Sru dot.profile ${DESTDIR}/root/.profile; \ 16199451Sru rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 16299451Sru ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 16399451Sru ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile 164100872Sru cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 1651731Sjkh ${MTREE} ${DESTDIR}/etc/mtree 166156813Sru.if ${MK_BIND_ETC} != "no" 167100872Sru cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 168135963Sdougb ${NAMEDB} ${DESTDIR}/var/named/etc/namedb 169135851Sdougb.endif 170156813Sru.if ${MK_BIND_MTREE} != "no" 171136242Sdougb @if [ ! -e ${DESTDIR}/etc/namedb ]; then \ 172136242Sdougb set -x; \ 173136242Sdougb ln -s ../var/named/etc/namedb ${DESTDIR}/etc/namedb; \ 174136242Sdougb fi 175136242Sdougb.endif 176119058Sobrien cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 1776177Samurai ${PPPCNF} ${DESTDIR}/etc/ppp 178100872Sru cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 17964598Sgshapiro ${ETCMAIL} ${DESTDIR}/etc/mail 18064629Sgshapiro @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 18164629Sgshapiro ! -f ${DESTDIR}/etc/aliases ]; then \ 18264629Sgshapiro set -x; \ 18364629Sgshapiro ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 18464629Sgshapiro fi 185100872Sru ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \ 18637Srgrimes ${DESTDIR}/etc/dumpdates 187100872Sru ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \ 188147Srgrimes ${DESTDIR}/var/db/locate.database 189100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 1901759Sjkh ${DESTDIR}/var/crash 191100872Sru cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 19299451Sru ${FREEBSD} ${DESTDIR}/ 193126977Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 194126977Sru ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \ 195126977Sru ${DESTDIR}/boot/device.hints 19637Srgrimes 197147Srgrimesdistrib-dirs: 198127339Sdes mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 199127339Sdes mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 200127339Sdes mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 201127339Sdes mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 2027129Srgrimes -p ${DESTDIR}/usr/include 203156813Sru.if ${MK_BIND_LIBS} != "no" 204135875Sdougb mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.include.dist \ 205135875Sdougb -p ${DESTDIR}/usr/include 206135875Sdougb.endif 207156813Sru.if ${MK_BIND_MTREE} != "no" 208135875Sdougb mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.chroot.dist \ 209135875Sdougb -p ${DESTDIR}/var/named 210135875Sdougb.endif 211156813Sru.if ${MK_SENDMAIL} != "no" 21295144Sgshapiro mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/ 21395144Sgshapiro.endif 214410Srgrimes cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 21577993Sache cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* . 21677993Sache cd ${DESTDIR}/usr/share/man; \ 21777993Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 21877993Sache while [ $$# -gt 0 ] ; \ 21977993Sache do \ 22077993Sache rm -rf "$$1"; \ 22177993Sache ln -s "$$2" "$$1"; \ 22277993Sache shift; shift; \ 22377993Sache done 224110663Sache cd ${DESTDIR}/usr/share/openssl/man; \ 225110663Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 226110663Sache while [ $$# -gt 0 ] ; \ 227110663Sache do \ 228110663Sache rm -rf "$$1"; \ 229110663Sache ln -s "$$2" "$$1"; \ 230110663Sache shift; shift; \ 231110663Sache done 232110655Snectar cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* . 23311635Sache cd ${DESTDIR}/usr/share/nls; \ 23477999Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ 23511635Sache while [ $$# -gt 0 ] ; \ 23611635Sache do \ 23711635Sache rm -rf "$$1"; \ 23811635Sache ln -s "$$2" "$$1"; \ 23911635Sache shift; shift; \ 24077999Sache done 241147Srgrimes 24248185Ssheldonhetc-examples: 243100872Sru cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 24499451Sru ${BIN1} ${BIN2} nsmb.conf opieaccess \ 24599451Sru ${DESTDIR}/usr/share/examples/etc 246119385Smtm cd ${.CURDIR}/defaults; ${MAKE} install \ 247119385Smtm DESTDIR=${DESTDIR}/usr/share/examples 24848185Ssheldonh 24937Srgrimes.include <bsd.prog.mk> 250