summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2020-03-18 00:29:38 +0000
committertnn <tnn@pkgsrc.org>2020-03-18 00:29:38 +0000
commit39b17f35bde9bd0ca73f1a6c0a4e6648c9595386 (patch)
treef825f5a69bcec5f87c6e2b7c92825ab5298addb7 /databases
parent00cad9f64e35591aaea670fc7c2ad4e0d3dc23ee (diff)
downloadpkgsrc-39b17f35bde9bd0ca73f1a6c0a4e6648c9595386.tar.gz
ldb: add ldap PKG_OPTION. Otherwise net/samba4's ldap option can't work.
Diffstat (limited to 'databases')
-rw-r--r--databases/ldb/Makefile5
-rw-r--r--databases/ldb/PLIST4
-rw-r--r--databases/ldb/options.mk14
3 files changed, 19 insertions, 4 deletions
diff --git a/databases/ldb/Makefile b/databases/ldb/Makefile
index ec14ce550a5..7bab49f2835 100644
--- a/databases/ldb/Makefile
+++ b/databases/ldb/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2020/01/26 17:30:52 rillig Exp $
+# $NetBSD: Makefile,v 1.12 2020/03/18 00:29:38 tnn Exp $
# Before updating, make sure net/samba4 supports the newer version.
DISTNAME= ldb-2.0.8
@@ -62,8 +62,9 @@ PLIST.64bit= yes
CONFIGURE_ARGS+= --without-ldb-lmdb
.endif
+.include "options.mk"
+
.include "../../converters/libiconv/buildlink3.mk"
-.include "../../databases/openldap-client/buildlink3.mk"
.include "../../databases/tdb/buildlink3.mk"
.include "../../devel/cmocka/buildlink3.mk"
.include "../../devel/popt/buildlink3.mk"
diff --git a/databases/ldb/PLIST b/databases/ldb/PLIST
index 78659022ebb..4e03719edda 100644
--- a/databases/ldb/PLIST
+++ b/databases/ldb/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.2 2019/11/10 16:58:06 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2020/03/18 00:29:38 tnn Exp $
bin/ldbadd
bin/ldbdel
bin/ldbedit
@@ -34,7 +34,7 @@ man/man1/ldbrename.1
man/man1/ldbsearch.1
man/man3/ldb.3
modules/ldb/asq.${SOEXT}
-modules/ldb/ldap.${SOEXT}
+${PLIST.ldap}modules/ldb/ldap.${SOEXT}
modules/ldb/ldb.${SOEXT}
${PLIST.64bit}modules/ldb/mdb.${SOEXT}
modules/ldb/paged_searches.${SOEXT}
diff --git a/databases/ldb/options.mk b/databases/ldb/options.mk
new file mode 100644
index 00000000000..ceb8b1cb070
--- /dev/null
+++ b/databases/ldb/options.mk
@@ -0,0 +1,14 @@
+# $NetBSD: options.mk,v 1.1 2020/03/18 00:29:38 tnn Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.ldb
+PKG_SUPPORTED_OPTIONS= ldap
+PKG_SUGGESTED_OPTIONS= ldap
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= ldap
+
+.if !empty(PKG_OPTIONS:Mldap)
+. include "../../databases/openldap-client/buildlink3.mk"
+PLIST.ldap= yes
+.endif