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.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_OPENSSL) 31.if !defined(NO_OPENSSH) 32SSH= ${.CURDIR}/../crypto/openssh/ssh_config \ 33 ${.CURDIR}/../crypto/openssh/sshd_config \ 34 moduli 35.endif 36SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf 37.endif 38 39# -rwxr-xr-x root:wheel, for the new cron root:wheel 40BIN2= netstart pccard_ether rc.suspend rc.resume 41 42DEFAULTS= rc.conf pccard.conf periodic.conf 43 44MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 45 BSD.var.dist BSD.x11.dist BSD.x11-4.dist 46.if !defined(NO_SENDMAIL) 47MTREE+= BSD.sendmail.dist 48.endif 49 50NAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \ 51 make-localhost 52 53PPPCNF= ppp.conf 54 55ETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ 56 mailertable.sample aliases 57 58# Special top level files for FreeBSD 59FREEBSD=COPYRIGHT 60 61distribute: 62 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION} 63.if defined(OBJFORMAT) 64 echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/${DISTRIBUTION}/etc/objformat 65.endif 66 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ 67 ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \ 68 ${DISTDIR}/${DISTRIBUTION}/boot/device.hints 69 70distribution: 71 cd ${.CURDIR}; \ 72 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \ 73 ${BIN1} ${DESTDIR}/etc; \ 74 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 755 \ 75 ${BIN2} ${DESTDIR}/etc; \ 76 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 600 \ 77 master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \ 78 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd 79 cd ${.CURDIR}/defaults; ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \ 80 ${DEFAULTS} ${DESTDIR}/etc/defaults 81 cd ${.CURDIR}/periodic; ${MAKE} install 82 cd ${.CURDIR}/rc.d; ${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 cd ${.CURDIR}/pam.d; ${MAKE} install 87.if !defined(NO_I4B) 88 cd ${.CURDIR}/isdn; ${MAKE} install 89.endif 90.if !defined(NO_SENDMAIL) 91 cd ${.CURDIR}/sendmail; ${MAKE} distribution 92.endif 93.if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) 94.if !defined(NO_OPENSSH) 95 cd ${.CURDIR}; ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \ 96 ${SSH} ${DESTDIR}/etc/ssh 97.endif 98 cd ${.CURDIR}; ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \ 99 ${SSL} ${DESTDIR}/etc/ssl 100.endif 101.if !defined(NO_MAKEDEV_INSTALL) 102 cd ${.CURDIR}; ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 555 \ 103 MAKEDEV.local MAKEDEV ${DESTDIR}/dev 104.if !defined(NO_MAKEDEV_RUN) 105 cd ${DESTDIR}/dev; sh MAKEDEV all 106.endif 107.endif 108 cd ${.CURDIR}/root; \ 109 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \ 110 dot.cshrc ${DESTDIR}/root/.cshrc; \ 111 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \ 112 dot.klogin ${DESTDIR}/root/.klogin; \ 113 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \ 114 dot.login ${DESTDIR}/root/.login; \ 115 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \ 116 dot.profile ${DESTDIR}/root/.profile; \ 117 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 118 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 119 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile 120 cd ${.CURDIR}/mtree; ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ 121 ${MTREE} ${DESTDIR}/etc/mtree 122 cd ${.CURDIR}/namedb; ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \ 123 ${NAMEDB} ${DESTDIR}/etc/namedb 124 cd ${.CURDIR}/ppp; ${INSTALL} ${COPY} -o root -g ${BINGRP} -m 600 \ 125 ${PPPCNF} ${DESTDIR}/etc/ppp 126 cd ${.CURDIR}/mail; ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \ 127 ${ETCMAIL} ${DESTDIR}/etc/mail 128 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 129 ! -f ${DESTDIR}/etc/aliases ]; then \ 130 set -x; \ 131 ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 132 fi 133 ${INSTALL} ${COPY} -o ${BINOWN} -g operator -m 664 /dev/null \ 134 ${DESTDIR}/etc/dumpdates 135 ${INSTALL} ${COPY} -o nobody -g ${BINGRP} -m 644 /dev/null \ 136 ${DESTDIR}/var/db/locate.database 137 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 138 ${DESTDIR}/var/log/auth.log 139 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 140 ${DESTDIR}/var/log/cron 141 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 142 ${DESTDIR}/var/log/lpd-errs 143 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 144 ${DESTDIR}/var/log/maillog 145 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 146 ${DESTDIR}/var/log/lastlog 147 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 148 ${DESTDIR}/var/log/messages 149 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 150 ${DESTDIR}/var/log/security 151 ${INSTALL} ${COPY} -o ${BINOWN} -g network -m 640 /dev/null \ 152 ${DESTDIR}/var/log/slip.log 153 ${INSTALL} ${COPY} -o ${BINOWN} -g network -m 640 /dev/null \ 154 ${DESTDIR}/var/log/ppp.log 155 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 156 ${DESTDIR}/var/log/wtmp 157 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 158 ${DESTDIR}/var/run/utmp 159 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 160 ${DESTDIR}/var/crash 161 cd ${.CURDIR}/..; ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ 162 ${FREEBSD} ${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}; ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ 218 ${BIN1} ${BIN2} nsmb.conf opieaccess \ 219 ${DESTDIR}/usr/share/examples/etc 220 cd ${.CURDIR}/defaults; ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 \ 221 ${DEFAULTS} ${DESTDIR}/usr/share/examples/etc/defaults 222 223.include <bsd.prog.mk> 224