summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2013-09-15 14:51:23 +0000
committerdes <des@FreeBSD.org>2013-09-15 14:51:23 +0000
commitea05e625ec3e5c83a7066971514f66e15e913ecd (patch)
tree6f049c7799611aead87e6da6b6e21e8d8af772db /lib
parent3b7e4aa267bc7eedadb66a6fa1fac2a227969a41 (diff)
downloadFreeBSD-src-ea05e625ec3e5c83a7066971514f66e15e913ecd.zip
FreeBSD-src-ea05e625ec3e5c83a7066971514f66e15e913ecd.tar.gz
Build and install the Unbound caching DNS resolver daemon.
Approved by: re (blanket)
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile6
-rw-r--r--lib/libunbound/Makefile33
2 files changed, 39 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index feca8d3..72abecd 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -12,6 +12,7 @@
# libcom_err must be built before libpam.
# libcrypt must be built before libpam.
# libkvm must be built before libdevstat.
+# libldns must be built before libunbound.
# msun must be built before libg++ and libstdc++.
# libmd must be built before libatm, libopie, libradius, and libtacplus.
# ncurses must be built before libdialog, libedit and libreadline.
@@ -116,6 +117,7 @@ SUBDIR= ${SUBDIR_ORDERED} \
libufs \
libugidfw \
libulog \
+ ${_libunbound} \
${_libusbhid} \
${_libusb} \
${_libvgl} \
@@ -261,6 +263,10 @@ _libsmutil= libsmutil
_libtelnet= libtelnet
.endif
+.if ${MK_UNBOUND} != "no"
+_libunbound= libunbound
+.endif
+
.if ${MK_USB} != "no"
_libusbhid= libusbhid
_libusb= libusb
diff --git a/lib/libunbound/Makefile b/lib/libunbound/Makefile
new file mode 100644
index 0000000..eab23e1
--- /dev/null
+++ b/lib/libunbound/Makefile
@@ -0,0 +1,33 @@
+# $FreeBSD$
+
+# Vendor sources and generated files
+LDNSDIR= ${.CURDIR}/../../contrib/ldns
+UNBOUNDDIR= ${.CURDIR}/../../contrib/unbound
+
+# Hold my beer and watch this
+.PATH: ${UNBOUNDDIR} ${UNBOUNDDIR}/iterator ${UNBOUNDDIR}/libunbound ${UNBOUNDDIR}/services ${UNBOUNDDIR}/services/cache ${UNBOUNDDIR}/util ${UNBOUNDDIR}/util/data ${UNBOUNDDIR}/util/storage ${UNBOUNDDIR}/validator
+
+LIB= unbound
+PRIVATELIB=
+
+CFLAGS= -I${LDNSDIR} -I${UNBOUNDDIR}
+
+SRCS= alloc.c autotrust.c config_file.c configlexer.c configparser.c \
+ context.c dname.c dns.c dnstree.c fptr_wlist.c infra.c \
+ iter_delegpt.c iter_donotq.c iter_fwd.c iter_hints.c iter_priv.c \
+ iter_resptype.c iter_scrub.c iter_utils.c iterator.c libunbound.c \
+ libworker.c listen_dnsport.c localzone.c locks.c log.c lookup3.c \
+ lruhash.c mesh.c mini_event.c modstack.c module.c msgencode.c \
+ msgparse.c msgreply.c net_help.c netevent.c outbound_list.c \
+ outside_network.c packed_rrset.c random.c rbtree.c regional.c \
+ rrset.c rtt.c slabhash.c timehist.c tube.c val_anchor.c \
+ val_kcache.c val_kentry.c val_neg.c val_nsec.c val_nsec3.c \
+ val_secalgo.c val_sigcrypt.c val_utils.c validator.c \
+ winsock_event.c
+
+WARNS?= 3
+
+DPADD+= ${LIBSSL} ${LIBCRYPTO} ${LIBPTHREAD}
+LDADD+= -lssl -lcrypto -lpthread
+
+.include <bsd.lib.mk>
OpenPOWER on IntegriCloud