2012-10-24 05:42:06 +00:00
|
|
|
# Created by: Konstantin Saurbier <saurbier@math.uni-bielefeld.de>
|
2005-12-30 04:24:11 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ldns
|
2017-03-03 04:11:14 +00:00
|
|
|
PORTVERSION= 1.7.0
|
2017-07-23 13:13:11 +00:00
|
|
|
PORTREVISION= 1
|
2005-12-30 04:24:11 +00:00
|
|
|
CATEGORIES= dns
|
2018-02-27 13:03:48 +00:00
|
|
|
MASTER_SITES= https://www.nlnetlabs.nl/downloads/ldns/ \
|
2015-01-06 10:01:41 +00:00
|
|
|
LOCAL/ehaupt
|
2005-12-30 04:24:11 +00:00
|
|
|
|
2010-12-20 21:41:30 +00:00
|
|
|
MAINTAINER= jaap@NLnetLabs.nl
|
2014-02-06 18:23:57 +00:00
|
|
|
COMMENT= Library for programs conforming to DNS RFCs and drafts
|
2005-12-30 04:24:11 +00:00
|
|
|
|
2014-02-06 18:23:57 +00:00
|
|
|
LICENSE= BSD3CLAUSE
|
2014-08-22 09:06:51 +00:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2010-09-03 08:51:25 +00:00
|
|
|
|
2014-10-05 10:09:21 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2017-03-03 04:11:14 +00:00
|
|
|
USES= cpe gmake libtool ssl perl5
|
2017-07-23 13:13:11 +00:00
|
|
|
USE_PERL5= build
|
2015-05-14 07:02:20 +00:00
|
|
|
CPE_VENDOR= nlnetlabs
|
2006-08-28 11:53:08 +00:00
|
|
|
USE_LDCONFIG= yes
|
2005-12-30 04:24:11 +00:00
|
|
|
|
2017-03-03 04:11:14 +00:00
|
|
|
CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE} --disable-dane-ta-usage
|
2016-09-10 01:37:39 +00:00
|
|
|
|
2014-02-06 18:23:57 +00:00
|
|
|
.if ! (defined(BUILD_PYLDNS) || defined(BUILD_P5PERL))
|
2013-07-11 12:40:54 +00:00
|
|
|
OPTIONS_DEFINE= DOXYGEN EXAMPLES DRILL
|
2016-05-23 20:35:01 +00:00
|
|
|
OPTIONS_DEFAULT= DRILL
|
2012-10-24 05:42:06 +00:00
|
|
|
|
2012-11-08 17:57:59 +00:00
|
|
|
DRILL_DESC= With drill program
|
2016-09-10 01:37:39 +00:00
|
|
|
|
2013-07-11 12:40:54 +00:00
|
|
|
.endif
|
|
|
|
|
2017-03-03 04:11:14 +00:00
|
|
|
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
|
|
|
|
HTMLDOCS= doc/html/*
|
|
|
|
|
|
|
|
OPTIONS_DEFINE+= GOST DANETAUSAGE \
|
|
|
|
RRTYPENINFO RRTYPERKEY RRTYPETA RRTYPEAVC
|
2013-07-11 12:40:54 +00:00
|
|
|
|
2017-03-03 04:11:14 +00:00
|
|
|
DANETAUSAGE_DESC= Enable ta uasage, requires openssl >= 1.1.0
|
|
|
|
GOST_DESC= GOST signatures enabled, requires openssl >= 1.0.0
|
2014-02-06 18:23:57 +00:00
|
|
|
RRTYPENINFO_DESC= Enable draft RR type ninfo.
|
|
|
|
RRTYPERKEY_DESC= Enable draft RR type rkey.
|
|
|
|
RRTYPETA_DESC= Enable draft RR type ta.
|
2017-03-03 04:11:14 +00:00
|
|
|
RRTYPEAVC_DESC= Enable draft RR type avc.
|
2014-02-06 18:23:57 +00:00
|
|
|
|
|
|
|
OPTIONS_SUB= yes
|
2005-12-30 04:24:11 +00:00
|
|
|
|
2017-03-03 04:11:14 +00:00
|
|
|
DANETAUSAGE_CONFIGURE_ENABLE= dane-ta-usage
|
|
|
|
DANETAUSAGE_IMPLIES= RRTYPETA
|
2016-09-10 01:37:39 +00:00
|
|
|
GOST_CONFIGURE_ENABLE= gost
|
|
|
|
RRTYPENINFO_CONFIGURE_ENABLE= rrtype-ninfo
|
|
|
|
RRTYPERKEY_CONFIGURE_ENABLE= rrtype-rkey
|
|
|
|
RRTYPETA_CONFIGURE_ENABLE= rrtype-ta
|
2017-03-03 04:11:14 +00:00
|
|
|
RRTYPEAVC_CONFIGURE_ENABLE= rrtype-avc
|
|
|
|
EXAMPLES_CONFIGURE_WITH= examples
|
|
|
|
DRILL_CONFIGURE_WITH= drill
|
|
|
|
DRILL_INSTALL_TARGET= install-drill
|
|
|
|
EXAMPLES_INSTALL_TARGET= install-examples
|
2016-09-10 01:37:39 +00:00
|
|
|
|
2013-07-11 12:40:54 +00:00
|
|
|
.if defined(BUILD_PYLDNS)
|
2014-10-19 15:43:33 +00:00
|
|
|
USES+= python
|
2017-11-30 15:50:30 +00:00
|
|
|
USE_PYTHON= flavors
|
2012-11-22 12:28:09 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2013-07-11 12:40:54 +00:00
|
|
|
ALL_TARGET= pyldns
|
|
|
|
INSTALL_TARGET= install-pyldns
|
2011-10-06 22:43:49 +00:00
|
|
|
|
2013-07-11 12:40:54 +00:00
|
|
|
CONFIGURE_ARGS+=--with-pyldns
|
2016-04-01 14:00:51 +00:00
|
|
|
LIB_DEPENDS+= libldns.so:dns/ldns
|
2017-12-20 19:34:11 +00:00
|
|
|
BUILD_DEPENDS+= swig3.0:devel/swig30
|
2016-09-12 14:52:51 +00:00
|
|
|
CFLAGS+= -I${OPENSSLINC}
|
2017-12-20 19:34:11 +00:00
|
|
|
BINARY_ALIAS= swig=swig3.0
|
2013-07-11 12:40:54 +00:00
|
|
|
|
2014-02-06 18:23:57 +00:00
|
|
|
post-patch:
|
2016-09-10 01:37:39 +00:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's=-I./include/ldns=-I${LOCALBASE}/include/ldns=' \
|
|
|
|
${WRKSRC}/Makefile.in
|
2014-02-06 18:23:57 +00:00
|
|
|
.elif defined(BUILD_P5PERL)
|
|
|
|
USES+= perl5
|
2014-11-26 13:08:24 +00:00
|
|
|
USE_PERL5= build run
|
2014-02-06 18:23:57 +00:00
|
|
|
PKGNAMEPREFIX= p5-DNS-
|
|
|
|
|
|
|
|
ALL_TARGET= p5-dns-ldns
|
|
|
|
INSTALL_TARGET= install-p5-dns-ldns
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+=--with-p5-dns-ldns
|
2016-04-01 14:00:51 +00:00
|
|
|
LIB_DEPENDS+= libldns.so:dns/ldns
|
2017-03-03 04:11:14 +00:00
|
|
|
RUN_DEPENDS= p5-Test-Exception>=0:devel/p5-Test-Exception \
|
|
|
|
p5-Devel-CheckLib>=0:devel/p5-Devel-CheckLib
|
|
|
|
BUILD_DEPENDS=${RUN_DEPENDS}
|
2014-02-06 18:23:57 +00:00
|
|
|
|
2013-07-11 12:40:54 +00:00
|
|
|
post-patch:
|
|
|
|
@${SED} -i '' -e 's=-I./include/ldns=-I${LOCALBASE}/include/ldns=' ${WRKSRC}/Makefile.in
|
2017-03-03 04:11:14 +00:00
|
|
|
|
|
|
|
post-install:
|
2017-03-21 23:47:24 +00:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/DNS/LDNS/LDNS.so
|
2013-07-11 12:40:54 +00:00
|
|
|
.else
|
2005-12-30 04:24:11 +00:00
|
|
|
ALL_TARGET= all
|
2012-10-24 05:42:06 +00:00
|
|
|
INSTALL_TARGET= install-lib install-h install-config
|
2005-12-30 04:24:11 +00:00
|
|
|
|
2014-02-06 18:23:57 +00:00
|
|
|
.endif # BUILD_PYLDNS || BUILD_P5PERL
|
2013-07-11 12:40:54 +00:00
|
|
|
|
2016-09-21 14:14:18 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2017-03-03 04:11:14 +00:00
|
|
|
.if ${PORT_OPTIONS:MDANETAUSAGE} && ${SSL_DEFAULT} != openssl-devel
|
|
|
|
BROKEN= this option requires openssl >= 1.1.0
|
2016-11-29 18:46:21 +00:00
|
|
|
.endif
|
|
|
|
|
2017-02-17 16:49:13 +00:00
|
|
|
.if ! ${PORT_OPTIONS:MGOST}
|
2013-07-11 12:40:54 +00:00
|
|
|
NO_GOST= --disable-gost
|
2014-02-06 18:23:57 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ! (defined(BUILD_PYLDNS) || defined(BUILD_P5PERL))
|
2013-07-11 12:40:54 +00:00
|
|
|
|
2011-01-26 11:28:03 +00:00
|
|
|
post-build:
|
2017-03-03 04:11:14 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOXYGEN}
|
|
|
|
@(cd ${WRKSRC}; ${MAKE_CMD} doxygen)
|
2011-01-26 11:28:03 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2017-03-03 04:11:14 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/packaging/libldns.pc \
|
|
|
|
${STAGEDIR}${PREFIX}/libdata/pkgconfig
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/packaging/ldns-config.1 \
|
|
|
|
${STAGEDIR}${PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/man/man3/ldns_*.3 \
|
|
|
|
${STAGEDIR}${PREFIX}/man/man3
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.2
|
|
|
|
.if ${PORT_OPTIONS:MDRILL}
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/drill
|
|
|
|
.endif
|
2012-10-24 05:42:06 +00:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2017-03-03 04:11:14 +00:00
|
|
|
for p in ldns-chaos ldns-compare-zones ldns-dane ldns-dpa ldns-gen-zone ldns-key2ds \
|
|
|
|
ldns-keyfetcher ldns-keygen ldns-mx ldns-notify ldns-nsec3-hash \
|
|
|
|
ldns-read-zone ldns-resolver ldns-revoke ldns-rrsig ldns-signzone \
|
|
|
|
ldns-test-edns ldns-testns ldns-update ldns-verify-zone ldns-version \
|
|
|
|
ldns-walk ldns-zcat ldns-zsplit ldnsd; do \
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/$$p; done
|
2011-01-26 11:28:03 +00:00
|
|
|
.endif
|
2017-03-03 04:11:14 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOXYGEN}
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/html
|
|
|
|
${INSTALL_DATA} ${HTMLDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}/html
|
2011-01-26 11:28:03 +00:00
|
|
|
.endif
|
|
|
|
|
2014-02-06 18:23:57 +00:00
|
|
|
.endif # BUILD_PYLDNS || BUILD_P5PERL
|
2013-07-11 12:40:54 +00:00
|
|
|
|
2016-09-21 14:14:18 +00:00
|
|
|
.include <bsd.port.post.mk>
|