]> git.pld-linux.org Git - packages/cyrus-sasl.git/blobdiff - cyrus-sasl.spec
- rel 8; build with openssl 1.1.1
[packages/cyrus-sasl.git] / cyrus-sasl.spec
index 3508c59835c0bf01ae75d516b0e7ddacd015197a..7730c64764bf8dabc0596ab3d348ff8d0c300d45 100644 (file)
@@ -3,8 +3,9 @@
 %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)
@@ -23,7 +24,7 @@ Summary(ru.UTF-8):    Библиотека Cyrus SASL
 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
@@ -56,6 +57,8 @@ Patch19:      0034-fix_dovecot_authentication.patch
 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
@@ -296,6 +299,18 @@ Cyrus SASL MySQL plugin.
 %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
@@ -520,6 +535,8 @@ Wtyczka Nagiosa do sprawdzania działania saslauthd.
 %patch20 -p1
 %patch21 -p1
 %patch22 -p1
+%patch23 -p1
+%patch24 -p1
 
 cd doc
 echo "cyrus-sasl complies with the following RFCs:" > rfc-compliance
@@ -553,29 +570,30 @@ cd ..
 %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}
@@ -715,6 +733,12 @@ fi
 %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*
This page took 0.077689 seconds and 4 git commands to generate.