Makefile revision 92452
1117845Ssam# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 2117845Ssam# $FreeBSD: head/etc/Makefile 92452 2002-03-16 21:41:09Z markm $ 3117845Ssam 4117845Ssam.if !defined(NO_SENDMAIL) 5117845SsamSUBDIR= sendmail 6117845Ssam.endif 7117845Ssam 8117845SsamBIN1= amd.map apmd.conf auth.conf \ 9117845Ssam crontab csh.cshrc csh.login csh.logout \ 10117845Ssam dhclient.conf dm.conf fbtab ftpusers gettytab group \ 11117845Ssam hosts hosts.allow hosts.equiv hosts.lpd \ 12117845Ssam inetd.conf login.access login.conf \ 13117845Ssam motd modems netconfig networks newsyslog.conf \ 14117845Ssam phones printcap profile protocols \ 15117845Ssam rc rc.atm rc.devfs rc.diskless1 rc.diskless2 rc.firewall rc.firewall6 \ 16117845Ssam rc.network rc.network6 rc.pccard rc.serial rc.shutdown \ 17117845Ssam rc.syscons rc.sysctl remote rpc services shells sysctl.conf \ 18117845Ssam syslog.conf usbd.conf \ 19117845Ssam etc.${MACHINE_ARCH}/disktab \ 20117845Ssam etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \ 21117845Ssam etc.${MACHINE_ARCH}/ttys \ 22117845Ssam ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 23117845Ssam ${.CURDIR}/../usr.bin/mail/misc/mail.rc \ 24117845Ssam ${.CURDIR}/../usr.bin/locate/locate/locate.rc 25117845Ssam 26117845Ssam.if !defined(NO_I4B) 27117845SsamBIN1+= rc.isdn 28117845Ssam.endif 29117845Ssam 30117845Ssam.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH) 31117845SsamSSH= ${.CURDIR}/../crypto/openssh/ssh_config \ 32117845Ssam ${.CURDIR}/../crypto/openssh/sshd_config \ 33117845Ssam primes 34117845Ssam.endif 35117845Ssam 36117845Ssam.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) 37117845SsamSSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf 38117845Ssam.endif 39117845Ssam 40117845Ssam# -rwxr-xr-x root:wheel, for the new cron root:wheel 41117845SsamBIN2= netstart pccard_ether rc.suspend rc.resume 42117845Ssam 43117845SsamMTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 44117845Ssam BSD.var.dist BSD.x11.dist BSD.x11-4.dist 45117845SsamNAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \ 46117845Ssam make-localhost 47117845SsamPPPCNF= ppp.conf 48117845SsamETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ 49117845Ssam mailertable.sample aliases 50117845Ssam 51117845Ssam 52117845Ssam# Special top level files for FreeBSD 53117845SsamCOPYRIGHT= COPYRIGHT 54117845SsamFREEBSD= 55117845SsamFREEBSD+= ${COPYRIGHT} 56117845Ssam 57117845Ssametc: 58117845Ssam 59117845Ssamdistribute: 60117845Ssam cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin 61117845Ssam.if defined(OBJFORMAT) 62117845Ssam echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat 63117845Ssam.endif 64117845Ssam @echo 65117845Ssam 66117845Ssamdistribution: 67117845Ssam (cd ${.CURDIR}; \ 68117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 69117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \ 70117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \ 71117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/pccard.conf ${DESTDIR}/etc/defaults/; \ 72117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/periodic.conf ${DESTDIR}/etc/defaults/; \ 73117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 74117845Ssam ${DESTDIR}/var/log/cron; \ 75117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \ 76117845Ssam master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \ 77117845Ssam ( cd ${.CURDIR}/periodic; ${MAKE} install ); \ 78117845Ssam ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall ); \ 79117845Ssam ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \ 80117845Ssam ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \ 81117845Ssam pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; ) 82117845Ssam ( cd ${.CURDIR}/pam.d; ${MAKE} install ) 83117845Ssam.if !defined(NO_I4B) 84117845Ssam ( cd ${.CURDIR}/isdn; ${MAKE} install ) 85117845Ssam.endif 86117845Ssam.if !defined(NO_SENDMAIL) 87117845Ssam ( cd ${.CURDIR}/sendmail; ${MAKE} distribution ); 88117845Ssam.endif 89117845Ssam.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH) 90117845Ssam (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \ 91117845Ssam ${DESTDIR}/etc/ssh ) 92117845Ssam.endif 93117845Ssam.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) 94117845Ssam (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \ 95117845Ssam ${DESTDIR}/etc/ssl ) 96117845Ssam.endif 97117845Ssam.if !defined(NO_MAKEDEV_INSTALL) 98117845Ssam ( cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 99117845Ssam MAKEDEV.local MAKEDEV ${DESTDIR}/dev ) 100117845Ssam.if !defined(NO_MAKEDEV_RUN) 101117845Ssam (cd ${DESTDIR}/dev; sh MAKEDEV all) 102117845Ssam.endif 103117845Ssam.endif 104117845Ssam (cd ${.CURDIR}/root; \ 105117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 106117845Ssam ${DESTDIR}/root/.cshrc; \ 107117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 108117845Ssam ${DESTDIR}/root/.klogin; \ 109117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 110117845Ssam ${DESTDIR}/root/.login; \ 111117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 112117845Ssam ${DESTDIR}/root/.profile; \ 113117845Ssam rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 114117845Ssam ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 115117845Ssam ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 116117845Ssam cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 117117845Ssam ${MTREE} ${DESTDIR}/etc/mtree 118117845Ssam cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 119117845Ssam ${NAMEDB} ${DESTDIR}/etc/namedb 120117845Ssam cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \ 121117845Ssam ${PPPCNF} ${DESTDIR}/etc/ppp 122117845Ssam cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 123117845Ssam ${ETCMAIL} ${DESTDIR}/etc/mail 124117845Ssam @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 125117845Ssam ! -f ${DESTDIR}/etc/aliases ]; then \ 126117845Ssam set -x; \ 127117845Ssam ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 128117845Ssam fi 129117845Ssam ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 130117845Ssam ${DESTDIR}/etc/dumpdates 131117845Ssam ${INSTALL} -c -o nobody -g ${BINGRP} -m 644 /dev/null \ 132117845Ssam ${DESTDIR}/var/db/locate.database 133117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 134117845Ssam ${DESTDIR}/var/log/auth.log 135117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 136117845Ssam ${DESTDIR}/var/log/lpd-errs 137117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 138117845Ssam ${DESTDIR}/var/log/maillog 139117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 140117845Ssam ${DESTDIR}/var/log/lastlog 141117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 142117845Ssam ${DESTDIR}/var/log/messages 143117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 144117845Ssam ${DESTDIR}/var/log/security 145117845Ssam ${INSTALL} -c -o ${BINOWN} -g network -m 640 /dev/null \ 146117845Ssam ${DESTDIR}/var/log/slip.log 147117845Ssam ${INSTALL} -c -o ${BINOWN} -g network -m 640 /dev/null \ 148117845Ssam ${DESTDIR}/var/log/ppp.log 149117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 150117845Ssam ${DESTDIR}/var/log/wtmp 151117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 152117845Ssam ${DESTDIR}/var/run/utmp 153117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 154117845Ssam ${DESTDIR}/var/crash 155117845Ssam (cd ${.CURDIR}/..; \ 156117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 157117845Ssam ${DESTDIR}/) 158117845Ssam.if !defined(NOMAN) 159117845Ssam (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 160117845Ssam.endif 161117845Ssam 162117845Ssamdistrib-dirs: 163117845Ssam -set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.deprecated`; \ 164117845Ssam while [ $$# -gt 0 ] ; \ 165117845Ssam do \ 166117845Ssam for dir in /usr/share/locale \ 167117845Ssam /usr/share/nls \ 168117845Ssam /usr/local/share/nls; \ 169117845Ssam do \ 170117845Ssam test -d ${DESTDIR}/$${dir} && cd ${DESTDIR}/$${dir}; \ 171117845Ssam test -L "$$2" && rm -rf "$$2"; \ 172117845Ssam test \! -L "$$1" && test -d "$$1" && mv "$$1" "$$2"; \ 173117845Ssam done; \ 174117845Ssam shift; shift; \ 175117845Ssam done 176117845Ssam mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 177117845Ssam mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 178117845Ssam mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 179117845Ssam mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 180117845Ssam -p ${DESTDIR}/usr/include 181117845Ssam mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 182117845Ssam -p ${DESTDIR}/usr/libdata/perl/5.6.1/mach 183117845Ssam cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 184117845Ssam cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* . 185117845Ssam cd ${DESTDIR}/usr/share/man; \ 186117845Ssam set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 187117845Ssam while [ $$# -gt 0 ] ; \ 188117845Ssam do \ 189117845Ssam rm -rf "$$1"; \ 190117845Ssam ln -s "$$2" "$$1"; \ 191117845Ssam shift; shift; \ 192117845Ssam done 193117845Ssam cd ${DESTDIR}/usr/share/locale; \ 194117845Ssam set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.alias`; \ 195117845Ssam while [ $$# -gt 0 ] ; \ 196117845Ssam do \ 197117845Ssam rm -rf "$$1"; \ 198117845Ssam ln -s "$$2" "$$1"; \ 199117845Ssam shift; shift; \ 200117845Ssam done 201117845Ssam cd ${DESTDIR}/usr/share/nls; \ 202117845Ssam set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ 203117845Ssam while [ $$# -gt 0 ] ; \ 204117845Ssam do \ 205117845Ssam rm -rf "$$1"; \ 206117845Ssam ln -s "$$2" "$$1"; \ 207117845Ssam shift; shift; \ 208117845Ssam done 209117845Ssam 210117845Ssametc-examples: 211117845Ssam (cd ${.CURDIR}; \ 212117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \ 213117845Ssam opieaccess ${DESTDIR}/usr/share/examples/etc; \ 214117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \ 215117845Ssam ${DESTDIR}/usr/share/examples/etc/defaults; \ 216117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/pccard.conf \ 217117845Ssam ${DESTDIR}/usr/share/examples/etc/defaults; \ 218117845Ssam ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/periodic.conf \ 219117845Ssam ${DESTDIR}/usr/share/examples/etc/defaults) 220117845Ssam 221117845Ssam.include <bsd.prog.mk> 222117845Ssam