aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpat <pat@FreeBSD.org>2002-04-02 01:30:37 +0800
committerpat <pat@FreeBSD.org>2002-04-02 01:30:37 +0800
commit5eb7372dd122aa4a570e92eaa83916969cf93942 (patch)
tree43259842c94fd61e875c3a18944182ddb48069c7
parent8032f5ee48597993699dcc554d6620a1bfdc0156 (diff)
downloadfreebsd-ports-gnome-5eb7372dd122aa4a570e92eaa83916969cf93942.tar.gz
freebsd-ports-gnome-5eb7372dd122aa4a570e92eaa83916969cf93942.tar.zst
freebsd-ports-gnome-5eb7372dd122aa4a570e92eaa83916969cf93942.zip
Unbreak pam_ldap on -CURRENT after the latest OpenPAM patch
PR: 36613 Submitted by: maintainer
-rw-r--r--security/pam_ldap/Makefile4
-rw-r--r--security/pam_ldap/files/patch-configure11
2 files changed, 11 insertions, 4 deletions
diff --git a/security/pam_ldap/Makefile b/security/pam_ldap/Makefile
index 4be9a62109e1..3aa8faaefc41 100644
--- a/security/pam_ldap/Makefile
+++ b/security/pam_ldap/Makefile
@@ -16,10 +16,6 @@ MAINTAINER= marcus@marcuscom.com
.include <bsd.port.pre.mk>
-.if ${OSVERSION} > 500030
-BROKEN= "Does not work correctly with OpenPAM"
-.endif
-
.if defined(WITH_LDAP_V3)
LIB_DEPENDS= ldap.2:${PORTSDIR}/net/openldap2 \
lber.2:${PORTSDIR}/net/openldap2
diff --git a/security/pam_ldap/files/patch-configure b/security/pam_ldap/files/patch-configure
new file mode 100644
index 000000000000..da699f8192e6
--- /dev/null
+++ b/security/pam_ldap/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig Sun Mar 31 16:31:53 2002
++++ configure Sun Mar 31 16:32:13 2002
+@@ -1458,7 +1458,7 @@
+ CPPFLAGS="$CPPFLAGS -DLDAP_REFERRALS"
+
+ case "$target_os" in
+-freebsd*) CPPFLAGS="$CPPFLAGS -DPIC -D_REENTRANT" ;;
++freebsd*) CPPFLAGS="$CPPFLAGS -DPIC -D_REENTRANT $PTHREAD_CFLAGS" ;;
+ aix*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
+ *) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
+ esac