1 # from: @(#)Makefile 5.11 (Berkeley) 5/21/91
6 .if ${MK_SENDMAIL} != "no"
11 crontab devd.conf devfs.conf \
12 ddb.conf dhclient.conf disktab fbtab \
13 ftpusers gettytab group \
14 hosts hosts.allow hosts.equiv \
15 inetd.conf libalias.conf login.access login.conf mac.conf motd \
16 netconfig network.subr networks newsyslog.conf nsswitch.conf \
17 phones profile protocols \
18 rc rc.bsdextended rc.firewall rc.initdiskless \
19 rc.sendmail rc.shutdown \
20 rc.subr remote rpc services shells \
21 sysctl.conf syslog.conf
23 .if exists(${.CURDIR}/etc.${MACHINE}/ttys)
24 BIN1+= etc.${MACHINE}/ttys
26 BIN1+= etc.${MACHINE_CPUARCH}/ttys
29 OPENBSMDIR= ${.CURDIR}/../contrib/openbsm
30 BSM_ETC_OPEN_FILES= ${OPENBSMDIR}/etc/audit_class \
31 ${OPENBSMDIR}/etc/audit_event
32 BSM_ETC_RESTRICTED_FILES= ${OPENBSMDIR}/etc/audit_control \
33 ${OPENBSMDIR}/etc/audit_user
34 BSM_ETC_EXEC_FILES= ${OPENBSMDIR}/etc/audit_warn
35 BSM_ETC_DIR= ${DESTDIR}/etc/security
37 # NB: keep these sorted by MK_* knobs
47 .if ${MK_BSNMP} != "no"
51 .if ${MK_FREEBSD_UPDATE} != "no"
52 BIN1+= freebsd-update.conf
55 .if ${MK_LOCATE} != "no"
56 BIN1+= ${.CURDIR}/../usr.bin/locate/locate/locate.rc
60 BIN1+= hosts.lpd printcap
63 .if ${MK_MAIL} != "no"
64 BIN1+= ${.CURDIR}/../usr.bin/mail/misc/mail.rc
68 BIN1+= ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config
75 .if ${MK_OPENSSH} != "no"
76 SSH= ${.CURDIR}/../crypto/openssh/ssh_config \
77 ${.CURDIR}/../crypto/openssh/sshd_config \
78 ${.CURDIR}/../crypto/openssh/moduli
80 .if ${MK_OPENSSL} != "no"
81 SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf
84 .if ${MK_NS_CACHING} != "no"
88 .if ${MK_PORTSNAP} != "no"
96 .if ${MK_TCSH} != "no"
97 BIN1+= csh.cshrc csh.login csh.logout
100 .if ${MK_WIRELESS} != "no"
104 # -rwxr-xr-x root:wheel, for the new cron root:wheel
105 BIN2= netstart pccard_ether rc.suspend rc.resume
107 MTREE= BSD.include.dist BSD.root.dist BSD.usr.dist BSD.var.dist
108 .if ${MK_SENDMAIL} != "no"
109 MTREE+= BSD.sendmail.dist
111 .if ${MK_BIND} != "no"
112 MTREE+= BIND.chroot.dist
113 .if ${MK_BIND_LIBS} != "no"
114 MTREE+= BIND.include.dist
120 .if ${MK_SENDMAIL} == "no"
121 ETCMAIL=mailer.conf aliases
123 ETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
124 mailertable.sample aliases
127 # Special top level files for FreeBSD
131 .if ${MK_MAN} != "no"
132 ${_+_}cd ${.CURDIR}/../share/man; ${MAKE} makedb
136 ${_+_}cd ${.CURDIR} ; ${MAKE} install DESTDIR=${DISTDIR}/${DISTRIBUTION}
137 ${_+_}cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION}
139 .include <bsd.endian.mk>
140 .if ${TARGET_ENDIANNESS} == "1234"
143 .elif ${TARGET_ENDIANNESS} == "4321"
152 .if !defined(DESTDIR)
153 @echo "set DESTDIR before running \"make ${.TARGET}\""
157 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
158 ${BIN1} ${DESTDIR}/etc; \
159 cap_mkdb ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf; \
160 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \
161 ${BIN2} ${DESTDIR}/etc; \
162 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
163 master.passwd nsmb.conf opieaccess ${DESTDIR}/etc;
164 .if ${MK_TCSH} == "no"
165 sed -i "" -e 's;/bin/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd
167 pwd_mkdb ${PWD_MKDB_ENDIAN} -i -p -d ${DESTDIR}/etc \
168 ${DESTDIR}/etc/master.passwd
169 .if ${MK_BLUETOOTH} != "no"
170 ${_+_}cd ${.CURDIR}/bluetooth; ${MAKE} install
172 ${_+_}cd ${.CURDIR}/defaults; ${MAKE} install
173 ${_+_}cd ${.CURDIR}/devd; ${MAKE} install
174 ${_+_}cd ${.CURDIR}/gss; ${MAKE} install
175 ${_+_}cd ${.CURDIR}/periodic; ${MAKE} install
176 ${_+_}cd ${.CURDIR}/rc.d; ${MAKE} install
177 ${_+_}cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall
178 ${_+_}cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
179 ${_+_}cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
180 ${_+_}cd ${.CURDIR}/pam.d; ${MAKE} install
181 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0444 \
182 ${BSM_ETC_OPEN_FILES} ${BSM_ETC_DIR}
183 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0600 \
184 ${BSM_ETC_RESTRICTED_FILES} ${BSM_ETC_DIR}
185 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0500 \
186 ${BSM_ETC_EXEC_FILES} ${BSM_ETC_DIR}
187 .if ${MK_BIND_MTREE} != "no"
188 @if [ ! -e ${DESTDIR}/etc/namedb ]; then \
190 ln -s ../var/named/etc/namedb ${DESTDIR}/etc/namedb; \
193 .if ${MK_BIND_ETC} != "no"
194 ${_+_}cd ${.CURDIR}/namedb; ${MAKE} install
196 .if ${MK_SENDMAIL} != "no"
197 ${_+_}cd ${.CURDIR}/sendmail; ${MAKE} distribution
199 .if ${MK_OPENSSH} != "no"
200 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
201 ${SSH} ${DESTDIR}/etc/ssh
203 .if ${MK_OPENSSL} != "no"
204 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
205 ${SSL} ${DESTDIR}/etc/ssl
207 .if ${MK_KERBEROS} != "no"
208 cd ${.CURDIR}/root; \
209 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
210 dot.k5login ${DESTDIR}/root/.k5login;
212 cd ${.CURDIR}/root; \
213 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
214 dot.profile ${DESTDIR}/root/.profile; \
215 rm -f ${DESTDIR}/.profile; \
216 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
217 .if ${MK_TCSH} != "no"
218 cd ${.CURDIR}/root; \
219 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
220 dot.cshrc ${DESTDIR}/root/.cshrc; \
221 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
222 dot.login ${DESTDIR}/root/.login; \
223 rm -f ${DESTDIR}/.cshrc; \
224 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc
226 cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
227 ${MTREE} ${DESTDIR}/etc/mtree
228 .if ${MK_PPP} != "no"
229 cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
230 ${PPPCNF} ${DESTDIR}/etc/ppp
232 .if ${MK_MAIL} != "no"
233 cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
234 ${ETCMAIL} ${DESTDIR}/etc/mail
235 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
236 ! -f ${DESTDIR}/etc/aliases ]; then \
238 ln -s mail/aliases ${DESTDIR}/etc/aliases; \
241 ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
242 ${DESTDIR}/etc/dumpdates
243 ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
244 ${DESTDIR}/var/db/locate.database
245 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
247 cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
248 ${FREEBSD} ${DESTDIR}/
249 .if exists(${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints)
250 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
251 ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \
252 ${DESTDIR}/boot/device.hints
256 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
257 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
258 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
259 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \
260 -p ${DESTDIR}/usr/include
261 .if ${MK_BIND_LIBS} != "no"
262 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.include.dist \
263 -p ${DESTDIR}/usr/include
265 .if ${MK_BIND_MTREE} != "no"
266 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.chroot.dist \
267 -p ${DESTDIR}/var/named
269 .if ${MK_SENDMAIL} != "no"
270 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/
272 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
273 cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* .
274 cd ${DESTDIR}/usr/share/man/en.UTF-8; ln -sf ../man* .
275 cd ${DESTDIR}/usr/share/man; \
276 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
277 while [ $$# -gt 0 ] ; \
283 cd ${DESTDIR}/usr/share/openssl/man; \
284 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
285 while [ $$# -gt 0 ] ; \
291 cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
292 cd ${DESTDIR}/usr/share/nls; \
293 set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
294 while [ $$# -gt 0 ] ; \
302 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
303 ${BIN1} ${BIN2} nsmb.conf opieaccess \
304 ${DESTDIR}/usr/share/examples/etc
305 ${_+_}cd ${.CURDIR}/defaults; ${MAKE} install \
306 DESTDIR=${DESTDIR}/usr/share/examples
308 .include <bsd.prog.mk>