[packages/cyrus-sasl] - allow building with GDBM or LMDB as default DB library

hawk hawk at pld-linux.org
Sun May 24 16:14:32 CEST 2026


commit e17f896b1f486255b026fea129aeb68715ec4c79
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Sun May 24 16:13:36 2026 +0200

    - allow building with GDBM or LMDB as default DB library

 cyrus-sasl.spec | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/cyrus-sasl.spec b/cyrus-sasl.spec
index 4235cbd..3645d40 100644
--- a/cyrus-sasl.spec
+++ b/cyrus-sasl.spec
@@ -1,5 +1,7 @@
 #
 # Conditional build:
+%bcond_with	gdbm		# use GDBM as default DB library
+%bcond_with	lmdb		# use LMDB as default DB library
 %bcond_with	cryptedpw	# if you keep crypted passwords in your *sql
 %bcond_without	ldap		# disable LDAP support for saslauthd
 %bcond_without	gssapi		# do not enable GSSAPI support for saslauthd and build gssapi plugin
@@ -18,6 +20,14 @@
 %undefine with_cryptedpw
 %endif
 
+%if %{with gdbm}
+%define default_dblib gdbm
+%elif %{with lmdb}
+%define default_dblib lmdb
+%else
+%define default_dblib berkeley
+%endif
+
 Summary:	The SASL library API for the Cyrus mail system
 Summary(pl.UTF-8):	Biblioteka Cyrus SASL
 Summary(pt_BR.UTF-8):	Implementação da API SASL
@@ -58,7 +68,13 @@ URL:		https://www.cyrusimap.org/sasl/
 BuildRequires:	autoconf >= 2.63
 BuildRequires:	automake >= 1:1.11
 %{?with_authlib:BuildRequires:	courier-authlib-devel}
+%if %{with gdbm}
+BuildRequires:	gdbm-devel
+%elif %{with lmdb}
+BuildRequires:	lmdb-devel
+%else
 BuildRequires:	db-devel
+%endif
 BuildRequires:	ed
 BuildRequires:	groff
 %{?with_gssapi:BuildRequires:	heimdal-devel}
@@ -556,7 +572,7 @@ sed -i -e '
 	--enable-static \
 	%{?with_authlib:--with-authdaemond=/var/spool/authdaemon/socket} \
 	--with-configdir=%{_sysconfdir} \
-	--with-dblib=berkeley \
+	--with-dblib=%{default_dblib} \
 	--with-dbpath=/var/lib/sasl2/sasl.db \
 	%{?with_ldap:--with-ldap} \
 	%{?with_mysql:--with-mysql=%{_prefix}} \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cyrus-sasl.git/commitdiff/e17f896b1f486255b026fea129aeb68715ec4c79



More information about the pld-cvs-commit mailing list