diff options
author | des <des@FreeBSD.org> | 2013-09-08 19:40:32 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2013-09-08 19:40:32 +0000 |
commit | ff13bc56dc1aa9c168ebed9bc14f8025a93f0546 (patch) | |
tree | 317dc698abf46f592c53342797f51ff20e0248f2 /usr.bin/host/Makefile | |
parent | 2b94dc11fac30e23c3dbede965af4276368b39b9 (diff) | |
parent | fa026126890c18d2f121a756357b02ebc8cf1bd3 (diff) | |
download | FreeBSD-src-ff13bc56dc1aa9c168ebed9bc14f8025a93f0546.zip FreeBSD-src-ff13bc56dc1aa9c168ebed9bc14f8025a93f0546.tar.gz |
Import Magerya Vitaly's ldns-host, and build it instead of the BIND version
in the WITH_LDNS_UTILS case.
Approved by: re (blanket)
Diffstat (limited to 'usr.bin/host/Makefile')
-rw-r--r-- | usr.bin/host/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/usr.bin/host/Makefile b/usr.bin/host/Makefile index d168a92..25dfd2d 100644 --- a/usr.bin/host/Makefile +++ b/usr.bin/host/Makefile @@ -1,5 +1,29 @@ # $FreeBSD$ +.include <bsd.own.mk> + +.if ${MK_LDNS_UTILS} != "no" + +LDNSDIR= ${.CURDIR}/../../contrib/ldns +LDNSHOSTDIR= ${.CURDIR}/../../contrib/ldns-host + +.PATH: ${LDNSHOSTDIR} + +PROG= host +SRCS= ldns-host.c +MAN= host.1 + +host.1: ldns-host.1 + sed -e 's/ldns-//gI' <${.ALLSRC} >${.TARGET} || \ + (rm -rf ${.TARGET} ; false) + +CFLAGS+= -I${LDNSDIR} +DPADD+= ${LIBLDNS} ${LIBCRYPTO} +LDADD+= -lldns -lcrypto +USEPRIVATELIB= ldns + +.else + BIND_DIR= ${.CURDIR}/../../contrib/bind9 LIB_BIND_REL= ../../lib/bind LIB_BIND_DIR= ${.CURDIR}/${LIB_BIND_REL} @@ -20,4 +44,6 @@ WARNS?= 0 DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD} LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD} +.endif + .include <bsd.prog.mk> |