summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2005-01-12 01:50:15 +0000
committerxtraeme <xtraeme>2005-01-12 01:50:15 +0000
commit8add081ceb332efc3833956e2ca2dff6ae19df5c (patch)
tree15ca235b7fd9026006d05c2b424de3389e4276d2 /databases
parent20060d32a872ba6b61bcf449ebe2620f8e063ecc (diff)
downloadpkgsrc-8add081ceb332efc3833956e2ca2dff6ae19df5c.tar.gz
If dynamic and bdb options are used, the hdb module is built, but not
if bdb is disabled, so only build it when the bdb option has been enabled.
Diffstat (limited to 'databases')
-rw-r--r--databases/openldap/PLIST4
-rw-r--r--databases/openldap/options.mk7
2 files changed, 8 insertions, 3 deletions
diff --git a/databases/openldap/PLIST b/databases/openldap/PLIST
index 65aebbf2e46..3e2c96afdd0 100644
--- a/databases/openldap/PLIST
+++ b/databases/openldap/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.19 2004/11/08 18:42:09 tv Exp $
+@comment $NetBSD: PLIST,v 1.20 2005/01/12 01:50:15 xtraeme Exp $
bin/ldapadd
bin/ldapcompare
bin/ldapdelete
@@ -19,7 +19,7 @@ lib/liblber.la
lib/libldap.la
lib/libldap_r.la
${DYNAMIC_MOD}lib/openldap/back_dnssrv.la
-${DYNAMIC_MOD}lib/openldap/back_hdb.la
+${DYNAMIC_MOD}${HDB_MODULE}lib/openldap/back_hdb.la
${DYNAMIC_MOD}lib/openldap/back_ldap.la
${DYNAMIC_MOD}lib/openldap/back_ldbm.la
${DYNAMIC_MOD}lib/openldap/back_meta.la
diff --git a/databases/openldap/options.mk b/databases/openldap/options.mk
index e5b77d5cd0b..51fb3580ccd 100644
--- a/databases/openldap/options.mk
+++ b/databases/openldap/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.8 2004/11/29 01:10:04 tv Exp $
+# $NetBSD: options.mk,v 1.9 2005/01/12 01:50:15 xtraeme Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.openldap
PKG_SUPPORTED_OPTIONS= bdb dynamic kerberos sasl slp
@@ -28,6 +28,11 @@ CONFIGURE_ARGS+= --disable-bdb --disable-hdb
### specified, then link the backend modules statically into slapd.
###
.if !empty(PKG_OPTIONS:Mdynamic)
+. if !empty(PKG_OPTIONS:Mbdb)
+PLIST_SUBST+= HDB_MODULE=
+. else
+PLIST_SUBST+= HDB_MODULE="@comment "
+. endif
. include "../../devel/libltdl/buildlink3.mk"
CONFIGURE_ARGS+= --enable-modules
PLIST_SUBST+= DYNAMIC_MOD=