commit:     ef491d1a5565afd390e02adf41a69abbe97fa2ca
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 17 19:52:07 2024 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Thu Oct 17 20:00:00 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef491d1a

net-fs/samba: add new (conditional) dep on lmdb

This is used conditionally for the bundled ldb, same as on the
previously split sys-libs/ldb package.

Closes: https://bugs.gentoo.org/941721
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 net-fs/samba/metadata.xml        | 3 ++-
 net-fs/samba/samba-4.21.1.ebuild | 8 +++++---
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/net-fs/samba/metadata.xml b/net-fs/samba/metadata.xml
index 0839deab51b0..b2a746fcfc9b 100644
--- a/net-fs/samba/metadata.xml
+++ b/net-fs/samba/metadata.xml
@@ -16,8 +16,9 @@
                <flag name="cluster">Enable support for clustering</flag>
                <flag name="glusterfs">Enable support for Glusterfs filesystem 
via <pkg>sys-cluster/glusterfs</pkg></flag>
                <flag name="gpg">Use <pkg>app-crypt/gpgme</pkg> for AD DC</flag>
-               <flag name="json">Enable json audit support through 
<pkg>dev-libs/jansson</pkg></flag>
                <flag name="iprint">Enabling iPrint technology by Novell</flag>
+               <flag name="json">Enable json audit support through 
<pkg>dev-libs/jansson</pkg></flag>
+               <flag name="lmdb">Enable LMDB backend for bundled ldb</flag>
                <flag name="profiling-data">Enables support for collecting 
profiling data</flag>
                <flag name="quota">Enables support for user quotas</flag>
                <flag name="regedit">Enable support for regedit command-line 
tool</flag>

diff --git a/net-fs/samba/samba-4.21.1.ebuild b/net-fs/samba/samba-4.21.1.ebuild
index e1985456f25d..b5be6bbfc3df 100644
--- a/net-fs/samba/samba-4.21.1.ebuild
+++ b/net-fs/samba/samba-4.21.1.ebuild
@@ -23,9 +23,9 @@ S="${WORKDIR}/${MY_P}"
 LICENSE="GPL-3"
 SLOT="0/2.10.0"
 IUSE="acl addc ads ceph client cluster cups debug fam glusterfs gpg"
-IUSE+=" iprint json ldap llvm-libunwind pam profiling-data python quota 
+regedit selinux"
-IUSE+=" snapper spotlight syslog system-heimdal +system-mitkrb5 systemd test 
unwind winbind"
-IUSE+=" zeroconf"
+IUSE+=" iprint json ldap llvm-libunwind lmdb pam profiling-data python quota"
+IUSE+=" +regedit selinux snapper spotlight syslog system-heimdal 
+system-mitkrb5"
+IUSE+=" systemd test unwind winbind zeroconf"
 
 REQUIRED_USE="${PYTHON_REQUIRED_USE}
        addc? ( json python !system-mitkrb5 winbind )
@@ -99,6 +99,7 @@ COMMON_DEPEND="
        gpg? ( app-crypt/gpgme:= )
        json? ( dev-libs/jansson:= )
        ldap? ( net-nds/openldap:=[${MULTILIB_USEDEP}] )
+       lmdb? ( >=dev-db/lmdb-0.9.16:=[${MULTILIB_USEDEP}] )
        pam? ( sys-libs/pam )
        python? (
                sys-libs/talloc[python,${PYTHON_SINGLE_USEDEP}]
@@ -291,6 +292,7 @@ multilib_src_configure() {
                $(use_with ldap)
                $(use_with profiling-data)
                --private-libraries='!ldb'
+               $(usex lmdb '' --without-ldb-lmdb)
                # bug #683148
                --jobs 1
        )

Reply via email to