summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorahoka <ahoka@pkgsrc.org>2008-11-21 03:24:29 +0000
committerahoka <ahoka@pkgsrc.org>2008-11-21 03:24:29 +0000
commitedc17f3947a1549f5b5c76cc5be82f21561ea6b0 (patch)
tree4d71a6ec36aa98ead8157198de74263e70b22d1c /security
parent67b598b4fc2b48ecd4669882a91cc81283960638 (diff)
downloadpkgsrc-edc17f3947a1549f5b5c76cc5be82f21561ea6b0.tar.gz
Try to deal with a bug described in security/39313, when the build
against recent openpam headers produce non functioning pam_ldap.so on NetBSD 4.99.47(?) or more recent systems. There's something really fishy in the headers...
Diffstat (limited to 'security')
-rw-r--r--security/pam-ldap/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/security/pam-ldap/Makefile b/security/pam-ldap/Makefile
index 8d909fa081e..0b6f5042011 100644
--- a/security/pam-ldap/Makefile
+++ b/security/pam-ldap/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.30 2008/06/12 02:14:44 joerg Exp $
+# $NetBSD: Makefile,v 1.31 2008/11/21 03:24:29 ahoka Exp $
DISTNAME= pam_ldap-184
PKGNAME= ${DISTNAME:S/_/-/}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= security
MASTER_SITES= ftp://ftp.padl.com/pub/ \
http://www.padl.com/download/
@@ -24,6 +24,15 @@ CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
MAKE_ENV+= SHLIBTOOL=${SHLIBTOOL:Q}
+# Fix (workaround?) a bug with openpam/NetBSD
+# The bug is described in PR security/39313.
+#
+.include "../../mk/bsd.prefs.mk"
+#
+.if ${OPSYS} == "NetBSD"
+CFLAGS+= -DNO_STATIC_MODULES
+.endif
+
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR}
INSTALL_TARGET= install install-data