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 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 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 59distribute: 60 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION} 61 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 62 ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \ 63 ${DISTDIR}/${DISTRIBUTION}/boot/device.hints 64 65distribution: 66 cd ${.CURDIR}; \ 67 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 68 ${BIN1} ${DESTDIR}/etc; \ 69 cap_mkdb ${DESTDIR}/etc/login.conf; \ 70 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \ 71 ${BIN2} ${DESTDIR}/etc; \ 72 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 73 master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \ 74 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd 75 cd ${.CURDIR}/bluetooth; ${MAKE} install 76 cd ${.CURDIR}/defaults; ${MAKE} install 77 cd ${.CURDIR}/periodic; ${MAKE} install 78 cd ${.CURDIR}/rc.d; ${MAKE} install 79 cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall 80 cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap 81 cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt 82 cd ${.CURDIR}/pam.d; ${MAKE} install 83.if !defined(NO_I4B) 84 cd ${.CURDIR}/isdn; ${MAKE} install 85.endif 86.if !defined(NO_SENDMAIL) 87 cd ${.CURDIR}/sendmail; ${MAKE} distribution 88.endif 89.if !defined(NO_OPENSSL) 90.if !defined(NO_OPENSSH) 91 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 92 ${SSH} ${DESTDIR}/etc/ssh 93.endif 94 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 95 ${SSL} ${DESTDIR}/etc/ssl 96.endif 97.if !defined(NO_KERBEROS) 98 cd ${.CURDIR}/root; \ 99 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 100 dot.k5login ${DESTDIR}/root/.k5login; 101.endif 102 cd ${.CURDIR}/root; \ 103 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 104 dot.cshrc ${DESTDIR}/root/.cshrc; \ 105 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 106 dot.login ${DESTDIR}/root/.login; \ 107 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 108 dot.profile ${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} -o ${BINOWN} -g ${BINGRP} -m 444 \ 113 ${MTREE} ${DESTDIR}/etc/mtree 114 cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 115 ${NAMEDB} ${DESTDIR}/etc/namedb 116 cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 117 ${PPPCNF} ${DESTDIR}/etc/ppp 118 cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 119 ${ETCMAIL} ${DESTDIR}/etc/mail 120 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 121 ! -f ${DESTDIR}/etc/aliases ]; then \ 122 set -x; \ 123 ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 124 fi 125 ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \ 126 ${DESTDIR}/etc/dumpdates 127 ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \ 128 ${DESTDIR}/var/db/locate.database 129 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 130 ${DESTDIR}/var/log/auth.log 131 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 132 ${DESTDIR}/var/log/cron 133 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 134 ${DESTDIR}/var/log/debug.log 135 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 136 ${DESTDIR}/var/log/xferlog 137 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 138 ${DESTDIR}/var/log/lpd-errs 139 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 140 ${DESTDIR}/var/log/maillog 141 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 142 ${DESTDIR}/var/log/lastlog 143 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 144 ${DESTDIR}/var/log/messages 145 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 146 ${DESTDIR}/var/log/security 147 ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \ 148 ${DESTDIR}/var/log/slip.log 149 ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \ 150 ${DESTDIR}/var/log/ppp.log 151 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 152 ${DESTDIR}/var/log/wtmp 153 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 154 ${DESTDIR}/var/run/utmp 155 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 156 ${DESTDIR}/var/crash 157 cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 158 ${FREEBSD} ${DESTDIR}/ 159.if !defined(NOMAN) 160 cd ${.CURDIR}/../share/man; ${MAKE} makedb 161.endif 162 163distrib-dirs: 164 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 165 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 166 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 167 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 168 -p ${DESTDIR}/usr/include 169.if !defined(NO_SENDMAIL) 170 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/ 171.endif 172 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 173 cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* . 174 cd ${DESTDIR}/usr/share/man; \ 175 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 176 while [ $$# -gt 0 ] ; \ 177 do \ 178 rm -rf "$$1"; \ 179 ln -s "$$2" "$$1"; \ 180 shift; shift; \ 181 done 182 cd ${DESTDIR}/usr/share/openssl/man; \ 183 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 184 while [ $$# -gt 0 ] ; \ 185 do \ 186 rm -rf "$$1"; \ 187 ln -s "$$2" "$$1"; \ 188 shift; shift; \ 189 done 190 cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* . 191 cd ${DESTDIR}/usr/share/nls; \ 192 set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ 193 while [ $$# -gt 0 ] ; \ 194 do \ 195 rm -rf "$$1"; \ 196 ln -s "$$2" "$$1"; \ 197 shift; shift; \ 198 done 199 200etc-examples: 201 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 202 ${BIN1} ${BIN2} nsmb.conf opieaccess \ 203 ${DESTDIR}/usr/share/examples/etc 204 cd ${.CURDIR}/defaults; ${MAKE} install \ 205 DESTDIR=${DESTDIR}/usr/share/examples 206 207.include <bsd.prog.mk> 208