Makefile revision 74837
1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 2# $FreeBSD: head/etc/Makefile 74837 2001-03-27 03:58:12Z green $ 3 4.if !defined(NO_SENDMAIL) 5SUBDIR= sendmail 6.endif 7 8BIN1= amd.map apmd.conf auth.conf \ 9 crontab csh.cshrc csh.login csh.logout \ 10 dhclient.conf dm.conf fbtab ftpusers gettytab group \ 11 hosts hosts.allow hosts.equiv hosts.lpd \ 12 inetd.conf login.access login.conf \ 13 motd modems netconfig networks newsyslog.conf \ 14 pam.conf phones pim6dd.conf pim6sd.conf \ 15 printcap profile protocols \ 16 rc rc.atm rc.devfs rc.diskless1 rc.diskless2 rc.firewall rc.firewall6 \ 17 rc.isdn rc.network rc.network6 rc.pccard rc.serial rc.shutdown \ 18 rc.syscons rc.sysctl remote rpc security services shells syslog.conf \ 19 usbd.conf \ 20 etc.${MACHINE_ARCH}/disktab \ 21 etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \ 22 etc.${MACHINE_ARCH}/ttys \ 23 ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ 24 ${.CURDIR}/../usr.bin/mail/misc/mail.rc \ 25 ${.CURDIR}/../usr.bin/locate/locate/locate.rc 26 27.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH) 28SSH= ${.CURDIR}/../crypto/openssh/ssh_config \ 29 ${.CURDIR}/../crypto/openssh/sshd_config \ 30 primes 31.endif 32 33.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) 34SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf 35.endif 36 37# -rwxr-xr-x root.wheel, for the new cron root.wheel 38BIN2= netstart pccard_ether rc.suspend rc.resume 39 40MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 41 BSD.var.dist BSD.x11.dist BSD.x11-4.dist 42NAMEDB= PROTO.localhost.rev named.conf named.root make-localhost 43PPPCNF= ppp.deny ppp.shells.sample 44PPPCF2= ppp.conf 45ETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ 46 mailertable.sample aliases 47 48 49# Special top level files for FreeBSD 50COPYRIGHT= COPYRIGHT 51FREEBSD= 52FREEBSD+= ${COPYRIGHT} 53 54etc: 55 56distribute: 57 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin 58.if defined(OBJFORMAT) 59 echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat 60.endif 61 @echo 62 63distribution: 64 (cd ${.CURDIR}; \ 65 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ 66 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \ 67 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \ 68 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/make.conf ${DESTDIR}/etc/defaults/; \ 69 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/pccard.conf ${DESTDIR}/etc/defaults/; \ 70 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/periodic.conf ${DESTDIR}/etc/defaults/; \ 71 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 72 ${DESTDIR}/var/log/cron; \ 73 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \ 74 master.passwd ${DESTDIR}/etc; \ 75 ( cd ${.CURDIR}/periodic; ${MAKE} install ); \ 76 ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall ); \ 77 ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \ 78 ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \ 79 ( cd ${.CURDIR}/isdn; ${MAKE} install ); \ 80 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; ) 81.if !defined(NO_SENDMAIL) 82 ( cd ${.CURDIR}/sendmail; ${MAKE} distribution ); 83.endif 84.if !defined(NOUUCP) 85 ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ) 86.endif 87.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH) 88 (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \ 89 ${DESTDIR}/etc/ssh ) 90.endif 91.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) 92 (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \ 93 ${DESTDIR}/etc/ssl ) 94.endif 95.if !defined(NO_MAKEDEV) 96 ( cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 97 MAKEDEV.local MAKEDEV ${DESTDIR}/dev ) 98 (cd ${DESTDIR}/dev; sh MAKEDEV all) 99.endif 100 (cd ${.CURDIR}/root; \ 101 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 102 ${DESTDIR}/root/.cshrc; \ 103 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 104 ${DESTDIR}/root/.klogin; \ 105 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 106 ${DESTDIR}/root/.login; \ 107 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 108 ${DESTDIR}/root/.profile; \ 109 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 110 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 111 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 112 cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 113 ${MTREE} ${DESTDIR}/etc/mtree 114 cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 115 ${NAMEDB} ${DESTDIR}/etc/namedb 116 cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 117 ${PPPCNF} ${DESTDIR}/etc/ppp 118 cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \ 119 ${PPPCF2} ${DESTDIR}/etc/ppp 120 cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 121 ${ETCMAIL} ${DESTDIR}/etc/mail 122 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 123 ! -f ${DESTDIR}/etc/aliases ]; then \ 124 set -x; \ 125 ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 126 fi 127 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 128 ${DESTDIR}/etc/dumpdates 129 ${INSTALL} -c -o nobody -g ${BINGRP} -m 644 /dev/null \ 130 ${DESTDIR}/var/db/locate.database 131 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 132 ${DESTDIR}/var/log/lpd-errs 133 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 134 ${DESTDIR}/var/log/maillog 135 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 136 ${DESTDIR}/var/log/lastlog 137 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 138 ${DESTDIR}/var/log/messages 139 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 140 ${DESTDIR}/var/log/security 141 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 142 ${DESTDIR}/var/log/slip.log 143 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 144 ${DESTDIR}/var/log/ppp.log 145 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 146 ${DESTDIR}/var/log/wtmp 147 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 148 ${DESTDIR}/var/run/utmp 149 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 150 ${DESTDIR}/var/crash 151 (cd ${.CURDIR}/..; \ 152 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 153 ${DESTDIR}/) 154.if !defined(NOMAN) 155 (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 156.endif 157 158distrib-dirs: 159 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 160 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 161 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 162 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 163 -p ${DESTDIR}/usr/include 164 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 165 -p ${DESTDIR}/usr/libdata/perl/5.6.0/mach 166 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 167 cd ${DESTDIR}/usr/share/man/en.ISO_8859-1; ln -sf ../man* . 168 cd ${DESTDIR}/usr/share/locale; \ 169 set - `cat ${.CURDIR}/locale.alias`; \ 170 while [ $$# -gt 0 ] ; \ 171 do \ 172 rm -rf "$$1"; \ 173 ln -s "$$2" "$$1"; \ 174 shift; shift; \ 175 done 176 cd ${DESTDIR}/usr/share/nls; \ 177 set - `cat ${.CURDIR}/locale.alias`; \ 178 while [ $$# -gt 0 ] ; \ 179 do \ 180 rm -rf "$$1"; \ 181 ln -s "$$2" "$$1"; \ 182 shift; shift; \ 183 done; \ 184 rm -rf POSIX; \ 185 ln -s C POSIX 186 187etc-examples: 188 (cd ${.CURDIR}; \ 189 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \ 190 ${DESTDIR}/usr/share/examples/etc; \ 191 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \ 192 ${DESTDIR}/usr/share/examples/etc/defaults; \ 193 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/make.conf \ 194 ${DESTDIR}/usr/share/examples/etc/defaults; \ 195 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/pccard.conf \ 196 ${DESTDIR}/usr/share/examples/etc/defaults; \ 197 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/periodic.conf \ 198 ${DESTDIR}/usr/share/examples/etc/defaults) 199 200.include <bsd.prog.mk> 201