Makefile revision 161748
155714Skris# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 255714Skris# $FreeBSD: head/etc/Makefile 161748 2006-08-31 09:51:34Z cperciva $ 355714Skris 455714Skris.include <bsd.own.mk> 555714Skris 655714Skris.if ${MK_SENDMAIL} != "no" 755714SkrisSUBDIR= sendmail 8296465Sdelphij.endif 955714Skris 1055714SkrisBIN1= amd.map apmd.conf auth.conf \ 1155714Skris crontab csh.cshrc csh.login csh.logout devd.conf devfs.conf \ 1255714Skris dhclient.conf disktab fbtab freebsd-update.conf \ 1355714Skris ftpusers gettytab group \ 1455714Skris hosts hosts.allow hosts.equiv hosts.lpd \ 15296465Sdelphij inetd.conf login.access login.conf mac.conf motd \ 1655714Skris netconfig network.subr networks newsyslog.conf nsswitch.conf \ 1755714Skris portsnap.conf pf.conf pf.os phones profile protocols \ 1855714Skris rc rc.bsdextended rc.firewall rc.firewall6 rc.initdiskless \ 1955714Skris rc.sendmail rc.shutdown \ 2055714Skris rc.subr remote rpc services shells \ 2155714Skris snmpd.config sysctl.conf syslog.conf \ 22296465Sdelphij etc.${MACHINE_ARCH}/ttys \ 2355714Skris ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 2455714Skris ${.CURDIR}/../usr.bin/mail/misc/mail.rc \ 2555714Skris ${.CURDIR}/../usr.bin/locate/locate/locate.rc 2655714Skris 2755714SkrisOPENBSMDIR= ${.CURDIR}/../contrib/openbsm 2855714SkrisBSM_ETC_OPEN_FILES= ${OPENBSMDIR}/etc/audit_class \ 2955714Skris ${OPENBSMDIR}/etc/audit_event 3055714SkrisBSM_ETC_RESTRICTED_FILES= ${OPENBSMDIR}/etc/audit_control \ 3155714Skris ${OPENBSMDIR}/etc/audit_user 3255714SkrisBSM_ETC_EXEC_FILES= ${OPENBSMDIR}/etc/audit_warn 3355714SkrisBSM_ETC_DIR= ${DESTDIR}/etc/security 3455714Skris 3555714Skris.if ${MK_LPR} != "no" 3655714SkrisBIN1+= printcap 37296465Sdelphij.endif 3855714Skris 3955714Skris.if ${MK_NS_CACHING} != "no" 40296465SdelphijBIN1+= cached.conf 4155714Skris.endif 4255714Skris 4355714Skris.if ${MK_OPENSSH} != "no" 4455714SkrisSSH= ${.CURDIR}/../crypto/openssh/ssh_config \ 4555714Skris ${.CURDIR}/../crypto/openssh/sshd_config \ 4655714Skris ${.CURDIR}/../crypto/openssh/moduli 4755714Skris.endif 4855714Skris.if ${MK_OPENSSL} != "no" 4955714SkrisSSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf 5055714Skris.endif 5155714Skris 52296465Sdelphij# -rwxr-xr-x root:wheel, for the new cron root:wheel 5355714SkrisBIN2= netstart pccard_ether rc.suspend rc.resume 5455714Skris 5555714SkrisMTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 5655714Skris BSD.var.dist BSD.x11.dist BSD.x11-4.dist 5755714Skris.if ${MK_SENDMAIL} != "no" 5855714SkrisMTREE+= BSD.sendmail.dist 5955714Skris.endif 6055714Skris.if ${MK_BIND} != "no" 6155714SkrisMTREE+= BIND.chroot.dist 6255714Skris.if ${MK_BIND_LIBS} != "no" 6355714SkrisMTREE+= BIND.include.dist 64296465Sdelphij.endif 65296465Sdelphij.endif 66194206Ssimon 6755714Skris.if ${MK_BIND_ETC} != "no" 6855714SkrisNAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \ 6955714Skris make-localhost 7055714Skris.endif 7155714Skris 7255714SkrisPPPCNF= ppp.conf 7355714Skris 74194206Ssimon.if ${MK_SENDMAIL} == "no" 75194206SsimonETCMAIL=mailer.conf aliases 76109998Smarkm.else 77296465SdelphijETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ 78296465Sdelphij mailertable.sample aliases 79296465Sdelphij.endif 80296465Sdelphij 81296465Sdelphij# Special top level files for FreeBSD 8255714SkrisFREEBSD=COPYRIGHT 83296465Sdelphij 84296465Sdelphijafterinstall: 85296465Sdelphij.if ${MK_MAN} != "no" 86296465Sdelphij cd ${.CURDIR}/../share/man; ${MAKE} makedb 87296465Sdelphij.endif 88296465Sdelphij 89296465Sdelphijdistribute: 9055714Skris cd ${.CURDIR} ; ${MAKE} install DESTDIR=${DISTDIR}/${DISTRIBUTION} 91296465Sdelphij cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION} 92296465Sdelphij 93296465Sdelphij.include <bsd.endian.mk> 94296465Sdelphij.if ${TARGET_ENDIANNESS} == "1234" 95296465SdelphijCAP_MKDB_ENDIAN?= -l 96296465SdelphijPWD_MKDB_ENDIAN?= -L 97296465Sdelphij.elif ${TARGET_ENDIANNESS} == "4321" 98296465SdelphijCAP_MKDB_ENDIAN?= -b 99296465SdelphijPWD_MKDB_ENDIAN?= -B 100296465Sdelphij.else 101296465SdelphijCAP_MKDB_ENDIAN?= 102296465SdelphijPWD_MKDB_ENDIAN?= 103296465Sdelphij.endif 104296465Sdelphij 105296465Sdelphijdistribution: 106296465Sdelphij.if !defined(DESTDIR) 107296465Sdelphij @echo "set DESTDIR before running \"make ${.TARGET}\"" 108296465Sdelphij @false 10955714Skris.endif 110296465Sdelphij cd ${.CURDIR}; \ 111296465Sdelphij ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 112296465Sdelphij ${BIN1} ${DESTDIR}/etc; \ 113296465Sdelphij cap_mkdb ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf; \ 114296465Sdelphij ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \ 115296465Sdelphij ${BIN2} ${DESTDIR}/etc; \ 116296465Sdelphij ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 117296465Sdelphij master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \ 118296465Sdelphij pwd_mkdb ${PWD_MKDB_ENDIAN} -i -p -d ${DESTDIR}/etc \ 119296465Sdelphij ${DESTDIR}/etc/master.passwd 120296465Sdelphij cd ${.CURDIR}/bluetooth; ${MAKE} install 121296465Sdelphij cd ${.CURDIR}/defaults; ${MAKE} install 122296465Sdelphij cd ${.CURDIR}/gss; ${MAKE} install 123296465Sdelphij cd ${.CURDIR}/periodic; ${MAKE} install 124296465Sdelphij cd ${.CURDIR}/rc.d; ${MAKE} install 125296465Sdelphij cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall 126142425Snectar cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap 127160814Ssimon cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt 128296465Sdelphij cd ${.CURDIR}/pam.d; ${MAKE} install 129296465Sdelphij cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0444 \ 130296465Sdelphij ${BSM_ETC_OPEN_FILES} ${BSM_ETC_DIR} 131160814Ssimon cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0600 \ 132296465Sdelphij ${BSM_ETC_RESTRICTED_FILES} ${BSM_ETC_DIR} 133296465Sdelphij cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0500 \ 134296465Sdelphij ${BSM_ETC_EXEC_FILES} ${BSM_ETC_DIR} 135296465Sdelphij.if ${MK_I4B} != "no" 136296465Sdelphij cd ${.CURDIR}/isdn; ${MAKE} install 137296465Sdelphij.endif 138296465Sdelphij.if ${MK_SENDMAIL} != "no" 139296465Sdelphij cd ${.CURDIR}/sendmail; ${MAKE} distribution 140296465Sdelphij.endif 141296465Sdelphij.if ${MK_OPENSSH} != "no" 142296465Sdelphij cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 143160814Ssimon ${SSH} ${DESTDIR}/etc/ssh 144296465Sdelphij.endif 145296465Sdelphij.if ${MK_OPENSSL} != "no" 146296465Sdelphij cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 147296465Sdelphij ${SSL} ${DESTDIR}/etc/ssl 148296465Sdelphij.endif 149296465Sdelphij.if ${MK_KERBEROS} != "no" 150194206Ssimon cd ${.CURDIR}/root; \ 151194206Ssimon ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 152 dot.k5login ${DESTDIR}/root/.k5login; 153.endif 154 cd ${.CURDIR}/root; \ 155 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 156 dot.cshrc ${DESTDIR}/root/.cshrc; \ 157 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 158 dot.login ${DESTDIR}/root/.login; \ 159 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 160 dot.profile ${DESTDIR}/root/.profile; \ 161 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 162 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 163 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile 164 cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 165 ${MTREE} ${DESTDIR}/etc/mtree 166.if ${MK_BIND_ETC} != "no" 167 cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 168 ${NAMEDB} ${DESTDIR}/var/named/etc/namedb 169.endif 170.if ${MK_BIND_MTREE} != "no" 171 @if [ ! -e ${DESTDIR}/etc/namedb ]; then \ 172 set -x; \ 173 ln -s ../var/named/etc/namedb ${DESTDIR}/etc/namedb; \ 174 fi 175.endif 176 cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 177 ${PPPCNF} ${DESTDIR}/etc/ppp 178 cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 179 ${ETCMAIL} ${DESTDIR}/etc/mail 180 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 181 ! -f ${DESTDIR}/etc/aliases ]; then \ 182 set -x; \ 183 ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 184 fi 185 ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \ 186 ${DESTDIR}/etc/dumpdates 187 ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \ 188 ${DESTDIR}/var/db/locate.database 189 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 190 ${DESTDIR}/var/crash 191 cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 192 ${FREEBSD} ${DESTDIR}/ 193 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 194 ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \ 195 ${DESTDIR}/boot/device.hints 196 197distrib-dirs: 198 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 199 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 200 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 201 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 202 -p ${DESTDIR}/usr/include 203.if ${MK_BIND_LIBS} != "no" 204 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.include.dist \ 205 -p ${DESTDIR}/usr/include 206.endif 207.if ${MK_BIND_MTREE} != "no" 208 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.chroot.dist \ 209 -p ${DESTDIR}/var/named 210.endif 211.if ${MK_SENDMAIL} != "no" 212 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/ 213.endif 214 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 215 cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* . 216 cd ${DESTDIR}/usr/share/man; \ 217 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 218 while [ $$# -gt 0 ] ; \ 219 do \ 220 rm -rf "$$1"; \ 221 ln -s "$$2" "$$1"; \ 222 shift; shift; \ 223 done 224 cd ${DESTDIR}/usr/share/openssl/man; \ 225 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 226 while [ $$# -gt 0 ] ; \ 227 do \ 228 rm -rf "$$1"; \ 229 ln -s "$$2" "$$1"; \ 230 shift; shift; \ 231 done 232 cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* . 233 cd ${DESTDIR}/usr/share/nls; \ 234 set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ 235 while [ $$# -gt 0 ] ; \ 236 do \ 237 rm -rf "$$1"; \ 238 ln -s "$$2" "$$1"; \ 239 shift; shift; \ 240 done 241 242etc-examples: 243 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 244 ${BIN1} ${BIN2} nsmb.conf opieaccess \ 245 ${DESTDIR}/usr/share/examples/etc 246 cd ${.CURDIR}/defaults; ${MAKE} install \ 247 DESTDIR=${DESTDIR}/usr/share/examples 248 249.include <bsd.prog.mk> 250