Makefile revision 156567
138451Smsmith# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 238451Smsmith# $FreeBSD: head/etc/Makefile 156567 2006-03-11 08:51:16Z ru $ 338451Smsmith 438451Smsmith.if !defined(NO_SENDMAIL) 538451SmsmithSUBDIR= sendmail 638451Smsmith.endif 738451Smsmith 838451SmsmithBIN1= amd.map apmd.conf auth.conf \ 938451Smsmith crontab csh.cshrc csh.login csh.logout devd.conf devfs.conf \ 1038451Smsmith dhclient.conf disktab fbtab ftpusers gettytab group \ 1138451Smsmith hosts hosts.allow hosts.equiv hosts.lpd \ 1238451Smsmith inetd.conf login.access login.conf \ 1338451Smsmith mac.conf motd netconfig network.subr networks newsyslog.conf \ 1438451Smsmith portsnap.conf pf.conf pf.os phones profile protocols \ 1538451Smsmith rc rc.bsdextended rc.firewall rc.firewall6 rc.initdiskless \ 1638451Smsmith rc.sendmail rc.shutdown \ 1738451Smsmith rc.subr remote rpc services shells \ 1838451Smsmith snmpd.config sysctl.conf syslog.conf \ 1938451Smsmith etc.${MACHINE_ARCH}/ttys \ 2038451Smsmith ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 2138451Smsmith ${.CURDIR}/../usr.bin/mail/misc/mail.rc \ 2238451Smsmith ${.CURDIR}/../usr.bin/locate/locate/locate.rc 2338451Smsmith 2438451SmsmithOPENBSMDIR= ${.CURDIR}/../contrib/openbsm 2538451SmsmithBSM_ETC_OPEN_FILES= ${OPENBSMDIR}/etc/audit_class \ 2638451Smsmith ${OPENBSMDIR}/etc/audit_event 2738451SmsmithBSM_ETC_RESTRICTED_FILES= ${OPENBSMDIR}/etc/audit_control \ 2838451Smsmith ${OPENBSMDIR}/etc/audit_user 2938451SmsmithBSM_ETC_EXEC_FILES= ${OPENBSMDIR}/etc/audit_warn 3084221SdillonBSM_ETC_DIR= ${DESTDIR}/etc/security 3184221Sdillon 3284221Sdillon.if !defined(NO_LPR) 3338451SmsmithBIN1+= printcap 3438451Smsmith.endif 3538451Smsmith 3638451Smsmith.if !defined(NO_CRYPT) && !defined(NO_OPENSSL) 3738451Smsmith.if !defined(NO_OPENSSH) 3838451SmsmithSSH= ${.CURDIR}/../crypto/openssh/ssh_config \ 3938451Smsmith ${.CURDIR}/../crypto/openssh/sshd_config \ 4038451Smsmith ${.CURDIR}/../crypto/openssh/moduli 4138451Smsmith.endif 4238451SmsmithSSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf 4338451Smsmith.endif 4438451Smsmith 4538451Smsmith# -rwxr-xr-x root:wheel, for the new cron root:wheel 4638451SmsmithBIN2= netstart pccard_ether rc.suspend rc.resume 4738451Smsmith 4838451SmsmithMTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 4938451Smsmith BSD.var.dist BSD.x11.dist BSD.x11-4.dist 5038451Smsmith.if !defined(NO_SENDMAIL) 5138451SmsmithMTREE+= BSD.sendmail.dist 5238451Smsmith.endif 5338451Smsmith.if !defined(NO_BIND) 5438451SmsmithMTREE+= BIND.chroot.dist 55221358Srodrigc.if defined(WITH_BIND_LIBS) 5638451SmsmithMTREE+= BIND.include.dist 5738451Smsmith.endif 5838451Smsmith.endif 5938451Smsmith 6038451Smsmith.if !defined(NO_BIND_ETC) && !defined(NO_BIND) 6138451SmsmithNAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \ 6238451Smsmith make-localhost 6338451Smsmith.endif 6438451Smsmith 6538451SmsmithPPPCNF= ppp.conf 6638451Smsmith 6738451Smsmith.if defined(NO_SENDMAIL) 6838451SmsmithETCMAIL=mailer.conf aliases 6938451Smsmith.else 7038451SmsmithETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ 7138451Smsmith mailertable.sample aliases 7238451Smsmith.endif 7338451Smsmith 7438451Smsmith# Special top level files for FreeBSD 7538451SmsmithFREEBSD=COPYRIGHT 7638451Smsmith 7738451Smsmithafterinstall: 7838451Smsmith.if !defined(NO_MAN) 7938451Smsmith cd ${.CURDIR}/../share/man; ${MAKE} makedb 8038451Smsmith.endif 8138451Smsmith 8238451Smsmithdistribute: 8338451Smsmith cd ${.CURDIR} ; ${MAKE} install DESTDIR=${DISTDIR}/${DISTRIBUTION} 8438451Smsmith cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION} 8538451Smsmith 8638451Smsmith.include <bsd.endian.mk> 8738451Smsmith.if ${TARGET_ENDIANNESS} == "1234" 8838451SmsmithCAP_MKDB_ENDIAN?= -l 8938451SmsmithPWD_MKDB_ENDIAN?= -L 9038451Smsmith.elif ${TARGET_ENDIANNESS} == "4321" 9138451SmsmithCAP_MKDB_ENDIAN?= -b 9238451SmsmithPWD_MKDB_ENDIAN?= -B 9338451Smsmith.else 9438451SmsmithCAP_MKDB_ENDIAN?= 9538451SmsmithPWD_MKDB_ENDIAN?= 9638451Smsmith.endif 9738451Smsmith 9838451Smsmithdistribution: 9938451Smsmith.if !defined(DESTDIR) 10038451Smsmith @echo "set DESTDIR before running \"make ${.TARGET}\"" 10138451Smsmith @false 10238451Smsmith.endif 10338451Smsmith cd ${.CURDIR}; \ 10438451Smsmith ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 10538451Smsmith ${BIN1} ${DESTDIR}/etc; \ 10638451Smsmith cap_mkdb ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf; \ 10738451Smsmith ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \ 10838451Smsmith ${BIN2} ${DESTDIR}/etc; \ 109 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 110 master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \ 111 pwd_mkdb ${PWD_MKDB_ENDIAN} -i -p -d ${DESTDIR}/etc \ 112 ${DESTDIR}/etc/master.passwd 113 cd ${.CURDIR}/bluetooth; ${MAKE} install 114 cd ${.CURDIR}/defaults; ${MAKE} install 115 cd ${.CURDIR}/gss; ${MAKE} install 116 cd ${.CURDIR}/periodic; ${MAKE} install 117 cd ${.CURDIR}/rc.d; ${MAKE} install 118 cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall 119 cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap 120 cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt 121 cd ${.CURDIR}/pam.d; ${MAKE} install 122 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0444 \ 123 ${BSM_ETC_OPEN_FILES} ${BSM_ETC_DIR} 124 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0600 \ 125 ${BSM_ETC_RESTRICTED_FILES} ${BSM_ETC_DIR} 126 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0500 \ 127 ${BSM_ETC_EXEC_FILES} ${BSM_ETC_DIR} 128.if !defined(NO_I4B) 129 cd ${.CURDIR}/isdn; ${MAKE} install 130.endif 131.if !defined(NO_SENDMAIL) 132 cd ${.CURDIR}/sendmail; ${MAKE} distribution 133.endif 134.if !defined(NO_CRYPT) && !defined(NO_OPENSSL) 135.if !defined(NO_OPENSSH) 136 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 137 ${SSH} ${DESTDIR}/etc/ssh 138.endif 139 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 140 ${SSL} ${DESTDIR}/etc/ssl 141.endif 142.if !defined(NO_KERBEROS) 143 cd ${.CURDIR}/root; \ 144 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 145 dot.k5login ${DESTDIR}/root/.k5login; 146.endif 147 cd ${.CURDIR}/root; \ 148 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 149 dot.cshrc ${DESTDIR}/root/.cshrc; \ 150 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 151 dot.login ${DESTDIR}/root/.login; \ 152 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 153 dot.profile ${DESTDIR}/root/.profile; \ 154 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 155 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 156 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile 157 cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 158 ${MTREE} ${DESTDIR}/etc/mtree 159.if !defined(NO_BIND) 160.if !defined(NO_BIND_ETC) 161 cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 162 ${NAMEDB} ${DESTDIR}/var/named/etc/namedb 163.endif 164.if !defined(NO_BIND_MTREE) 165 @if [ ! -e ${DESTDIR}/etc/namedb ]; then \ 166 set -x; \ 167 ln -s ../var/named/etc/namedb ${DESTDIR}/etc/namedb; \ 168 fi 169.endif 170.endif 171 cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 172 ${PPPCNF} ${DESTDIR}/etc/ppp 173 cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 174 ${ETCMAIL} ${DESTDIR}/etc/mail 175 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 176 ! -f ${DESTDIR}/etc/aliases ]; then \ 177 set -x; \ 178 ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 179 fi 180 ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \ 181 ${DESTDIR}/etc/dumpdates 182 ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \ 183 ${DESTDIR}/var/db/locate.database 184 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 185 ${DESTDIR}/var/crash 186 cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 187 ${FREEBSD} ${DESTDIR}/ 188 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 189 ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \ 190 ${DESTDIR}/boot/device.hints 191 192distrib-dirs: 193 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 194 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 195 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 196 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 197 -p ${DESTDIR}/usr/include 198.if !defined(NO_BIND) 199.if defined(WITH_BIND_LIBS) 200 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.include.dist \ 201 -p ${DESTDIR}/usr/include 202.endif 203.if !defined(NO_BIND_MTREE) 204 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.chroot.dist \ 205 -p ${DESTDIR}/var/named 206.endif 207.endif 208.if !defined(NO_SENDMAIL) 209 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/ 210.endif 211 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 212 cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* . 213 cd ${DESTDIR}/usr/share/man; \ 214 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 215 while [ $$# -gt 0 ] ; \ 216 do \ 217 rm -rf "$$1"; \ 218 ln -s "$$2" "$$1"; \ 219 shift; shift; \ 220 done 221 cd ${DESTDIR}/usr/share/openssl/man; \ 222 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 223 while [ $$# -gt 0 ] ; \ 224 do \ 225 rm -rf "$$1"; \ 226 ln -s "$$2" "$$1"; \ 227 shift; shift; \ 228 done 229 cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* . 230 cd ${DESTDIR}/usr/share/nls; \ 231 set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ 232 while [ $$# -gt 0 ] ; \ 233 do \ 234 rm -rf "$$1"; \ 235 ln -s "$$2" "$$1"; \ 236 shift; shift; \ 237 done 238 239etc-examples: 240 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 241 ${BIN1} ${BIN2} nsmb.conf opieaccess \ 242 ${DESTDIR}/usr/share/examples/etc 243 cd ${.CURDIR}/defaults; ${MAKE} install \ 244 DESTDIR=${DESTDIR}/usr/share/examples 245 246.include <bsd.prog.mk> 247