Makefile revision 67849
1193323Sed# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 2193323Sed# $FreeBSD: head/etc/Makefile 67849 2000-10-29 06:57:59Z dougb $ 3193323Sed 4193323SedSUBDIR= sendmail 5193323Sed 6193323SedBIN1= amd.map apmd.conf auth.conf \ 7193323Sed crontab csh.cshrc csh.login csh.logout \ 8193323Sed dhclient.conf dm.conf fbtab ftpusers gettytab group \ 9193323Sed hosts hosts.allow hosts.equiv hosts.lpd \ 10193323Sed inetd.conf login.access login.conf \ 11193323Sed motd modems networks newsyslog.conf \ 12193323Sed pam.conf phones pim6dd.conf pim6sd.conf \ 13193323Sed printcap profile protocols \ 14193323Sed rc rc.atm rc.devfs rc.diskless1 rc.diskless2 rc.firewall rc.isdn \ 15193323Sed rc.network rc.network6 rc.pccard rc.serial rc.shutdown rc.sysctl \ 16193323Sed remote rpc security services shells syslog.conf usbd.conf \ 17193323Sed etc.${MACHINE_ARCH}/disktab \ 18234353Sdim etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \ 19193323Sed etc.${MACHINE_ARCH}/ttys \ 20249423Sdim ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 21249423Sdim ${.CURDIR}/../usr.bin/mail/misc/mail.rc \ 22249423Sdim ${.CURDIR}/../usr.bin/locate/locate/locate.rc 23193323Sed 24212904Sdim.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH) 25193323SedSSH= ${.CURDIR}/../crypto/openssh/ssh_config \ 26193323Sed ${.CURDIR}/../crypto/openssh/sshd_config 27193323Sed.endif 28193323Sed 29193323Sed.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) 30193323SedSSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf 31193323Sed.endif 32193323Sed 33193323Sed# -rwxr-xr-x root.wheel, for the new cron root.wheel 34193323SedBIN2= netstart pccard_ether rc.suspend rc.resume 35193323Sed 36193323SedMTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 37193323Sed BSD.var.dist BSD.x11.dist BSD.x11-4.dist 38218893SdimNAMEDB= PROTO.localhost.rev named.conf named.root make-localhost 39218893SdimPPPCNF= ppp.deny ppp.shells.sample 40218893SdimPPPCF2= ppp.conf 41218893SdimETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ 42193323Sed mailertable.sample aliases 43193323Sed 44239462Sdim 45239462Sdim# Special top level files for FreeBSD 46239462SdimCOPYRIGHT= COPYRIGHT 47193323SedFREEBSD= 48193323SedFREEBSD+= ${COPYRIGHT} 49193323Sed 50193323Sedetc: 51193323Sed 52193323Seddistribute: 53198090Srdivacky cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin 54193323Sed.if defined(OBJFORMAT) 55193323Sed echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat 56193323Sed.endif 57193323Sed @echo 58193323Sed 59239462Sdimdistribution: 60195340Sed (cd ${.CURDIR}; \ 61193323Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 62193323Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \ 63193323Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \ 64234353Sdim ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/make.conf ${DESTDIR}/etc/defaults/; \ 65193323Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/pccard.conf ${DESTDIR}/etc/defaults/; \ 66193323Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/periodic.conf ${DESTDIR}/etc/defaults/; \ 67210299Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 68210299Sed ${DESTDIR}/var/log/cron; \ 69202878Srdivacky ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \ 70202878Srdivacky master.passwd ${DESTDIR}/etc; \ 71193323Sed ( cd ${.CURDIR}/periodic; ${MAKE} install ); \ 72193323Sed ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall ); \ 73193323Sed ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \ 74193323Sed ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \ 75193323Sed ( cd ${.CURDIR}/sendmail; ${MAKE} etc-sendmail.cf ); \ 76193323Sed ( cd ${.CURDIR}/isdn; ${MAKE} install ); \ 77193323Sed pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; \ 78193323Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 79193323Sed MAKEDEV.local MAKEDEV ${DESTDIR}/dev ) 80226633Sdim.if !defined(NOUUCP) 81226633Sdim ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ) 82226633Sdim.endif 83226633Sdim.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH) 84226633Sdim (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \ 85199481Srdivacky ${DESTDIR}/etc/ssh ) 86199481Srdivacky.endif 87193323Sed.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) 88218893Sdim (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \ 89218893Sdim ${DESTDIR}/etc/ssl ) 90193323Sed.endif 91210299Sed.if !defined(NO_MAKEDEV) 92210299Sed (cd ${DESTDIR}/dev; sh MAKEDEV all) 93194710Sed.endif 94194710Sed (cd ${.CURDIR}/root; \ 95198090Srdivacky ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 96198090Srdivacky ${DESTDIR}/root/.cshrc; \ 97218893Sdim ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 98218893Sdim ${DESTDIR}/root/.klogin; \ 99218893Sdim ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 100218893Sdim ${DESTDIR}/root/.login; \ 101221345Sdim ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 102194710Sed ${DESTDIR}/root/.profile; \ 103218893Sdim rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 104194710Sed ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 105218893Sdim ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 106218893Sdim cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 107194710Sed ${MTREE} ${DESTDIR}/etc/mtree 108194710Sed cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 109218893Sdim ${NAMEDB} ${DESTDIR}/etc/namedb 110218893Sdim cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 111194710Sed ${PPPCNF} ${DESTDIR}/etc/ppp 112194710Sed cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \ 113194710Sed ${PPPCF2} ${DESTDIR}/etc/ppp 114194710Sed cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 115194710Sed ${ETCMAIL} ${DESTDIR}/etc/mail 116194710Sed @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 117194710Sed ! -f ${DESTDIR}/etc/aliases ]; then \ 118194710Sed set -x; \ 119194710Sed ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 120194710Sed fi 121194710Sed ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 122194710Sed ${DESTDIR}/etc/dumpdates 123194710Sed ${INSTALL} -c -o nobody -g ${BINGRP} -m 644 /dev/null \ 124194710Sed ${DESTDIR}/var/db/locate.database 125194710Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 126194710Sed ${DESTDIR}/var/log/lpd-errs 127194710Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 128194710Sed ${DESTDIR}/var/log/maillog 129194710Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 130194710Sed ${DESTDIR}/var/log/lastlog 131194710Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 132194710Sed ${DESTDIR}/var/log/messages 133194710Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 134194710Sed ${DESTDIR}/var/log/security 135194710Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 136194710Sed ${DESTDIR}/var/log/slip.log 137194710Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 138194710Sed ${DESTDIR}/var/log/ppp.log 139194710Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 140194710Sed ${DESTDIR}/var/log/wtmp 141194710Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 142194710Sed ${DESTDIR}/var/run/utmp 143194710Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 144194710Sed ${DESTDIR}/var/crash 145194710Sed (cd ${.CURDIR}/..; \ 146194710Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 147194710Sed ${DESTDIR}/) 148194710Sed.if !defined(NOMAN) 149194710Sed (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 150210299Sed.endif 151210299Sed 152210299Seddistrib-dirs: 153210299Sed mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 154234353Sdim mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 155234353Sdim mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 156234353Sdim mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 157198090Srdivacky -p ${DESTDIR}/usr/include 158198090Srdivacky mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 159198090Srdivacky -p ${DESTDIR}/usr/libdata/perl/5.6.0/mach 160198090Srdivacky cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 161198090Srdivacky cd ${DESTDIR}/usr/share/locale; \ 162198090Srdivacky set - `cat ${.CURDIR}/locale.alias`; \ 163198090Srdivacky while [ $$# -gt 0 ] ; \ 164198090Srdivacky do \ 165198090Srdivacky rm -rf "$$1"; \ 166198090Srdivacky ln -s "$$2" "$$1"; \ 167198090Srdivacky shift; shift; \ 168204642Srdivacky done 169221345Sdim cd ${DESTDIR}/usr/share/nls; \ 170221345Sdim set - `cat ${.CURDIR}/locale.alias`; \ 171204642Srdivacky while [ $$# -gt 0 ] ; \ 172212904Sdim do \ 173212904Sdim rm -rf "$$1"; \ 174212904Sdim ln -s "$$2" "$$1"; \ 175212904Sdim shift; shift; \ 176243830Sdim done; \ 177243830Sdim rm -rf POSIX; \ 178243830Sdim ln -s C POSIX 179210299Sed 180210299Sedetc-examples: 181210299Sed (cd ${.CURDIR}; \ 182210299Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \ 183210299Sed ${DESTDIR}/usr/share/examples/etc; \ 184210299Sed ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \ 185210299Sed ${DESTDIR}/usr/share/examples/etc/defaults; \ 186204642Srdivacky ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/make.conf \ 187204642Srdivacky ${DESTDIR}/usr/share/examples/etc/defaults; \ 188212904Sdim ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/pccard.conf \ 189212904Sdim ${DESTDIR}/usr/share/examples/etc/defaults; \ 190212904Sdim ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/periodic.conf \ 191218893Sdim ${DESTDIR}/usr/share/examples/etc/defaults) 192221345Sdim 193218893Sdim.include <bsd.prog.mk> 194218893Sdim