summaryrefslogtreecommitdiff
path: root/databases/nss_ldap
diff options
context:
space:
mode:
authormanu <manu@pkgsrc.org>2012-01-09 05:16:29 +0000
committermanu <manu@pkgsrc.org>2012-01-09 05:16:29 +0000
commitba44afcf1e2efd48331a03cb562ec1360665c6b3 (patch)
treef3bb4413ce08120512d685892e70513356c9996f /databases/nss_ldap
parent2a95e00d0eafd2a4e49c8d9e813bb85e5d5e6cb6 (diff)
downloadpkgsrc-ba44afcf1e2efd48331a03cb562ec1360665c6b3.tar.gz
Make Kerberos support optionnal and enabled by default in nss_ldap. It
is useful to disable it if OpenLDAP was linked with pkgsrc's OpenSSL, since nss_ldap will pull the base system OpenSSL dependency through Kerberos libraries, leading to crashes because of multiple incomaptible libcrypto linked.
Diffstat (limited to 'databases/nss_ldap')
-rw-r--r--databases/nss_ldap/Makefile6
-rw-r--r--databases/nss_ldap/options.mk14
2 files changed, 18 insertions, 2 deletions
diff --git a/databases/nss_ldap/Makefile b/databases/nss_ldap/Makefile
index 5e517d2e088..df42f586c3a 100644
--- a/databases/nss_ldap/Makefile
+++ b/databases/nss_ldap/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.23 2010/11/03 11:39:07 adam Exp $
+# $NetBSD: Makefile,v 1.24 2012/01/09 05:16:29 manu Exp $
DISTNAME= nss_ldap-265
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= databases
MASTER_SITES= http://www.padl.com/download/
@@ -35,5 +35,7 @@ pre-build:
${CP} ${FILESDIR}/netbsd.c ${FILESDIR}/netbsd.h ${WRKSRC}
${LN} -fs /usr/include/nsswitch.h ${BUILDLINK_DIR}/include/nss.h
+.include "options.mk"
+
.include "../../databases/openldap-client/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/databases/nss_ldap/options.mk b/databases/nss_ldap/options.mk
new file mode 100644
index 00000000000..9731dbb1612
--- /dev/null
+++ b/databases/nss_ldap/options.mk
@@ -0,0 +1,14 @@
+# $NetBSD: options.mk,v 1.1 2012/01/09 05:16:29 manu Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.nss_ldap
+PKG_SUPPORTED_OPTIONS= krb5
+PKG_SUGGESTED_OPTIONS= krb5
+
+.include "../../mk/bsd.options.mk"
+
+.if empty(PKG_OPTIONS:Mkrb5)
+SUBST_CLASSES+= krb5
+SUBST_STAGE.krb5= post-configure
+SUBST_FILES.krb5= Makefile
+SUBST_SED.krb5= -e "s/-lkrb5//; s/-lcom_err//; s/-lgssapi//;"
+.endif