226 lines
7.4 KiB
RPMSpec
226 lines
7.4 KiB
RPMSpec
|
Name: cyrus-sasl2125
|
||
|
Version: 2.1.25
|
||
|
Release: 4mamba
|
||
|
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/
|
||
|
Source0: ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-%{version}.tar.gz
|
||
|
Source1: saslauthd-initscript
|
||
|
Patch0: cyrus-sasl-2.1.21-gcc4.patch
|
||
|
Patch1: cyrus-sasl-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
|
||
|
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
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%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.
|
||
|
|
||
|
%package -n libsasl2125
|
||
|
Group: System/Libraries
|
||
|
Summary: Libraries for SASL, the Simple Authentication and Security Layer
|
||
|
|
||
|
%description -n libsasl2125
|
||
|
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.
|
||
|
|
||
|
%package -n libsasl2125-devel
|
||
|
Group: Development/Libraries
|
||
|
Summary: Static libraries and headers for %{name}
|
||
|
Requires: libsasl2125 = %{version}-%{release}
|
||
|
|
||
|
%description -n libsasl2125-devel
|
||
|
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}
|
||
|
%patch0 -p1
|
||
|
#%patch1 -p1
|
||
|
%patch2 -p0
|
||
|
%patch3 -p0
|
||
|
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 \
|
||
|
--with-saslauthd=/var/run/saslauthd \
|
||
|
--with-plugindir=%{_libdir}/sasl2125 \
|
||
|
--cache-file= \
|
||
|
--with-bdb-incdir=%{_includedir}/db51
|
||
|
|
||
|
make
|
||
|
|
||
|
%install
|
||
|
[ %{buildroot} != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall \
|
||
|
sasldir=%{_libdir}/sasl2125
|
||
|
|
||
|
install -D %{SOURCE1} %{buildroot}%{_initrddir}/saslauthd
|
||
|
# install man pages in the expected location, even if they are
|
||
|
# pre-formatted.
|
||
|
#mv %{buildroot}%{_mandir}/cat8/* %{buildroot}%{_mandir}/man8/
|
||
|
#rm -fr %{buildroot}%{_mandir}/cat8/
|
||
|
|
||
|
install -d %{buildroot}/var/run/saslauthd
|
||
|
|
||
|
%clean
|
||
|
[ %{buildroot} != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post
|
||
|
# new install
|
||
|
if [ $1 -eq 1 ]; then
|
||
|
/sbin/chkconfig --add saslauthd
|
||
|
%{_initrddir}/saslauthd start
|
||
|
fi
|
||
|
exit 0
|
||
|
|
||
|
%preun
|
||
|
# erase
|
||
|
if [ $1 -eq 0 ]; then
|
||
|
%{_initrddir}/saslauthd stop
|
||
|
/sbin/chkconfig --del saslauthd
|
||
|
fi
|
||
|
exit 0
|
||
|
|
||
|
%postun
|
||
|
# upgrade
|
||
|
if [ $1 -eq 1 ]; then
|
||
|
%{_initrddir}/saslauthd restart
|
||
|
fi
|
||
|
exit 0
|
||
|
|
||
|
%post -n libsasl2125 -p /sbin/ldconfig
|
||
|
%postun -n libsasl2125 -p /sbin/ldconfig
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%attr(0755,root,root) %{_initrddir}/saslauthd
|
||
|
%{_sbindir}/pluginviewer
|
||
|
%{_sbindir}/saslauthd
|
||
|
%{_sbindir}/testsaslauthd
|
||
|
%{_sbindir}/sasldblistusers2
|
||
|
%{_sbindir}/saslpasswd2
|
||
|
%dir %{_localstatedir}/run/saslauthd
|
||
|
%{_mandir}/man8/*
|
||
|
|
||
|
%files -n libsasl2125
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/libsasl2.so.*
|
||
|
%dir %{_libdir}/sasl2125
|
||
|
%{_libdir}/sasl2125/*.so.*
|
||
|
%{_libdir}/sasl2125/*.so
|
||
|
%{_libdir}/sasl2125/*.la
|
||
|
%doc AUTHORS COPYING
|
||
|
|
||
|
%files -n libsasl2125-devel
|
||
|
%defattr(-,root,root)
|
||
|
%dir %{_includedir}/sasl
|
||
|
%{_includedir}/sasl/*
|
||
|
%{_libdir}/*.la
|
||
|
%{_libdir}/*.so
|
||
|
%{_mandir}/man3/*
|
||
|
%doc doc/*.txt doc/*.html
|
||
|
%doc ChangeLog NEWS README
|
||
|
|
||
|
%changelog
|
||
|
* Thu Feb 05 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.25-4mamba
|
||
|
- legacy package
|
||
|
|
||
|
* 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
|