summaryrefslogtreecommitdiff
path: root/net/bind95
diff options
context:
space:
mode:
authorspz <spz@pkgsrc.org>2008-11-29 21:47:32 +0000
committerspz <spz@pkgsrc.org>2008-11-29 21:47:32 +0000
commit0e0fafc05f0dab46761bf1b8f52c95ba77428a04 (patch)
treee961365edc9621a1cd450fb1b0f5725a6163b9a8 /net/bind95
parenta626a2db831712bc425471d24ae45e60d63c65e3 (diff)
downloadpkgsrc-0e0fafc05f0dab46761bf1b8f52c95ba77428a04.tar.gz
add options framework, and optionalize (default off) the building of the
xml statistics server (+bump pkgrev)
Diffstat (limited to 'net/bind95')
-rw-r--r--net/bind95/Makefile5
-rw-r--r--net/bind95/options.mk16
2 files changed, 19 insertions, 2 deletions
diff --git a/net/bind95/Makefile b/net/bind95/Makefile
index cf303e57496..b2b431255e5 100644
--- a/net/bind95/Makefile
+++ b/net/bind95/Makefile
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.3 2008/08/03 18:42:31 adrianp Exp $
+# $NetBSD: Makefile,v 1.4 2008/11/29 21:47:32 spz Exp $
DISTNAME= bind-${BIND_VERSION}
PKGNAME= ${DISTNAME:S/-P2/pl2/}
CATEGORIES= net
MASTER_SITES= ftp://ftp.isc.org/isc/bind9/${BIND_VERSION}/
+PKGREVISION= 1
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.isc.org/sw/bind/
@@ -75,7 +76,7 @@ post-install:
.include "../../mk/pthread.buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
-.include "../../textproc/libxml2/buildlink3.mk"
+.include "options.mk"
.include "../../mk/bsd.pkg.mk"
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none") || \
diff --git a/net/bind95/options.mk b/net/bind95/options.mk
new file mode 100644
index 00000000000..53acba7ac1d
--- /dev/null
+++ b/net/bind95/options.mk
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2008/11/29 21:47:32 spz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.bind95
+PKG_SUPPORTED_OPTIONS= bind-xml-statistics-server
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.options.mk"
+
+# use the statistics server in bind95 and later? It'll need libxml2
+.if !empty(PKG_OPTIONS:Mbind-xml-statistics-server)
+.include "../../textproc/libxml2/buildlink3.mk"
+CONFIGURE_ARGS+=--with-libxml2=yes
+.else
+CONFIGURE_ARGS+=--with-libxml2=no
+.endif
+