summaryrefslogtreecommitdiff
path: root/databases/openldap-client/options.mk
diff options
context:
space:
mode:
authorghen <ghen>2006-05-31 18:18:34 +0000
committerghen <ghen>2006-05-31 18:18:34 +0000
commit14d985a1f1220e0c9b6d1ccc9f80dbe61ae10410 (patch)
tree915d4012d4a0773c0931cbaecd04737ab12342f6 /databases/openldap-client/options.mk
parentb9ea88ade4737cef18743420c62d528ce21171bf (diff)
downloadpkgsrc-14d985a1f1220e0c9b6d1ccc9f80dbe61ae10410.tar.gz
Import databases/openldap-client, formerly a part of databases/openldap but now
split off. This package contains only the client tools and libraries, and the manpages. LDAP-based applications should depend on this package, not databases/openldap (anymore).
Diffstat (limited to 'databases/openldap-client/options.mk')
-rw-r--r--databases/openldap-client/options.mk43
1 files changed, 43 insertions, 0 deletions
diff --git a/databases/openldap-client/options.mk b/databases/openldap-client/options.mk
new file mode 100644
index 00000000000..bdb3f6c383c
--- /dev/null
+++ b/databases/openldap-client/options.mk
@@ -0,0 +1,43 @@
+# $NetBSD: options.mk,v 1.1.1.1 2006/05/31 18:18:34 ghen Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.openldap-client
+PKG_SUPPORTED_OPTIONS= kerberos sasl slp inet6
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Kerberos authentication is via SASL.
+###
+.if !empty(PKG_OPTIONS:Mkerberos)
+. if empty(PKG_OPTIONS:Msasl)
+PKG_OPTIONS+= sasl
+. endif
+.endif
+
+###
+### SASL authentication (requires SASL2)
+###
+.if !empty(PKG_OPTIONS:Msasl)
+CONFIGURE_ARGS+= --with-cyrus-sasl
+BUILDLINK_API_DEPENDS.cyrus-sasl+= cyrus-sasl>=2.1.15
+. include "../../security/cyrus-sasl/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-cyrus-sasl
+.endif
+
+###
+### SLP (Service Locator Protocol)
+###
+.if !empty(PKG_OPTIONS:Mslp)
+. include "../../net/openslp/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-slp
+.endif
+
+###
+### IPv6 support
+###
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.else
+CONFIGURE_ARGS+= --disable-ipv6
+.endif