Makefile revision 255385
190792Sgshapiro#	from: @(#)Makefile	5.11 (Berkeley) 5/21/91
2141858Sgshapiro# $FreeBSD: head/etc/Makefile 255385 2013-09-08 09:46:22Z des $
390792Sgshapiro
490792Sgshapiro.include <bsd.own.mk>
590792Sgshapiro
690792Sgshapiro.if ${MK_SENDMAIL} != "no"
790792SgshapiroSUBDIR=	sendmail
890792Sgshapiro.endif
990792Sgshapiro
1090792SgshapiroBIN1=	crontab \
1190792Sgshapiro	devd.conf \
1290792Sgshapiro	devfs.conf \
1390792Sgshapiro	ddb.conf \
1490792Sgshapiro	dhclient.conf \
1590792Sgshapiro	disktab \
1690792Sgshapiro	fbtab \
1790792Sgshapiro	ftpusers \
1890792Sgshapiro	gettytab \
1990792Sgshapiro	group \
2090792Sgshapiro	hosts \
2190792Sgshapiro	hosts.allow \
2290792Sgshapiro	hosts.equiv \
2390792Sgshapiro	inetd.conf \
2490792Sgshapiro	libalias.conf \
2590792Sgshapiro	libmap.conf \
2690792Sgshapiro	login.access \
2790792Sgshapiro	login.conf \
2890792Sgshapiro	mac.conf \
2990792Sgshapiro	motd \
3090792Sgshapiro	netconfig \
3190792Sgshapiro	network.subr \
3290792Sgshapiro	networks \
3390792Sgshapiro	newsyslog.conf \
3490792Sgshapiro	nsswitch.conf \
3590792Sgshapiro	phones \
3690792Sgshapiro	profile \
3790792Sgshapiro	protocols \
3890792Sgshapiro	rc \
3990792Sgshapiro	rc.bsdextended \
4090792Sgshapiro	rc.firewall \
4190792Sgshapiro	rc.initdiskless \
4290792Sgshapiro	rc.sendmail \
4390792Sgshapiro	rc.shutdown \
4490792Sgshapiro	rc.subr \
4590792Sgshapiro	remote \
4690792Sgshapiro	rpc \
4790792Sgshapiro	services \
4890792Sgshapiro	shells \
49168515Sgshapiro	sysctl.conf \
5090792Sgshapiro	syslog.conf \
5190792Sgshapiro	termcap.small
5290792Sgshapiro
5390792Sgshapiro.if ${MACHINE} == "amd64"
5490792SgshapiroBIN1+=	etc.${MACHINE}/libmap32.conf
5590792Sgshapiro.endif
5690792Sgshapiro
5790792Sgshapiro.if exists(${.CURDIR}/etc.${MACHINE}/ttys)
5890792SgshapiroBIN1+=	etc.${MACHINE}/ttys
5990792Sgshapiro.elif exists(${.CURDIR}/etc.${MACHINE_ARCH}/ttys)
6090792SgshapiroBIN1+=	etc.${MACHINE_ARCH}/ttys
6190792Sgshapiro.elif exists(${.CURDIR}/etc.${MACHINE_CPUARCH}/ttys)
6290792SgshapiroBIN1+=	etc.${MACHINE_CPUARCH}/ttys
6390792Sgshapiro.else
6490792Sgshapiro.error etc.MACHINE/ttys missing
6590792Sgshapiro.endif
6690792Sgshapiro
6790792SgshapiroOPENBSMDIR=			${.CURDIR}/../contrib/openbsm
6890792SgshapiroBSM_ETC_OPEN_FILES=		${OPENBSMDIR}/etc/audit_class \
6990792Sgshapiro				${OPENBSMDIR}/etc/audit_event
7090792SgshapiroBSM_ETC_RESTRICTED_FILES=	${OPENBSMDIR}/etc/audit_control \
7190792Sgshapiro				${OPENBSMDIR}/etc/audit_user
7290792SgshapiroBSM_ETC_EXEC_FILES=		${OPENBSMDIR}/etc/audit_warn
73141858SgshapiroBSM_ETC_DIR=			${DESTDIR}/etc/security
74141858Sgshapiro
7590792Sgshapiro# NB: keep these sorted by MK_* knobs
7690792Sgshapiro
7790792Sgshapiro.if ${MK_AMD} != "no"
7890792SgshapiroBIN1+= amd.map
7990792Sgshapiro.endif
8090792Sgshapiro
8190792Sgshapiro.if ${MK_APM} != "no"
8290792SgshapiroBIN1+= apmd.conf
8390792Sgshapiro.endif
8490792Sgshapiro
8590792Sgshapiro.if ${MK_BSNMP} != "no"
8690792SgshapiroBIN1+= snmpd.config
8790792Sgshapiro.endif
8890792Sgshapiro
8990792Sgshapiro.if ${MK_FREEBSD_UPDATE} != "no"
9090792SgshapiroBIN1+= freebsd-update.conf
9190792Sgshapiro.endif
9290792Sgshapiro
9390792Sgshapiro.if ${MK_LOCATE} != "no"
9490792SgshapiroBIN1+=	${.CURDIR}/../usr.bin/locate/locate/locate.rc
9590792Sgshapiro.endif
9690792Sgshapiro
9790792Sgshapiro.if ${MK_LPR} != "no"
9890792SgshapiroBIN1+=	hosts.lpd printcap
9990792Sgshapiro.endif
10090792Sgshapiro
10190792Sgshapiro.if ${MK_MAIL} != "no"
10290792SgshapiroBIN1+=	${.CURDIR}/../usr.bin/mail/misc/mail.rc
10390792Sgshapiro.endif
10490792Sgshapiro
10590792Sgshapiro.if ${MK_NTP} != "no"
10690792SgshapiroBIN1+=	ntp.conf
10790792Sgshapiro.endif
10890792Sgshapiro
10990792Sgshapiro.if ${MK_OPENSSH} != "no"
11090792SgshapiroSSH=	${.CURDIR}/../crypto/openssh/ssh_config \
11190792Sgshapiro	${.CURDIR}/../crypto/openssh/sshd_config \
11290792Sgshapiro	${.CURDIR}/../crypto/openssh/moduli
11390792Sgshapiro.endif
11490792Sgshapiro.if ${MK_OPENSSL} != "no"
11590792SgshapiroSSL=	${.CURDIR}/../crypto/openssl/apps/openssl.cnf
11690792Sgshapiro.endif
11790792Sgshapiro
11890792Sgshapiro.if ${MK_NS_CACHING} != "no"
11990792SgshapiroBIN1+= nscd.conf
12090792Sgshapiro.endif
12190792Sgshapiro
12290792Sgshapiro.if ${MK_PORTSNAP} != "no"
12390792SgshapiroBIN1+= portsnap.conf
12490792Sgshapiro.endif
12590792Sgshapiro
12690792Sgshapiro.if ${MK_PF} != "no"
12790792SgshapiroBIN1+= pf.os
12890792Sgshapiro.endif
12990792Sgshapiro
13090792Sgshapiro.if ${MK_TCSH} != "no"
13190792SgshapiroBIN1+= csh.cshrc csh.login csh.logout
13290792Sgshapiro.endif
13390792Sgshapiro
13490792Sgshapiro.if ${MK_WIRELESS} != "no"
13590792SgshapiroBIN1+= regdomain.xml
13690792Sgshapiro.endif
13790792Sgshapiro
13890792Sgshapiro# -rwxr-xr-x root:wheel, for the new cron root:wheel
13990792SgshapiroBIN2=	netstart pccard_ether rc.suspend rc.resume
14090792Sgshapiro
14190792SgshapiroMTREE=	BSD.include.dist BSD.root.dist BSD.usr.dist BSD.var.dist
14290792Sgshapiro.if ${MK_SENDMAIL} != "no"
14390792SgshapiroMTREE+=	BSD.sendmail.dist
14490792Sgshapiro.endif
14590792Sgshapiro.if ${MK_BIND} != "no"
14690792SgshapiroMTREE+=	BIND.chroot.dist
14790792Sgshapiro.if ${MK_BIND_LIBS} != "no"
14890792SgshapiroMTREE+=	BIND.include.dist
14990792Sgshapiro.endif
15090792Sgshapiro.endif
15190792Sgshapiro.if ${MK_DEBUG_FILES} != "no"
15290792SgshapiroMTREE+=	BSD.debug.dist
15390792Sgshapiro.endif
15490792Sgshapiro
15590792SgshapiroPPPCNF=	ppp.conf
15690792Sgshapiro
15790792Sgshapiro.if ${MK_SENDMAIL} == "no"
15890792SgshapiroETCMAIL=mailer.conf aliases
15990792Sgshapiro.else
16090792SgshapiroETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \
16190792Sgshapiro	mailertable.sample aliases
16290792Sgshapiro.endif
16390792Sgshapiro
16490792Sgshapiro# Special top level files for FreeBSD
16590792SgshapiroFREEBSD=COPYRIGHT
16690792Sgshapiro
16790792Sgshapiro# Sanitize DESTDIR
16890792SgshapiroDESTDIR:=	${DESTDIR:C://*:/:g}
16990792Sgshapiro
17090792Sgshapiroafterinstall:
17190792Sgshapiro.if ${MK_MAN} != "no"
17290792Sgshapiro	${_+_}cd ${.CURDIR}/../share/man; ${MAKE} makedb
17390792Sgshapiro.endif
17490792Sgshapiro
17590792Sgshapirodistribute:
17690792Sgshapiro	${_+_}cd ${.CURDIR} ; ${MAKE} install DESTDIR=${DISTDIR}/${DISTRIBUTION}
177112810Sgshapiro	${_+_}cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/${DISTRIBUTION}
17890792Sgshapiro
17990792Sgshapiro.include <bsd.endian.mk>
180112810Sgshapiro.if ${TARGET_ENDIANNESS} == "1234"
18190792SgshapiroCAP_MKDB_ENDIAN?= -l
18290792SgshapiroPWD_MKDB_ENDIAN?= -L
18390792Sgshapiro.elif ${TARGET_ENDIANNESS} == "4321"
18490792SgshapiroCAP_MKDB_ENDIAN?= -b
18598841SgshapiroPWD_MKDB_ENDIAN?= -B
18698841Sgshapiro.else
187168515SgshapiroCAP_MKDB_ENDIAN?=
18890792SgshapiroPWD_MKDB_ENDIAN?=
18990792Sgshapiro.endif
19090792Sgshapiro
19190792Sgshapiro.if defined(NO_ROOT)
19290792SgshapiroMETALOG.add?=	cat -l >> ${METALOG}
19390792Sgshapiro.endif
19490792Sgshapiro
19590792Sgshapirodistribution:
19690792Sgshapiro.if !defined(DESTDIR)
19790792Sgshapiro	@echo "set DESTDIR before running \"make ${.TARGET}\""
19890792Sgshapiro	@false
19990792Sgshapiro.endif
20090792Sgshapiro	cd ${.CURDIR}; \
20190792Sgshapiro	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
20290792Sgshapiro		${BIN1} ${DESTDIR}/etc; \
20390792Sgshapiro	    cap_mkdb ${CAP_MKDB_ENDIAN} ${DESTDIR}/etc/login.conf; \
20490792Sgshapiro	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 755 \
20598841Sgshapiro		${BIN2} ${DESTDIR}/etc; \
20690792Sgshapiro	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
207168515Sgshapiro		master.passwd nsmb.conf opieaccess ${DESTDIR}/etc;
20890792Sgshapiro.if ${MK_AT} == "no"
20990792Sgshapiro	sed -i "" -e 's;.*/usr/libexec/atrun;#&;' ${DESTDIR}/etc/crontab
21090792Sgshapiro.endif
21190792Sgshapiro.if ${MK_TCSH} == "no"
21290792Sgshapiro	sed -i "" -e 's;/bin/csh;/bin/sh;' ${DESTDIR}/etc/master.passwd
21390792Sgshapiro.endif
21490792Sgshapiro	pwd_mkdb ${PWD_MKDB_ENDIAN} -i -p -d ${DESTDIR}/etc \
21590792Sgshapiro	    ${DESTDIR}/etc/master.passwd
21690792Sgshapiro.if defined(NO_ROOT)
21790792Sgshapiro	( \
21898841Sgshapiro		echo "./etc/login.conf.db type=file mode=0644 uname=root gname=wheel"; \
21998841Sgshapiro		echo "./etc/passwd type=file mode=0644 uname=root gname=wheel"; \
22098841Sgshapiro		echo "./etc/pwd.db type=file mode=0644 uname=root gname=wheel"; \
22198841Sgshapiro		echo "./etc/spwd.db type=file mode=0600 uname=root gname=wheel"; \
22298841Sgshapiro	) | ${METALOG.add}
22398841Sgshapiro.endif
22498841Sgshapiro.if ${MK_ATF} != "no"
22598841Sgshapiro	${_+_}cd ${.CURDIR}/atf; ${MAKE} install
22698841Sgshapiro.endif
22798841Sgshapiro.if ${MK_BLUETOOTH} != "no"
22898841Sgshapiro	${_+_}cd ${.CURDIR}/bluetooth; ${MAKE} install
22998841Sgshapiro.endif
23098841Sgshapiro	${_+_}cd ${.CURDIR}/defaults; ${MAKE} install
23198841Sgshapiro	${_+_}cd ${.CURDIR}/devd; ${MAKE} install
232112810Sgshapiro	${_+_}cd ${.CURDIR}/gss; ${MAKE} install
23390792Sgshapiro	${_+_}cd ${.CURDIR}/periodic; ${MAKE} install
23490792Sgshapiro	${_+_}cd ${.CURDIR}/rc.d; ${MAKE} install
23590792Sgshapiro	${_+_}cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall
23690792Sgshapiro	${_+_}cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap
23790792Sgshapiro	${_+_}cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt
238112810Sgshapiro	${_+_}cd ${.CURDIR}/pam.d; ${MAKE} install
23990792Sgshapiro	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0444 \
24090792Sgshapiro	    ${BSM_ETC_OPEN_FILES} ${BSM_ETC_DIR}
24190792Sgshapiro	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0600 \
24290792Sgshapiro	    ${BSM_ETC_RESTRICTED_FILES} ${BSM_ETC_DIR}
24390792Sgshapiro	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 0500 \
24490792Sgshapiro	    ${BSM_ETC_EXEC_FILES} ${BSM_ETC_DIR}
24590792Sgshapiro.if ${MK_BIND_MTREE} != "no"
24690792Sgshapiro	if [ ! -e ${DESTDIR}/etc/namedb ]; then \
24790792Sgshapiro		ln -s ../var/named/etc/namedb ${DESTDIR}/etc/namedb; \
24890792Sgshapiro	fi
24990792Sgshapiro.endif
25090792Sgshapiro.if ${MK_BIND_ETC} != "no"
25190792Sgshapiro	${_+_}cd ${.CURDIR}/namedb; ${MAKE} install
25290792Sgshapiro.endif
25390792Sgshapiro.if ${MK_SENDMAIL} != "no"
25490792Sgshapiro	${_+_}cd ${.CURDIR}/sendmail; ${MAKE} distribution
255168515Sgshapiro.endif
25690792Sgshapiro.if ${MK_OPENSSH} != "no"
25790792Sgshapiro	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
25890792Sgshapiro	    ${SSH} ${DESTDIR}/etc/ssh
25990792Sgshapiro.endif
26090792Sgshapiro.if ${MK_OPENSSL} != "no"
26190792Sgshapiro	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
26290792Sgshapiro	    ${SSL} ${DESTDIR}/etc/ssl
26390792Sgshapiro.endif
26490792Sgshapiro.if ${MK_KERBEROS} != "no"
26590792Sgshapiro	cd ${.CURDIR}/root; \
26690792Sgshapiro	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
26790792Sgshapiro		dot.k5login ${DESTDIR}/root/.k5login;
26890792Sgshapiro.endif
26990792Sgshapiro	cd ${.CURDIR}/root; \
27090792Sgshapiro	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
27190792Sgshapiro		dot.profile ${DESTDIR}/root/.profile; \
272168515Sgshapiro	    rm -f ${DESTDIR}/.profile; \
27390792Sgshapiro	    ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
27490792Sgshapiro.if ${MK_TCSH} != "no"
27590792Sgshapiro	cd ${.CURDIR}/root; \
27690792Sgshapiro	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
27790792Sgshapiro		dot.cshrc ${DESTDIR}/root/.cshrc; \
27890792Sgshapiro	    ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
27990792Sgshapiro		dot.login ${DESTDIR}/root/.login; \
280112810Sgshapiro	    rm -f ${DESTDIR}/.cshrc; \
28190792Sgshapiro	    ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc
28290792Sgshapiro.endif
28390792Sgshapiro	cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
28490792Sgshapiro	    ${MTREE} ${DESTDIR}/etc/mtree
28590792Sgshapiro.if ${MK_PPP} != "no"
28690792Sgshapiro	cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
28790792Sgshapiro	    ${PPPCNF} ${DESTDIR}/etc/ppp
28890792Sgshapiro.endif
28990792Sgshapiro.if ${MK_MAIL} != "no"
29090792Sgshapiro	cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
29190792Sgshapiro	    ${ETCMAIL} ${DESTDIR}/etc/mail
29290792Sgshapiro	if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
293168515Sgshapiro	      ! -f ${DESTDIR}/etc/aliases ]; then \
29490792Sgshapiro		ln -s mail/aliases ${DESTDIR}/etc/aliases; \
29590792Sgshapiro	fi
29690792Sgshapiro.endif
29790792Sgshapiro	${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
29890792Sgshapiro	    ${DESTDIR}/etc/dumpdates
29990792Sgshapiro	${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
30090792Sgshapiro	    ${DESTDIR}/var/db/locate.database
301112810Sgshapiro	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \
30290792Sgshapiro	    ${DESTDIR}/var/crash
30390792Sgshapiro	cd ${.CURDIR}/..; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
30490792Sgshapiro		${FREEBSD} ${DESTDIR}/
30590792Sgshapiro.if ${MK_BOOT} != "no"
30690792Sgshapiro.if exists(${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints)
30790792Sgshapiro	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
30890792Sgshapiro	    ${.CURDIR}/../sys/${MACHINE}/conf/GENERIC.hints \
30990792Sgshapiro	    ${DESTDIR}/boot/device.hints
31090792Sgshapiro.endif
31190792Sgshapiro.endif
31290792Sgshapiro.if ${MK_NIS} == "no"
31390792Sgshapiro	sed -i "" -e 's/.*_compat:/# &/' -e 's/compat$$/files/' \
31490792Sgshapiro		${DESTDIR}/etc/nsswitch.conf
31598841Sgshapiro.endif
31698841Sgshapiro
31798841SgshapiroMTREE_CMD?=	mtree
31898841Sgshapiro
31998841SgshapiroMTREES=		mtree/BSD.root.dist		/		\
32098841Sgshapiro		mtree/BSD.var.dist		/var		\
32198841Sgshapiro		mtree/BSD.usr.dist		/usr		\
32298841Sgshapiro		mtree/BSD.include.dist		/usr/include
32398841Sgshapiro.if ${MK_DEBUG_FILES} != "no"
32498841SgshapiroMTREES+=	mtree/BSD.debug.dist		/usr/lib
32598841Sgshapiro.endif
32698841Sgshapiro.if ${MK_BIND_LIBS} != "no"
32798841SgshapiroMTREES+=	mtree/BIND.include.dist		/usr/include
32898841Sgshapiro.endif
32998841Sgshapiro.if ${MK_BIND_MTREE} != "no"
33098841SgshapiroMTREES+=	mtree/BIND.chroot.dist		/var/named
33198841Sgshapiro.endif
33298841Sgshapiro.if ${MK_GROFF} != "no"
33398841SgshapiroMTREES+=	mtree/BSD.groff.dist		/usr
33498841Sgshapiro.endif
33598841Sgshapiro.if ${MK_SENDMAIL} != "no"
336112810SgshapiroMTREES+=	mtree/BSD.sendmail.dist		/
33790792Sgshapiro.endif
33890792Sgshapiro.for mtree in ${LOCAL_MTREE}
33990792SgshapiroMTREES+=	../${mtree}			/
34090792Sgshapiro.endfor
34190792Sgshapiro
34298841Sgshapirodistrib-dirs: ${MTREES:N/*}
34398841Sgshapiro	@set ${MTREES}; \
34490792Sgshapiro	while test $$# -ge 2; do \
34590792Sgshapiro		m=${.CURDIR}/$$1; \
34690792Sgshapiro		shift; \
347112810Sgshapiro		d=${DESTDIR}$$1; \
348112810Sgshapiro		shift; \
34990792Sgshapiro		${ECHO} ${MTREE_CMD} -deU ${MTREE_FOLLOWS_SYMLINKS} \
35090792Sgshapiro		    -f $$m -p $$d; \
35190792Sgshapiro		${MTREE_CMD} -deU ${MTREE_FOLLOWS_SYMLINKS} -f $$m -p $$d; \
35290792Sgshapiro	done; true
35390792Sgshapiro.if defined(NO_ROOT)
35498841Sgshapiro	@set ${MTREES}; \
35590792Sgshapiro	while test $$# -ge 2; do \
35690792Sgshapiro		m=${.CURDIR}/$$1; \
35790792Sgshapiro		shift; \
35890792Sgshapiro		d=$$1; \
35990792Sgshapiro		test "$$d" == "/" && d=""; \
36090792Sgshapiro		d=${DISTBASE}$$d; \
36190792Sgshapiro		shift; \
36290792Sgshapiro		${ECHO} "${MTREE_CMD:N-W} -C -f $$m -K uname,gname | " \
36390792Sgshapiro		    "sed s#^\.#.$$d# | ${METALOG.add}" ; \
36490792Sgshapiro		${MTREE_CMD:N-W} -C -f $$m -K uname,gname | sed s#^\.#.$$d# | \
36590792Sgshapiro		    ${METALOG.add} ; \
36690792Sgshapiro	done; true
36790792Sgshapiro.endif
36890792Sgshapiro	${INSTALL_SYMLINK} usr/src/sys ${DESTDIR}/sys
36990792Sgshapiro	cd ${DESTDIR}/usr/share/man; \
37090792Sgshapiro	for mandir in man*; do \
37190792Sgshapiro		${INSTALL_SYMLINK} ../$$mandir \
37290792Sgshapiro		    ${DESTDIR}/usr/share/man/en.ISO8859-1/; \
37390792Sgshapiro		${INSTALL_SYMLINK} ../$$mandir \
37490792Sgshapiro		    ${DESTDIR}/usr/share/man/en.UTF-8/; \
37590792Sgshapiro	done
37690792Sgshapiro	cd ${DESTDIR}/usr/share/openssl/man; \
37790792Sgshapiro	for mandir in man*; do \
37890792Sgshapiro		${INSTALL_SYMLINK} ../$$mandir \
37990792Sgshapiro		    ${DESTDIR}/usr/share/openssl/man/en.ISO8859-1/; \
38090792Sgshapiro	done
38190792Sgshapiro	set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \
38290792Sgshapiro	while [ $$# -gt 0 ] ; do \
38390792Sgshapiro		${INSTALL_SYMLINK} "$$2" "${DESTDIR}/usr/share/man/$$1"; \
38490792Sgshapiro		${INSTALL_SYMLINK} "$$2" \
38590792Sgshapiro		    "${DESTDIR}/usr/share/openssl/man/$$1"; \
38690792Sgshapiro		shift; shift; \
38790792Sgshapiro	done
38890792Sgshapiro	set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \
38990792Sgshapiro	while [ $$# -gt 0 ] ; do \
39090792Sgshapiro		${INSTALL_SYMLINK} "$$2" "${DESTDIR}/usr/share/nls/$$1"; \
39190792Sgshapiro		shift; shift; \
39290792Sgshapiro	done
39390792Sgshapiro
39490792Sgshapiroetc-examples:
39590792Sgshapiro	cd ${.CURDIR}; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
39690792Sgshapiro	    ${BIN1} ${BIN2} nsmb.conf opieaccess \
39790792Sgshapiro	    ${DESTDIR}/usr/share/examples/etc
39890792Sgshapiro	${_+_}cd ${.CURDIR}/defaults; ${MAKE} install \
39990792Sgshapiro	    DESTDIR=${DESTDIR}/usr/share/examples
40090792Sgshapiro
40190792Sgshapiro.include <bsd.prog.mk>
40290792Sgshapiro