aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2013-02-15 13:44:18 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2013-02-15 13:44:18 +0000
commit7b5038d71c5c74ab863c1ff3fec33de94bf35a57 (patch)
treed957b587bb5a1e7defbd76792f0b178819595c24 /lib
parentab15d8039eb1bed48f07136aef79fb6893bb920c (diff)
parenta1ba2d1ca3a1d6c9c36a79a196dd3ccb83ede353 (diff)
downloadsrc-7b5038d71c5c74ab863c1ff3fec33de94bf35a57.tar.gz
src-7b5038d71c5c74ab863c1ff3fec33de94bf35a57.zip
Import LDNS and build it as an internal library.
Notes
Notes: svn path=/head/; revision=246827
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile5
-rw-r--r--lib/libldns/Makefile44
2 files changed, 49 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 14470029a604..7a0ec021bd22 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -82,6 +82,7 @@ SUBDIR= ${SUBDIR_ORDERED} \
${_libipx} \
libjail \
libkiconv \
+ ${_libldns} \
liblzma \
libmagic \
libmandoc \
@@ -177,6 +178,10 @@ _libiconv_modules= libiconv_modules
_libipx= libipx
.endif
+.if ${MK_LDNS} != "no"
+_libldns= libldns
+.endif
+
.if ${MK_LIBCPLUSPLUS} != "no"
_libcxxrt= libcxxrt
_libcplusplus= libc++
diff --git a/lib/libldns/Makefile b/lib/libldns/Makefile
new file mode 100644
index 000000000000..268939e186c2
--- /dev/null
+++ b/lib/libldns/Makefile
@@ -0,0 +1,44 @@
+# $FreeBSD$
+
+# Vendor sources and generated files
+LDNSDIR = ${.CURDIR}/../../contrib/ldns
+
+.PATH: ${LDNSDIR}
+
+LIB = ldns
+INTERNALLIB = true
+
+CFLAGS += -I${LDNSDIR}
+
+SRCS += buffer.c
+SRCS += dname.c
+SRCS += dnssec.c
+SRCS += dnssec_sign.c
+SRCS += dnssec_verify.c
+SRCS += dnssec_zone.c
+SRCS += duration.c
+SRCS += error.c
+SRCS += higher.c
+SRCS += host2str.c
+SRCS += host2wire.c
+SRCS += keys.c
+SRCS += net.c
+SRCS += packet.c
+SRCS += parse.c
+SRCS += rbtree.c
+SRCS += rdata.c
+SRCS += resolver.c
+SRCS += rr.c
+SRCS += rr_functions.c
+SRCS += sha1.c
+SRCS += sha2.c
+SRCS += str2host.c
+SRCS += tsig.c
+SRCS += update.c
+SRCS += util.c
+SRCS += wire2host.c
+SRCS += zone.c
+
+WARNS ?= 3
+
+.include <bsd.lib.mk>