summaryrefslogtreecommitdiff
path: root/databases/openldap-server
diff options
context:
space:
mode:
authoradam <adam>2010-06-02 12:15:29 +0000
committeradam <adam>2010-06-02 12:15:29 +0000
commit33ac371b4ca5640a5c4ff0e469727c5497438da3 (patch)
treec626905d8538697aa4ebc8aab693a1a778b03090 /databases/openldap-server
parentc03002a52b97f723ce7be05079bed170bc0ad046 (diff)
downloadpkgsrc-33ac371b4ca5640a5c4ff0e469727c5497438da3.tar.gz
Fix buildling with db5; revbump for db4 update
Diffstat (limited to 'databases/openldap-server')
-rw-r--r--databases/openldap-server/Makefile3
-rw-r--r--databases/openldap-server/options.mk15
2 files changed, 13 insertions, 5 deletions
diff --git a/databases/openldap-server/Makefile b/databases/openldap-server/Makefile
index 14c1ff42a91..91f08b275af 100644
--- a/databases/openldap-server/Makefile
+++ b/databases/openldap-server/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.24 2010/02/19 20:49:29 ghen Exp $
+# $NetBSD: Makefile,v 1.25 2010/06/02 12:15:29 adam Exp $
PKGNAME= ${DISTNAME:S/-/-server-/}
+PKGREVISION= 1
COMMENT= Lightweight Directory Access Protocol server suite
CONFLICTS+= openldap<2.3.23nb1
diff --git a/databases/openldap-server/options.mk b/databases/openldap-server/options.mk
index 7e686224dcc..08af56df765 100644
--- a/databases/openldap-server/options.mk
+++ b/databases/openldap-server/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.12 2009/06/27 09:55:09 ghen Exp $
+# $NetBSD: options.mk,v 1.13 2010/06/02 12:15:29 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.openldap-server
PKG_SUPPORTED_OPTIONS= bdb sasl slp inet6 smbk5pwd dso
@@ -14,11 +14,19 @@ PKG_SUGGESTED_OPTIONS= bdb
### NOTE: that option is enabled, because the openldap server needs
### to have local storage support to work as standalone.
###
-
.if !empty(PKG_OPTIONS:Mbdb)
-. include "../../databases/db4/buildlink3.mk"
+BDB_ACCEPTED= db4 db5
CONFIGURE_ARGS+= --enable-bdb --enable-hdb
TEST_TARGET= test
+# Fix hard-coded support for db4.
+# Remove if fixed in future versions of OpenLDAP.
+SUBST_CLASSES= bdb
+SUBST_MESSAGE.bdb= Fixing bdb library.
+SUBST_STAGE.bdb= pre-configure
+SUBST_FILES.bdb= ${WRKSRC}/configure
+SUBST_SED.bdb= -e 's,-ldb4,-l${BDB_TYPE},g'
+SUBST_SED.bdb+= -e 's,ol_cv_bdb_major = 4,ol_cv_bdb_major > 3,g'
+. include "../../mk/bdb.buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-bdb --disable-hdb
.endif
@@ -76,7 +84,6 @@ CONFIGURE_ARGS+= --disable-ipv6
###
### smbk5pwd support (sync samba and kerberos passwords on password changes)
###
-
.if !empty(PKG_OPTIONS:Msmbk5pwd)
PKG_FAIL_REASON+= "smbk5pwd option to openldap-server is now " \
"available through the openldap-smbk5pwd package"