Makefile revision 82604
1180740Sdes# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 2180740Sdes# $FreeBSD: head/etc/Makefile 82604 2001-08-30 22:44:51Z alex $ 3226046Sdes 4226046Sdes.if !defined(NO_SENDMAIL) 5226046SdesSUBDIR= sendmail 6180740Sdes.endif 7180740Sdes 8180740SdesBIN1= amd.map apmd.conf auth.conf \ 9180740Sdes crontab csh.cshrc csh.login csh.logout \ 10180740Sdes dhclient.conf dm.conf fbtab ftpusers gettytab group \ 11180740Sdes hosts hosts.allow hosts.equiv hosts.lpd \ 12180740Sdes inetd.conf login.access login.conf \ 13180746Sdes motd modems netconfig networks newsyslog.conf \ 14180746Sdes pam.conf phones printcap profile protocols \ 15180746Sdes rc rc.atm rc.devfs rc.diskless1 rc.diskless2 rc.firewall rc.firewall6 \ 16180740Sdes rc.network rc.network6 rc.pccard rc.serial rc.shutdown \ 17180740Sdes rc.syscons rc.sysctl remote rpc security services shells sysctl.conf \ 18180740Sdes syslog.conf usbd.conf \ 19240075Sdes etc.${MACHINE_ARCH}/disktab \ 20240075Sdes etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \ 21240075Sdes etc.${MACHINE_ARCH}/ttys \ 22180740Sdes ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 23180740Sdes ${.CURDIR}/../usr.bin/mail/misc/mail.rc \ 24180740Sdes ${.CURDIR}/../usr.bin/locate/locate/locate.rc 25180740Sdes 26180740Sdes.if !defined(NO_I4B) 27180740SdesBIN1+= rc.isdn 28180740Sdes.endif 29180740Sdes 30180740Sdes.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH) 31180746SdesSSH= ${.CURDIR}/../crypto/openssh/ssh_config \ 32180746Sdes ${.CURDIR}/../crypto/openssh/sshd_config \ 33180746Sdes primes 34180740Sdes.endif 35180740Sdes 36180740Sdes.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) 37180740SdesSSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf 38180740Sdes.endif 39180740Sdes 40180740Sdes# -rwxr-xr-x root:wheel, for the new cron root:wheel 41180740SdesBIN2= netstart pccard_ether rc.suspend rc.resume 42180740Sdes 43180740SdesMTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 44180740Sdes BSD.var.dist BSD.x11.dist BSD.x11-4.dist 45180740SdesNAMEDB= PROTO.localhost.rev named.conf named.root make-localhost 46180740SdesPPPCNF= ppp.deny ppp.shells.sample 47180750SdesPPPCF2= ppp.conf 48180750SdesETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ 49180750Sdes mailertable.sample aliases 50180740Sdes 51180740Sdes 52180740Sdes# Special top level files for FreeBSD 53180740SdesCOPYRIGHT= COPYRIGHT 54180740SdesFREEBSD= 55180740SdesFREEBSD+= ${COPYRIGHT} 56180740Sdes 57180740Sdesetc: 58180740Sdes 59180740Sdesdistribute: 60180740Sdes cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin 61180740Sdes.if defined(OBJFORMAT) 62180740Sdes echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat 63180740Sdes.endif 64180740Sdes @echo 65180740Sdes 66180740Sdesdistribution: 67180740Sdes (cd ${.CURDIR}; \ 68180740Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 69180740Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \ 70180740Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \ 71180746Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/pccard.conf ${DESTDIR}/etc/defaults/; \ 72180746Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/periodic.conf ${DESTDIR}/etc/defaults/; \ 73180746Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 74180740Sdes ${DESTDIR}/var/log/cron; \ 75180740Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \ 76180740Sdes opieaccess master.passwd ${DESTDIR}/etc; \ 77248619Sdes ( cd ${.CURDIR}/periodic; ${MAKE} install ); \ 78248619Sdes ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall ); \ 79248619Sdes ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \ 80197679Sdes ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \ 81197679Sdes pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; ) 82197679Sdes.if !defined(NO_I4B) 83180740Sdes ( cd ${.CURDIR}/isdn; ${MAKE} install ) 84180740Sdes.endif 85180740Sdes.if !defined(NO_SENDMAIL) 86180740Sdes ( cd ${.CURDIR}/sendmail; ${MAKE} distribution ); 87180740Sdes.endif 88180740Sdes.if !defined(NOUUCP) 89180740Sdes ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ) 90180740Sdes.endif 91180740Sdes.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH) 92180740Sdes (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \ 93180740Sdes ${DESTDIR}/etc/ssh ) 94180740Sdes.endif 95180740Sdes.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) 96180740Sdes (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \ 97180740Sdes ${DESTDIR}/etc/ssl ) 98180740Sdes.endif 99180740Sdes.if !defined(NO_MAKEDEV_INSTALL) 100180740Sdes ( cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 101180740Sdes MAKEDEV.local MAKEDEV ${DESTDIR}/dev ) 102180740Sdes.if !defined(NO_MAKEDEV_RUN) 103180740Sdes (cd ${DESTDIR}/dev; sh MAKEDEV all) 104180740Sdes.endif 105180740Sdes.endif 106180740Sdes (cd ${.CURDIR}/root; \ 107180740Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 108180740Sdes ${DESTDIR}/root/.cshrc; \ 109180740Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 110180740Sdes ${DESTDIR}/root/.klogin; \ 111180740Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 112180740Sdes ${DESTDIR}/root/.login; \ 113180740Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 114180740Sdes ${DESTDIR}/root/.profile; \ 115180740Sdes rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 116180740Sdes ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 117180740Sdes ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 118180740Sdes cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 119180740Sdes ${MTREE} ${DESTDIR}/etc/mtree 120180740Sdes cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 121180740Sdes ${NAMEDB} ${DESTDIR}/etc/namedb 122180740Sdes cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 123180740Sdes ${PPPCNF} ${DESTDIR}/etc/ppp 124180740Sdes cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \ 125180740Sdes ${PPPCF2} ${DESTDIR}/etc/ppp 126180740Sdes cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 127180740Sdes ${ETCMAIL} ${DESTDIR}/etc/mail 128180740Sdes @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 129180740Sdes ! -f ${DESTDIR}/etc/aliases ]; then \ 130180740Sdes set -x; \ 131204917Sdes ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 132204917Sdes fi 133204917Sdes ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 134221420Sdes ${DESTDIR}/etc/dumpdates 135221420Sdes ${INSTALL} -c -o nobody -g ${BINGRP} -m 644 /dev/null \ 136221420Sdes ${DESTDIR}/var/db/locate.database 137197679Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 138180750Sdes ${DESTDIR}/var/log/lpd-errs 139180750Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 140197679Sdes ${DESTDIR}/var/log/maillog 141197679Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 142197679Sdes ${DESTDIR}/var/log/lastlog 143180740Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 144180740Sdes ${DESTDIR}/var/log/messages 145180740Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 146180740Sdes ${DESTDIR}/var/log/security 147180740Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 148180740Sdes ${DESTDIR}/var/log/slip.log 149180740Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 150180740Sdes ${DESTDIR}/var/log/ppp.log 151180740Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 152180740Sdes ${DESTDIR}/var/log/wtmp 153180740Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 154180740Sdes ${DESTDIR}/var/run/utmp 155221420Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 156221420Sdes ${DESTDIR}/var/crash 157221420Sdes (cd ${.CURDIR}/..; \ 158180740Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 159180740Sdes ${DESTDIR}/) 160180740Sdes.if !defined(NOMAN) 161180740Sdes (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 162180740Sdes.endif 163180740Sdes 164180740Sdesdistrib-dirs: 165180740Sdes mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 166180740Sdes mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 167180740Sdes mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 168180740Sdes mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 169180740Sdes -p ${DESTDIR}/usr/include 170180740Sdes mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 171180740Sdes -p ${DESTDIR}/usr/libdata/perl/5.6.0/mach 172180740Sdes cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 173180740Sdes cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* . 174180740Sdes cd ${DESTDIR}/usr/share/man; \ 175180740Sdes set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 176180740Sdes while [ $$# -gt 0 ] ; \ 177180740Sdes do \ 178180740Sdes rm -rf "$$1"; \ 179180740Sdes ln -s "$$2" "$$1"; \ 180180740Sdes shift; shift; \ 181180740Sdes done 182180750Sdes cd ${DESTDIR}/usr/share/locale; \ 183180750Sdes set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.alias`; \ 184180750Sdes while [ $$# -gt 0 ] ; \ 185180750Sdes do \ 186180750Sdes rm -rf "$$1"; \ 187180750Sdes ln -s "$$2" "$$1"; \ 188180740Sdes shift; shift; \ 189180740Sdes done 190180740Sdes cd ${DESTDIR}/usr/share/nls; \ 191180740Sdes set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ 192180740Sdes while [ $$# -gt 0 ] ; \ 193180740Sdes do \ 194180744Sdes rm -rf "$$1"; \ 195180744Sdes ln -s "$$2" "$$1"; \ 196180744Sdes shift; shift; \ 197180740Sdes done 198180740Sdes 199180740Sdesetc-examples: 200180746Sdes (cd ${.CURDIR}; \ 201180746Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \ 202180746Sdes opieaccess ${DESTDIR}/usr/share/examples/etc; \ 203180740Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \ 204180740Sdes ${DESTDIR}/usr/share/examples/etc/defaults; \ 205180740Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/pccard.conf \ 206180740Sdes ${DESTDIR}/usr/share/examples/etc/defaults; \ 207180740Sdes ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/periodic.conf \ 208180740Sdes ${DESTDIR}/usr/share/examples/etc/defaults) 209180740Sdes 210180740Sdes.include <bsd.prog.mk> 211180740Sdes