diff options
author | hauke <hauke@pkgsrc.org> | 2020-05-18 15:39:20 +0000 |
---|---|---|
committer | hauke <hauke@pkgsrc.org> | 2020-05-18 15:39:20 +0000 |
commit | 5d4353a4d8c4311949e93f340ad1e2eecfae9d4d (patch) | |
tree | 54a85de82c50a3ded8d89809481549694f46ab95 /databases/ldb | |
parent | c50758bf02f2d569f48c39768910830f922406e2 (diff) | |
download | pkgsrc-5d4353a4d8c4311949e93f340ad1e2eecfae9d4d.tar.gz |
Unbreak building without ldap support - the library got built and
installed, anyway, resulting in a PLIST error.
ldb's snazzy little build system has no official configuration option
for this, so we reach in and flick the switch by hand.
Diffstat (limited to 'databases/ldb')
-rw-r--r-- | databases/ldb/Makefile | 3 | ||||
-rw-r--r-- | databases/ldb/options.mk | 9 |
2 files changed, 10 insertions, 2 deletions
diff --git a/databases/ldb/Makefile b/databases/ldb/Makefile index f37ebabfec4..ef48ea6c4b3 100644 --- a/databases/ldb/Makefile +++ b/databases/ldb/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.14 2020/04/29 10:00:12 adam Exp $ +# $NetBSD: Makefile,v 1.15 2020/05/18 15:39:20 hauke Exp $ # Before updating, make sure net/samba4 supports the newer version. DISTNAME= ldb-2.1.2 +PKGREVISION= 1 CATEGORIES= databases MASTER_SITES= http://www.samba.org/ftp/ldb/ diff --git a/databases/ldb/options.mk b/databases/ldb/options.mk index ceb8b1cb070..76f024e0e8e 100644 --- a/databases/ldb/options.mk +++ b/databases/ldb/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.1 2020/03/18 00:29:38 tnn Exp $ +# $NetBSD: options.mk,v 1.2 2020/05/18 15:39:20 hauke Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.ldb PKG_SUPPORTED_OPTIONS= ldap @@ -11,4 +11,11 @@ PLIST_VARS+= ldap .if !empty(PKG_OPTIONS:Mldap) . include "../../databases/openldap-client/buildlink3.mk" PLIST.ldap= yes +.else +# No official way to configure without ldap +CFG_CACHE= ${WRKSRC}/bin/c4che/default_cache.py +post-configure: + mv ${CFG_CACHE} ${CFG_CACHE}.orig + sed -E -e 's/(ENABLE_LDAP_BACKEND =) True/\1 False/g' \ + ${CFG_CACHE}.orig > ${CFG_CACHE} .endif |