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