11195Srgrimes#	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
250472Speter# $FreeBSD: releng/10.3/etc/Makefile 295461 2016-02-10 07:16:17Z cy $
337Srgrimes
4156813Sru.include <bsd.own.mk>
5156813Sru
6278067SngieSUBDIR=	\
7278067Sngie	newsyslog.conf.d
8278067Sngie
9156813Sru.if ${MK_SENDMAIL} != "no"
10278067SngieSUBDIR+=sendmail
1173251Sgshapiro.endif
1238103Speter
13278558SngieBIN1=	crontab \
14231849Seadler	devd.conf \
15231849Seadler	devfs.conf \
16231849Seadler	ddb.conf \
17231849Seadler	dhclient.conf \
18231849Seadler	disktab \
19231849Seadler	fbtab \
20231849Seadler	gettytab \
21231849Seadler	group \
22231849Seadler	hosts \
23231849Seadler	hosts.allow \
24231849Seadler	hosts.equiv \
25231849Seadler	libalias.conf \
26253853Sjlh	libmap.conf \
27231849Seadler	login.access \
28231849Seadler	login.conf \
29231849Seadler	mac.conf \
30231849Seadler	motd \
31231849Seadler	netconfig \
32231849Seadler	network.subr \
33231849Seadler	networks \
34231849Seadler	newsyslog.conf \
35231849Seadler	nsswitch.conf \
36231849Seadler	phones \
37231849Seadler	profile \
38231849Seadler	protocols \
39231849Seadler	rc \
40231849Seadler	rc.bsdextended \
41231849Seadler	rc.firewall \
42231849Seadler	rc.initdiskless \
43231849Seadler	rc.shutdown \
44231849Seadler	rc.subr \
45231849Seadler	remote \
46231849Seadler	rpc \
47231849Seadler	services \
48231849Seadler	shells \
49231849Seadler	sysctl.conf \
50231849Seadler	syslog.conf \
51280420Sngie	termcap.small \
52155210Srwatson
53255425Sdes.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "powerpc64"
54255413SdesBIN1+=	libmap32.conf
55255385Sdes.endif
56255385Sdes
57199249Sed.if exists(${.CURDIR}/etc.${MACHINE}/ttys)
58199249SedBIN1+=	etc.${MACHINE}/ttys
59209134Simp.elif exists(${.CURDIR}/etc.${MACHINE_ARCH}/ttys)
60209134SimpBIN1+=	etc.${MACHINE_ARCH}/ttys
61209134Simp.elif exists(${.CURDIR}/etc.${MACHINE_CPUARCH}/ttys)
62209134SimpBIN1+=	etc.${MACHINE_CPUARCH}/ttys
63199249Sed.else
64209134Simp.error etc.MACHINE/ttys missing
65199249Sed.endif
66199249Sed
67155210SrwatsonOPENBSMDIR=			${.CURDIR}/../contrib/openbsm
68155210SrwatsonBSM_ETC_OPEN_FILES=		${OPENBSMDIR}/etc/audit_class \
69155210Srwatson				${OPENBSMDIR}/etc/audit_event
70155210SrwatsonBSM_ETC_RESTRICTED_FILES=	${OPENBSMDIR}/etc/audit_control \
71155210Srwatson				${OPENBSMDIR}/etc/audit_user
72155210SrwatsonBSM_ETC_EXEC_FILES=		${OPENBSMDIR}/etc/audit_warn
73155210SrwatsonBSM_ETC_DIR=			${DESTDIR}/etc/security
74155210Srwatson
75183242Ssam# NB: keep these sorted by MK_* knobs
76183242Ssam
77183242Ssam.if ${MK_AMD} != "no"
78183242SsamBIN1+= amd.map
79183242Ssam.endif
80183242Ssam
81183242Ssam.if ${MK_APM} != "no"
82183242SsamBIN1+= apmd.conf
83183242Ssam.endif
84183242Ssam
85278558Sngie.if ${MK_AUTOFS} != "no"
86278558SngieBIN1+= auto_master
87278558Sngie.endif
88278558Sngie
89183242Ssam.if ${MK_FREEBSD_UPDATE} != "no"
90183242SsamBIN1+= freebsd-update.conf
91183242Ssam.endif
92183242Ssam
93279505Sngie.if ${MK_FTP} != "no"
94279505SngieBIN1+= ftpusers
95279505Sngie.endif
96279505Sngie
97279505Sngie.if ${MK_INETD} != "no"
98279505SngieBIN1+= inetd.conf
99279505Sngie.endif
100279505Sngie
101183242Ssam.if ${MK_LOCATE} != "no"
102183242SsamBIN1+=	${.CURDIR}/../usr.bin/locate/locate/locate.rc
103183242Ssam.endif
104183242Ssam
105156813Sru.if ${MK_LPR} != "no"
106183242SsamBIN1+=	hosts.lpd printcap
107121911Smarkm.endif
10837Srgrimes
109183242Ssam.if ${MK_MAIL} != "no"
110183242SsamBIN1+=	${.CURDIR}/../usr.bin/mail/misc/mail.rc
111158115Sume.endif
112158115Sume
113193635Sedwin.if ${MK_NTP} != "no"
114193635SedwinBIN1+=	ntp.conf
115193635Sedwin.endif
116193635Sedwin
117156813Sru.if ${MK_OPENSSH} != "no"
11857488SpeterSSH=	${.CURDIR}/../crypto/openssh/ssh_config \
11974837Sgreen	${.CURDIR}/../crypto/openssh/sshd_config \
120124214Sdes	${.CURDIR}/../crypto/openssh/moduli
12157459Smarkm.endif
122156813Sru.if ${MK_OPENSSL} != "no"
12360677SkrisSSL=	${.CURDIR}/../crypto/openssl/apps/openssl.cnf
12460677Skris.endif
12560677Skris
126183242Ssam.if ${MK_NS_CACHING} != "no"
127183242SsamBIN1+= nscd.conf
128183242Ssam.endif
129183242Ssam
130183242Ssam.if ${MK_PORTSNAP} != "no"
131183242SsamBIN1+= portsnap.conf
132183242Ssam.endif
133183242Ssam
134183242Ssam.if ${MK_PF} != "no"
135183242SsamBIN1+= pf.os
136183242Ssam.endif
137183242Ssam
138280419Sngie.if ${MK_SENDMAIL} != "no"
139280419SngieBIN1+=	rc.sendmail
140280419Sngie.endif
141280419Sngie
142184343Ssam.if ${MK_TCSH} != "no"
143184343SsamBIN1+= csh.cshrc csh.login csh.logout
144184343Ssam.endif
145184343Ssam
146183268Ssam.if ${MK_WIRELESS} != "no"
147183268SsamBIN1+= regdomain.xml
148183268Ssam.endif
149183268Ssam
15082521Salex# -rwxr-xr-x root:wheel, for the new cron root:wheel
151108002SgreenBIN2=	netstart pccard_ether rc.suspend rc.resume
152147Srgrimes
153288192SemasteMTREE=	BSD.debug.dist BSD.include.dist BSD.root.dist BSD.usr.dist BSD.var.dist
154260013Sjmmv.if ${MK_TESTS} != "no"
155260013SjmmvMTREE+=	BSD.tests.dist
156260013Sjmmv.endif
157156813Sru.if ${MK_SENDMAIL} != "no"
15895144SgshapiroMTREE+=	BSD.sendmail.dist
15995144Sgshapiro.endif
16099451Sru
16199451SruPPPCNF=	ppp.conf
16299451Sru
163156813Sru.if ${MK_SENDMAIL} == "no"
164117292SgshapiroETCMAIL=mailer.conf aliases
165117292Sgshapiro.else
16664598SgshapiroETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
16764598Sgshapiro	mailertable.sample aliases
168117292Sgshapiro.endif
16937Srgrimes
170263Srgrimes# Special top level files for FreeBSD
17199449SruFREEBSD=COPYRIGHT
172263Srgrimes
173245825Sbrooks# Sanitize DESTDIR
174245825SbrooksDESTDIR:=	${DESTDIR:C://*:/:g}
175245825Sbrooks
176124831Sruafterinstall:
177156813Sru.if ${MK_MAN} != "no"
178173135Syar	${_+_}cd ${.CURDIR}/../share/man; ${MAKE} makedb
179124831Sru.endif
180124831Sru
1814487Sphkdistribute:
182270187Sian	# Avoid installing tests here; "make distribution" will do this and
183270187Sian	# correctly place them in the right location.
184271605Sgjb	${_+_}cd ${.CURDIR} ; ${MAKE} -DNO_TESTS install \
185270187Sian	    DESTDIR=${DISTDIR}/${DISTRIBUTION}
186173135Syar	${_+_}cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION}
1875948Sjkh
188142794Sru.include <bsd.endian.mk>
189142794Sru.if ${TARGET_ENDIANNESS} == "1234"
190152471SruCAP_MKDB_ENDIAN?= -l
191152471SruPWD_MKDB_ENDIAN?= -L
192142794Sru.elif ${TARGET_ENDIANNESS} == "4321"
193152471SruCAP_MKDB_ENDIAN?= -b
194152471SruPWD_MKDB_ENDIAN?= -B
195142794Sru.else
196149515SimpCAP_MKDB_ENDIAN?=
197149515SimpPWD_MKDB_ENDIAN?=
198142794Sru.endif
199142794Sru
200246097Sbrooks.if defined(NO_ROOT)
201246097SbrooksMETALOG.add?=	cat -l >> ${METALOG}
202246097Sbrooks.endif
203246097Sbrooks
2044487Sphkdistribution:
205148282Sru.if !defined(DESTDIR)
206148282Sru	@echo "set DESTDIR before running \"make ${.TARGET}\""
207148282Sru	@false
208148282Sru.endif
20999449Sru	cd ${.CURDIR}; \
210100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
21199451Sru		${BIN1} ${DESTDIR}/etc; \
212142794Sru	    cap_mkdb ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf; \
213100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \
21499451Sru		${BIN2} ${DESTDIR}/etc; \
215100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
216184343Ssam		master.passwd nsmb.conf opieaccess ${DESTDIR}/etc;
217293897Sglebius.if ${MK_BSNMP} != "no"
218293897Sglebius	cd ${.CURDIR}; \
219293897Sglebius	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
220293897Sglebius		snmpd.config ${DESTDIR}/etc;
221293897Sglebius.endif
222205329Sed.if ${MK_AT} == "no"
223205335Sed	sed -i "" -e 's;.*/usr/libexec/atrun;#&;' ${DESTDIR}/etc/crontab
224205329Sed.endif
225184343Ssam.if ${MK_TCSH} == "no"
226184443Smp	sed -i "" -e 's;/bin/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd
227184343Ssam.endif
228184343Ssam	pwd_mkdb ${PWD_MKDB_ENDIAN} -i -p -d ${DESTDIR}/etc \
229184343Ssam	    ${DESTDIR}/etc/master.passwd
230246097Sbrooks.if defined(NO_ROOT)
231246097Sbrooks	( \
232246097Sbrooks		echo "./etc/login.conf.db type=file mode=0644 uname=root gname=wheel"; \
233246097Sbrooks		echo "./etc/passwd type=file mode=0644 uname=root gname=wheel"; \
234246097Sbrooks		echo "./etc/pwd.db type=file mode=0644 uname=root gname=wheel"; \
235246097Sbrooks		echo "./etc/spwd.db type=file mode=0600 uname=root gname=wheel"; \
236246097Sbrooks	) | ${METALOG.add}
237246097Sbrooks.endif
238278558Sngie.if ${MK_AUTOFS} != "no"
239270892Strasz	${_+_}cd ${.CURDIR}/autofs; ${MAKE} install
240278558Sngie.endif
241183242Ssam.if ${MK_BLUETOOTH} != "no"
242173135Syar	${_+_}cd ${.CURDIR}/bluetooth; ${MAKE} install
243183242Ssam.endif
244173135Syar	${_+_}cd ${.CURDIR}/defaults; ${MAKE} install
245186249Sthompsa	${_+_}cd ${.CURDIR}/devd; ${MAKE} install
246173135Syar	${_+_}cd ${.CURDIR}/gss; ${MAKE} install
247295461Scy.if ${MK_NTP} != "no"
248295461Scy	${_+_}cd ${.CURDIR}/ntp; ${MAKE} install
249295461Scy.endif
250173135Syar	${_+_}cd ${.CURDIR}/periodic; ${MAKE} install
251280419Sngie.if ${MK_PKGBOOTSTRAP} != "no"
252257353Sbdrewery	${_+_}cd ${.CURDIR}/pkg; ${MAKE} install
253280419Sngie.endif
254173135Syar	${_+_}cd ${.CURDIR}/rc.d; ${MAKE} install
255173135Syar	${_+_}cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
256173135Syar	${_+_}cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
257173135Syar	${_+_}cd ${.CURDIR}/pam.d; ${MAKE} install
258155210Srwatson	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0444 \
259155210Srwatson	    ${BSM_ETC_OPEN_FILES} ${BSM_ETC_DIR}
260155571Srwatson	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0600 \
261155210Srwatson	    ${BSM_ETC_RESTRICTED_FILES} ${BSM_ETC_DIR}
262155210Srwatson	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0500 \
263155210Srwatson	    ${BSM_ETC_EXEC_FILES} ${BSM_ETC_DIR}
264255841Sdes.if ${MK_UNBOUND} != "no"
265255841Sdes	if [ ! -e ${DESTDIR}/etc/unbound ]; then \
266255841Sdes		${INSTALL_SYMLINK} ../var/unbound ${DESTDIR}/etc/unbound; \
267255841Sdes	fi
268255841Sdes.endif
269156813Sru.if ${MK_SENDMAIL} != "no"
270173135Syar	${_+_}cd ${.CURDIR}/sendmail; ${MAKE} distribution
27173251Sgshapiro.endif
272156813Sru.if ${MK_OPENSSH} != "no"
273100872Sru	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
27499451Sru	    ${SSH} ${DESTDIR}/etc/ssh
27557488Speter.endif
276156813Sru.if ${MK_OPENSSL} != "no"
277100872Sru	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
27899451Sru	    ${SSL} ${DESTDIR}/etc/ssl
27960677Skris.endif
280156813Sru.if ${MK_KERBEROS} != "no"
28199449Sru	cd ${.CURDIR}/root; \
282100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
283120709Sphk		dot.k5login ${DESTDIR}/root/.k5login;
284120709Sphk.endif
285120709Sphk	cd ${.CURDIR}/root; \
286120709Sphk	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
287184343Ssam		dot.profile ${DESTDIR}/root/.profile; \
288184343Ssam	    rm -f ${DESTDIR}/.profile; \
289184343Ssam	    ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
290184343Ssam.if ${MK_TCSH} != "no"
291184343Ssam	cd ${.CURDIR}/root; \
292184343Ssam	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
29399451Sru		dot.cshrc ${DESTDIR}/root/.cshrc; \
294100872Sru	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
29599451Sru		dot.login ${DESTDIR}/root/.login; \
296184343Ssam	    rm -f ${DESTDIR}/.cshrc; \
297184343Ssam	    ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc
298184343Ssam.endif
299100872Sru	cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
3001731Sjkh	    ${MTREE} ${DESTDIR}/etc/mtree
301183242Ssam.if ${MK_PPP} != "no"
302119058Sobrien	cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
3036177Samurai	    ${PPPCNF} ${DESTDIR}/etc/ppp
304183242Ssam.endif
305183242Ssam.if ${MK_MAIL} != "no"
306100872Sru	cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
30764598Sgshapiro	    ${ETCMAIL} ${DESTDIR}/etc/mail
308243101Seadler	if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
30964629Sgshapiro	      ! -f ${DESTDIR}/etc/aliases ]; then \
31064629Sgshapiro		ln -s mail/aliases ${DESTDIR}/etc/aliases; \
31164629Sgshapiro	fi
312183242Ssam.endif
313100872Sru	${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
31437Srgrimes	    ${DESTDIR}/etc/dumpdates
315280419Sngie.if ${MK_LOCATE} != "no"
316100872Sru	${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
317147Srgrimes	    ${DESTDIR}/var/db/locate.database
318280419Sngie.endif
319100872Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
3201759Sjkh	    ${DESTDIR}/var/crash
321100872Sru	cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
32299451Sru		${FREEBSD} ${DESTDIR}/
323209228Savg.if ${MK_BOOT} != "no"
324171427Simp.if exists(${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints)
325126977Sru	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
326126977Sru	    ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \
327126977Sru	    ${DESTDIR}/boot/device.hints
328171427Simp.endif
329209228Savg.endif
330224765Sdougb.if ${MK_NIS} == "no"
331224765Sdougb	sed -i "" -e 's/.*_compat:/# &/' -e 's/compat$$/files/' \
332224765Sdougb		${DESTDIR}/etc/nsswitch.conf
333224765Sdougb.endif
33437Srgrimes
335245440SbrooksMTREE_CMD?=	mtree
336245440Sbrooks
337245565SbrooksMTREES=		mtree/BSD.root.dist		/		\
338245565Sbrooks		mtree/BSD.var.dist		/var		\
339245565Sbrooks		mtree/BSD.usr.dist		/usr		\
340288192Semaste		mtree/BSD.include.dist		/usr/include	\
341288192Semaste		mtree/BSD.debug.dist		/usr/lib
342218941Suqs.if ${MK_GROFF} != "no"
343245565SbrooksMTREES+=	mtree/BSD.groff.dist		/usr
344218941Suqs.endif
345260013Sjmmv.if ${MK_TESTS} != "no"
346277457SngieMTREES+=	mtree/BSD.tests.dist		${TESTSBASE}
347260013Sjmmv.endif
348156813Sru.if ${MK_SENDMAIL} != "no"
349245565SbrooksMTREES+=	mtree/BSD.sendmail.dist		/
35095144Sgshapiro.endif
351245565Sbrooks.for mtree in ${LOCAL_MTREE}
352245565SbrooksMTREES+=	../${mtree}			/
353245565Sbrooks.endfor
354245565Sbrooks
355250116Sbrooksdistrib-dirs: ${MTREES:N/*}
356245565Sbrooks	@set ${MTREES}; \
357245565Sbrooks	while test $$# -ge 2; do \
358245565Sbrooks		m=${.CURDIR}/$$1; \
359245565Sbrooks		shift; \
360245565Sbrooks		d=${DESTDIR}$$1; \
361245565Sbrooks		shift; \
362277457Sngie		test -d $$d || mkdir -p $$d; \
363245565Sbrooks		${ECHO} ${MTREE_CMD} -deU ${MTREE_FOLLOWS_SYMLINKS} \
364245565Sbrooks		    -f $$m -p $$d; \
365245565Sbrooks		${MTREE_CMD} -deU ${MTREE_FOLLOWS_SYMLINKS} -f $$m -p $$d; \
366245565Sbrooks	done; true
367245825Sbrooks.if defined(NO_ROOT)
368245825Sbrooks	@set ${MTREES}; \
369245825Sbrooks	while test $$# -ge 2; do \
370245825Sbrooks		m=${.CURDIR}/$$1; \
371245825Sbrooks		shift; \
372245825Sbrooks		d=$$1; \
373245825Sbrooks		test "$$d" == "/" && d=""; \
374245825Sbrooks		d=${DISTBASE}$$d; \
375245825Sbrooks		shift; \
376277457Sngie		test -d $$d || mkdir -p $$d; \
377246127Sbrooks		${ECHO} "${MTREE_CMD:N-W} -C -f $$m -K uname,gname | " \
378246127Sbrooks		    "sed s#^\.#.$$d# | ${METALOG.add}" ; \
379246127Sbrooks		${MTREE_CMD:N-W} -C -f $$m -K uname,gname | sed s#^\.#.$$d# | \
380246127Sbrooks		    ${METALOG.add} ; \
381245825Sbrooks	done; true
382245825Sbrooks.endif
383247162Sache	${INSTALL_SYMLINK} usr/src/sys ${DESTDIR}/sys
384280419Sngie.if ${MK_MAN} != "no"
385291794Sbdrewery	cd ${DESTDIR}${SHAREDIR}/man; \
386245571Sbrooks	for mandir in man*; do \
387245752Sbrooks		${INSTALL_SYMLINK} ../$$mandir \
388291794Sbdrewery		    ${DESTDIR}${SHAREDIR}/man/en.ISO8859-1/; \
389245752Sbrooks		${INSTALL_SYMLINK} ../$$mandir \
390291794Sbdrewery		    ${DESTDIR}${SHAREDIR}/man/en.UTF-8/; \
39177993Sache	done
392280419Sngie.if ${MK_OPENSSL} != "no"
393291794Sbdrewery	cd ${DESTDIR}${SHAREDIR}/openssl/man; \
394245571Sbrooks	for mandir in man*; do \
395245752Sbrooks		${INSTALL_SYMLINK} ../$$mandir \
396291794Sbdrewery		    ${DESTDIR}${SHAREDIR}/openssl/man/en.ISO8859-1/; \
397245571Sbrooks	done
398280419Sngie.endif
399110663Sache	set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
400245571Sbrooks	while [ $$# -gt 0 ] ; do \
401291794Sbdrewery		${INSTALL_SYMLINK} "$$2" "${DESTDIR}${SHAREDIR}/man/$$1"; \
402280419Sngie		if [ "${MK_OPENSSL}" != "no" ]; then \
403280419Sngie			${INSTALL_SYMLINK} "$$2" \
404291794Sbdrewery			    "${DESTDIR}${SHAREDIR}/openssl/man/$$1"; \
405280419Sngie		fi; \
406110663Sache		shift; shift; \
407110663Sache	done
408280419Sngie.endif
409280419Sngie.if ${MK_NLS} != "no"
41077999Sache	set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
411245571Sbrooks	while [ $$# -gt 0 ] ; do \
412291794Sbdrewery		${INSTALL_SYMLINK} "$$2" "${DESTDIR}${SHAREDIR}/nls/$$1"; \
41311635Sache		shift; shift; \
41477999Sache	done
415280419Sngie.endif
416147Srgrimes
41748185Ssheldonhetc-examples:
418100872Sru	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
41999451Sru	    ${BIN1} ${BIN2} nsmb.conf opieaccess \
420291794Sbdrewery	    ${DESTDIR}${SHAREDIR}/examples/etc
421173135Syar	${_+_}cd ${.CURDIR}/defaults; ${MAKE} install \
422291794Sbdrewery	    DESTDIR=${DESTDIR}${SHAREDIR}/examples
42348185Ssheldonh
42437Srgrimes.include <bsd.prog.mk>
425