2006-12-19 00:15:33 +01:00
|
|
|
#
|
2011-09-20 09:30:55 +02:00
|
|
|
# spec file for package cyrus-sasl
|
2006-12-19 00:15:33 +01:00
|
|
|
#
|
2023-01-09 19:14:48 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2006-12-19 00:15:33 +01:00
|
|
|
#
|
2008-08-18 18:24:22 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-01-02 10:11:38 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:15:33 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2013-11-26 18:43:17 +01:00
|
|
|
%define lname libsasl2-3
|
2022-02-03 16:26:40 +01:00
|
|
|
Name: cyrus-sasl
|
2022-03-09 09:51:58 +01:00
|
|
|
Version: 2.1.28
|
2012-05-25 08:25:56 +02:00
|
|
|
Release: 0
|
2006-12-19 00:15:33 +01:00
|
|
|
Summary: Implementation of Cyrus SASL API
|
2012-05-25 08:25:56 +02:00
|
|
|
License: BSD-4-Clause
|
|
|
|
Group: Productivity/Networking/Other
|
2022-03-09 09:51:58 +01:00
|
|
|
URL: https://github.com/cyrusimap/cyrus-sasl/
|
|
|
|
Source: https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-%{version}/cyrus-sasl-%{version}.tar.gz
|
2007-10-26 20:32:16 +02:00
|
|
|
Source1: cyrus-sasl-rc.tar.bz2
|
2006-12-19 00:15:33 +01:00
|
|
|
Source2: README.Source
|
2009-12-16 09:12:01 +01:00
|
|
|
Source3: baselibs.conf
|
2022-02-03 16:26:40 +01:00
|
|
|
Patch0: cyrus-sasl.dif
|
2012-04-23 09:04:49 +02:00
|
|
|
Patch5: cyrus-sasl-no_rpath.patch
|
2012-05-25 08:25:56 +02:00
|
|
|
Patch6: cyrus-sasl-lfs.patch
|
2018-11-26 17:55:50 +01:00
|
|
|
Patch7: fix_libpq-fe_include.diff
|
2020-12-15 11:40:10 +01:00
|
|
|
BuildRequires: gdbm-devel
|
2013-11-26 18:43:17 +01:00
|
|
|
BuildRequires: krb5-mini-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pam-devel
|
2022-02-03 16:26:40 +01:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
Conflicts: cyrus-sasl-bdb
|
2013-11-26 18:43:17 +01:00
|
|
|
%ifarch ppc64
|
|
|
|
# bug437293
|
|
|
|
Obsoletes: cyrus-sasl-64bit
|
|
|
|
%endif
|
2007-10-26 20:32:16 +02:00
|
|
|
|
2022-03-20 22:56:33 +01:00
|
|
|
%description
|
|
|
|
This is the Cyrus SASL API. It can be used on the client or server side
|
|
|
|
to provide authentication. See RFC 2222 for more information.
|
|
|
|
|
|
|
|
%package gssapi
|
2011-11-18 15:39:07 +01:00
|
|
|
Summary: Plugin for the GSSAPI SASL mechanism
|
2013-11-26 18:43:17 +01:00
|
|
|
Group: Productivity/Networking/Other
|
2011-11-18 15:39:07 +01:00
|
|
|
Requires: %{name} = %{version}
|
2020-12-24 08:13:40 +01:00
|
|
|
Conflicts: cyrus-sasl-bdb-gssapi
|
2007-10-26 20:32:16 +02:00
|
|
|
|
2022-03-20 22:56:33 +01:00
|
|
|
%description gssapi
|
|
|
|
This is the Cyrus SASL API implementation. It can be used on the client
|
|
|
|
or server side to provide authentication. See RFC 2222 for more
|
|
|
|
information.
|
|
|
|
|
|
|
|
%package crammd5
|
2011-11-18 15:39:07 +01:00
|
|
|
Summary: Plugin for the CRAMMD5 SASL mechanism
|
2013-11-26 18:43:17 +01:00
|
|
|
Group: Productivity/Networking/Other
|
2011-11-18 15:39:07 +01:00
|
|
|
Requires: %{name} = %{version}
|
2020-12-24 08:13:40 +01:00
|
|
|
Conflicts: cyrus-sasl-bdb-crammd5
|
2007-10-26 20:32:16 +02:00
|
|
|
|
2022-03-20 22:56:33 +01:00
|
|
|
%description crammd5
|
|
|
|
This is the Cyrus SASL API implementation. It can be used on the client
|
|
|
|
or server side to provide authentication. See RFC 2222 for more
|
|
|
|
information.
|
|
|
|
|
|
|
|
%package digestmd5
|
2011-11-18 15:39:07 +01:00
|
|
|
Summary: Plugin for the DIGESTMD5 SASL mechanism
|
2013-11-26 18:43:17 +01:00
|
|
|
Group: Productivity/Networking/Other
|
2011-11-18 15:39:07 +01:00
|
|
|
Requires: %{name} = %{version}
|
2020-12-24 08:13:40 +01:00
|
|
|
Conflicts: cyrus-sasl-bdb-digestmd5
|
2007-10-26 20:32:16 +02:00
|
|
|
|
2022-03-20 22:56:33 +01:00
|
|
|
%description digestmd5
|
|
|
|
This is the Cyrus SASL API implementation. It can be used on the client
|
|
|
|
or server side to provide authentication. See RFC 2222 for more
|
|
|
|
information.
|
|
|
|
|
|
|
|
%package otp
|
2011-11-18 15:39:07 +01:00
|
|
|
Summary: Plugin for the OTP SASL mechanism
|
2013-11-26 18:43:17 +01:00
|
|
|
Group: Productivity/Networking/Other
|
2011-11-18 15:39:07 +01:00
|
|
|
Requires: %{name} = %{version}
|
2020-12-24 08:13:40 +01:00
|
|
|
Conflicts: cyrus-sasl-bdb-otp
|
2007-10-26 20:32:16 +02:00
|
|
|
|
2022-03-20 22:56:33 +01:00
|
|
|
%description otp
|
|
|
|
This is the Cyrus SASL API implementation. It can be used on the client
|
|
|
|
or server side to provide authentication. See RFC 2222 for more
|
|
|
|
information.
|
|
|
|
|
|
|
|
%package plain
|
2011-11-18 15:39:07 +01:00
|
|
|
Summary: Plugin for the PLAIN SASL mechanism
|
2013-11-26 18:43:17 +01:00
|
|
|
Group: Productivity/Networking/Other
|
2011-11-18 15:39:07 +01:00
|
|
|
Requires: %{name} = %{version}
|
2020-12-24 08:13:40 +01:00
|
|
|
Conflicts: cyrus-sasl-bdb-plain
|
2007-10-26 20:32:16 +02:00
|
|
|
|
2022-03-20 22:56:33 +01:00
|
|
|
%description plain
|
|
|
|
This is the Cyrus SASL API implementation. It can be used on the client
|
|
|
|
or server side to provide authentication. See RFC 2222 for more
|
|
|
|
information.
|
|
|
|
|
|
|
|
%package ntlm
|
2011-11-18 15:39:07 +01:00
|
|
|
Summary: Plugin for the NTLM SASL mechanism
|
2008-03-28 00:30:32 +01:00
|
|
|
Group: Productivity/Networking/Other
|
2011-11-18 15:39:07 +01:00
|
|
|
Requires: %{name} = %{version}
|
2020-12-24 08:13:40 +01:00
|
|
|
Conflicts: cyrus-sasl-bdb-ntlm
|
2011-11-18 15:39:07 +01:00
|
|
|
|
2022-03-20 22:56:33 +01:00
|
|
|
%description ntlm
|
|
|
|
This is the Cyrus SASL API. It can be used on the client or server side
|
|
|
|
to provide authentication. See RFC 2222 for more information.
|
|
|
|
|
|
|
|
%package gs2
|
2011-11-18 15:39:07 +01:00
|
|
|
Summary: Plugin for the GS2 SASL mechanism
|
|
|
|
Group: Productivity/Networking/Other
|
|
|
|
Requires: %{name} = %{version}
|
2020-12-24 08:13:40 +01:00
|
|
|
Conflicts: cyrus-sasl-bdb-ntlm
|
2011-11-18 15:39:07 +01:00
|
|
|
|
2022-03-20 22:56:33 +01:00
|
|
|
%description gs2
|
|
|
|
This is the Cyrus SASL API implementation. It can be used on the client
|
|
|
|
or server side to provide authentication. See RFC 2222 for more
|
|
|
|
information.
|
|
|
|
|
|
|
|
%package scram
|
2011-11-18 15:39:07 +01:00
|
|
|
Summary: Plugin for the SCRAM SASL mechanism
|
|
|
|
Group: Productivity/Networking/Other
|
|
|
|
Requires: %{name} = %{version}
|
2020-12-24 08:13:40 +01:00
|
|
|
Conflicts: cyrus-sasl-bdb-scram
|
2008-03-28 00:30:32 +01:00
|
|
|
|
2022-03-20 22:56:33 +01:00
|
|
|
%description scram
|
|
|
|
This is the Cyrus SASL API implementation. It can be used on the client
|
|
|
|
or server side to provide authentication. See RFC 5802 for more
|
|
|
|
information.
|
|
|
|
|
|
|
|
%package devel
|
2006-12-19 00:15:33 +01:00
|
|
|
Summary: Cyrus SASL API Implementation, Libraries and Header Files
|
|
|
|
Group: Development/Libraries/C and C++
|
2013-11-26 18:43:17 +01:00
|
|
|
Requires: %lname = %version
|
2012-05-25 08:25:56 +02:00
|
|
|
Requires: glibc-devel
|
2020-12-24 08:13:40 +01:00
|
|
|
Conflicts: cyrus-sasl-devel-bdb
|
2022-02-03 16:26:40 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: cyrus-sasl-devel-64bit
|
|
|
|
%endif
|
2006-12-19 00:15:33 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This is the Cyrus SASL API. It can be used on the client or server side
|
|
|
|
to provide authentication. See RFC 2222 for more information.
|
|
|
|
|
2022-03-20 22:56:33 +01:00
|
|
|
%package -n libsasl2-3
|
|
|
|
Summary: Simple Authentication and Security Layer (SASL) library
|
|
|
|
Group: System/Libraries
|
2011-11-18 15:39:07 +01:00
|
|
|
|
2013-11-26 18:43:17 +01:00
|
|
|
%description -n libsasl2-3
|
|
|
|
Simple Authentication and Security Layer (SASL) is a framework for
|
|
|
|
authentication and data security in Internet protocols.
|
|
|
|
|
|
|
|
This is the Cyrus SASL API implementation. It can be used on the client
|
|
|
|
or server side to provide authentication. See RFC 2222 for more
|
|
|
|
information.
|
|
|
|
|
2006-12-19 00:15:33 +01:00
|
|
|
%prep
|
2009-03-03 22:18:28 +01:00
|
|
|
%setup -q -n cyrus-sasl-%{version} -a 1
|
2006-12-19 00:15:33 +01:00
|
|
|
if [ -e %{_builddir}/%{name}-%{version}/dlcompat-*/ ]
|
|
|
|
then
|
|
|
|
echo "dlcompat contains potential legal risks."
|
2013-09-20 17:12:20 +02:00
|
|
|
rm -rf %{_builddir}/%{name}-%{version}/dlcompat-*
|
2006-12-19 00:15:33 +01:00
|
|
|
fi
|
2022-02-03 16:26:40 +01:00
|
|
|
%patch0
|
2012-04-23 09:04:49 +02:00
|
|
|
%patch5 -p1
|
2018-11-26 17:55:50 +01:00
|
|
|
%patch6 -p1
|
2013-09-29 20:38:14 +02:00
|
|
|
%patch7 -p1
|
2013-06-14 08:21:28 +02:00
|
|
|
|
2006-12-19 00:15:33 +01:00
|
|
|
%build
|
2013-11-26 18:43:17 +01:00
|
|
|
find . -name "*.cvsignore" -exec rm -fv "{}" "+"
|
2018-11-26 17:55:50 +01:00
|
|
|
autoreconf -f
|
2012-05-25 08:25:56 +02:00
|
|
|
export CFLAGS="%optflags -fno-strict-aliasing"
|
2009-03-03 22:18:28 +01:00
|
|
|
%configure --with-pic \
|
2011-11-18 15:39:07 +01:00
|
|
|
--with-plugindir=%{_libdir}/sasl2 \
|
2022-02-03 16:26:40 +01:00
|
|
|
--with-configdir=%{_sysconfdir}/sasl2/:%{_libdir}/sasl2 \
|
2014-07-30 11:46:04 +02:00
|
|
|
--with-saslauthd=/run/sasl2/ \
|
2022-01-14 19:28:30 +01:00
|
|
|
--with-dblib=gdbm \
|
2011-11-18 15:39:07 +01:00
|
|
|
--enable-pam \
|
|
|
|
--enable-sample \
|
|
|
|
--enable-login \
|
|
|
|
--enable-gssapi \
|
|
|
|
--enable-ntlm \
|
|
|
|
--enable-krb4=no \
|
|
|
|
--enable-sql=no \
|
|
|
|
--with-devrandom=/dev/urandom
|
2022-02-03 16:26:40 +01:00
|
|
|
%make_build sasldir=%{_libdir}/sasl2
|
2006-12-19 00:15:33 +01:00
|
|
|
|
|
|
|
%install
|
2022-02-03 16:26:40 +01:00
|
|
|
make DESTDIR=%{buildroot} sasldir=%{_libdir}/sasl2 install
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/sasl2
|
|
|
|
install -m 755 sample/.libs/client %{buildroot}%{_bindir}/cyrus_sasl_sample_client
|
|
|
|
install -m 755 sample/.libs/server %{buildroot}%{_bindir}/cyrus_sasl_sample_server
|
2022-12-07 12:41:33 +01:00
|
|
|
find doc -type f -exec chmod 0644 {} \;
|
2007-10-26 20:32:16 +02:00
|
|
|
rm -f doc/Makefile*
|
2022-02-03 16:26:40 +01:00
|
|
|
rm -f %{buildroot}/%{_mandir}/cat?/*
|
|
|
|
rm -f %{buildroot}/%{_mandir}/man8/saslauthd*
|
2022-03-20 22:56:33 +01:00
|
|
|
rm -f %{buildroot}/%{_mandir}/man8/testsaslauthd*
|
2022-02-03 16:26:40 +01:00
|
|
|
rm -f %{buildroot}%{_sbindir}/saslauthd
|
|
|
|
rm -f %{buildroot}%{_sbindir}/testsaslauthd
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2006-12-19 00:15:33 +01:00
|
|
|
|
2020-12-24 08:13:40 +01:00
|
|
|
%pre
|
|
|
|
#Convert password file from berkely into gdbm
|
|
|
|
#In %pre the existing file will be dumped out
|
2022-02-03 16:26:40 +01:00
|
|
|
|
|
|
|
if test -x %{_bindir}/db_verify && %{_bindir}/db_verify %{_sysconfdir}/sasldb2 >/dev/null 2>&1 ; then
|
|
|
|
cat > %{_localstatedir}/adm/update-scripts/saslpw.awk <<EOF
|
2020-12-24 08:13:40 +01:00
|
|
|
{
|
|
|
|
split(\$0,b,/\\\00/)
|
|
|
|
if( b[3] == "userPassword" ) {
|
|
|
|
user=b[1]
|
|
|
|
domain=b[2]
|
|
|
|
} else {
|
|
|
|
if( user != "" ) {
|
|
|
|
printf("echo '%s' | saslpasswd2 -p -u %s %s\n",substr(b[1],2),user,domain)
|
|
|
|
user = ""
|
|
|
|
domain = ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|
2022-02-03 16:26:40 +01:00
|
|
|
db_dump -p %{_sysconfdir}/sasldb2 | gawk -f %{_localstatedir}/adm/update-scripts/saslpw.awk > %{_localstatedir}/adm/update-scripts/saslpwd
|
|
|
|
rm -f %{_localstatedir}/adm/update-scripts/saslpw.awk
|
|
|
|
mv %{_sysconfdir}/sasldb2 %{_sysconfdir}/sasldb2-back
|
2020-12-24 08:13:40 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
%post
|
2022-02-03 16:26:40 +01:00
|
|
|
if [ -e %{_localstatedir}/adm/update-scripts/saslpwd ]; then
|
|
|
|
chmod 755 %{_localstatedir}/adm/update-scripts/saslpwd
|
|
|
|
%{_localstatedir}/adm/update-scripts/saslpwd
|
|
|
|
rm -f %{_localstatedir}/adm/update-scripts/saslpwd
|
2020-12-24 08:13:40 +01:00
|
|
|
fi
|
|
|
|
|
2013-11-26 18:43:17 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
2006-12-19 00:15:33 +01:00
|
|
|
|
2013-11-26 18:43:17 +01:00
|
|
|
%files -n %lname
|
|
|
|
%{_libdir}/libsasl2.so.3*
|
2007-10-26 20:32:16 +02:00
|
|
|
|
2006-12-19 00:15:33 +01:00
|
|
|
%files
|
2022-02-03 16:26:40 +01:00
|
|
|
%license COPYING
|
2006-12-19 00:15:33 +01:00
|
|
|
%dir %{_libdir}/sasl2
|
2013-10-06 12:36:33 +02:00
|
|
|
%{_libdir}/sasl2/libanonymous.so*
|
|
|
|
%{_libdir}/sasl2/liblogin.so*
|
|
|
|
%{_libdir}/sasl2/libsasldb.so*
|
2022-02-03 16:26:40 +01:00
|
|
|
%dir %{_sysconfdir}/sasl2/
|
|
|
|
%{_sbindir}/*
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man3/sasl.*.gz
|
|
|
|
%{_mandir}/man8/*.gz
|
2006-12-19 00:15:33 +01:00
|
|
|
|
|
|
|
%files gssapi
|
2013-11-26 18:43:17 +01:00
|
|
|
%dir %_libdir/sasl2/
|
2013-10-06 12:36:33 +02:00
|
|
|
%{_libdir}/sasl2/libgssapiv2.so*
|
2006-12-19 00:15:33 +01:00
|
|
|
|
|
|
|
%files crammd5
|
2013-11-26 18:43:17 +01:00
|
|
|
%dir %_libdir/sasl2/
|
2013-10-06 12:36:33 +02:00
|
|
|
%{_libdir}/sasl2/libcrammd5.so*
|
2006-12-19 00:15:33 +01:00
|
|
|
|
|
|
|
%files digestmd5
|
2013-11-26 18:43:17 +01:00
|
|
|
%dir %_libdir/sasl2/
|
2013-10-06 12:36:33 +02:00
|
|
|
%{_libdir}/sasl2/libdigestmd5.so*
|
2006-12-19 00:15:33 +01:00
|
|
|
|
|
|
|
%files otp
|
2013-11-26 18:43:17 +01:00
|
|
|
%dir %_libdir/sasl2/
|
2013-10-06 12:36:33 +02:00
|
|
|
%{_libdir}/sasl2/libotp.so*
|
2006-12-19 00:15:33 +01:00
|
|
|
|
|
|
|
%files plain
|
2013-11-26 18:43:17 +01:00
|
|
|
%dir %_libdir/sasl2/
|
2013-10-06 12:36:33 +02:00
|
|
|
%{_libdir}/sasl2/libplain.so*
|
2006-12-19 00:15:33 +01:00
|
|
|
|
2008-03-28 00:30:32 +01:00
|
|
|
%files ntlm
|
2013-11-26 18:43:17 +01:00
|
|
|
%dir %_libdir/sasl2/
|
2013-10-06 12:36:33 +02:00
|
|
|
%{_libdir}/sasl2/libntlm.so*
|
2008-03-28 00:30:32 +01:00
|
|
|
|
2011-11-18 15:39:07 +01:00
|
|
|
%files gs2
|
2013-11-26 18:43:17 +01:00
|
|
|
%dir %_libdir/sasl2/
|
2013-10-06 12:36:33 +02:00
|
|
|
%{_libdir}/sasl2/libgs2.so*
|
2011-11-18 15:39:07 +01:00
|
|
|
|
|
|
|
%files scram
|
2013-11-26 18:43:17 +01:00
|
|
|
%dir %_libdir/sasl2/
|
2013-10-06 12:36:33 +02:00
|
|
|
%{_libdir}/sasl2/libscram.so*
|
2011-11-18 15:39:07 +01:00
|
|
|
|
2006-12-19 00:15:33 +01:00
|
|
|
%files devel
|
2022-02-03 16:26:40 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS ChangeLog README doc
|
2013-11-26 18:43:17 +01:00
|
|
|
%_includedir/sasl/
|
2022-02-03 16:26:40 +01:00
|
|
|
%{_mandir}/man3/sasl_*.gz
|
2006-12-19 00:15:33 +01:00
|
|
|
%{_libdir}/libsasl2.so
|
2013-09-20 17:12:20 +02:00
|
|
|
%{_libdir}/pkgconfig/*
|
2008-03-28 00:30:32 +01:00
|
|
|
|
2007-03-20 11:34:39 +01:00
|
|
|
%changelog
|