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