Makefile revision 135875
11195Srgrimes# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 250472Speter# $FreeBSD: head/etc/Makefile 135875 2004-09-28 09:46:00Z dougb $ 337Srgrimes 473251Sgshapiro.if !defined(NO_SENDMAIL) 538103SpeterSUBDIR= sendmail 673251Sgshapiro.endif 738103Speter 899451SruBIN1= amd.map apmd.conf auth.conf \ 9114780Sdougb crontab csh.cshrc csh.login csh.logout devd.conf devfs.conf \ 10114780Sdougb dhclient.conf disktab fbtab ftpusers gettytab group \ 1165532Snectar hosts hosts.allow hosts.equiv hosts.lpd \ 1255230Speter inetd.conf login.access login.conf \ 13113674Smtm mac.conf motd netconfig network.subr networks newsyslog.conf \ 14126756Smlaier pf.conf pf.os phones profile protocols \ 15114555Sdougb rc rc.firewall rc.firewall6 rc.sendmail rc.shutdown \ 16114492Sdougb rc.subr remote rpc services \ 1798187Sgordon shells sysctl.conf syslog.conf usbd.conf \ 1855230Speter etc.${MACHINE_ARCH}/ttys \ 191734Sjkh ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 2017639Swosch ${.CURDIR}/../usr.bin/mail/misc/mail.rc \ 2117639Swosch ${.CURDIR}/../usr.bin/locate/locate/locate.rc 22121911Smarkm.if !defined(NO_LPR) 23121911SmarkmBIN1+= printcap 24121911Smarkm.endif 2537Srgrimes 26121911Smarkm.if !defined(NOCRYPT) && !defined(NO_OPENSSL) 2798548Sru.if !defined(NO_OPENSSH) 2857488SpeterSSH= ${.CURDIR}/../crypto/openssh/ssh_config \ 2974837Sgreen ${.CURDIR}/../crypto/openssh/sshd_config \ 30124214Sdes ${.CURDIR}/../crypto/openssh/moduli 3157459Smarkm.endif 3260677SkrisSSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf 3360677Skris.endif 3460677Skris 3582521Salex# -rwxr-xr-x root:wheel, for the new cron root:wheel 36108002SgreenBIN2= netstart pccard_ether rc.suspend rc.resume 37147Srgrimes 3827487SasamiMTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 3965168Sasami BSD.var.dist BSD.x11.dist BSD.x11-4.dist 4095144Sgshapiro.if !defined(NO_SENDMAIL) 4195144SgshapiroMTREE+= BSD.sendmail.dist 4295144Sgshapiro.endif 43135851Sdougb.if !defined(NO_BIND) 44135851SdougbMTREE+= BIND.chroot.dist 45135851Sdougb.if defined(WITH_BIND_LIBS) 46135851SdougbMTREE+= BIND.include.dist 47135851Sdougb.endif 48135851Sdougb.endif 4999451Sru 50135851Sdougb.if !defined(NO_BIND_ETC) && !defined(NO_BIND) 5199451SruNAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \ 5290281Sume make-localhost 53135851Sdougb.endif 5499451Sru 5599451SruPPPCNF= ppp.conf 5699451Sru 57117292Sgshapiro.if defined(NO_SENDMAIL) 58117292SgshapiroETCMAIL=mailer.conf aliases 59117292Sgshapiro.else 6064598SgshapiroETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ 6164598Sgshapiro mailertable.sample aliases 62117292Sgshapiro.endif 6337Srgrimes 64263Srgrimes# Special top level files for FreeBSD 6599449SruFREEBSD=COPYRIGHT 66263Srgrimes 67124831Sruafterinstall: 68124831Sru.if !defined(NOMAN) 69124831Sru cd ${.CURDIR}/../share/man; ${MAKE} makedb 70124831Sru.endif 71124831Sru 724487Sphkdistribute: 73124831Sru cd ${.CURDIR} ; ${MAKE} install DESTDIR=${DISTDIR}/${DISTRIBUTION} 7495327Sobrien cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION} 755948Sjkh 764487Sphkdistribution: 7799449Sru cd ${.CURDIR}; \ 78100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 7999451Sru ${BIN1} ${DESTDIR}/etc; \ 80111810Sru cap_mkdb ${DESTDIR}/etc/login.conf; \ 81100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \ 8299451Sru ${BIN2} ${DESTDIR}/etc; \ 83100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 8499451Sru master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \ 8599451Sru pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd 86121580Semax cd ${.CURDIR}/bluetooth; ${MAKE} install 87119385Smtm cd ${.CURDIR}/defaults; ${MAKE} install 8899449Sru cd ${.CURDIR}/periodic; ${MAKE} install 8999449Sru cd ${.CURDIR}/rc.d; ${MAKE} install 9099449Sru cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall 9199449Sru cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap 9299449Sru cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt 9399449Sru cd ${.CURDIR}/pam.d; ${MAKE} install 9477041Sru.if !defined(NO_I4B) 9599449Sru cd ${.CURDIR}/isdn; ${MAKE} install 9677041Sru.endif 9773251Sgshapiro.if !defined(NO_SENDMAIL) 9899449Sru cd ${.CURDIR}/sendmail; ${MAKE} distribution 9973251Sgshapiro.endif 100120202Smarkm.if !defined(NO_OPENSSL) 10198548Sru.if !defined(NO_OPENSSH) 102100872Sru cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 10399451Sru ${SSH} ${DESTDIR}/etc/ssh 10457488Speter.endif 105100872Sru cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 10699451Sru ${SSL} ${DESTDIR}/etc/ssl 10760677Skris.endif 108120709Sphk.if !defined(NO_KERBEROS) 10999449Sru cd ${.CURDIR}/root; \ 110100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 111120709Sphk dot.k5login ${DESTDIR}/root/.k5login; 112120709Sphk.endif 113120709Sphk cd ${.CURDIR}/root; \ 114120709Sphk ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 11599451Sru dot.cshrc ${DESTDIR}/root/.cshrc; \ 116100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 11799451Sru dot.login ${DESTDIR}/root/.login; \ 118100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 11999451Sru dot.profile ${DESTDIR}/root/.profile; \ 12099451Sru rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 12199451Sru ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 12299451Sru ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile 123100872Sru cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 1241731Sjkh ${MTREE} ${DESTDIR}/etc/mtree 125135851Sdougb.if !defined(NO_BIND_ETC) && !defined(NO_BIND) 126100872Sru cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 1271731Sjkh ${NAMEDB} ${DESTDIR}/etc/namedb 128135851Sdougb.endif 129119058Sobrien cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 1306177Samurai ${PPPCNF} ${DESTDIR}/etc/ppp 131100872Sru cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 13264598Sgshapiro ${ETCMAIL} ${DESTDIR}/etc/mail 13364629Sgshapiro @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 13464629Sgshapiro ! -f ${DESTDIR}/etc/aliases ]; then \ 13564629Sgshapiro set -x; \ 13664629Sgshapiro ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 13764629Sgshapiro fi 138100872Sru ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \ 13937Srgrimes ${DESTDIR}/etc/dumpdates 140100872Sru ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \ 141147Srgrimes ${DESTDIR}/var/db/locate.database 142100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 14392100Srwatson ${DESTDIR}/var/log/auth.log 144100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 14599449Sru ${DESTDIR}/var/log/cron 146103720Smarkm ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 147113259Sdes ${DESTDIR}/var/log/debug.log 148113259Sdes ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 149103738Smarkm ${DESTDIR}/var/log/xferlog 150100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 151147Srgrimes ${DESTDIR}/var/log/lpd-errs 152100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 15337Srgrimes ${DESTDIR}/var/log/maillog 154100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 155288Srgrimes ${DESTDIR}/var/log/lastlog 156100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 157147Srgrimes ${DESTDIR}/var/log/messages 158100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 15950126Sgreen ${DESTDIR}/var/log/security 160100872Sru ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \ 16113378Sache ${DESTDIR}/var/log/slip.log 162100872Sru ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \ 16317104Spst ${DESTDIR}/var/log/ppp.log 164100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 165147Srgrimes ${DESTDIR}/var/log/wtmp 166100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 16737Srgrimes ${DESTDIR}/var/run/utmp 168100872Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 1691759Sjkh ${DESTDIR}/var/crash 170100872Sru cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 17199451Sru ${FREEBSD} ${DESTDIR}/ 172126977Sru ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 173126977Sru ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \ 174126977Sru ${DESTDIR}/boot/device.hints 17537Srgrimes 176147Srgrimesdistrib-dirs: 177127339Sdes mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 178127339Sdes mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 179127339Sdes mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 180127339Sdes mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 1817129Srgrimes -p ${DESTDIR}/usr/include 182135875Sdougb.if !defined(NO_BIND) 183135875Sdougb.if defined(WITH_BIND_LIBS) 184135875Sdougb mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.include.dist \ 185135875Sdougb -p ${DESTDIR}/usr/include 186135875Sdougb.endif 187135875Sdougb mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.chroot.dist \ 188135875Sdougb -p ${DESTDIR}/var/named 189135875Sdougb ln -s ${DESTDIR}/var/named/etc/namedb ${DESTDIR}/etc/namedb 190135875Sdougb.endif 19195144Sgshapiro.if !defined(NO_SENDMAIL) 19295144Sgshapiro mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/ 19395144Sgshapiro.endif 194410Srgrimes cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 19577993Sache cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* . 19677993Sache cd ${DESTDIR}/usr/share/man; \ 19777993Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 19877993Sache while [ $$# -gt 0 ] ; \ 19977993Sache do \ 20077993Sache rm -rf "$$1"; \ 20177993Sache ln -s "$$2" "$$1"; \ 20277993Sache shift; shift; \ 20377993Sache done 204110663Sache cd ${DESTDIR}/usr/share/openssl/man; \ 205110663Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 206110663Sache while [ $$# -gt 0 ] ; \ 207110663Sache do \ 208110663Sache rm -rf "$$1"; \ 209110663Sache ln -s "$$2" "$$1"; \ 210110663Sache shift; shift; \ 211110663Sache done 212110655Snectar cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* . 21311635Sache cd ${DESTDIR}/usr/share/nls; \ 21477999Sache set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ 21511635Sache while [ $$# -gt 0 ] ; \ 21611635Sache do \ 21711635Sache rm -rf "$$1"; \ 21811635Sache ln -s "$$2" "$$1"; \ 21911635Sache shift; shift; \ 22077999Sache done 221147Srgrimes 22248185Ssheldonhetc-examples: 223100872Sru cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 22499451Sru ${BIN1} ${BIN2} nsmb.conf opieaccess \ 22599451Sru ${DESTDIR}/usr/share/examples/etc 226119385Smtm cd ${.CURDIR}/defaults; ${MAKE} install \ 227119385Smtm DESTDIR=${DESTDIR}/usr/share/examples 22848185Ssheldonh 22937Srgrimes.include <bsd.prog.mk> 230