Makefile revision 172631
10SN/A# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 22362SN/A# $FreeBSD: head/etc/Makefile 172631 2007-10-14 10:45:31Z netchild $ 30SN/A 40SN/A.include <bsd.own.mk> 50SN/A 60SN/A.if ${MK_SENDMAIL} != "no" 72362SN/ASUBDIR= sendmail 80SN/A.endif 92362SN/A 100SN/ABIN1= amd.map apmd.conf auth.conf \ 110SN/A crontab csh.cshrc csh.login csh.logout devd.conf devfs.conf \ 120SN/A dhclient.conf disktab fbtab freebsd-update.conf \ 130SN/A ftpusers gettytab group \ 140SN/A hosts hosts.allow hosts.equiv hosts.lpd \ 150SN/A inetd.conf libalias.conf login.access login.conf mac.conf motd \ 160SN/A netconfig network.subr networks newsyslog.conf nsswitch.conf \ 170SN/A portsnap.conf pf.conf pf.os phones profile protocols \ 180SN/A rc rc.bsdextended rc.firewall rc.firewall6 rc.initdiskless \ 190SN/A rc.sendmail rc.shutdown \ 200SN/A rc.subr remote rpc sensorsd.conf services shells \ 212362SN/A snmpd.config sysctl.conf syslog.conf \ 222362SN/A etc.${MACHINE_ARCH}/ttys \ 232362SN/A ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 240SN/A ${.CURDIR}/../usr.bin/mail/misc/mail.rc \ 250SN/A ${.CURDIR}/../usr.bin/locate/locate/locate.rc 260SN/A 270SN/AOPENBSMDIR= ${.CURDIR}/../contrib/openbsm 2814265SredestadBSM_ETC_OPEN_FILES= ${OPENBSMDIR}/etc/audit_class \ 2914265Sredestad ${OPENBSMDIR}/etc/audit_event 3014265SredestadBSM_ETC_RESTRICTED_FILES= ${OPENBSMDIR}/etc/audit_control \ 3114265Sredestad ${OPENBSMDIR}/etc/audit_user 320SN/ABSM_ETC_EXEC_FILES= ${OPENBSMDIR}/etc/audit_warn 330SN/ABSM_ETC_DIR= ${DESTDIR}/etc/security 340SN/A 350SN/A.if ${MK_LPR} != "no" 360SN/ABIN1+= printcap 370SN/A.endif 380SN/A 390SN/A.if ${MK_NS_CACHING} != "no" 4011882SavstepanBIN1+= cached.conf 410SN/A.endif 420SN/A 430SN/A.if ${MK_OPENSSH} != "no" 440SN/ASSH= ${.CURDIR}/../crypto/openssh/ssh_config \ 450SN/A ${.CURDIR}/../crypto/openssh/sshd_config \ 460SN/A ${.CURDIR}/../crypto/openssh/moduli 470SN/A.endif 480SN/A.if ${MK_OPENSSL} != "no" 490SN/ASSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf 500SN/A.endif 510SN/A 520SN/A# -rwxr-xr-x root:wheel, for the new cron root:wheel 5314265SredestadBIN2= netstart pccard_ether rc.suspend rc.resume 540SN/A 550SN/AMTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 560SN/A BSD.var.dist BSD.x11.dist BSD.x11-4.dist 570SN/A.if ${MK_SENDMAIL} != "no" 580SN/AMTREE+= BSD.sendmail.dist 590SN/A.endif 600SN/A.if ${MK_BIND} != "no" 610SN/AMTREE+= BIND.chroot.dist 620SN/A.if ${MK_BIND_LIBS} != "no" 630SN/AMTREE+= BIND.include.dist 640SN/A.endif 650SN/A.endif 660SN/A 670SN/APPPCNF= ppp.conf 680SN/A 690SN/A.if ${MK_SENDMAIL} == "no" 700SN/AETCMAIL=mailer.conf aliases 710SN/A.else 7211882SavstepanETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ 730SN/A mailertable.sample aliases 740SN/A.endif 750SN/A 760SN/A# Special top level files for FreeBSD 770SN/AFREEBSD=COPYRIGHT 780SN/A 790SN/Aafterinstall: 800SN/A.if ${MK_MAN} != "no" 810SN/A cd ${.CURDIR}/../share/man; ${MAKE} makedb 820SN/A.endif 830SN/A 840SN/Adistribute: 850SN/A cd ${.CURDIR} ; ${MAKE} install DESTDIR=${DISTDIR}/${DISTRIBUTION} 860SN/A cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION} 870SN/A 880SN/A.include <bsd.endian.mk> 890SN/A.if ${TARGET_ENDIANNESS} == "1234" 9014265SredestadCAP_MKDB_ENDIAN?= -l 9114265SredestadPWD_MKDB_ENDIAN?= -L 9214265Sredestad.elif ${TARGET_ENDIANNESS} == "4321" 9314265SredestadCAP_MKDB_ENDIAN?= -b 9414265SredestadPWD_MKDB_ENDIAN?= -B 9514265Sredestad.else 9614359SredestadCAP_MKDB_ENDIAN?= 9714359SredestadPWD_MKDB_ENDIAN?= 9814359Sredestad.endif 9914359Sredestad 10014359Sredestaddistribution: 10114265Sredestad.if !defined(DESTDIR) 10214265Sredestad @echo "set DESTDIR before running \"make ${.TARGET}\"" 10314359Sredestad @false 10414265Sredestad.endif 10514265Sredestad cd ${.CURDIR}; \ 10614265Sredestad ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 10714265Sredestad ${BIN1} ${DESTDIR}/etc; \ 10814265Sredestad cap_mkdb ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf; \ 10914265Sredestad ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \ 11014265Sredestad ${BIN2} ${DESTDIR}/etc; \ 11114265Sredestad ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 11214265Sredestad master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \ 11314265Sredestad pwd_mkdb ${PWD_MKDB_ENDIAN} -i -p -d ${DESTDIR}/etc \ 11414265Sredestad ${DESTDIR}/etc/master.passwd 11514265Sredestad cd ${.CURDIR}/bluetooth; ${MAKE} install 11614265Sredestad cd ${.CURDIR}/defaults; ${MAKE} install 11714359Sredestad cd ${.CURDIR}/gss; ${MAKE} install 11814359Sredestad cd ${.CURDIR}/periodic; ${MAKE} install 11914359Sredestad cd ${.CURDIR}/rc.d; ${MAKE} install 12014359Sredestad cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall 12114359Sredestad cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap 12214265Sredestad cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt 12314265Sredestad cd ${.CURDIR}/pam.d; ${MAKE} install 12414265Sredestad cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0444 \ 12514359Sredestad ${BSM_ETC_OPEN_FILES} ${BSM_ETC_DIR} 12614359Sredestad cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0600 \ 12714265Sredestad ${BSM_ETC_RESTRICTED_FILES} ${BSM_ETC_DIR} 12814265Sredestad cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0500 \ 12914265Sredestad ${BSM_ETC_EXEC_FILES} ${BSM_ETC_DIR} 13014265Sredestad.if ${MK_I4B} != "no" 13114265Sredestad cd ${.CURDIR}/isdn; ${MAKE} install 13214265Sredestad.endif 13314265Sredestad.if ${MK_BIND_MTREE} != "no" 13414265Sredestad @if [ ! -e ${DESTDIR}/etc/namedb ]; then \ 13514265Sredestad set -x; \ 13614265Sredestad ln -s ../var/named/etc/namedb ${DESTDIR}/etc/namedb; \ 13714265Sredestad fi 13814265Sredestad.endif 13914265Sredestad.if ${MK_BIND_ETC} != "no" 14014359Sredestad cd ${.CURDIR}/namedb; ${MAKE} install 14114359Sredestad.endif 14214359Sredestad.if ${MK_SENDMAIL} != "no" 14314359Sredestad cd ${.CURDIR}/sendmail; ${MAKE} distribution 14414359Sredestad.endif 14514265Sredestad.if ${MK_OPENSSH} != "no" 14614359Sredestad cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 14714265Sredestad ${SSH} ${DESTDIR}/etc/ssh 14814265Sredestad.endif 14914265Sredestad.if ${MK_OPENSSL} != "no" 15014265Sredestad cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 15114265Sredestad ${SSL} ${DESTDIR}/etc/ssl 15214265Sredestad.endif 15314265Sredestad.if ${MK_KERBEROS} != "no" 15414265Sredestad cd ${.CURDIR}/root; \ 15514265Sredestad ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 15614265Sredestad dot.k5login ${DESTDIR}/root/.k5login; 15714265Sredestad.endif 15814265Sredestad cd ${.CURDIR}/root; \ 1590SN/A ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 160 dot.cshrc ${DESTDIR}/root/.cshrc; \ 161 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 162 dot.login ${DESTDIR}/root/.login; \ 163 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 164 dot.profile ${DESTDIR}/root/.profile; \ 165 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 166 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 167 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile 168 cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 169 ${MTREE} ${DESTDIR}/etc/mtree 170 cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 171 ${PPPCNF} ${DESTDIR}/etc/ppp 172 cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 173 ${ETCMAIL} ${DESTDIR}/etc/mail 174 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 175 ! -f ${DESTDIR}/etc/aliases ]; then \ 176 set -x; \ 177 ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 178 fi 179 ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \ 180 ${DESTDIR}/etc/dumpdates 181 ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \ 182 ${DESTDIR}/var/db/locate.database 183 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 184 ${DESTDIR}/var/crash 185 cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 186 ${FREEBSD} ${DESTDIR}/ 187.if exists(${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints) 188 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 189 ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \ 190 ${DESTDIR}/boot/device.hints 191.endif 192 193distrib-dirs: 194 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 195 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 196 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 197 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 198 -p ${DESTDIR}/usr/include 199.if ${MK_BIND_LIBS} != "no" 200 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.include.dist \ 201 -p ${DESTDIR}/usr/include 202.endif 203.if ${MK_BIND_MTREE} != "no" 204 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.chroot.dist \ 205 -p ${DESTDIR}/var/named 206.endif 207.if ${MK_SENDMAIL} != "no" 208 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/ 209.endif 210 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 211 cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* . 212 cd ${DESTDIR}/usr/share/man; \ 213 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 214 while [ $$# -gt 0 ] ; \ 215 do \ 216 rm -rf "$$1"; \ 217 ln -s "$$2" "$$1"; \ 218 shift; shift; \ 219 done 220 cd ${DESTDIR}/usr/share/openssl/man; \ 221 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 222 while [ $$# -gt 0 ] ; \ 223 do \ 224 rm -rf "$$1"; \ 225 ln -s "$$2" "$$1"; \ 226 shift; shift; \ 227 done 228 cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* . 229 cd ${DESTDIR}/usr/share/nls; \ 230 set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ 231 while [ $$# -gt 0 ] ; \ 232 do \ 233 rm -rf "$$1"; \ 234 ln -s "$$2" "$$1"; \ 235 shift; shift; \ 236 done 237 238etc-examples: 239 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 240 ${BIN1} ${BIN2} nsmb.conf opieaccess \ 241 ${DESTDIR}/usr/share/examples/etc 242 cd ${.CURDIR}/defaults; ${MAKE} install \ 243 DESTDIR=${DESTDIR}/usr/share/examples 244 245.include <bsd.prog.mk> 246