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 printcap 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 23.if !defined(NO_OPENSSL) 24.if !defined(NO_OPENSSH) 25SSH= ${.CURDIR}/../crypto/openssh/ssh_config \ 26 ${.CURDIR}/../crypto/openssh/sshd_config \ 27 moduli 28.endif 29SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf 30.endif 31 32# -rwxr-xr-x root:wheel, for the new cron root:wheel 33BIN2= netstart pccard_ether rc.suspend rc.resume 34 35MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ 36 BSD.var.dist BSD.x11.dist BSD.x11-4.dist 37.if !defined(NO_SENDMAIL) 38MTREE+= BSD.sendmail.dist 39.endif 40 41NAMEDB= PROTO.localhost.rev PROTO.localhost-v6.rev named.conf named.root \ 42 make-localhost 43 44PPPCNF= ppp.conf 45 46.if defined(NO_SENDMAIL) 47ETCMAIL=mailer.conf aliases 48.else 49ETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ 50 mailertable.sample aliases 51.endif 52 53# Special top level files for FreeBSD 54FREEBSD=COPYRIGHT 55 56distribute: 57 cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION} 58 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 59 ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \ 60 ${DISTDIR}/${DISTRIBUTION}/boot/device.hints 61 62distribution: 63 cd ${.CURDIR}; \ 64 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 65 ${BIN1} ${DESTDIR}/etc; \ 66 cap_mkdb ${DESTDIR}/etc/login.conf; \ 67 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \ 68 ${BIN2} ${DESTDIR}/etc; \ 69 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 70 master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \ 71 pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd 72 cd ${.CURDIR}/defaults; ${MAKE} install 73 cd ${.CURDIR}/periodic; ${MAKE} install 74 cd ${.CURDIR}/rc.d; ${MAKE} install 75 cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall 76 cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap 77 cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt 78 cd ${.CURDIR}/pam.d; ${MAKE} install 79.if !defined(NO_I4B) 80 cd ${.CURDIR}/isdn; ${MAKE} install 81.endif 82.if !defined(NO_SENDMAIL) 83 cd ${.CURDIR}/sendmail; ${MAKE} distribution 84.endif 85.if !defined(NO_OPENSSL) 86.if !defined(NO_OPENSSH) 87 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 88 ${SSH} ${DESTDIR}/etc/ssh 89.endif 90 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 91 ${SSL} ${DESTDIR}/etc/ssl 92.endif 93 cd ${.CURDIR}/root; \ 94 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 95 dot.cshrc ${DESTDIR}/root/.cshrc; \ 96 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 97 dot.k5login ${DESTDIR}/root/.k5login; \ 98 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 99 dot.login ${DESTDIR}/root/.login; \ 100 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 101 dot.profile ${DESTDIR}/root/.profile; \ 102 rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ 103 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ 104 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile 105 cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 106 ${MTREE} ${DESTDIR}/etc/mtree 107 cd ${.CURDIR}/namedb; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 108 ${NAMEDB} ${DESTDIR}/etc/namedb 109 cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ 110 ${PPPCNF} ${DESTDIR}/etc/ppp 111 cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ 112 ${ETCMAIL} ${DESTDIR}/etc/mail 113 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ 114 ! -f ${DESTDIR}/etc/aliases ]; then \ 115 set -x; \ 116 ln -s mail/aliases ${DESTDIR}/etc/aliases; \ 117 fi 118 ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \ 119 ${DESTDIR}/etc/dumpdates 120 ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \ 121 ${DESTDIR}/var/db/locate.database 122 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 123 ${DESTDIR}/var/log/auth.log 124 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 125 ${DESTDIR}/var/log/cron 126 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 127 ${DESTDIR}/var/log/debug.log 128 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 129 ${DESTDIR}/var/log/xferlog 130 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 131 ${DESTDIR}/var/log/lpd-errs 132 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 640 /dev/null \ 133 ${DESTDIR}/var/log/maillog 134 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 135 ${DESTDIR}/var/log/lastlog 136 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 137 ${DESTDIR}/var/log/messages 138 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ 139 ${DESTDIR}/var/log/security 140 ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \ 141 ${DESTDIR}/var/log/slip.log 142 ${INSTALL} -o ${BINOWN} -g network -m 640 /dev/null \ 143 ${DESTDIR}/var/log/ppp.log 144 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 145 ${DESTDIR}/var/log/wtmp 146 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ 147 ${DESTDIR}/var/run/utmp 148 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ 149 ${DESTDIR}/var/crash 150 cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 151 ${FREEBSD} ${DESTDIR}/ 152.if !defined(NOMAN) 153 cd ${.CURDIR}/../share/man; ${MAKE} makedb 154.endif 155 156distrib-dirs: 157 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ 158 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var 159 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr 160 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ 161 -p ${DESTDIR}/usr/include 162.if !defined(NO_SENDMAIL) 163 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/ 164.endif 165 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys 166 cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* . 167 cd ${DESTDIR}/usr/share/man; \ 168 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 169 while [ $$# -gt 0 ] ; \ 170 do \ 171 rm -rf "$$1"; \ 172 ln -s "$$2" "$$1"; \ 173 shift; shift; \ 174 done 175 cd ${DESTDIR}/usr/share/openssl/man; \ 176 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ 177 while [ $$# -gt 0 ] ; \ 178 do \ 179 rm -rf "$$1"; \ 180 ln -s "$$2" "$$1"; \ 181 shift; shift; \ 182 done 183 cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* . 184 cd ${DESTDIR}/usr/share/nls; \ 185 set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ 186 while [ $$# -gt 0 ] ; \ 187 do \ 188 rm -rf "$$1"; \ 189 ln -s "$$2" "$$1"; \ 190 shift; shift; \ 191 done 192 193etc-examples: 194 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ 195 ${BIN1} ${BIN2} nsmb.conf opieaccess \ 196 ${DESTDIR}/usr/share/examples/etc 197 cd ${.CURDIR}/defaults; ${MAKE} install \ 198 DESTDIR=${DESTDIR}/usr/share/examples 199 200.include <bsd.prog.mk> 201