%bcond_without 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
-%bcond_without mysql # don't build MySQL pluggin
-%bcond_without pgsql # do not build PostgreSQL pluggin
+%bcond_without mysql # don't build MySQL plugin
+%bcond_without ntlm # do not build NTLM plugin
+%bcond_without pgsql # do not build PostgreSQL plugin
%bcond_without sqlite # do not enable sqlite 2 plugin
%bcond_without sqlite3 # do not enable sqlite 3 plugin
%bcond_with authlib # enable courier-authlib (i wasn't able to test it)
Summary(uk.UTF-8): Бібліотека Cyrus SASL
Name: cyrus-sasl
Version: 2.1.26
-Release: 1
+Release: 8
License: distributable
Group: Libraries
Source0: ftp://ftp.cyrusimap.org/cyrus-sasl/%{name}-%{version}.tar.gz
Patch20: %{name}-auxprop.patch
Patch21: 0030-dont_use_la_files_for_opening_plugins.patch
Patch22: %{name}-stddef.patch
+Patch23: http://sourceforge.net/projects/miscellaneouspa/files/glibc217/cyrus-sasl-2.1.26-glibc217-crypt.diff
+Patch24: cyrus-sasl-2.1.27-openssl-1.1.0.patch
URL: http://asg.web.cmu.edu/sasl/
BuildRequires: autoconf >= 2.54
BuildRequires: automake >= 1:1.7
%description mysql -l pl.UTF-8
Wtyczka MySQL do Cyrus SASL.
+%package ntlm
+Summary: Cyrus SASL NTLM plugin
+Summary(pl.UTF-8): Wtyczka NTLM do Cyrus SASL
+Group: Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description ntlm
+Cyrus SASL NTLM plugin.
+
+%description ntlm -l pl.UTF-8
+Wtyczka NTLM do Cyrus SASL.
+
%package otp
Summary: OTP Cyrus SASL plugin
Summary(pl.UTF-8): Wtyczka OTP do Cyrus SASL
%patch20 -p1
%patch21 -p1
%patch22 -p1
+%patch23 -p1
+%patch24 -p1
cd doc
echo "cyrus-sasl complies with the following RFCs:" > rfc-compliance
%configure \
%{?with_cryptedpw: LDFLAGS=-lcrypt} \
--disable-krb4 \
- %{!?with_gssapi: --disable-gssapi} \
- %{?with_gssapi: --enable-gssapi --with-gss_impl=heimdal} \
+ %{!?with_gssapi:--disable-gssapi} \
+ %{?with_gssapi:--enable-gssapi --with-gss_impl=heimdal} \
--enable-login \
--enable-sample \
--enable-httpform \
--enable-sql \
--enable-passdss \
- %{?with_srp: --enable-srp} \
+ %{?with_srp:--enable-srp} \
--enable-static \
--with-plugindir=%{_libdir}/sasl2 \
--with-configdir=%{_sysconfdir} \
--with-dblib=berkeley \
--with-dbpath=/var/lib/sasl2/sasl.db \
%{?with_authlib:--with-authdaemond=/var/spool/authdaemon/socket} \
- %{?with_ldap: --with-ldap=%{_prefix}} \
- %{?with_ldap: --enable-ldapdb} \
- %{?with_mysql: --with-mysql=%{_prefix}} \
- %{?with_pgsql: --with-pgsql=%{_prefix}} \
- %{?with_sqlite: --with-sqlite=%{_prefix}} \
- %{?with_sqlite3: --with-sqlite3=%{_prefix}} \
- %{?with_opie: --with-opie=%{_prefix}} \
+ %{?with_ldap:--with-ldap=%{_prefix}} \
+ %{?with_ldap:--enable-ldapdb} \
+ %{?with_mysql:--with-mysql=%{_prefix}} \
+ %{?with_ntlm:--enable-ntlm} \
+ %{?with_pgsql:--with-pgsql=%{_prefix}} \
+ %{?with_sqlite:--with-sqlite=%{_prefix}} \
+ %{?with_sqlite3:--with-sqlite3=%{_prefix}} \
+ %{?with_opie:--with-opie=%{_prefix}} \
--with-pam \
- %{?with_pwcheck: --with-pwcheck=/var/lib/sasl2} \
+ %{?with_pwcheck:--with-pwcheck=/var/lib/sasl2} \
--with-saslauthd=/var/lib/sasl2
%{__make}
%attr(755,root,root) %{_libdir}/sasl2/libmysql.so*
%endif
+%if %{with ntlm}
+%files ntlm
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/sasl2/libntlm.so*
+%endif
+
%files otp
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/sasl2/libotp.so*