summaryrefslogtreecommitdiff
path: root/net/nsd
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-09-07 22:12:10 +0000
committerjlam <jlam@pkgsrc.org>2007-09-07 22:12:10 +0000
commit07dd3147c68f13b523ce8edfd486a3f4f0d47fe1 (patch)
treee65f4ff0343b21db10e01b4ee2a8fa56a72846a8 /net/nsd
parentcdb276bfa1d6c9954bf0587b81f6152203d30047 (diff)
downloadpkgsrc-07dd3147c68f13b523ce8edfd486a3f4f0d47fe1.tar.gz
Convert packages that test and use USE_INET6 to use the options framework
and to support the "inet6" option instead. Remaining usage of USE_INET6 was solely for the benefit of the scripts that generate the README.html files. Replace: BUILD_DEFS+= USE_INET6 with BUILD_DEFS+= IPV6_READY and teach the README-generation tools to look for that instead. This nukes USE_INET6 from pkgsrc proper. We leave a tiny bit of code to continue to support USE_INET6 for pkgsrc-wip until it has been nuked from there as well.
Diffstat (limited to 'net/nsd')
-rw-r--r--net/nsd/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/net/nsd/Makefile b/net/nsd/Makefile
index a951c606d9a..e91efeaf5ec 100644
--- a/net/nsd/Makefile
+++ b/net/nsd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2007/08/11 23:48:40 joerg Exp $
+# $NetBSD: Makefile,v 1.40 2007/09/07 22:12:18 jlam Exp $
DISTNAME= nsd-3.0.5
CATEGORIES= net
@@ -10,10 +10,12 @@ COMMENT= Authoritative-only DNS server
PKG_DESTDIR_SUPPORT= user-destdir
-BUILD_DEFS+= USE_INET6 VARBASE
BUILDLINK_API_DEPENDS.openssl+= openssl>=0.9.7
-.include "../../mk/bsd.prefs.mk"
+PKG_OPTIONS_VAR= PKG_OPTIONS.nsd
+PKG_SUPPORTED_OPTIONS= inet6
+
+.include "../../mk/bsd.options.mk"
GNU_CONFIGURE= yes
@@ -22,7 +24,9 @@ PKG_SYSCONFSUBDIR= nsd
CONFIGURE_ARGS+=--with-configdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+=--enable-bind8-stats
CONFIGURE_ARGS+=--with-libwrap=${BUILDLINK_PREFIX.tcp_wrappers}
-.if !defined(USE_INET6)
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+=--enable-ipv6
+.else
CONFIGURE_ARGS+=--disable-ipv6
.endif