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 pf.conf pf.os 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 68distribution: 69 cd ${.CURDIR}; \ 70 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 71 ${BIN1} ${DESTDIR}/etc; \ 72 cap_mkdb ${DESTDIR}/etc/login.conf; \ 73 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \ 74 ${BIN2} ${DESTDIR}/etc; \ 75 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 76 master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \ 77 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd 78 cd ${.CURDIR}/bluetooth; ${MAKE} install 79 cd ${.CURDIR}/defaults; ${MAKE} install 80 cd ${.CURDIR}/periodic; ${MAKE} install 81 cd ${.CURDIR}/rc.d; ${MAKE} install 82 cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall 83 cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap 84 cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt 85 cd ${.CURDIR}/pam.d; ${MAKE} install 86.if !defined(NO_I4B) 87 cd ${.CURDIR}/isdn; ${MAKE} install 88.endif 89.if !defined(NO_SENDMAIL) 90 cd ${.CURDIR}/sendmail; ${MAKE} distribution 91.endif 92.if !defined(NO_OPENSSL) 93.if !defined(NO_OPENSSH) 94 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 95 ${SSH} ${DESTDIR}/etc/ssh 96.endif 97 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 98 ${SSL} ${DESTDIR}/etc/ssl 99.endif 100.if !defined(NO_KERBEROS) 101 cd ${.CURDIR}/root; \ 102 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 103 dot.k5login ${DESTDIR}/root/.k5login; 104.endif 105 cd ${.CURDIR}/root; \ 106 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 107 dot.cshrc ${DESTDIR}/root/.cshrc; \ 108 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 109 dot.login ${DESTDIR}/root/.login; \ 110 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 111 dot.profile ${DESTDIR}/root/.profile; \ 112 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 113 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 114 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile 115 cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 116 ${MTREE} ${DESTDIR}/etc/mtree 117 cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 118 ${NAMEDB} ${DESTDIR}/etc/namedb 119 cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 120 ${PPPCNF} ${DESTDIR}/etc/ppp 121 cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 122 ${ETCMAIL} ${DESTDIR}/etc/mail 123 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 124 ! -f ${DESTDIR}/etc/aliases ]; then \ 125 set -x; \ 126 ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 127 fi 128 ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \ 129 ${DESTDIR}/etc/dumpdates 130 ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \ 131 ${DESTDIR}/var/db/locate.database 132 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 133 ${DESTDIR}/var/log/auth.log 134 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 135 ${DESTDIR}/var/log/cron 136 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 137 ${DESTDIR}/var/log/debug.log 138 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 139 ${DESTDIR}/var/log/xferlog 140 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 141 ${DESTDIR}/var/log/lpd-errs 142 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 143 ${DESTDIR}/var/log/maillog 144 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 145 ${DESTDIR}/var/log/lastlog 146 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 147 ${DESTDIR}/var/log/messages 148 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 149 ${DESTDIR}/var/log/security 150 ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \ 151 ${DESTDIR}/var/log/slip.log 152 ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \ 153 ${DESTDIR}/var/log/ppp.log 154 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 155 ${DESTDIR}/var/log/wtmp 156 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 157 ${DESTDIR}/var/run/utmp 158 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 159 ${DESTDIR}/var/crash 160 cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 161 ${FREEBSD} ${DESTDIR}/ 162 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 163 ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \ 164 ${DESTDIR}/boot/device.hints 165 166distrib-dirs: 167 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 168 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 169 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 170 mtree -eU ${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