diff options
author | des <des@FreeBSD.org> | 2013-02-15 13:44:18 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2013-02-15 13:44:18 +0000 |
commit | e6d4c5218f404b3d9409e27fb0fa1f60413ef6cb (patch) | |
tree | d957b587bb5a1e7defbd76792f0b178819595c24 /lib | |
parent | b585f0db6b4ff1dffb058cc09881606f50a2dc53 (diff) | |
parent | 481a5cc876eaea3ecda6f120c33620aaab58f19d (diff) | |
download | FreeBSD-src-e6d4c5218f404b3d9409e27fb0fa1f60413ef6cb.zip FreeBSD-src-e6d4c5218f404b3d9409e27fb0fa1f60413ef6cb.tar.gz |
Import LDNS and build it as an internal library.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Makefile | 5 | ||||
-rw-r--r-- | lib/libldns/Makefile | 44 |
2 files changed, 49 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile index 1447002..7a0ec02 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 0000000..268939e --- /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> |