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