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.firewall6 rc.initdiskless \
19 rc.sendmail rc.shutdown \
20 rc.subr remote rpc services shells \
21 sysctl.conf syslog.conf \
22 etc.${MACHINE_ARCH}/ttys
24 OPENBSMDIR= ${.CURDIR}/../contrib/openbsm
25 BSM_ETC_OPEN_FILES= ${OPENBSMDIR}/etc/audit_class \
26 ${OPENBSMDIR}/etc/audit_event
27 BSM_ETC_RESTRICTED_FILES= ${OPENBSMDIR}/etc/audit_control \
28 ${OPENBSMDIR}/etc/audit_user
29 BSM_ETC_EXEC_FILES= ${OPENBSMDIR}/etc/audit_warn
30 BSM_ETC_DIR= ${DESTDIR}/etc/security
32 # NB: keep these sorted by MK_* knobs
42 .if ${MK_BSNMP} != "no"
46 .if ${MK_FREEBSD_UPDATE} != "no"
47 BIN1+= freebsd-update.conf
50 .if ${MK_LOCATE} != "no"
51 BIN1+= ${.CURDIR}/../usr.bin/locate/locate/locate.rc
55 BIN1+= hosts.lpd printcap
58 .if ${MK_MAIL} != "no"
59 BIN1+= ${.CURDIR}/../usr.bin/mail/misc/mail.rc
63 BIN1+= ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config
66 .if ${MK_OPENSSH} != "no"
67 SSH= ${.CURDIR}/../crypto/openssh/ssh_config \
68 ${.CURDIR}/../crypto/openssh/sshd_config \
69 ${.CURDIR}/../crypto/openssh/moduli
71 .if ${MK_OPENSSL} != "no"
72 SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf
75 .if ${MK_NS_CACHING} != "no"
79 .if ${MK_PORTSNAP} != "no"
87 .if ${MK_TCSH} != "no"
88 BIN1+= csh.cshrc csh.login csh.logout
91 .if ${MK_WIRELESS} != "no"
95 # -rwxr-xr-x root:wheel, for the new cron root:wheel
96 BIN2= netstart pccard_ether rc.suspend rc.resume
98 MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \
99 BSD.var.dist BSD.x11.dist BSD.x11-4.dist
100 .if ${MK_SENDMAIL} != "no"
101 MTREE+= BSD.sendmail.dist
103 .if ${MK_BIND} != "no"
104 MTREE+= BIND.chroot.dist
105 .if ${MK_BIND_LIBS} != "no"
106 MTREE+= BIND.include.dist
112 .if ${MK_SENDMAIL} == "no"
113 ETCMAIL=mailer.conf aliases
115 ETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
116 mailertable.sample aliases
119 # Special top level files for FreeBSD
123 .if ${MK_MAN} != "no"
124 ${_+_}cd ${.CURDIR}/../share/man; ${MAKE} makedb
128 ${_+_}cd ${.CURDIR} ; ${MAKE} install DESTDIR=${DISTDIR}/${DISTRIBUTION}
129 ${_+_}cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION}
131 .include <bsd.endian.mk>
132 .if ${TARGET_ENDIANNESS} == "1234"
135 .elif ${TARGET_ENDIANNESS} == "4321"
144 .if !defined(DESTDIR)
145 @echo "set DESTDIR before running \"make ${.TARGET}\""
149 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
150 ${BIN1} ${DESTDIR}/etc; \
151 cap_mkdb ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf; \
152 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \
153 ${BIN2} ${DESTDIR}/etc; \
154 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
155 master.passwd nsmb.conf opieaccess ${DESTDIR}/etc;
156 .if ${MK_TCSH} == "no"
157 sed -i "" -e 's;/bin/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd
159 pwd_mkdb ${PWD_MKDB_ENDIAN} -i -p -d ${DESTDIR}/etc \
160 ${DESTDIR}/etc/master.passwd
161 .if ${MK_BLUETOOTH} != "no"
162 ${_+_}cd ${.CURDIR}/bluetooth; ${MAKE} install
164 ${_+_}cd ${.CURDIR}/defaults; ${MAKE} install
165 ${_+_}cd ${.CURDIR}/devd; ${MAKE} install
166 ${_+_}cd ${.CURDIR}/gss; ${MAKE} install
167 ${_+_}cd ${.CURDIR}/periodic; ${MAKE} install
168 ${_+_}cd ${.CURDIR}/rc.d; ${MAKE} install
169 ${_+_}cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall
170 ${_+_}cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
171 ${_+_}cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
172 ${_+_}cd ${.CURDIR}/pam.d; ${MAKE} install
173 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0444 \
174 ${BSM_ETC_OPEN_FILES} ${BSM_ETC_DIR}
175 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0600 \
176 ${BSM_ETC_RESTRICTED_FILES} ${BSM_ETC_DIR}
177 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0500 \
178 ${BSM_ETC_EXEC_FILES} ${BSM_ETC_DIR}
179 .if ${MK_BIND_MTREE} != "no"
180 @if [ ! -e ${DESTDIR}/etc/namedb ]; then \
182 ln -s ../var/named/etc/namedb ${DESTDIR}/etc/namedb; \
185 .if ${MK_BIND_ETC} != "no"
186 ${_+_}cd ${.CURDIR}/namedb; ${MAKE} install
188 .if ${MK_SENDMAIL} != "no"
189 ${_+_}cd ${.CURDIR}/sendmail; ${MAKE} distribution
191 .if ${MK_OPENSSH} != "no"
192 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
193 ${SSH} ${DESTDIR}/etc/ssh
195 .if ${MK_OPENSSL} != "no"
196 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
197 ${SSL} ${DESTDIR}/etc/ssl
199 .if ${MK_KERBEROS} != "no"
200 cd ${.CURDIR}/root; \
201 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
202 dot.k5login ${DESTDIR}/root/.k5login;
204 cd ${.CURDIR}/root; \
205 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
206 dot.profile ${DESTDIR}/root/.profile; \
207 rm -f ${DESTDIR}/.profile; \
208 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
209 .if ${MK_TCSH} != "no"
210 cd ${.CURDIR}/root; \
211 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
212 dot.cshrc ${DESTDIR}/root/.cshrc; \
213 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
214 dot.login ${DESTDIR}/root/.login; \
215 rm -f ${DESTDIR}/.cshrc; \
216 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc
218 cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
219 ${MTREE} ${DESTDIR}/etc/mtree
220 .if ${MK_PPP} != "no"
221 cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
222 ${PPPCNF} ${DESTDIR}/etc/ppp
224 .if ${MK_MAIL} != "no"
225 cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
226 ${ETCMAIL} ${DESTDIR}/etc/mail
227 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
228 ! -f ${DESTDIR}/etc/aliases ]; then \
230 ln -s mail/aliases ${DESTDIR}/etc/aliases; \
233 ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
234 ${DESTDIR}/etc/dumpdates
235 ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
236 ${DESTDIR}/var/db/locate.database
237 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
239 cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
240 ${FREEBSD} ${DESTDIR}/
241 .if exists(${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints)
242 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
243 ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \
244 ${DESTDIR}/boot/device.hints
248 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
249 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
250 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
251 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \
252 -p ${DESTDIR}/usr/include
253 .if ${MK_BIND_LIBS} != "no"
254 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.include.dist \
255 -p ${DESTDIR}/usr/include
257 .if ${MK_BIND_MTREE} != "no"
258 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.chroot.dist \
259 -p ${DESTDIR}/var/named
261 .if ${MK_SENDMAIL} != "no"
262 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/
264 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
265 cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* .
266 cd ${DESTDIR}/usr/share/man/en.UTF-8; ln -sf ../man* .
267 cd ${DESTDIR}/usr/share/man; \
268 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
269 while [ $$# -gt 0 ] ; \
275 cd ${DESTDIR}/usr/share/openssl/man; \
276 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
277 while [ $$# -gt 0 ] ; \
283 cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
284 cd ${DESTDIR}/usr/share/nls; \
285 set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
286 while [ $$# -gt 0 ] ; \
294 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
295 ${BIN1} ${BIN2} nsmb.conf opieaccess \
296 ${DESTDIR}/usr/share/examples/etc
297 ${_+_}cd ${.CURDIR}/defaults; ${MAKE} install \
298 DESTDIR=${DESTDIR}/usr/share/examples
300 .include <bsd.prog.mk>