Accepting request 946174 from home:varkoly:branches:network

- postfix: sasl authentication with password fails (bsc#1194265)
  Add config parameter --with-dblib=gdbm
- Avoid converting of /etc/sasldb2 by every update. Convert
  /etc/sasldb2 only if it is a Berkeley DB

OBS-URL: https://build.opensuse.org/request/show/946174
OBS-URL: https://build.opensuse.org/package/show/network/cyrus-sasl?expand=0&rev=91
This commit is contained in:
Dirk Mueller 2022-01-14 18:28:30 +00:00 committed by Git OBS Bridge
parent ea6d5c45e7
commit e7fc61044a
5 changed files with 14 additions and 5 deletions

View File

@ -1,7 +1,7 @@
#
# spec file for package cyrus-sasl-bdb
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,7 +1,7 @@
#
# spec file for package cyrus-sasl-saslauthd-bdb
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,7 +1,7 @@
#
# spec file for package cyrus-sasl-saslauthd
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Jan 13 14:58:15 UTC 2022 - Peter Varkoly <varkoly@suse.com>
- postfix: sasl authentication with password fails (bsc#1194265)
Add config parameter --with-dblib=gdbm
- Avoid converting of /etc/sasldb2 by every update. Convert
/etc/sasldb2 only if it is a Berkeley DB
-------------------------------------------------------------------
Fri Jan 8 11:32:42 UTC 2021 - Peter Varkoly <varkoly@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package cyrus-sasl
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -189,6 +189,7 @@ export CFLAGS="%optflags -fno-strict-aliasing"
--with-plugindir=%{_libdir}/sasl2 \
--with-configdir=/etc/sasl2/:%{_libdir}/sasl2 \
--with-saslauthd=/run/sasl2/ \
--with-dblib=gdbm \
--enable-pam \
--enable-sample \
--enable-login \
@ -216,7 +217,7 @@ find "%buildroot" -type f -name "*.la" -print -delete
%pre
#Convert password file from berkely into gdbm
#In %pre the existing file will be dumped out
if [ -e /etc/sasldb2 ]; then
if /usr/bin/db_verify /etc/sasldb2 &> /dev/null ; then
cat <<EOF > /var/adm/update-scripts/saslpw.awk
{
split(\$0,b,/\\\00/)