diff options
-rw-r--r-- | dns/adns/Makefile | 38 | ||||
-rw-r--r-- | dns/adns/distinfo | 2 |
2 files changed, 32 insertions, 8 deletions
diff --git a/dns/adns/Makefile b/dns/adns/Makefile index ac3efa20f259..d157370a5659 100644 --- a/dns/adns/Makefile +++ b/dns/adns/Makefile @@ -3,27 +3,49 @@ PORTNAME= adns PORTVERSION= 1.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= dns MASTER_SITES= http://www.chiark.greenend.org.uk/~ian/adns/ftp/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= pi@FreeBSD.org COMMENT= Easy to use asynchronous-capable DNS client library and utilities +USES= gmake GNU_CONFIGURE= yes USE_LDCONFIG= yes -USES= gmake LIBVERSION= 1 PLIST_SUB+= LIBVERSION="${LIBVERSION}" -DOCS= COPYING GPL-vs-LGPL INSTALL LICENCE.WAIVERS README README.html TODO changelog +BUILD_DEPENDS+= gm4:${PORTSDIR}/devel/m4 +CFLAGS+= -Ds6_addr16=__u6_addr.__u6_addr16 +CFLAGS+= -Ds6_addr32=__u6_addr.__u6_addr32 +MAKE_FLAGS+= M4=gm4 +PATCH_SITES+= https://people.debian.org/~lucab/deb/adns/:ipv6patch +PATCHFILES+= adns-ipv6.patch:ipv6patch +PATCH_DIST_STRIP+= -p1 + +DOCS= COPYING GPL-vs-LGPL INSTALL LICENCE.WAIVERS README \ + README.html TODO changelog -OPTIONS_DEFINE= DOCS +TOSTRIP= bin/adnsheloex \ + bin/adnsresfilter \ + bin/adnslogres \ + bin/adnshost \ + lib/libadns.so.1 + +OPTIONS_DEFINE= DOCS +OPTIONS_DEFAULT= DOCS + +.include <bsd.port.options.mk> post-install: - @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/adnslogres ${STAGEDIR}${PREFIX}/bin/adnshost - @${MKDIR} ${STAGEDIR}${DOCSDIR} - @(cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}) + ${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}) + +post-stage: +.for f in ${TOSTRIP} + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${f} +.endfor .include <bsd.port.mk> diff --git a/dns/adns/distinfo b/dns/adns/distinfo index 49ee3f746462..820b5c5a7d73 100644 --- a/dns/adns/distinfo +++ b/dns/adns/distinfo @@ -1,2 +1,4 @@ SHA256 (adns-1.4.tar.gz) = 717b92a39117a5d8b04ea7c652c630659c6eecb35211129a8cee95e6524ca9fe SIZE (adns-1.4.tar.gz) = 252668 +SHA256 (adns-ipv6.patch) = 84adcc350ee9a3144e0b48fb12ad8f7e8f028a5316b7948e698acaf57afae2e4 +SIZE (adns-ipv6.patch) = 88709 |