aboutsummaryrefslogtreecommitdiff
path: root/dns/adns/Makefile
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2014-09-23 20:20:12 +0000
committerKurt Jaeger <pi@FreeBSD.org>2014-09-23 20:20:12 +0000
commit026aa2765630996fb3c63d4040db377a7c36bdcc (patch)
tree231cf8568a7ec614ffe0afdcccc3724770b0a40e /dns/adns/Makefile
parent1a469623b45cf99184584cf3eab479a22b1ea687 (diff)
downloadports-026aa2765630996fb3c63d4040db377a7c36bdcc.tar.gz
ports-026aa2765630996fb3c63d4040db377a7c36bdcc.zip
Notes
Diffstat (limited to 'dns/adns/Makefile')
-rw-r--r--dns/adns/Makefile38
1 files changed, 30 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>