SPECS: cyrus-sasl.spec - added bcond cryptedpw allowing storing cr...

romke romke at pld-linux.org
Thu Jul 21 00:35:52 CEST 2005


Author: romke                        Date: Wed Jul 20 22:35:52 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added bcond cryptedpw allowing storing crypted passwd in database (mysql or pgsql)

---- Files affected:
SPECS:
   cyrus-sasl.spec (1.139 -> 1.140) 

---- Diffs:

================================================================
Index: SPECS/cyrus-sasl.spec
diff -u SPECS/cyrus-sasl.spec:1.139 SPECS/cyrus-sasl.spec:1.140
--- SPECS/cyrus-sasl.spec:1.139	Fri Jul  8 20:06:23 2005
+++ SPECS/cyrus-sasl.spec	Thu Jul 21 00:35:47 2005
@@ -9,11 +9,16 @@
 %bcond_without	mysql	# don't build MySQL pluggin
 %bcond_without	pgsql	# do not build PostgreSQL pluggin
 %bcond_without	sqlite	# do not enable sqlite plugin
+%bcond_with	cryptedpw # if you keep crypted passwords in your *sql
 %bcond_with	opie	# enable opie plugin
 %bcond_with	srp	# build srp pluggin
 %bcond_with	pwcheck	# build pwcheck helper (deprecated)
 %bcond_with	x509	# build x509 plugin (no sources in package???)
 #
+%if !%{with mysql} && !%{with pgsql}
+%undefine with_cryptedpw
+%endif
+
 Summary:	The SASL library API for the Cyrus mail system
 Summary(pl):	Biblioteka Cyrus SASL
 Summary(pt_BR):	Implementaçăo da API SASL
@@ -35,6 +40,8 @@
 Patch3:		%{name}-split-sql.patch
 Patch4:		%{name}-opie.patch
 Patch5:		%{name}-gcc4.patch
+# Adapted from http://frost.ath.cx/software/cyrus-sasl-patches/dist/2.1.19/cyrus-sasl-2.1.19-checkpw.c+sql.c.patch
+Patch6:		%{name}-cryptedpw.patch
 URL:		http://asg.web.cmu.edu/sasl/
 BuildRequires:	autoconf >= 2.54
 BuildRequires:	automake
@@ -415,6 +422,9 @@
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%if %{with cryptedpw}
+%patch6 -p1
+%endif
 
 cd doc
 echo "cyrus-sasl complies with the following RFCs:" > rfc-compliance
@@ -442,6 +452,7 @@
 cd ..
 
 %configure \
+	%{?with_cryptedpw: LDFLAGS=-lcrypt} \
 	--disable-krb4 \
 	%{!?with_gssapi: --disable-gssapi} \
 	%{?with_gssapi: --enable-gssapi --with-gss_impl=heimdal} \
@@ -638,6 +649,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.140  2005/07/20 22:35:47  romke
+- added bcond cryptedpw allowing storing crypted passwd in database (mysql or pgsql)
+
 Revision 1.139  2005/07/08 18:06:23  arekm
 - BR heimdal-devel >= 0.7
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/cyrus-sasl.spec?r1=1.139&r2=1.140&f=u




More information about the pld-cvs-commit mailing list