summaryrefslogtreecommitdiff
path: root/net/bind98
diff options
context:
space:
mode:
authoris <is@pkgsrc.org>2012-12-02 11:51:44 +0000
committeris <is@pkgsrc.org>2012-12-02 11:51:44 +0000
commit640214ecfad69c77955251a6da0436c0d02a6dc9 (patch)
tree4564c2fcf11653e0b74953b7427d52a78efaa51f /net/bind98
parent490a67f0c9db01f05ede023cc758b477b0f6b222 (diff)
downloadpkgsrc-640214ecfad69c77955251a6da0436c0d02a6dc9.tar.gz
PKG_OPTIONize kerberos as 'kerberos'. From: Matthias Kretschmer via PR#45823
with a minor edit. N.B.: a minority of packages uses 'gssapi' as the option name. We should decide on one option name and fix all packages to use the same, with notification of the users and a transition mechanism. (Do we support, or intend to support, any GSSAPI mechanisms other than Kerberos? In parallel?)
Diffstat (limited to 'net/bind98')
-rw-r--r--net/bind98/options.mk16
1 files changed, 14 insertions, 2 deletions
diff --git a/net/bind98/options.mk b/net/bind98/options.mk
index d62c3cbe084..b3f6eb92ac8 100644
--- a/net/bind98/options.mk
+++ b/net/bind98/options.mk
@@ -1,9 +1,9 @@
-# $NetBSD: options.mk,v 1.2 2012/11/10 23:44:30 pettai Exp $
+# $NetBSD: options.mk,v 1.3 2012/12/02 11:51:44 is Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.bind98
PKG_SUPPORTED_OPTIONS= bind-dig-sigchase bind-xml-statistics-server
PKG_SUPPORTED_OPTIONS+= inet6 threads mysql pgsql ldap dlz-filesystem
-PKG_SUPPORTED_OPTIONS+= rrl
+PKG_SUPPORTED_OPTIONS+= rrl kerberos
.include "../../mk/pthread.buildlink3.mk"
@@ -21,6 +21,8 @@ PKG_SUGGESTED_OPTIONS+= threads
PKG_SUGGESTED_OPTIONS+= inet6
.endif
+PKG_SUGGESTED_OPTIONS+= kerberos
+
.include "../../mk/bsd.options.mk"
###
@@ -88,6 +90,16 @@ CONFIGURE_ARGS+= --disable-threads
###
### dig(1) option +sigchase for DNSSEC signature chasing
###
+
+###
+### kerberos/gssapi support
+###
+.if !empty(PKG_OPTIONS:Mkerberos)
+CONFIGURE_ARGS+= --with-gssapi=${BUILDLINK_PREFIX.${KRB5_TYPE}}
+.include "../../mk/krb5.buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-gssapi
+.endif
.if !empty(PKG_OPTIONS:Mbind-dig-sigchase)
# If anything else needs to add entries to STD_CDEFINES, this will need
# to be changed so that the two can cooperate.