From c785b459dd7d53a994117aeb98a2c3cbca786f6d Mon Sep 17 00:00:00 2001 From: skv Date: Tue, 18 Aug 2009 14:33:37 +0000 Subject: Unbreak build with defined WITHOUT_KERBEROS. PR: ports/133344 Submitted by: Alex Bakhtin Approved by: maintainer timeout (> 4 months) --- net/nss_ldap/Makefile | 4 +--- net/nss_ldap/files/patch-ldap-nss.c | 8 ++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'net') diff --git a/net/nss_ldap/Makefile b/net/nss_ldap/Makefile index 21282770f878..17abf6310d29 100644 --- a/net/nss_ldap/Makefile +++ b/net/nss_ldap/Makefile @@ -23,7 +23,6 @@ USE_AUTOTOOLS= automake:19 aclocal:19 autoconf:262 autoheader:262 USE_LDCONFIG= yes USE_OPENLDAP= yes - PLIST_FILES= etc/nss_ldap.conf.sample \ lib/nss_ldap.so.1 @@ -33,8 +32,7 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ CONFIGURE_ARGS= --with-ldap-conf-file=${PREFIX}/etc/nss_ldap.conf \ --with-ldap-secret-file=${PREFIX}/etc/nss_ldap.secret \ --enable-rfc2307bis \ - --enable-paged-results \ - --enable-configurable-krb5-ccname-env + --enable-paged-results MAN5= nss_ldap.5 diff --git a/net/nss_ldap/files/patch-ldap-nss.c b/net/nss_ldap/files/patch-ldap-nss.c index 2622dc3b1726..297cc4d403f9 100644 --- a/net/nss_ldap/files/patch-ldap-nss.c +++ b/net/nss_ldap/files/patch-ldap-nss.c @@ -9,3 +9,11 @@ #include #elif defined(HAVE_SASL_H) #include +@@ -84,7 +84,7 @@ + #include + #include + #endif +-#ifdef CONFIGURE_KRB5_CCNAME ++#if defined(CONFIGURE_KRB5_CCNAME) && defined(HAVE_KRB5_H) + #include + #endif -- cgit