2024-01-05 21:37:54 +01:00
|
|
|
Name: cyrus-sasl
|
2024-01-05 21:37:54 +01:00
|
|
|
Version: 2.1.26
|
2024-01-05 21:37:54 +01:00
|
|
|
Release: 3mamba
|
2024-01-05 21:37:54 +01:00
|
|
|
Summary: SASL Authentication Daemon for simple authentication and security
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://asg.web.cmu.edu/sasl/
|
2024-01-05 21:37:54 +01:00
|
|
|
Source0: ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-%{version}.tar.gz
|
|
|
|
Source1: saslauthd.service
|
|
|
|
Source2: saslauthd.tmpfiles
|
|
|
|
Source3: saslauthd.sysconfig
|
2024-01-05 21:37:54 +01:00
|
|
|
Patch0: %{name}-2.1.21-gcc4.patch
|
|
|
|
Patch1: %{name}-2.1.23-gcc44.patch
|
|
|
|
Patch2: cyrus-sasl-2.1.25-db-5.1.patch
|
|
|
|
Patch3: cyrus-sasl-2.1.25-db-5.1-2.patch
|
2024-01-05 21:37:54 +01:00
|
|
|
Patch4: cyrus-sasl-2.1.26-missing-include.patch
|
2024-01-05 21:37:54 +01:00
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libdb51-devel
|
|
|
|
BuildRequires: libe2fs-devel
|
|
|
|
BuildRequires: libkrb5-devel
|
|
|
|
%if "%{stage1}" != "1"
|
|
|
|
BuildRequires: libopenldap-devel
|
|
|
|
%endif
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
BuildRequires: pam-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires: pam >= 0.77
|
2024-01-05 21:37:54 +01:00
|
|
|
%systemd_requires
|
2024-01-05 21:37:54 +01:00
|
|
|
Provides: sasl
|
|
|
|
Obsoletes: sasl
|
2024-01-05 21:37:54 +01:00
|
|
|
Requires: libsasl2 = %{version}-%{release}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
2024-01-05 21:37:54 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
SASL is the Simple Authentication and Security Layer, a method for adding authentication support to connection-based protocols.
|
|
|
|
To use SASL, a protocol includes a command for identifying and authenticating a user to a server and for optionally negotiating protection of subsequent protocol interactions.
|
|
|
|
If its use is negotiated, a security layer is inserted between the protocol and the connection.
|
|
|
|
|
2024-01-05 21:37:54 +01:00
|
|
|
%package -n libsasl2
|
2024-01-05 21:37:54 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
Summary: Libraries for SASL, the Simple Authentication and Security Layer
|
2024-01-05 21:37:54 +01:00
|
|
|
Provides: libsasl
|
|
|
|
Obsoletes: libsasl
|
2024-01-05 21:37:54 +01:00
|
|
|
|
2024-01-05 21:37:54 +01:00
|
|
|
%description -n libsasl2
|
2024-01-05 21:37:54 +01:00
|
|
|
SASL is the Simple Authentication and Security Layer, a method for adding authentication support to connection-based protocols.
|
|
|
|
To use SASL, a protocol includes a command for identifying and authenticating a user to a server and for optionally negotiating protection of subsequent protocol interactions.
|
|
|
|
If its use is negotiated, a security layer is inserted between the protocol and the connection.
|
|
|
|
This package contains the libsasl shared library.
|
|
|
|
|
2024-01-05 21:37:54 +01:00
|
|
|
%package -n libsasl2-devel
|
2024-01-05 21:37:54 +01:00
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Static libraries and headers for %{name}
|
2024-01-05 21:37:54 +01:00
|
|
|
Requires: libsasl2 = %{version}-%{release}
|
|
|
|
Provides: libsasl-devel
|
|
|
|
Obsoletes: libsasl-devel
|
2024-01-05 21:37:54 +01:00
|
|
|
|
2024-01-05 21:37:54 +01:00
|
|
|
%description -n libsasl2-devel
|
2024-01-05 21:37:54 +01:00
|
|
|
SASL is the Simple Authentication and Security Layer, a method for adding authentication support to connection-based protocols.
|
|
|
|
To use SASL, a protocol includes a command for identifying and authenticating a user to a server and for optionally negotiating protection of subsequent protocol interactions.
|
|
|
|
If its use is negotiated, a security layer is inserted between the protocol and the connection.
|
|
|
|
|
|
|
|
This package contains static libraries and header files need for development.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n cyrus-sasl-%{version}
|
2024-01-05 21:37:54 +01:00
|
|
|
#%patch0 -p1
|
2024-01-05 21:37:54 +01:00
|
|
|
#%patch1 -p1
|
2024-01-05 21:37:54 +01:00
|
|
|
#%patch2 -p0
|
|
|
|
#%patch3 -p0
|
2024-01-05 21:37:54 +01:00
|
|
|
%patch4 -p1
|
2024-01-05 21:37:54 +01:00
|
|
|
sed -i "s|db-4.7|db-5.1|" configure
|
|
|
|
|
|
|
|
%build
|
|
|
|
# replace the hardcoded occorrences of `/usr/local/{lib,include}'
|
|
|
|
# we don't want to see RPATH="/usr/local/lib" in
|
|
|
|
# '/usr/sbin/sasldblistusers2` and '/usr/sbin/saslpasswd2'
|
|
|
|
sed -i 's,/usr/local/,/usr/,g' configure
|
|
|
|
%configure \
|
|
|
|
--enable-anon \
|
|
|
|
--enable-login \
|
|
|
|
--enable-plain \
|
|
|
|
--enable-cram \
|
|
|
|
--enable-digest \
|
|
|
|
--enable-otp \
|
|
|
|
--enable-ntlm \
|
|
|
|
--enable-krb4 \
|
|
|
|
--with-pam \
|
|
|
|
--with-ldap \
|
2024-01-05 21:37:54 +01:00
|
|
|
--with-saslauthd=/run/saslauthd \
|
2024-01-05 21:37:54 +01:00
|
|
|
--with-plugindir=%{_libdir}/sasl2 \
|
|
|
|
--cache-file= \
|
|
|
|
--with-bdb-incdir=%{_includedir}/db51
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ %{buildroot} != / ] && rm -rf "%{buildroot}"
|
2024-01-05 21:37:54 +01:00
|
|
|
%makeinstall \
|
|
|
|
sasldir=%{_libdir}/sasl2
|
|
|
|
|
|
|
|
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/saslauthd.service
|
|
|
|
install -D -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/saslauthd.conf
|
|
|
|
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/saslauthd
|
2024-01-05 21:37:54 +01:00
|
|
|
install -d %{buildroot}%{_sysconfdir}/sasl2
|
2024-01-05 21:37:54 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ %{buildroot} != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post
|
2024-01-05 21:37:54 +01:00
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
%tmpfiles_create %{name}
|
2024-01-05 21:37:54 +01:00
|
|
|
fi
|
2024-01-05 21:37:54 +01:00
|
|
|
%systemd_post %{name}
|
|
|
|
:
|
2024-01-05 21:37:54 +01:00
|
|
|
|
|
|
|
%preun
|
2024-01-05 21:37:54 +01:00
|
|
|
%systemd_preun %{name}
|
|
|
|
:
|
2024-01-05 21:37:54 +01:00
|
|
|
|
|
|
|
%postun
|
2024-01-05 21:37:54 +01:00
|
|
|
%systemd_postun_with_restart %{name}
|
|
|
|
:
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
# clean old sysv broken links
|
|
|
|
find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
|
|
|
|
:
|
2024-01-05 21:37:54 +01:00
|
|
|
|
2024-01-05 21:37:54 +01:00
|
|
|
%post -n libsasl2 -p /sbin/ldconfig
|
|
|
|
%postun -n libsasl2 -p /sbin/ldconfig
|
2024-01-05 21:37:54 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 21:37:54 +01:00
|
|
|
%dir %{_sysconfdir}/sasl2
|
2024-01-05 21:37:54 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/saslauthd
|
2024-01-05 21:37:54 +01:00
|
|
|
%{_sbindir}/pluginviewer
|
|
|
|
%{_sbindir}/saslauthd
|
2024-01-05 21:37:54 +01:00
|
|
|
%{_sbindir}/sasldblistusers2
|
|
|
|
%{_sbindir}/saslpasswd2
|
2024-01-05 21:37:54 +01:00
|
|
|
%{_sbindir}/testsaslauthd
|
2024-01-05 21:37:54 +01:00
|
|
|
%{_unitdir}/saslauthd.service
|
|
|
|
%{_tmpfilesdir}/saslauthd.conf
|
2024-01-05 21:37:54 +01:00
|
|
|
%{_mandir}/man8/saslauthd.*
|
2024-01-05 21:37:54 +01:00
|
|
|
%{_mandir}/man8/pluginviewer.8*
|
|
|
|
%{_mandir}/man8/sasldblistusers2.8*
|
|
|
|
%{_mandir}/man8/saslpasswd2.8*
|
2024-01-05 21:37:54 +01:00
|
|
|
|
2024-01-05 21:37:54 +01:00
|
|
|
%files -n libsasl2
|
2024-01-05 21:37:54 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libsasl2.so.*
|
|
|
|
%dir %{_libdir}/sasl2
|
|
|
|
%{_libdir}/sasl2/*.so.*
|
|
|
|
%{_libdir}/sasl2/*.so
|
|
|
|
%{_libdir}/sasl2/*.la
|
2024-01-05 21:37:54 +01:00
|
|
|
%doc AUTHORS COPYING
|
2024-01-05 21:37:54 +01:00
|
|
|
|
2024-01-05 21:37:54 +01:00
|
|
|
%files -n libsasl2-devel
|
2024-01-05 21:37:54 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/sasl
|
|
|
|
%{_includedir}/sasl/*
|
|
|
|
%{_libdir}/*.la
|
|
|
|
%{_libdir}/*.so
|
2024-01-05 21:37:54 +01:00
|
|
|
%{_libdir}/pkgconfig/libsasl2.pc
|
2024-01-05 21:37:54 +01:00
|
|
|
%{_mandir}/man3/*
|
|
|
|
%doc doc/*.txt doc/*.html
|
2024-01-05 21:37:54 +01:00
|
|
|
%doc ChangeLog NEWS README
|
2024-01-05 21:37:54 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 21:37:54 +01:00
|
|
|
* Sat Apr 04 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.26-3mamba
|
|
|
|
- added patch to fix missing include in sasl.h (fixes ftbfs of kdepimlibs)
|
|
|
|
|
2024-01-05 21:37:54 +01:00
|
|
|
* Fri Feb 06 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.26-2mamba
|
|
|
|
- fix sysconfig file
|
|
|
|
- add /etc/sasl2 empty config directory
|
|
|
|
|
2024-01-05 21:37:54 +01:00
|
|
|
* Thu Feb 05 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.26-1mamba
|
|
|
|
- update to 2.1.26
|
|
|
|
- systemd support
|
|
|
|
|
2024-01-05 21:37:54 +01:00
|
|
|
* Mon Apr 28 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.25-3mamba
|
|
|
|
- rebuilt with --with-plugindir=%{_libdir}/sasl2 for x86_64
|
|
|
|
|
|
|
|
* Thu Apr 03 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.25-2mamba
|
|
|
|
- rebuilt with db 5.1 to fix version mismatch with postfix (with smtpd crash)
|
|
|
|
|
|
|
|
* Tue Apr 24 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.25-1mamba
|
|
|
|
- update to 2.1.25
|
|
|
|
|
|
|
|
* Thu Nov 11 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.23-2mamba
|
|
|
|
- rebuilt with openssl 1.0.0
|
|
|
|
|
|
|
|
* Wed Jun 10 2009 Automatic Build System <autodist@mambasoft.it> 2.1.23-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Jan 01 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.22-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Tue Jun 17 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.22-1mamba
|
|
|
|
- update to 2.1.22
|
|
|
|
- source package renamed to cyrus-sasl
|
|
|
|
|
|
|
|
* Fri Nov 04 2005 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 2.1.21-1qilnx
|
|
|
|
- update to version 2.1.21 by autospec
|
|
|
|
- CAN-2004-0884 security fix removed because merged upstream
|
|
|
|
|
|
|
|
* Thu Apr 14 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.1.19-5qilnx
|
|
|
|
- fixed security issue QSA-2005-051 (CAN-2004-0884).
|
|
|
|
(note: CAN-2005-0373 already fixed in the 2.1.19 version)
|
|
|
|
- do not package unneded files in the documentation
|
|
|
|
|
|
|
|
* Thu Apr 14 2005 Davide Madrisan <davide.madrisan@qilinux.it> 2.1.19-4qilnx
|
|
|
|
- removed unneded requirements in the specfile preamble
|
|
|
|
- own /usr/lib/sasl2, /usr/include/sasl
|
|
|
|
|
|
|
|
* Fri Dec 24 2004 Davide Madrisan <davide.madrisan@qilinux.it> 2.1.19-3qilnx
|
|
|
|
- rebuild with new libe2fs-devel, libkrb5-devel packages
|
|
|
|
- added missing %%post, %%postup scriptlets
|
|
|
|
|
|
|
|
* Mon Dec 13 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.19-2qilnx
|
|
|
|
- documentation and man3 moved to devel package
|
|
|
|
|
|
|
|
* Thu Oct 28 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.19-1qilnx
|
|
|
|
- new version build
|
|
|
|
- linked against libdb42
|
|
|
|
|
|
|
|
* Fri Nov 21 2003 Davide Madrisan <davide.madrisan@qilinux.it> 2.1.15-4qilnx
|
|
|
|
- added missing requirements; specfile updates; added documentation
|
|
|
|
|
|
|
|
* Fri Nov 21 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.15-3qilnx
|
|
|
|
- plugins moved to main package (%{_libdir}/libsasl/*.{so,la})
|
|
|
|
|
|
|
|
* Fri Nov 14 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.15-2qilnx
|
|
|
|
- added more configure options (ntlm)
|
|
|
|
|
|
|
|
* Wed Sep 10 2003 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.15-1qilnx
|
|
|
|
- rebuilt with new version
|
|
|
|
- added pam support and sasl package for sasl authentication daemon
|
|
|
|
|
|
|
|
* Thu May 08 2003 Alessandro Ramazzina <alessandro.ramazzina@qinet.it> 2.1.13-1qilnx
|
|
|
|
- creation of libsasl package
|