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
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ldns
|
2014-02-06 19:23:57 +01:00
|
|
|
PORTVERSION= 1.6.17
|
2015-08-02 17:03:19 +02:00
|
|
|
PORTREVISION= 5
|
2005-12-30 05:24:11 +01:00
|
|
|
CATEGORIES= dns
|
2011-04-16 22:36:06 +02:00
|
|
|
MASTER_SITES= http://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
|
|
|
|
2014-10-05 12:09:21 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2016-09-10 03:37:39 +02:00
|
|
|
USES= cpe gmake libtool ssl
|
2015-05-14 09:02:20 +02:00
|
|
|
CPE_VENDOR= nlnetlabs
|
2006-08-28 13:53:08 +02:00
|
|
|
USE_LDCONFIG= yes
|
2005-12-30 05:24:11 +01:00
|
|
|
|
2016-09-10 03:37:39 +02:00
|
|
|
CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE}
|
|
|
|
|
2014-02-06 19:23:57 +01:00
|
|
|
.if ! (defined(BUILD_PYLDNS) || defined(BUILD_P5PERL))
|
2013-07-11 14:40:54 +02:00
|
|
|
OPTIONS_DEFINE= DOXYGEN EXAMPLES DRILL
|
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
|
|
|
|
|
|
|
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
|
|
|
|
DOXYGEN_ALL_TARGET= doc
|
|
|
|
DOXYGEN_INSTALL_TARGET= install-manpages
|
2013-07-11 14:40:54 +02:00
|
|
|
.endif
|
|
|
|
|
2014-02-06 19:23:57 +01:00
|
|
|
OPTIONS_DEFINE+= GOST \
|
|
|
|
RRTYPENINFO RRTYPERKEY RRTYPECDS RRTYPEURI RRTYPETA
|
2013-07-11 14:40:54 +02:00
|
|
|
|
2012-11-08 18:57:59 +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.
|
|
|
|
RRTYPECDS_DESC= Enable draft RR type cds.
|
|
|
|
RRTYPEURI_DESC= Enable draft RR type uri.
|
|
|
|
RRTYPETA_DESC= Enable draft RR type ta.
|
|
|
|
|
|
|
|
OPTIONS_SUB= yes
|
2005-12-30 05:24:11 +01:00
|
|
|
|
2016-09-10 03:37:39 +02:00
|
|
|
GOST_CONFIGURE_ENABLE= gost
|
|
|
|
RRTYPENINFO_CONFIGURE_ENABLE= rrtype-ninfo
|
|
|
|
RRTYPERKEY_CONFIGURE_ENABLE= rrtype-rkey
|
|
|
|
RRTYPECDS_CONFIGURE_ENABLE= rrtype-cds
|
|
|
|
RRTYPEURI_CONFIGURE_ENABLE= rrtype-uri
|
|
|
|
RRTYPETA_CONFIGURE_ENABLE= rrtype-ta
|
|
|
|
|
2012-01-11 15:59:06 +01:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2013-07-11 14:40:54 +02:00
|
|
|
.if defined(BUILD_PYLDNS)
|
2014-10-19 17:43:33 +02:00
|
|
|
USES+= python
|
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
|
|
|
|
2013-07-11 14:40:54 +02:00
|
|
|
CONFIGURE_ARGS+=--with-pyldns
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS+= libldns.so:dns/ldns
|
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/swig:devel/swig13
|
2016-09-12 16:52:51 +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
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+=--with-p5-dns-ldns
|
2016-04-01 16:00:51 +02:00
|
|
|
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
|
|
|
|
.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
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MGOST}
|
2016-09-10 03:37:39 +02:00
|
|
|
. if !defined(SSL_DEFAULT) || ${SSL_DEFAULT} == "base"
|
|
|
|
IGNORE_FreeBSD_9= Requires openssl version >= 1.0.0
|
2013-09-05 16:37:34 +02:00
|
|
|
. endif
|
2012-01-28 18:49:34 +01:00
|
|
|
.else
|
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
|
|
|
|
2016-09-10 03:37:39 +02:00
|
|
|
post-patch:
|
|
|
|
# fix list CPPFLAGS in examples/configure for ssl in LOCALBASE case
|
|
|
|
@${REINPLACE_CMD} -e '/tmp_CPPFLAGS/d' ${WRKSRC}/examples/configure
|
|
|
|
|
2011-01-26 12:28:03 +01:00
|
|
|
post-configure:
|
2014-10-05 12:09:21 +02:00
|
|
|
# ac_cv_prog_libtool=../libtool => Always use bundled libtool
|
2012-10-24 07:42:06 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2011-01-26 12:28:03 +01:00
|
|
|
@(cd ${WRKSRC}/examples; ./configure --prefix=${PREFIX} \
|
|
|
|
--infodir=${PREFIX}/${INFO_PATH} --mandir=${MANPREFIX}/man \
|
2014-10-05 12:09:21 +02:00
|
|
|
--build=${CONFIGURE_TARGET} ${NO_GOST} ${NO_SHA2} \
|
|
|
|
ac_cv_prog_libtool=../libtool)
|
2011-01-26 12:28:03 +01:00
|
|
|
.endif
|
2012-10-24 07:42:06 +02:00
|
|
|
.if ${PORT_OPTIONS:MDRILL}
|
2011-01-26 12:28:03 +01:00
|
|
|
@(cd ${WRKSRC}/drill; ./configure --prefix=${PREFIX} \
|
|
|
|
--mandir=${MANPREFIX}/man \
|
2014-10-05 12:09:21 +02:00
|
|
|
--build=${CONFIGURE_TARGET} \
|
|
|
|
ac_cv_prog_libtool=../libtool)
|
2011-01-26 12:28:03 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-build:
|
2012-10-24 07:42:06 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2014-06-25 07:35:31 +02:00
|
|
|
@(cd ${WRKSRC}/examples; ${MAKE_CMD})
|
2011-01-26 12:28:03 +01:00
|
|
|
.endif
|
2012-10-24 07:42:06 +02:00
|
|
|
.if ${PORT_OPTIONS:MDRILL}
|
2014-06-25 07:35:31 +02:00
|
|
|
@(cd ${WRKSRC}/drill; ${MAKE_CMD})
|
2011-01-26 12:28:03 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2012-10-24 07:42:06 +02:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2014-06-25 07:35:31 +02:00
|
|
|
@(cd ${WRKSRC}/examples; ${MAKE_CMD} ${MAKE_ARGS} install)
|
2011-01-26 12:28:03 +01:00
|
|
|
.endif
|
2012-10-24 07:42:06 +02:00
|
|
|
.if ${PORT_OPTIONS:MDRILL}
|
2014-06-25 07:35:31 +02:00
|
|
|
@(cd ${WRKSRC}/drill; ${MAKE_CMD} ${MAKE_ARGS} install)
|
2011-01-26 12:28:03 +01:00
|
|
|
.endif
|
2014-05-15 17:08:01 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/packaging/libldns.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
|
2011-01-26 12:28:03 +01:00
|
|
|
|
2014-02-06 19:23:57 +01:00
|
|
|
.endif # BUILD_PYLDNS || BUILD_P5PERL
|
2013-07-11 14:40:54 +02:00
|
|
|
|
2012-10-31 08:58:36 +01:00
|
|
|
.include <bsd.port.mk>
|