1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91 2# $FreeBSD$ 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.syscons rc.sysctl remote rpc services shells sysctl.conf \ 18 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}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall ); \ 84 ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \ 85 ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \ 86 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; ) 87 ( cd ${.CURDIR}/pam.d; ${MAKE} install ) 88.if !defined(NO_I4B) 89 ( cd ${.CURDIR}/isdn; ${MAKE} install ) 90.endif 91.if !defined(NO_SENDMAIL) 92 ( cd ${.CURDIR}/sendmail; ${MAKE} distribution ); 93.endif 94.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH) 95 (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \ 96 ${DESTDIR}/etc/ssh ) 97.endif 98.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) 99 (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \ 100 ${DESTDIR}/etc/ssl ) 101.endif 102.if !defined(NO_MAKEDEV_INSTALL) 103 ( cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ 104 MAKEDEV.local MAKEDEV ${DESTDIR}/dev ) 105.if !defined(NO_MAKEDEV_RUN) 106 (cd ${DESTDIR}/dev; sh MAKEDEV all) 107.endif 108.endif 109 (cd ${.CURDIR}/root; \ 110 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ 111 ${DESTDIR}/root/.cshrc; \ 112 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ 113 ${DESTDIR}/root/.klogin; \ 114 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ 115 ${DESTDIR}/root/.login; \ 116 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ 117 ${DESTDIR}/root/.profile; \ 118 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 119 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 120 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) 121 cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 122 ${MTREE} ${DESTDIR}/etc/mtree 123 cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 124 ${NAMEDB} ${DESTDIR}/etc/namedb 125 cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \ 126 ${PPPCNF} ${DESTDIR}/etc/ppp 127 cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ 128 ${ETCMAIL} ${DESTDIR}/etc/mail 129 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 130 ! -f ${DESTDIR}/etc/aliases ]; then \ 131 set -x; \ 132 ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 133 fi 134 ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ 135 ${DESTDIR}/etc/dumpdates 136 ${INSTALL} -c -o nobody -g ${BINGRP} -m 644 /dev/null \ 137 ${DESTDIR}/var/db/locate.database 138 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 139 ${DESTDIR}/var/log/auth.log 140 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 141 ${DESTDIR}/var/log/lpd-errs 142 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 143 ${DESTDIR}/var/log/maillog 144 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 145 ${DESTDIR}/var/log/lastlog 146 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 147 ${DESTDIR}/var/log/messages 148 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 149 ${DESTDIR}/var/log/security 150 ${INSTALL} -c -o ${BINOWN} -g network -m 640 /dev/null \ 151 ${DESTDIR}/var/log/slip.log 152 ${INSTALL} -c -o ${BINOWN} -g network -m 640 /dev/null \ 153 ${DESTDIR}/var/log/ppp.log 154 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 155 ${DESTDIR}/var/log/wtmp 156 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 157 ${DESTDIR}/var/run/utmp 158 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 159 ${DESTDIR}/var/crash 160 (cd ${.CURDIR}/..; \ 161 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ 162 ${DESTDIR}/) 163.if !defined(NOMAN) 164 (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) 165.endif 166 167distrib-dirs: 168 -set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.deprecated`; \ 169 while [ $$# -gt 0 ] ; \ 170 do \ 171 for dir in /usr/share/locale \ 172 /usr/share/nls \ 173 /usr/local/share/nls; \ 174 do \ 175 test -d ${DESTDIR}/$${dir} && cd ${DESTDIR}/$${dir}; \ 176 test -L "$$2" && rm -rf "$$2"; \ 177 test \! -L "$$1" && test -d "$$1" && mv "$$1" "$$2"; \ 178 done; \ 179 shift; shift; \ 180 done 181 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 182 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 183 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 184 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 185 -p ${DESTDIR}/usr/include 186.if !defined(NO_SENDMAIL) 187 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/ 188.endif 189 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 190 cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* . 191 cd ${DESTDIR}/usr/share/man; \ 192 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 193 while [ $$# -gt 0 ] ; \ 194 do \ 195 rm -rf "$$1"; \ 196 ln -s "$$2" "$$1"; \ 197 shift; shift; \ 198 done 199 cd ${DESTDIR}/usr/share/locale; \ 200 set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.alias`; \ 201 while [ $$# -gt 0 ] ; \ 202 do \ 203 rm -rf "$$1"; \ 204 ln -s "$$2" "$$1"; \ 205 shift; shift; \ 206 done 207 cd ${DESTDIR}/usr/share/nls; \ 208 set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ 209 while [ $$# -gt 0 ] ; \ 210 do \ 211 rm -rf "$$1"; \ 212 ln -s "$$2" "$$1"; \ 213 shift; shift; \ 214 done 215 216etc-examples: 217 (cd ${.CURDIR}; \ 218 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \ 219 opieaccess ${DESTDIR}/usr/share/examples/etc; \ 220 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \ 221 ${DESTDIR}/usr/share/examples/etc/defaults; \ 222 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/pccard.conf \ 223 ${DESTDIR}/usr/share/examples/etc/defaults; \ 224 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/periodic.conf \ 225 ${DESTDIR}/usr/share/examples/etc/defaults) 226 227.include <bsd.prog.mk> 228