Fri Nov 21 03:24:29 2008 UTC ()
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...


(ahoka)
diff -r1.30 -r1.31 pkgsrc/security/pam-ldap/Makefile

cvs diff -r1.30 -r1.31 pkgsrc/security/pam-ldap/Makefile (expand / switch to unified diff)

--- pkgsrc/security/pam-ldap/Makefile 2008/06/12 02:14:44 1.30
+++ pkgsrc/security/pam-ldap/Makefile 2008/11/21 03:24:29 1.31
@@ -1,39 +1,48 @@ @@ -1,39 +1,48 @@
1# $NetBSD: Makefile,v 1.30 2008/06/12 02:14:44 joerg Exp $ 1# $NetBSD: Makefile,v 1.31 2008/11/21 03:24:29 ahoka Exp $
2 2
3DISTNAME= pam_ldap-184 3DISTNAME= pam_ldap-184
4PKGNAME= ${DISTNAME:S/_/-/} 4PKGNAME= ${DISTNAME:S/_/-/}
5PKGREVISION= 1 5PKGREVISION= 2
6CATEGORIES= security 6CATEGORIES= security
7MASTER_SITES= ftp://ftp.padl.com/pub/ \ 7MASTER_SITES= ftp://ftp.padl.com/pub/ \
8 http://www.padl.com/download/ 8 http://www.padl.com/download/
9 9
10MAINTAINER= rh@NetBSD.org 10MAINTAINER= rh@NetBSD.org
11HOMEPAGE= http://www.padl.com/pam_ldap.html 11HOMEPAGE= http://www.padl.com/pam_ldap.html
12COMMENT= Pluggable authentication module for LDAP directories 12COMMENT= Pluggable authentication module for LDAP directories
13 13
14PKG_DESTDIR_SUPPORT= user-destdir 14PKG_DESTDIR_SUPPORT= user-destdir
15 15
16USE_LIBTOOL= yes 16USE_LIBTOOL= yes
17USE_TOOLS+= gmake 17USE_TOOLS+= gmake
18GNU_CONFIGURE= yes 18GNU_CONFIGURE= yes
19CONFIGURE_ARGS+= --with-ldap-lib=openldap 19CONFIGURE_ARGS+= --with-ldap-lib=openldap
20CONFIGURE_ARGS+= --with-ldap-dir=${BUILDLINK_PREFIX.openldap-client} 20CONFIGURE_ARGS+= --with-ldap-dir=${BUILDLINK_PREFIX.openldap-client}
21CONFIGURE_ARGS+= --with-ldap-conf-file=${PKG_SYSCONFDIR}/pam_ldap.conf 21CONFIGURE_ARGS+= --with-ldap-conf-file=${PKG_SYSCONFDIR}/pam_ldap.conf
22CONFIGURE_ARGS+= --with-ldap-secret-file=${PKG_SYSCONFDIR}/pam_ldap.secret 22CONFIGURE_ARGS+= --with-ldap-secret-file=${PKG_SYSCONFDIR}/pam_ldap.secret
23CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} 23CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
24 24
25MAKE_ENV+= SHLIBTOOL=${SHLIBTOOL:Q} 25MAKE_ENV+= SHLIBTOOL=${SHLIBTOOL:Q}
26 26
 27# Fix (workaround?) a bug with openpam/NetBSD
 28# The bug is described in PR security/39313.
 29#
 30.include "../../mk/bsd.prefs.mk"
 31#
 32.if ${OPSYS} == "NetBSD"
 33CFLAGS+= -DNO_STATIC_MODULES
 34.endif
 35
27INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR} 36INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} sysconfdir=${EGDIR}
28INSTALL_TARGET= install install-data 37INSTALL_TARGET= install install-data
29 38
30DOCDIR= ${PREFIX}/share/doc/${PKGBASE} 39DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
31EGDIR= ${PREFIX}/share/examples/${PKGBASE} 40EGDIR= ${PREFIX}/share/examples/${PKGBASE}
32 41
33INSTALLATION_DIRS= ${DOCDIR} 42INSTALLATION_DIRS= ${DOCDIR}
34 43
35CONF_FILES= ${EGDIR}/pam_ldap.conf ${PKG_SYSCONFDIR}/pam_ldap.conf 44CONF_FILES= ${EGDIR}/pam_ldap.conf ${PKG_SYSCONFDIR}/pam_ldap.conf
36 45
37.include "../../databases/openldap-client/buildlink3.mk" 46.include "../../databases/openldap-client/buildlink3.mk"
38.include "../../mk/pam.buildlink3.mk" 47.include "../../mk/pam.buildlink3.mk"
39 48