summaryrefslogtreecommitdiffstats
path: root/etc/Makefile
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2013-09-24 10:04:51 +0000
committerdes <des@FreeBSD.org>2013-09-24 10:04:51 +0000
commit3e7c9aa8a8fce25c081b8af1b5698b9ad8eb4891 (patch)
tree84a2b5f2bc70e8932bdee15fdb358412c84fb711 /etc/Makefile
parent384b4d5caeff301bc6b680c639a19887868bc3cf (diff)
downloadFreeBSD-src-3e7c9aa8a8fce25c081b8af1b5698b9ad8eb4891.zip
FreeBSD-src-3e7c9aa8a8fce25c081b8af1b5698b9ad8eb4891.tar.gz
Replace the unused /etc/unbound directory with a symlink to /var/unbound.
Approved by: re (blanket)
Diffstat (limited to 'etc/Makefile')
-rw-r--r--etc/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/Makefile b/etc/Makefile
index ae52d79..ddd1abb 100644
--- a/etc/Makefile
+++ b/etc/Makefile
@@ -250,6 +250,11 @@ distribution:
.if ${MK_BIND_ETC} != "no"
${_+_}cd ${.CURDIR}/namedb; ${MAKE} install
.endif
+.if ${MK_UNBOUND} != "no"
+ if [ ! -e ${DESTDIR}/etc/unbound ]; then \
+ ${INSTALL_SYMLINK} ../var/unbound ${DESTDIR}/etc/unbound; \
+ fi
+.endif
.if ${MK_SENDMAIL} != "no"
${_+_}cd ${.CURDIR}/sendmail; ${MAKE} distribution
.endif
OpenPOWER on IntegriCloud