Deleted Added
full compact
Makefile (208320) Makefile (209134)
1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91
1# from: @(#)Makefile 5.11 (Berkeley) 5/21/91
2# $FreeBSD: head/etc/Makefile 208320 2010-05-19 23:56:26Z jkim $
2# $FreeBSD: head/etc/Makefile 209134 2010-06-13 16:35:20Z imp $
3
4.include <bsd.own.mk>
5
6.if ${MK_SENDMAIL} != "no"
7SUBDIR= sendmail
8.endif
9
10BIN1= auth.conf \
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 termcap.small
22
23.if exists(${.CURDIR}/etc.${MACHINE}/ttys)
24BIN1+= etc.${MACHINE}/ttys
3
4.include <bsd.own.mk>
5
6.if ${MK_SENDMAIL} != "no"
7SUBDIR= sendmail
8.endif
9
10BIN1= auth.conf \
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 termcap.small
22
23.if exists(${.CURDIR}/etc.${MACHINE}/ttys)
24BIN1+= etc.${MACHINE}/ttys
25.else
25.elif exists(${.CURDIR}/etc.${MACHINE_ARCH}/ttys)
26BIN1+= etc.${MACHINE_ARCH}/ttys
26BIN1+= etc.${MACHINE_ARCH}/ttys
27.elif exists(${.CURDIR}/etc.${MACHINE_CPUARCH}/ttys)
28BIN1+= etc.${MACHINE_CPUARCH}/ttys
29.else
30.error etc.MACHINE/ttys missing
27.endif
28
29OPENBSMDIR= ${.CURDIR}/../contrib/openbsm
30BSM_ETC_OPEN_FILES= ${OPENBSMDIR}/etc/audit_class \
31 ${OPENBSMDIR}/etc/audit_event
32BSM_ETC_RESTRICTED_FILES= ${OPENBSMDIR}/etc/audit_control \
33 ${OPENBSMDIR}/etc/audit_user
34BSM_ETC_EXEC_FILES= ${OPENBSMDIR}/etc/audit_warn
35BSM_ETC_DIR= ${DESTDIR}/etc/security
36
37# NB: keep these sorted by MK_* knobs
38
39.if ${MK_AMD} != "no"
40BIN1+= amd.map
41.endif
42
43.if ${MK_APM} != "no"
44BIN1+= apmd.conf
45.endif
46
47.if ${MK_BSNMP} != "no"
48BIN1+= snmpd.config
49.endif
50
51.if ${MK_FREEBSD_UPDATE} != "no"
52BIN1+= freebsd-update.conf
53.endif
54
55.if ${MK_LOCATE} != "no"
56BIN1+= ${.CURDIR}/../usr.bin/locate/locate/locate.rc
57.endif
58
59.if ${MK_LPR} != "no"
60BIN1+= hosts.lpd printcap
61.endif
62
63.if ${MK_MAIL} != "no"
64BIN1+= ${.CURDIR}/../usr.bin/mail/misc/mail.rc
65.endif
66
67.if ${MK_MAN_UTILS} != "no"
68BIN1+= ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config
69.endif
70
71.if ${MK_NTP} != "no"
72BIN1+= ntp.conf
73.endif
74
75.if ${MK_OPENSSH} != "no"
76SSH= ${.CURDIR}/../crypto/openssh/ssh_config \
77 ${.CURDIR}/../crypto/openssh/sshd_config \
78 ${.CURDIR}/../crypto/openssh/moduli
79.endif
80.if ${MK_OPENSSL} != "no"
81SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf
82.endif
83
84.if ${MK_NS_CACHING} != "no"
85BIN1+= nscd.conf
86.endif
87
88.if ${MK_PORTSNAP} != "no"
89BIN1+= portsnap.conf
90.endif
91
92.if ${MK_PF} != "no"
93BIN1+= pf.os
94.endif
95
96.if ${MK_TCSH} != "no"
97BIN1+= csh.cshrc csh.login csh.logout
98.endif
99
100.if ${MK_WIRELESS} != "no"
101BIN1+= regdomain.xml
102.endif
103
104# -rwxr-xr-x root:wheel, for the new cron root:wheel
105BIN2= netstart pccard_ether rc.suspend rc.resume
106
107MTREE= BSD.include.dist BSD.root.dist BSD.usr.dist BSD.var.dist
108.if ${MK_SENDMAIL} != "no"
109MTREE+= BSD.sendmail.dist
110.endif
111.if ${MK_BIND} != "no"
112MTREE+= BIND.chroot.dist
113.if ${MK_BIND_LIBS} != "no"
114MTREE+= BIND.include.dist
115.endif
116.endif
117
118PPPCNF= ppp.conf
119
120.if ${MK_SENDMAIL} == "no"
121ETCMAIL=mailer.conf aliases
122.else
123ETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
124 mailertable.sample aliases
125.endif
126
127# Special top level files for FreeBSD
128FREEBSD=COPYRIGHT
129
130afterinstall:
131.if ${MK_MAN} != "no"
132 ${_+_}cd ${.CURDIR}/../share/man; ${MAKE} makedb
133.endif
134
135distribute:
136 ${_+_}cd ${.CURDIR} ; ${MAKE} install DESTDIR=${DISTDIR}/${DISTRIBUTION}
137 ${_+_}cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION}
138
139.include <bsd.endian.mk>
140.if ${TARGET_ENDIANNESS} == "1234"
141CAP_MKDB_ENDIAN?= -l
142PWD_MKDB_ENDIAN?= -L
143.elif ${TARGET_ENDIANNESS} == "4321"
144CAP_MKDB_ENDIAN?= -b
145PWD_MKDB_ENDIAN?= -B
146.else
147CAP_MKDB_ENDIAN?=
148PWD_MKDB_ENDIAN?=
149.endif
150
151distribution:
152.if !defined(DESTDIR)
153 @echo "set DESTDIR before running \"make ${.TARGET}\""
154 @false
155.endif
156 cd ${.CURDIR}; \
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_AT} == "no"
165 sed -i "" -e 's;.*/usr/libexec/atrun;#&;' ${DESTDIR}/etc/crontab
166.endif
167.if ${MK_TCSH} == "no"
168 sed -i "" -e 's;/bin/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd
169.endif
170 pwd_mkdb ${PWD_MKDB_ENDIAN} -i -p -d ${DESTDIR}/etc \
171 ${DESTDIR}/etc/master.passwd
172.if ${MK_BLUETOOTH} != "no"
173 ${_+_}cd ${.CURDIR}/bluetooth; ${MAKE} install
174.endif
175 ${_+_}cd ${.CURDIR}/defaults; ${MAKE} install
176 ${_+_}cd ${.CURDIR}/devd; ${MAKE} install
177 ${_+_}cd ${.CURDIR}/gss; ${MAKE} install
178 ${_+_}cd ${.CURDIR}/periodic; ${MAKE} install
179 ${_+_}cd ${.CURDIR}/rc.d; ${MAKE} install
180 ${_+_}cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall
181 ${_+_}cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
182 ${_+_}cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
183 ${_+_}cd ${.CURDIR}/pam.d; ${MAKE} install
184 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0444 \
185 ${BSM_ETC_OPEN_FILES} ${BSM_ETC_DIR}
186 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0600 \
187 ${BSM_ETC_RESTRICTED_FILES} ${BSM_ETC_DIR}
188 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0500 \
189 ${BSM_ETC_EXEC_FILES} ${BSM_ETC_DIR}
190.if ${MK_BIND_MTREE} != "no"
191 @if [ ! -e ${DESTDIR}/etc/namedb ]; then \
192 set -x; \
193 ln -s ../var/named/etc/namedb ${DESTDIR}/etc/namedb; \
194 fi
195.endif
196.if ${MK_BIND_ETC} != "no"
197 ${_+_}cd ${.CURDIR}/namedb; ${MAKE} install
198.endif
199.if ${MK_SENDMAIL} != "no"
200 ${_+_}cd ${.CURDIR}/sendmail; ${MAKE} distribution
201.endif
202.if ${MK_OPENSSH} != "no"
203 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
204 ${SSH} ${DESTDIR}/etc/ssh
205.endif
206.if ${MK_OPENSSL} != "no"
207 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
208 ${SSL} ${DESTDIR}/etc/ssl
209.endif
210.if ${MK_KERBEROS} != "no"
211 cd ${.CURDIR}/root; \
212 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
213 dot.k5login ${DESTDIR}/root/.k5login;
214.endif
215 cd ${.CURDIR}/root; \
216 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
217 dot.profile ${DESTDIR}/root/.profile; \
218 rm -f ${DESTDIR}/.profile; \
219 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
220.if ${MK_TCSH} != "no"
221 cd ${.CURDIR}/root; \
222 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
223 dot.cshrc ${DESTDIR}/root/.cshrc; \
224 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
225 dot.login ${DESTDIR}/root/.login; \
226 rm -f ${DESTDIR}/.cshrc; \
227 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc
228.endif
229 cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
230 ${MTREE} ${DESTDIR}/etc/mtree
231.if ${MK_PPP} != "no"
232 cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
233 ${PPPCNF} ${DESTDIR}/etc/ppp
234.endif
235.if ${MK_MAIL} != "no"
236 cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
237 ${ETCMAIL} ${DESTDIR}/etc/mail
238 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
239 ! -f ${DESTDIR}/etc/aliases ]; then \
240 set -x; \
241 ln -s mail/aliases ${DESTDIR}/etc/aliases; \
242 fi
243.endif
244 ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
245 ${DESTDIR}/etc/dumpdates
246 ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
247 ${DESTDIR}/var/db/locate.database
248 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
249 ${DESTDIR}/var/crash
250 cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
251 ${FREEBSD} ${DESTDIR}/
252.if exists(${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints)
253 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
254 ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \
255 ${DESTDIR}/boot/device.hints
256.endif
257
258distrib-dirs:
259 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
260 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
261 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
262 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \
263 -p ${DESTDIR}/usr/include
264.if ${MK_BIND_LIBS} != "no"
265 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.include.dist \
266 -p ${DESTDIR}/usr/include
267.endif
268.if ${MK_BIND_MTREE} != "no"
269 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.chroot.dist \
270 -p ${DESTDIR}/var/named
271.endif
272.if ${MK_SENDMAIL} != "no"
273 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/
274.endif
275 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
276 cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* .
277 cd ${DESTDIR}/usr/share/man/en.UTF-8; ln -sf ../man* .
278 cd ${DESTDIR}/usr/share/man; \
279 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
280 while [ $$# -gt 0 ] ; \
281 do \
282 rm -rf "$$1"; \
283 ln -s "$$2" "$$1"; \
284 shift; shift; \
285 done
286 cd ${DESTDIR}/usr/share/openssl/man; \
287 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
288 while [ $$# -gt 0 ] ; \
289 do \
290 rm -rf "$$1"; \
291 ln -s "$$2" "$$1"; \
292 shift; shift; \
293 done
294 cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
295 cd ${DESTDIR}/usr/share/nls; \
296 set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
297 while [ $$# -gt 0 ] ; \
298 do \
299 rm -rf "$$1"; \
300 ln -s "$$2" "$$1"; \
301 shift; shift; \
302 done
303
304etc-examples:
305 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
306 ${BIN1} ${BIN2} nsmb.conf opieaccess \
307 ${DESTDIR}/usr/share/examples/etc
308 ${_+_}cd ${.CURDIR}/defaults; ${MAKE} install \
309 DESTDIR=${DESTDIR}/usr/share/examples
310
311.include <bsd.prog.mk>
31.endif
32
33OPENBSMDIR= ${.CURDIR}/../contrib/openbsm
34BSM_ETC_OPEN_FILES= ${OPENBSMDIR}/etc/audit_class \
35 ${OPENBSMDIR}/etc/audit_event
36BSM_ETC_RESTRICTED_FILES= ${OPENBSMDIR}/etc/audit_control \
37 ${OPENBSMDIR}/etc/audit_user
38BSM_ETC_EXEC_FILES= ${OPENBSMDIR}/etc/audit_warn
39BSM_ETC_DIR= ${DESTDIR}/etc/security
40
41# NB: keep these sorted by MK_* knobs
42
43.if ${MK_AMD} != "no"
44BIN1+= amd.map
45.endif
46
47.if ${MK_APM} != "no"
48BIN1+= apmd.conf
49.endif
50
51.if ${MK_BSNMP} != "no"
52BIN1+= snmpd.config
53.endif
54
55.if ${MK_FREEBSD_UPDATE} != "no"
56BIN1+= freebsd-update.conf
57.endif
58
59.if ${MK_LOCATE} != "no"
60BIN1+= ${.CURDIR}/../usr.bin/locate/locate/locate.rc
61.endif
62
63.if ${MK_LPR} != "no"
64BIN1+= hosts.lpd printcap
65.endif
66
67.if ${MK_MAIL} != "no"
68BIN1+= ${.CURDIR}/../usr.bin/mail/misc/mail.rc
69.endif
70
71.if ${MK_MAN_UTILS} != "no"
72BIN1+= ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config
73.endif
74
75.if ${MK_NTP} != "no"
76BIN1+= ntp.conf
77.endif
78
79.if ${MK_OPENSSH} != "no"
80SSH= ${.CURDIR}/../crypto/openssh/ssh_config \
81 ${.CURDIR}/../crypto/openssh/sshd_config \
82 ${.CURDIR}/../crypto/openssh/moduli
83.endif
84.if ${MK_OPENSSL} != "no"
85SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf
86.endif
87
88.if ${MK_NS_CACHING} != "no"
89BIN1+= nscd.conf
90.endif
91
92.if ${MK_PORTSNAP} != "no"
93BIN1+= portsnap.conf
94.endif
95
96.if ${MK_PF} != "no"
97BIN1+= pf.os
98.endif
99
100.if ${MK_TCSH} != "no"
101BIN1+= csh.cshrc csh.login csh.logout
102.endif
103
104.if ${MK_WIRELESS} != "no"
105BIN1+= regdomain.xml
106.endif
107
108# -rwxr-xr-x root:wheel, for the new cron root:wheel
109BIN2= netstart pccard_ether rc.suspend rc.resume
110
111MTREE= BSD.include.dist BSD.root.dist BSD.usr.dist BSD.var.dist
112.if ${MK_SENDMAIL} != "no"
113MTREE+= BSD.sendmail.dist
114.endif
115.if ${MK_BIND} != "no"
116MTREE+= BIND.chroot.dist
117.if ${MK_BIND_LIBS} != "no"
118MTREE+= BIND.include.dist
119.endif
120.endif
121
122PPPCNF= ppp.conf
123
124.if ${MK_SENDMAIL} == "no"
125ETCMAIL=mailer.conf aliases
126.else
127ETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
128 mailertable.sample aliases
129.endif
130
131# Special top level files for FreeBSD
132FREEBSD=COPYRIGHT
133
134afterinstall:
135.if ${MK_MAN} != "no"
136 ${_+_}cd ${.CURDIR}/../share/man; ${MAKE} makedb
137.endif
138
139distribute:
140 ${_+_}cd ${.CURDIR} ; ${MAKE} install DESTDIR=${DISTDIR}/${DISTRIBUTION}
141 ${_+_}cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION}
142
143.include <bsd.endian.mk>
144.if ${TARGET_ENDIANNESS} == "1234"
145CAP_MKDB_ENDIAN?= -l
146PWD_MKDB_ENDIAN?= -L
147.elif ${TARGET_ENDIANNESS} == "4321"
148CAP_MKDB_ENDIAN?= -b
149PWD_MKDB_ENDIAN?= -B
150.else
151CAP_MKDB_ENDIAN?=
152PWD_MKDB_ENDIAN?=
153.endif
154
155distribution:
156.if !defined(DESTDIR)
157 @echo "set DESTDIR before running \"make ${.TARGET}\""
158 @false
159.endif
160 cd ${.CURDIR}; \
161 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
162 ${BIN1} ${DESTDIR}/etc; \
163 cap_mkdb ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf; \
164 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \
165 ${BIN2} ${DESTDIR}/etc; \
166 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
167 master.passwd nsmb.conf opieaccess ${DESTDIR}/etc;
168.if ${MK_AT} == "no"
169 sed -i "" -e 's;.*/usr/libexec/atrun;#&;' ${DESTDIR}/etc/crontab
170.endif
171.if ${MK_TCSH} == "no"
172 sed -i "" -e 's;/bin/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd
173.endif
174 pwd_mkdb ${PWD_MKDB_ENDIAN} -i -p -d ${DESTDIR}/etc \
175 ${DESTDIR}/etc/master.passwd
176.if ${MK_BLUETOOTH} != "no"
177 ${_+_}cd ${.CURDIR}/bluetooth; ${MAKE} install
178.endif
179 ${_+_}cd ${.CURDIR}/defaults; ${MAKE} install
180 ${_+_}cd ${.CURDIR}/devd; ${MAKE} install
181 ${_+_}cd ${.CURDIR}/gss; ${MAKE} install
182 ${_+_}cd ${.CURDIR}/periodic; ${MAKE} install
183 ${_+_}cd ${.CURDIR}/rc.d; ${MAKE} install
184 ${_+_}cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall
185 ${_+_}cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
186 ${_+_}cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
187 ${_+_}cd ${.CURDIR}/pam.d; ${MAKE} install
188 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0444 \
189 ${BSM_ETC_OPEN_FILES} ${BSM_ETC_DIR}
190 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0600 \
191 ${BSM_ETC_RESTRICTED_FILES} ${BSM_ETC_DIR}
192 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0500 \
193 ${BSM_ETC_EXEC_FILES} ${BSM_ETC_DIR}
194.if ${MK_BIND_MTREE} != "no"
195 @if [ ! -e ${DESTDIR}/etc/namedb ]; then \
196 set -x; \
197 ln -s ../var/named/etc/namedb ${DESTDIR}/etc/namedb; \
198 fi
199.endif
200.if ${MK_BIND_ETC} != "no"
201 ${_+_}cd ${.CURDIR}/namedb; ${MAKE} install
202.endif
203.if ${MK_SENDMAIL} != "no"
204 ${_+_}cd ${.CURDIR}/sendmail; ${MAKE} distribution
205.endif
206.if ${MK_OPENSSH} != "no"
207 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
208 ${SSH} ${DESTDIR}/etc/ssh
209.endif
210.if ${MK_OPENSSL} != "no"
211 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
212 ${SSL} ${DESTDIR}/etc/ssl
213.endif
214.if ${MK_KERBEROS} != "no"
215 cd ${.CURDIR}/root; \
216 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
217 dot.k5login ${DESTDIR}/root/.k5login;
218.endif
219 cd ${.CURDIR}/root; \
220 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
221 dot.profile ${DESTDIR}/root/.profile; \
222 rm -f ${DESTDIR}/.profile; \
223 ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
224.if ${MK_TCSH} != "no"
225 cd ${.CURDIR}/root; \
226 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
227 dot.cshrc ${DESTDIR}/root/.cshrc; \
228 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
229 dot.login ${DESTDIR}/root/.login; \
230 rm -f ${DESTDIR}/.cshrc; \
231 ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc
232.endif
233 cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
234 ${MTREE} ${DESTDIR}/etc/mtree
235.if ${MK_PPP} != "no"
236 cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
237 ${PPPCNF} ${DESTDIR}/etc/ppp
238.endif
239.if ${MK_MAIL} != "no"
240 cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
241 ${ETCMAIL} ${DESTDIR}/etc/mail
242 @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
243 ! -f ${DESTDIR}/etc/aliases ]; then \
244 set -x; \
245 ln -s mail/aliases ${DESTDIR}/etc/aliases; \
246 fi
247.endif
248 ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
249 ${DESTDIR}/etc/dumpdates
250 ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
251 ${DESTDIR}/var/db/locate.database
252 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
253 ${DESTDIR}/var/crash
254 cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
255 ${FREEBSD} ${DESTDIR}/
256.if exists(${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints)
257 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
258 ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \
259 ${DESTDIR}/boot/device.hints
260.endif
261
262distrib-dirs:
263 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/
264 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var
265 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr
266 mtree -eU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \
267 -p ${DESTDIR}/usr/include
268.if ${MK_BIND_LIBS} != "no"
269 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.include.dist \
270 -p ${DESTDIR}/usr/include
271.endif
272.if ${MK_BIND_MTREE} != "no"
273 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BIND.chroot.dist \
274 -p ${DESTDIR}/var/named
275.endif
276.if ${MK_SENDMAIL} != "no"
277 mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.sendmail.dist -p ${DESTDIR}/
278.endif
279 cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys
280 cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* .
281 cd ${DESTDIR}/usr/share/man/en.UTF-8; ln -sf ../man* .
282 cd ${DESTDIR}/usr/share/man; \
283 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
284 while [ $$# -gt 0 ] ; \
285 do \
286 rm -rf "$$1"; \
287 ln -s "$$2" "$$1"; \
288 shift; shift; \
289 done
290 cd ${DESTDIR}/usr/share/openssl/man; \
291 set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
292 while [ $$# -gt 0 ] ; \
293 do \
294 rm -rf "$$1"; \
295 ln -s "$$2" "$$1"; \
296 shift; shift; \
297 done
298 cd ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1; ln -sf ../man* .
299 cd ${DESTDIR}/usr/share/nls; \
300 set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
301 while [ $$# -gt 0 ] ; \
302 do \
303 rm -rf "$$1"; \
304 ln -s "$$2" "$$1"; \
305 shift; shift; \
306 done
307
308etc-examples:
309 cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
310 ${BIN1} ${BIN2} nsmb.conf opieaccess \
311 ${DESTDIR}/usr/share/examples/etc
312 ${_+_}cd ${.CURDIR}/defaults; ${MAKE} install \
313 DESTDIR=${DESTDIR}/usr/share/examples
314
315.include <bsd.prog.mk>