Makefile revision 73504
11195Srgrimes# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 250472Speter# $FreeBSD: head/etc/Makefile 73251 2001-03-01 03:51:18Z gshapiro $ 337Srgrimes 473251Sgshapiro.if !defined(NO_SENDMAIL) 538103SpeterSUBDIR= sendmail 673251Sgshapiro.endif 738103Speter 864618SgshapiroBIN1= amd.map apmd.conf auth.conf \ 955230Speter crontab csh.cshrc csh.login csh.logout \ 1055230Speter dhclient.conf dm.conf fbtab ftpusers gettytab group \ 1165532Snectar hosts hosts.allow hosts.equiv hosts.lpd \ 1255230Speter inetd.conf login.access login.conf \ 1355230Speter motd modems networks newsyslog.conf \ 1459257Siwasaki pam.conf phones pim6dd.conf pim6sd.conf \ 1557954Sshin printcap profile protocols \ 1667929Sume rc rc.atm rc.devfs rc.diskless1 rc.diskless2 rc.firewall rc.firewall6 \ 1767929Sume rc.isdn rc.network rc.network6 rc.pccard rc.serial rc.shutdown \ 1870856Sjhb rc.syscons rc.sysctl remote rpc security services shells syslog.conf \ 1970856Sjhb usbd.conf \ 2055230Speter etc.${MACHINE_ARCH}/disktab \ 2155230Speter etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \ 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 2637Srgrimes 2757479Speter.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH) 2857488SpeterSSH= ${.CURDIR}/../crypto/openssh/ssh_config \ 2957459Smarkm ${.CURDIR}/../crypto/openssh/sshd_config 3057459Smarkm.endif 3157459Smarkm 3260677Skris.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) 3360677SkrisSSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf 3460677Skris.endif 3560677Skris 361773Sjkh# -rwxr-xr-x root.wheel, for the new cron root.wheel 3748734SiwasakiBIN2= netstart pccard_ether rc.suspend rc.resume 38147Srgrimes 3927487SasamiMTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 4065168Sasami BSD.var.dist BSD.x11.dist BSD.x11-4.dist 4135832SacheNAMEDB= PROTO.localhost.rev named.conf named.root make-localhost 4243901SbrianPPPCNF= ppp.deny ppp.shells.sample 4349110SbrianPPPCF2= ppp.conf 4464598SgshapiroETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ 4564598Sgshapiro mailertable.sample aliases 4637Srgrimes 4717639Swosch 48263Srgrimes# Special top level files for FreeBSD 492779SrgrimesCOPYRIGHT= COPYRIGHT 508857SrgrimesFREEBSD= 51993SrgrimesFREEBSD+= ${COPYRIGHT} 52263Srgrimes 5338103Speteretc: 5437Srgrimes 554487Sphkdistribute: 566717Sphk cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin 5739590Sjkh.if defined(OBJFORMAT) 5839636Sdima echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat 5939590Sjkh.endif 6039590Sjkh @echo 615948Sjkh 624487Sphkdistribution: 631759Sjkh (cd ${.CURDIR}; \ 649970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 6536902Sguido ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \ 6643832Sjkh ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \ 6752609Sdillon ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/make.conf ${DESTDIR}/etc/defaults/; \ 6858979Siwasaki ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/pccard.conf ${DESTDIR}/etc/defaults/; \ 6961981Sbrian ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/periodic.conf ${DESTDIR}/etc/defaults/; \ 709970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 7151033Sn_hibma ${DESTDIR}/var/log/cron; \ 729970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \ 731759Sjkh master.passwd ${DESTDIR}/etc; \ 7457488Speter ( cd ${.CURDIR}/periodic; ${MAKE} install ); \ 7557488Speter ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall ); \ 7617639Swosch ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \ 7717645Swosch ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \ 7857488Speter ( cd ${.CURDIR}/isdn; ${MAKE} install ); \ 791759Sjkh pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \ 809970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 8153327Speter MAKEDEV.local MAKEDEV ${DESTDIR}/dev ) 8273251Sgshapiro.if !defined(NO_SENDMAIL) 8373251Sgshapiro ( cd ${.CURDIR}/sendmail; ${MAKE} distribution ); 8473251Sgshapiro.endif 8567849Sdougb.if !defined(NOUUCP) 8667849Sdougb ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ) 8767849Sdougb.endif 8857488Speter.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH) 8957488Speter (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \ 9057488Speter ${DESTDIR}/etc/ssh ) 9157488Speter.endif 9260677Skris.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) 9360677Skris (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \ 9460677Skris ${DESTDIR}/etc/ssl ) 9560677Skris.endif 9657071Srwatson.if !defined(NO_MAKEDEV) 9757488Speter (cd ${DESTDIR}/dev; sh MAKEDEV all) 9857071Srwatson.endif 991731Sjkh (cd ${.CURDIR}/root; \ 1009970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 10137Srgrimes ${DESTDIR}/root/.cshrc; \ 1029970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 10337Srgrimes ${DESTDIR}/root/.klogin; \ 1049970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 10537Srgrimes ${DESTDIR}/root/.login; \ 1069970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 10737Srgrimes ${DESTDIR}/root/.profile; \ 10837Srgrimes rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 10937Srgrimes ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 11037Srgrimes ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 1119970Sbde cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 1121731Sjkh ${MTREE} ${DESTDIR}/etc/mtree 1139970Sbde cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 1141731Sjkh ${NAMEDB} ${DESTDIR}/etc/namedb 1159970Sbde cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 1166177Samurai ${PPPCNF} ${DESTDIR}/etc/ppp 11749110Sbrian cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \ 11849110Sbrian ${PPPCF2} ${DESTDIR}/etc/ppp 11930589Sjmb cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 12064598Sgshapiro ${ETCMAIL} ${DESTDIR}/etc/mail 12164629Sgshapiro @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 12264629Sgshapiro ! -f ${DESTDIR}/etc/aliases ]; then \ 12364629Sgshapiro set -x; \ 12464629Sgshapiro ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 12564629Sgshapiro fi 1269970Sbde ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 12737Srgrimes ${DESTDIR}/etc/dumpdates 12863097Speter ${INSTALL} -c -o nobody -g ${BINGRP} -m 644 /dev/null \ 129147Srgrimes ${DESTDIR}/var/db/locate.database 13063097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 131147Srgrimes ${DESTDIR}/var/log/lpd-errs 13263097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 13337Srgrimes ${DESTDIR}/var/log/maillog 13463097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 135288Srgrimes ${DESTDIR}/var/log/lastlog 13663097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 137147Srgrimes ${DESTDIR}/var/log/messages 13813378Sache ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 13950126Sgreen ${DESTDIR}/var/log/security 14050126Sgreen ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 14113378Sache ${DESTDIR}/var/log/slip.log 14217104Spst ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 14317104Spst ${DESTDIR}/var/log/ppp.log 14463097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 145147Srgrimes ${DESTDIR}/var/log/wtmp 14663097Speter ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 14737Srgrimes ${DESTDIR}/var/run/utmp 14864665Skris ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 1491759Sjkh ${DESTDIR}/var/crash 1501759Sjkh (cd ${.CURDIR}/..; \ 1519970Sbde ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 1529970Sbde ${DESTDIR}/) 15361888Sasmodai.if !defined(NOMAN) 1541759Sjkh (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 15561888Sasmodai.endif 15637Srgrimes 157147Srgrimesdistrib-dirs: 15865884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 15965884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 16065884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 16165884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 1627129Srgrimes -p ${DESTDIR}/usr/include 16365884Sache mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 16462416Smarkm -p ${DESTDIR}/usr/libdata/perl/5.6.0/mach 165410Srgrimes cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 16672692Sru cd ${DESTDIR}/usr/share/man/en.ISO_8859-1; ln -sf ../man* . 1677129Srgrimes cd ${DESTDIR}/usr/share/locale; \ 16811635Sache set - `cat ${.CURDIR}/locale.alias`; \ 16911635Sache while [ $$# -gt 0 ] ; \ 17011635Sache do \ 17111635Sache rm -rf "$$1"; \ 17211635Sache ln -s "$$2" "$$1"; \ 17311635Sache shift; shift; \ 1747129Srgrimes done 17511635Sache cd ${DESTDIR}/usr/share/nls; \ 17611635Sache set - `cat ${.CURDIR}/locale.alias`; \ 17711635Sache while [ $$# -gt 0 ] ; \ 17811635Sache do \ 17911635Sache rm -rf "$$1"; \ 18011635Sache ln -s "$$2" "$$1"; \ 18111635Sache shift; shift; \ 18211635Sache done; \ 18311635Sache rm -rf POSIX; \ 18411635Sache ln -s C POSIX 185147Srgrimes 18648185Ssheldonhetc-examples: 18748185Ssheldonh (cd ${.CURDIR}; \ 18848185Ssheldonh ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \ 18948185Ssheldonh ${DESTDIR}/usr/share/examples/etc; \ 19048185Ssheldonh ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \ 19152609Sdillon ${DESTDIR}/usr/share/examples/etc/defaults; \ 19252609Sdillon ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/make.conf \ 19358979Siwasaki ${DESTDIR}/usr/share/examples/etc/defaults; \ 19458979Siwasaki ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/pccard.conf \ 19562006Snbm ${DESTDIR}/usr/share/examples/etc/defaults; \ 19661981Sbrian ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/periodic.conf \ 19748185Ssheldonh ${DESTDIR}/usr/share/examples/etc/defaults) 19848185Ssheldonh 19937Srgrimes.include <bsd.prog.mk> 200