aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2008-07-29 05:56:59 +0000
committerXin LI <delphij@FreeBSD.org>2008-07-29 05:56:59 +0000
commit1cfc8049939ae1764c923fdadb5eff086c28050d (patch)
treee00df616611b5c5c35a57fe76ad356ebc7c2f415
parentfd3591501bf4afffbb3262e49e10e65e6867d189 (diff)
Notes
-rw-r--r--sysutils/lookupd_ldap/Makefile4
-rw-r--r--sysutils/lookupd_ldap/files/extrapatch-config.h20
2 files changed, 24 insertions, 0 deletions
diff --git a/sysutils/lookupd_ldap/Makefile b/sysutils/lookupd_ldap/Makefile
index 3ec0883b1194..9ac0d561d755 100644
--- a/sysutils/lookupd_ldap/Makefile
+++ b/sysutils/lookupd_ldap/Makefile
@@ -20,6 +20,10 @@ USE_OPENLDAP= yes
PLIST_FILES= lib/lkpd_ldap.so lib/lkpd_ldap.so.1
+.if !defined(WITH_OPENLDAP_VER) || ${WITH_OPENLDAP_VER} != "23"
+EXTRA_PATCHES= ${FILESDIR}/extrapatch-config.h
+.endif
+
.include <bsd.port.pre.mk>
post-install:
diff --git a/sysutils/lookupd_ldap/files/extrapatch-config.h b/sysutils/lookupd_ldap/files/extrapatch-config.h
new file mode 100644
index 000000000000..e3195cf191fe
--- /dev/null
+++ b/sysutils/lookupd_ldap/files/extrapatch-config.h
@@ -0,0 +1,20 @@
+--- config.h.orig 2004-06-24 01:17:16.000000000 -0700
++++ config.h 2008-07-24 13:58:30.013821799 -0700
+@@ -98,7 +98,7 @@
+ #define HAVE_LDAP_CREATE_CONTROL 1
+
+ /* Define to 1 if you have the `ldap_create_page_control' function. */
+-/* #undef HAVE_LDAP_CREATE_PAGE_CONTROL */
++#define HAVE_LDAP_CREATE_PAGE_CONTROL
+
+ /* Define to 1 if you have the `ldap_explode_rdn' function. */
+ #define HAVE_LDAP_EXPLODE_RDN 1
+@@ -125,7 +125,7 @@
+ #define HAVE_LDAP_MEMFREE 1
+
+ /* Define to 1 if you have the `ldap_parse_page_control' function. */
+-/* #undef HAVE_LDAP_PARSE_PAGE_CONTROL */
++#define HAVE_LDAP_PARSE_PAGE_CONTROL
+
+ /* Define to 1 if you have the `ldap_parse_result' function. */
+ #define HAVE_LDAP_PARSE_RESULT 1