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