2012-10-24 07:42:06 +02:00
|
|
|
# Created by: Konstantin Saurbier <saurbier@math.uni-bielefeld.de>
|
2005-12-30 05:24:11 +01:00
|
|
|
|
|
|
|
PORTNAME= ldns
|
2019-09-02 16:31:50 +02:00
|
|
|
PORTVERSION= 1.7.1
|
2021-01-08 08:47:02 +01:00
|
|
|
PORTREVISION= 2
|
2005-12-30 05:24:11 +01:00
|
|
|
CATEGORIES= dns
|
2018-02-27 14:03:48 +01:00
|
|
|
MASTER_SITES= https://www.nlnetlabs.nl/downloads/ldns/ \
|
2015-01-06 11:01:41 +01:00
|
|
|
LOCAL/ehaupt
|
2005-12-30 05:24:11 +01:00
|
|
|
|
2010-12-20 22:41:30 +01:00
|
|
|
MAINTAINER= jaap@NLnetLabs.nl
|
2014-02-06 19:23:57 +01:00
|
|
|
COMMENT= Library for programs conforming to DNS RFCs and drafts
|
2005-12-30 05:24:11 +01:00
|
|
|
|
2014-02-06 19:23:57 +01:00
|
|
|
LICENSE= BSD3CLAUSE
|
2014-08-22 11:06:51 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2010-09-03 10:51:25 +02:00
|
|
|
|
2019-09-02 16:31:50 +02:00
|
|
|
USES= cpe gmake libtool perl5 ssl
|
2017-07-23 15:13:11 +02:00
|
|
|
USE_PERL5= build
|
2006-08-28 13:53:08 +02:00
|
|
|
USE_LDCONFIG= yes
|
2005-12-30 05:24:11 +01:00
|
|
|
|
2019-09-02 16:31:50 +02:00
|
|
|
CPE_VENDOR= nlnetlabs
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --disable-dane-ta-usage \
|
|
|
|
--with-ssl=${OPENSSLBASE}
|
2020-02-29 13:00:57 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2016-09-10 03:37:39 +02:00
|
|
|
|
2014-02-06 19:23:57 +01:00
|
|
|
.if ! (defined(BUILD_PYLDNS) || defined(BUILD_P5PERL))
|
2019-09-02 16:31:50 +02:00
|
|
|
OPTIONS_DEFINE= DOXYGEN DRILL EXAMPLES
|
2016-05-23 22:35:01 +02:00
|
|
|
OPTIONS_DEFAULT= DRILL
|
2012-10-24 07:42:06 +02:00
|
|
|
|
2012-11-08 18:57:59 +01:00
|
|
|
DRILL_DESC= With drill program
|
2016-09-10 03:37:39 +02:00
|
|
|
|
2013-07-11 14:40:54 +02:00
|
|
|
.endif
|
|
|
|
|
2017-03-03 05:11:14 +01:00
|
|
|
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
|
2019-09-02 16:31:50 +02:00
|
|
|
HTMLDOCS= doc/html/*
|
2017-03-03 05:11:14 +01:00
|
|
|
|
2019-09-02 16:31:50 +02:00
|
|
|
OPTIONS_DEFINE+= DANETAUSAGE GOST RRTYPEAMTRELAY RRTYPEAVC RRTYPENINFO \
|
|
|
|
RRTYPERKEY RRTYPETA
|
2013-07-11 14:40:54 +02:00
|
|
|
|
2020-03-28 14:33:46 +01:00
|
|
|
DANETAUSAGE_DESC= Enable ta usage, requires openssl >= 1.1.0
|
2017-03-03 05:11:14 +01:00
|
|
|
GOST_DESC= GOST signatures enabled, requires openssl >= 1.0.0
|
2014-02-06 19:23:57 +01: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 05:11:14 +01:00
|
|
|
RRTYPEAVC_DESC= Enable draft RR type avc.
|
2019-09-02 16:31:50 +02:00
|
|
|
RRTYPEAMTRELAY_DESC= Enable draft RR type amtrelay.
|
2014-02-06 19:23:57 +01:00
|
|
|
|
|
|
|
OPTIONS_SUB= yes
|
2005-12-30 05:24:11 +01:00
|
|
|
|
2019-09-02 16:31:50 +02:00
|
|
|
DANETAUSAGE_CONFIGURE_ENABLE= dane-ta-usage
|
|
|
|
DANETAUSAGE_IMPLIES= RRTYPETA
|
|
|
|
GOST_CONFIGURE_ENABLE= gost
|
|
|
|
RRTYPENINFO_CONFIGURE_ENABLE= rrtype-ninfo
|
|
|
|
RRTYPERKEY_CONFIGURE_ENABLE= rrtype-rkey
|
|
|
|
RRTYPETA_CONFIGURE_ENABLE= rrtype-ta
|
|
|
|
RRTYPEAVC_CONFIGURE_ENABLE= rrtype-avc
|
|
|
|
RRTYPEAMTRELAY_CONFIGURE_ENABLE= rrtype-amtrelay
|
|
|
|
EXAMPLES_CONFIGURE_WITH= examples
|
|
|
|
DRILL_CONFIGURE_WITH= drill
|
|
|
|
DRILL_INSTALL_TARGET= install-drill
|
|
|
|
EXAMPLES_INSTALL_TARGET= install-examples
|
2016-09-10 03:37:39 +02:00
|
|
|
|
2013-07-11 14:40:54 +02:00
|
|
|
.if defined(BUILD_PYLDNS)
|
2021-11-01 16:24:13 +01:00
|
|
|
USES+= python:3.6-3.9
|
2017-11-30 16:50:30 +01:00
|
|
|
USE_PYTHON= flavors
|
2012-11-22 13:28:09 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2013-07-11 14:40:54 +02:00
|
|
|
ALL_TARGET= pyldns
|
|
|
|
INSTALL_TARGET= install-pyldns
|
2011-10-07 00:43:49 +02:00
|
|
|
|
2019-09-02 16:31:50 +02:00
|
|
|
CONFIGURE_ARGS+= --with-pyldns
|
|
|
|
LIB_DEPENDS+= libldns.so:dns/ldns
|
2020-06-17 20:17:45 +02:00
|
|
|
BUILD_DEPENDS+= swig:devel/swig
|
2019-09-02 16:31:50 +02:00
|
|
|
CFLAGS+= -I${OPENSSLINC}
|
2013-07-11 14:40:54 +02:00
|
|
|
|
2014-02-06 19:23:57 +01:00
|
|
|
post-patch:
|
2016-09-10 03:37:39 +02:00
|
|
|
@${REINPLACE_CMD} \
|
|
|
|
-e 's=-I./include/ldns=-I${LOCALBASE}/include/ldns=' \
|
|
|
|
${WRKSRC}/Makefile.in
|
2014-02-06 19:23:57 +01:00
|
|
|
.elif defined(BUILD_P5PERL)
|
|
|
|
USES+= perl5
|
2014-11-26 14:08:24 +01:00
|
|
|
USE_PERL5= build run
|
2014-02-06 19:23:57 +01:00
|
|
|
PKGNAMEPREFIX= p5-DNS-
|
|
|
|
|
|
|
|
ALL_TARGET= p5-dns-ldns
|
|
|
|
INSTALL_TARGET= install-p5-dns-ldns
|
|
|
|
|
2019-09-02 16:31:50 +02:00
|
|
|
CONFIGURE_ARGS+= --with-p5-dns-ldns
|
|
|
|
RUN_DEPENDS= p5-Devel-CheckLib>=0:devel/p5-Devel-CheckLib \
|
|
|
|
p5-Test-Exception>=0:devel/p5-Test-Exception
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
|
|
LIB_DEPENDS+= libldns.so:dns/ldns
|
2014-02-06 19:23:57 +01:00
|
|
|
|
2013-07-11 14:40:54 +02:00
|
|
|
post-patch:
|
|
|
|
@${SED} -i '' -e 's=-I./include/ldns=-I${LOCALBASE}/include/ldns=' ${WRKSRC}/Makefile.in
|
2017-03-03 05:11:14 +01:00
|
|
|
|
|
|
|
post-install:
|
2017-03-22 00:47:24 +01:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/DNS/LDNS/LDNS.so
|
2013-07-11 14:40:54 +02:00
|
|
|
.else
|
2005-12-30 05:24:11 +01:00
|
|
|
ALL_TARGET= all
|
2012-10-24 07:42:06 +02:00
|
|
|
INSTALL_TARGET= install-lib install-h install-config
|
2005-12-30 05:24:11 +01:00
|
|
|
|
2014-02-06 19:23:57 +01:00
|
|
|
.endif # BUILD_PYLDNS || BUILD_P5PERL
|
2013-07-11 14:40:54 +02:00
|
|
|
|
2016-09-21 16:14:18 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2017-02-17 17:49:13 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MGOST}
|
2013-07-11 14:40:54 +02:00
|
|
|
NO_GOST= --disable-gost
|
2014-02-06 19:23:57 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ! (defined(BUILD_PYLDNS) || defined(BUILD_P5PERL))
|
2013-07-11 14:40:54 +02:00
|
|
|
|
2011-01-26 12:28:03 +01:00
|
|
|
post-build:
|
2017-03-03 05:11:14 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOXYGEN}
|
2019-09-02 16:31:50 +02:00
|
|
|
@(cd ${WRKSRC}; ${MAKE_CMD} doxygen)
|
2011-01-26 12:28:03 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2017-03-03 05:11:14 +01: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
|
2019-09-02 16:31:50 +02:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.3
|
2017-03-03 05:11:14 +01:00
|
|
|
.if ${PORT_OPTIONS:MDRILL}
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/drill
|
|
|
|
.endif
|
2012-10-24 07:42:06 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2017-03-03 05:11:14 +01: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 12:28:03 +01:00
|
|
|
.endif
|
2017-03-03 05:11:14 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOXYGEN}
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/html
|
|
|
|
${INSTALL_DATA} ${HTMLDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}/html
|
2011-01-26 12:28:03 +01:00
|
|
|
.endif
|
|
|
|
|
2014-02-06 19:23:57 +01:00
|
|
|
.endif # BUILD_PYLDNS || BUILD_P5PERL
|
2013-07-11 14:40:54 +02:00
|
|
|
|
2016-09-21 16:14:18 +02:00
|
|
|
.include <bsd.port.post.mk>
|