1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | %define _plugindir2 %{_libdir}/sasl2 |
---|
4 | |
---|
5 | Summary: The Cyrus SASL library. |
---|
6 | Summary(ja): Cyrus SASL ライブラリ |
---|
7 | Name: cyrus-sasl |
---|
8 | Version: 2.1.26 |
---|
9 | Release: 5%{?_dist_release} |
---|
10 | License: BSD with advertising |
---|
11 | Group: System Environment/Libraries |
---|
12 | URL: http://cyrusimap.org/ |
---|
13 | |
---|
14 | Source0: ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-%{version}.tar.gz |
---|
15 | Source4: saslauthd.init |
---|
16 | Source5: README.RPM |
---|
17 | Source9: saslauthd.sysconfig |
---|
18 | # |
---|
19 | Patch10: cyrus-sasl-2.1.22-db_bundle.patch |
---|
20 | Patch11: cyrus-sasl-2.1.25-no_rpath.patch |
---|
21 | Patch15: cyrus-sasl-2.1.20-saslauthd.conf-path.patch |
---|
22 | Patch24: cyrus-sasl-2.1.21-sizes.patch |
---|
23 | Patch44: cyrus-sasl-2.1.26-release-server_creds.patch |
---|
24 | # AM_CONFIG_HEADER is obsolete, use AC_CONFIG_HEADERS instead |
---|
25 | Patch45: cyrus-sasl-2.1.26-obsolete-macro.patch |
---|
26 | # missing size_t declaration in sasl.h |
---|
27 | Patch46: cyrus-sasl-2.1.26-size_t.patch |
---|
28 | # detect gsskrb5_register_acceptor_identity macro (#976538) |
---|
29 | Patch48: cyrus-sasl-2.1.26-keytab.patch |
---|
30 | Patch49: cyrus-sasl-2.1.26-md5global.patch |
---|
31 | # revert upstream commit 080e51c7fa0421eb2f0210d34cf0ac48a228b1e9 (#984079) |
---|
32 | # https://bugzilla.cyrusimap.org/show_bug.cgi?id=3480 |
---|
33 | Patch50: cyrus-sasl-2.1.26-revert-upstream-080e51c7fa0421eb2f0210d34cf0ac48a228b1e9.patch |
---|
34 | # improve configuration error message |
---|
35 | Patch52: cyrus-sasl-2.1.26-config-error.patch |
---|
36 | # Treat SCRAM-SHA-1/DIGEST-MD5 as more secure than PLAIN (#970718) |
---|
37 | Patch53: cyrus-sasl-2.1.26-prefer-SCRAM-SHA-1-over-PLAIN.patch |
---|
38 | |
---|
39 | Patch102: cyrus-sasl-2.1.26-configure.patch |
---|
40 | |
---|
41 | #security |
---|
42 | ## http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.26-CVE-2013-4122.patch?revision=1.1 |
---|
43 | Patch200: cyrus-sasl-2.1.26-CVE-2013-4122.patch |
---|
44 | |
---|
45 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
46 | BuildRequires: autoconf, automake, libtool |
---|
47 | # Note: berkeley db for sasl2, gdbm for sasl1. |
---|
48 | BuildRequires: libdb-devel |
---|
49 | BuildRequires: openssl-devel |
---|
50 | BuildRequires: pam-devel |
---|
51 | BuildRequires: libmysqlclient-devel |
---|
52 | BuildRequires: libpq-devel |
---|
53 | BuildRequires: openldap-devel |
---|
54 | BuildRequires: zlib-devel |
---|
55 | BuildRequires: pkgconfig |
---|
56 | BuildRequires: krb5-devel |
---|
57 | BuildRequires: groff |
---|
58 | Requires(post): /sbin/ldconfig, chkconfig |
---|
59 | Requires(postun): /sbin/ldconfig, chkconfig |
---|
60 | |
---|
61 | Vendor: Project Vine |
---|
62 | Distribution: Vine Linux |
---|
63 | |
---|
64 | %description |
---|
65 | The %{name} package contains the Cyrus implementation of SASL. |
---|
66 | SASL is the Simple Authentication and Security Layer, a method for |
---|
67 | adding authentication support to connection-based protocols. |
---|
68 | |
---|
69 | %package devel |
---|
70 | Summary: Files needed for developing applications with Cyrus SASL. |
---|
71 | Summary(ja): Cyrus SASL を用いるアプリケーションの開発に必要なファイル |
---|
72 | Group: Development/Libraries |
---|
73 | Requires: %{name} = %{version}-%{release} |
---|
74 | |
---|
75 | %description devel |
---|
76 | The %{name}-devel package contains files needed for developing and |
---|
77 | compiling applications which use the Cyrus SASL library. |
---|
78 | |
---|
79 | %package gssapi |
---|
80 | Summary: GSSAPI support for Cyrus SASL. |
---|
81 | Summary(ja): Cyrus SASL の GSSAPI 認証サポート |
---|
82 | Group: System Environment/Libraries |
---|
83 | Requires: %{name} = %{version}-%{release} |
---|
84 | |
---|
85 | %description gssapi |
---|
86 | The %{name}-gssapi package contains the Cyrus SASL plugins which |
---|
87 | support GSSAPI authentication. GSSAPI is commonly used for Kerberos |
---|
88 | authentication. |
---|
89 | |
---|
90 | %package plain |
---|
91 | Summary: PLAIN and LOGIN support for Cyrus SASL. |
---|
92 | Summary(ja): Cyrus SASL の PLAIN, LOGIN 認証サポート |
---|
93 | Group: System Environment/Libraries |
---|
94 | Requires: %{name} = %{version}-%{release} |
---|
95 | |
---|
96 | %description plain |
---|
97 | The %{name}-plain package contains the Cyrus SASL plugins which support |
---|
98 | PLAIN and LOGIN authentication schemes. |
---|
99 | |
---|
100 | %package md5 |
---|
101 | Summary: CRAM-MD5 and DIGEST-MD5 support for Cyrus SASL. |
---|
102 | Summary(ja): Cyrus SASL の CRAM-MD5, DIGEST-MD5 認証サポート |
---|
103 | Group: System Environment/Libraries |
---|
104 | Requires: %{name} = %{version}-%{release} |
---|
105 | |
---|
106 | %description md5 |
---|
107 | The %{name}-md5 package contains the Cyrus SASL plugins which support |
---|
108 | CRAM-MD5 and DIGEST-MD5 authentication schemes. |
---|
109 | |
---|
110 | %package ntlm |
---|
111 | Summary: NTLM support for Cyrus SASL. |
---|
112 | Summary(ja): Cyrus SASL の NTLM 認証サポート |
---|
113 | Group: System Environment/Libraries |
---|
114 | Requires: %{name} = %{version}-%{release} |
---|
115 | |
---|
116 | %description ntlm |
---|
117 | The %{name}-ntlm package contains the Cyrus SASL plugin which supports |
---|
118 | the NTLM authentication schemes. |
---|
119 | |
---|
120 | # This would more appropriately be named cyrus-sasl-auxprop-sql. |
---|
121 | %package sql |
---|
122 | Summary: SQL auxprop support for Cyrus SASL |
---|
123 | Summary(ja): Cyrus SASL の SQL auxprop サポート |
---|
124 | Group: System Environment/Libraries |
---|
125 | Requires: %{name} = %{version}-%{release} |
---|
126 | |
---|
127 | %description sql |
---|
128 | The %{name}-sql package contains the Cyrus SASL plugin which supports |
---|
129 | using a RDBMS for storing shared secrets. |
---|
130 | |
---|
131 | # This was *almost* named cyrus-sasl-auxprop-ldapdb, but that's a lot of typing. |
---|
132 | %package ldap |
---|
133 | Summary: LDAP auxprop support for Cyrus SASL |
---|
134 | Summary(ja): Cyrus SASL の LDAP auxprop サポート |
---|
135 | Group: System Environment/Libraries |
---|
136 | Requires: %{name} = %{version}-%{release} |
---|
137 | |
---|
138 | %description ldap |
---|
139 | The %{name}-ldap package contains the Cyrus SASL plugin which supports using |
---|
140 | a directory server, accessed using LDAP, for storing shared secrets. |
---|
141 | |
---|
142 | %package scram |
---|
143 | Summary: SCRAM auxprop support for Cyrus SASL |
---|
144 | Summary(ja): Cyrus SASL の SCRAM auxprop サポート |
---|
145 | Group: System Environment/Libraries |
---|
146 | Requires: %{name} = %{version}-%{release} |
---|
147 | |
---|
148 | %description scram |
---|
149 | The %{name}-scram package contains the Cyrus SASL plugin which supports |
---|
150 | the SCRAM authentication scheme. |
---|
151 | |
---|
152 | %package gs2 |
---|
153 | Summary: GS2 support for Cyrus SASL |
---|
154 | Summary(ja): Cyrus SASL の GS2 認証サポート |
---|
155 | Group: System Environment/Libraries |
---|
156 | Requires: %{name} = %{version}-%{release} |
---|
157 | |
---|
158 | %description gs2 |
---|
159 | The %{name}-gs2 package contains the Cyrus SASL plugin which supports |
---|
160 | the GS2 authentication scheme. |
---|
161 | |
---|
162 | ## to build compat32 for x86_64 architecture support |
---|
163 | %package -n compat32-%{name} |
---|
164 | Summary: The Cyrus SASL library. |
---|
165 | Summary(ja): Cyrus SASL ライブラリ |
---|
166 | Group: System Environment/Libraries |
---|
167 | |
---|
168 | %description -n compat32-%{name} |
---|
169 | The %{name} package contains the Cyrus implementation of SASL. |
---|
170 | SASL is the Simple Authentication and Security Layer, a method for |
---|
171 | adding authentication support to connection-based protocols. |
---|
172 | |
---|
173 | %package -n compat32-%{name}-devel |
---|
174 | Summary: Files needed for developing applications with Cyrus SASL. |
---|
175 | Summary(ja): Cyrus SASL を用いるアプリケーションの開発に必要なファイル |
---|
176 | Group: Development/Libraries |
---|
177 | Requires: compat32-%{name} = %{version}-%{release} |
---|
178 | |
---|
179 | %description -n compat32-%{name}-devel |
---|
180 | The %{name}-devel package contains files needed for developing and |
---|
181 | compiling applications which use the Cyrus SASL library. |
---|
182 | |
---|
183 | %package -n compat32-%{name}-gssapi |
---|
184 | Summary: GSSAPI support for Cyrus SASL. |
---|
185 | Summary(ja): Cyrus SASL の GSSAPI 認証サポート |
---|
186 | Group: System Environment/Libraries |
---|
187 | Requires: compat32-%{name} = %{version}-%{release} |
---|
188 | |
---|
189 | %description -n compat32-%{name}-gssapi |
---|
190 | The %{name}-gssapi package contains the Cyrus SASL plugins which |
---|
191 | support GSSAPI authentication. GSSAPI is commonly used for Kerberos |
---|
192 | authentication. |
---|
193 | |
---|
194 | %package -n compat32-%{name}-plain |
---|
195 | Summary: PLAIN and LOGIN support for Cyrus SASL. |
---|
196 | Summary(ja): Cyrus SASL の PLAIN, LOGIN 認証サポート |
---|
197 | Group: System Environment/Libraries |
---|
198 | Requires: compat32-%{name} = %{version}-%{release} |
---|
199 | |
---|
200 | %description -n compat32-%{name}-plain |
---|
201 | The %{name}-plain package contains the Cyrus SASL plugins which support |
---|
202 | PLAIN and LOGIN authentication schemes. |
---|
203 | |
---|
204 | %package -n compat32-%{name}-md5 |
---|
205 | Summary: CRAM-MD5 and DIGEST-MD5 support for Cyrus SASL. |
---|
206 | Summary(ja): Cyrus SASL の CRAM-MD5, DIGEST-MD5 認証サポート |
---|
207 | Group: System Environment/Libraries |
---|
208 | Requires: compat32-%{name} = %{version}-%{release} |
---|
209 | |
---|
210 | %description -n compat32-%{name}-md5 |
---|
211 | The %{name}-md5 package contains the Cyrus SASL plugins which support |
---|
212 | CRAM-MD5 and DIGEST-MD5 authentication schemes. |
---|
213 | |
---|
214 | %package -n compat32-%{name}-ntlm |
---|
215 | Summary: NTLM support for Cyrus SASL. |
---|
216 | Summary(ja): Cyrus SASL の NTLM 認証サポート |
---|
217 | Group: System Environment/Libraries |
---|
218 | Requires: compat32-%{name} = %{version}-%{release} |
---|
219 | |
---|
220 | %description -n compat32-%{name}-ntlm |
---|
221 | The %{name}-ntlm package contains the Cyrus SASL plugin which supports |
---|
222 | the NTLM authentication schemes. |
---|
223 | |
---|
224 | # %package -n compat32-%{name}-sql |
---|
225 | # Group: System Environment/Libraries |
---|
226 | # Summary: SQL auxprop support for Cyrus SASL |
---|
227 | |
---|
228 | # %description -n compat32-%{name}-sql |
---|
229 | # The %{name}-sql package contains the Cyrus SASL plugin which supports |
---|
230 | # using a RDBMS for storing shared secrets. |
---|
231 | |
---|
232 | %package -n compat32-%{name}-ldap |
---|
233 | Summary: LDAP auxprop support for Cyrus SASL |
---|
234 | Summary(ja): Cyrus SASL の LDAP auxprop サポート |
---|
235 | Group: System Environment/Libraries |
---|
236 | Requires: compat32-%{name} = %{version}-%{release} |
---|
237 | |
---|
238 | %description -n compat32-%{name}-ldap |
---|
239 | The %{name}-ldap package contains the Cyrus SASL plugin which supports using |
---|
240 | a directory server, accessed using LDAP, for storing shared secrets. |
---|
241 | |
---|
242 | %package -n compat32-%{name}-scram |
---|
243 | Summary: SCRAM auxprop support for Cyrus SASL |
---|
244 | Summary(ja): Cyrus SASL の SCRAM auxprop サポート |
---|
245 | Group: System Environment/Libraries |
---|
246 | Requires: compat32-%{name} = %{version}-%{release} |
---|
247 | |
---|
248 | %description -n compat32-%{name}-scram |
---|
249 | The %{name}-scram package contains the Cyrus SASL plugin which supports |
---|
250 | the SCRAM authentication scheme. |
---|
251 | |
---|
252 | %package -n compat32-%{name}-gs2 |
---|
253 | Summary: GS2 support for Cyrus SASL |
---|
254 | Summary(ja): Cyrus SASL の GS2 認証サポート |
---|
255 | Group: System Environment/Libraries |
---|
256 | Requires: compat32-%{name} = %{version}-%{release} |
---|
257 | |
---|
258 | %description -n compat32-%{name}-gs2 |
---|
259 | The %{name}-gs2 package contains the Cyrus SASL plugin which supports |
---|
260 | the GS2 authentication scheme. |
---|
261 | |
---|
262 | %prep |
---|
263 | %setup -q |
---|
264 | chmod -x doc/*.html |
---|
265 | chmod -x include/*.h |
---|
266 | #patch10 -p1 -b .db_bundle |
---|
267 | %patch11 -p1 -b .no_rpath |
---|
268 | %patch15 -p1 -b .path |
---|
269 | %patch24 -p1 -b .sizes |
---|
270 | %patch44 -p1 -b .release-server_creds |
---|
271 | %patch45 -p1 -b .obsolete-macro |
---|
272 | %patch46 -p1 -b .size_t |
---|
273 | %patch48 -p1 -b .keytab |
---|
274 | %patch49 -p1 -b .md5global.h |
---|
275 | %patch50 -p1 -b .gssapi |
---|
276 | %patch52 -p1 -b .configerr |
---|
277 | %patch53 -p1 -b .sha1vsplain |
---|
278 | |
---|
279 | %patch102 -p1 -b .configure |
---|
280 | |
---|
281 | %patch200 -p1 -b .CVE-2013-4122 |
---|
282 | |
---|
283 | # FIXME - we remove these files directly so that we can avoid using the -f |
---|
284 | # flag, which has a nasty habit of overwriting files like COPYING. |
---|
285 | rm -f config/config.guess config/config.sub |
---|
286 | rm -f config/ltconfig config/ltmain.sh config/libtool.m4 |
---|
287 | rm -fr autom4te.cache |
---|
288 | libtoolize -c |
---|
289 | aclocal -I config -I cmulocal |
---|
290 | automake -a -c |
---|
291 | autoheader |
---|
292 | autoconf |
---|
293 | |
---|
294 | pushd saslauthd |
---|
295 | rm -f config/config.guess config/config.sub |
---|
296 | rm -f config/ltconfig config/ltmain.sh config/libtool.m4 |
---|
297 | rm -fr autom4te.cache |
---|
298 | libtoolize -c |
---|
299 | aclocal -I config -I ../cmulocal -I ../config |
---|
300 | automake -a -c |
---|
301 | autoheader |
---|
302 | autoconf |
---|
303 | popd |
---|
304 | |
---|
305 | %build |
---|
306 | CFLAGS="$RPM_OPT_FLAGS -fPIC"; export CFLAGS |
---|
307 | |
---|
308 | # Find OpenSSL. |
---|
309 | LIBS="-lcrypt"; export LIBS |
---|
310 | if pkg-config openssl ; then |
---|
311 | CPPFLAGS="`pkg-config --cflags-only-I openssl` $CPPFLAGS"; export CPPFLAGS |
---|
312 | CFLAGS="`pkg-config --cflags openssl` $CFLAGS"; export CFLAGS |
---|
313 | LDFLAGS="`pkg-config --libs-only-L openssl` $LDFLAGS"; export LDFLAGS |
---|
314 | fi |
---|
315 | |
---|
316 | # Find the SQL libraries used needed by the SQL auxprop plugin. |
---|
317 | mysql_config=mysql_config |
---|
318 | pg_config=pg_config |
---|
319 | SQL_CFLAGS=`${mysql_config} --cflags`" -I"`${pg_config} --includedir` |
---|
320 | SQL_LIBS=`${mysql_config} --libs`" -L"`${pg_config} --libdir`" -lpq" |
---|
321 | SQL_CFLAGS=`eval echo "$SQL_CFLAGS" | sed -e 's,-I%{_includedir}[^/],,g' -e 's,-I%{_includedir}$,,g' -e 's,[[:blank:]]+, ,g'` |
---|
322 | SQL_LIBS=`eval echo "$SQL_LIBS" | sed -e 's,-L%{_libdir}[^/],,g' -e 's,-L%{_libdir}$,,g' -e 's,[[:blank:]]+, ,g'` |
---|
323 | SQL_LDFLAGS=`eval echo "$SQL_LIBS" | sed -e 's,-[^L][^ ]*,,g'` |
---|
324 | echo $SQL_LDFLAGS |
---|
325 | SQL_LIBS=`eval echo "$SQL_LIBS" | sed -e 's,-[^l][^ ]*,,g'` |
---|
326 | echo $SQL_LIBS |
---|
327 | |
---|
328 | cleanup_flags() { |
---|
329 | sed -r -e 's,-D_GNU_SOURCE(=[^[:blank:]]+)?,,g' \ |
---|
330 | -e 's,-D_FILE_OFFSET_BITS=[[:digit:]]+,,g' \ |
---|
331 | -e 's,-D_LARGEFILE_SOURCE(=[^[:blank:]]+)?,,g' \ |
---|
332 | -e 's,[[:blank:]]+, ,g' |
---|
333 | } |
---|
334 | CFLAGS=`echo $CFLAGS $SQL_CFLAGS | cleanup_flags`; export CFLAGS |
---|
335 | CPPFLAGS=`echo $CPPFLAGS $SQL_CFLAGS | cleanup_flags`; export CPPFLAGS |
---|
336 | LDFLAGS=`echo $LDFLAGS $SQL_LDFLAGS | cleanup_flags`; export LDFLAGS |
---|
337 | |
---|
338 | %configure \ |
---|
339 | --disable-static --enable-shared --disable-java \ |
---|
340 | --with-plugindir=%{_plugindir2}:%{_sysconfdir}/sasl2 \ |
---|
341 | --disable-krb4 \ |
---|
342 | --with-rc4 \ |
---|
343 | --with-dblib=berkeley \ |
---|
344 | --with-bdb=db \ |
---|
345 | --with-saslauthd=/var/run/saslauthd --without-pwcheck \ |
---|
346 | --with-ldap \ |
---|
347 | --with-devrandom=/dev/urandom \ |
---|
348 | --enable-anon \ |
---|
349 | --enable-cram \ |
---|
350 | --enable-digest \ |
---|
351 | --enable-ntlm \ |
---|
352 | --enable-plain \ |
---|
353 | --enable-login \ |
---|
354 | --disable-otp \ |
---|
355 | --enable-ldapdb \ |
---|
356 | --enable-sql --with-mysql=%{_prefix} --with-pgsql=%{_prefix} \ |
---|
357 | --without-sqlite \ |
---|
358 | "$@" |
---|
359 | # --enable-auth-sasldb -- EXPERIMENTAL |
---|
360 | make %{?_smp_mflags} sasldir=%{_plugindir2} |
---|
361 | make %{?_smp_mflags} -C saslauthd testsaslauthd |
---|
362 | make -C sample |
---|
363 | |
---|
364 | %install |
---|
365 | test "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROOT |
---|
366 | make install DESTDIR=$RPM_BUILD_ROOT sasldir=%{_plugindir2} |
---|
367 | make install DESTDIR=$RPM_BUILD_ROOT sasldir=%{_plugindir2} -C plugins |
---|
368 | |
---|
369 | install -m755 -d $RPM_BUILD_ROOT%{_bindir} |
---|
370 | ./libtool --tag=CC --mode=install \ |
---|
371 | install -m755 sample/client $RPM_BUILD_ROOT%{_bindir}/sasl2-sample-client |
---|
372 | ./libtool --tag=CC --mode=install \ |
---|
373 | install -m755 sample/server $RPM_BUILD_ROOT%{_bindir}/sasl2-sample-server |
---|
374 | ./libtool --tag=CC --mode=install \ |
---|
375 | install -m755 saslauthd/testsaslauthd $RPM_BUILD_ROOT%{_sbindir}/testsaslauthd |
---|
376 | ./libtool --tag=CC --mode=install \ |
---|
377 | install -m755 utils/dbconverter-2 $RPM_BUILD_ROOT%{_sbindir}/dbconverter-2 |
---|
378 | |
---|
379 | # Install the saslauthd mdoc page in the expected location. Sure, it's not |
---|
380 | # really a man page, but groff seems to be able to cope with it. |
---|
381 | install -m755 -d $RPM_BUILD_ROOT%{_mandir}/man8/ |
---|
382 | install -m644 saslauthd/saslauthd.mdoc $RPM_BUILD_ROOT%{_mandir}/man8/saslauthd.8 |
---|
383 | |
---|
384 | # Create the saslauthd listening directory. |
---|
385 | install -m755 -d $RPM_BUILD_ROOT/var/run/saslauthd |
---|
386 | |
---|
387 | # Install the init script for saslauthd and the init script's config file. |
---|
388 | install -m755 -d $RPM_BUILD_ROOT/etc/rc.d/init.d $RPM_BUILD_ROOT/etc/sysconfig |
---|
389 | install -m755 -p %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/saslauthd |
---|
390 | install -m644 -p %{SOURCE9} $RPM_BUILD_ROOT/etc/sysconfig/saslauthd |
---|
391 | |
---|
392 | # Install the config dirs if they're not already there. |
---|
393 | install -m755 -d $RPM_BUILD_ROOT/%{_sysconfdir}/sasl2 |
---|
394 | install -m755 -d $RPM_BUILD_ROOT/%{_plugindir2} |
---|
395 | |
---|
396 | # Remove unpackaged files from the buildroot. |
---|
397 | rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/libotp.* |
---|
398 | rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/*.a |
---|
399 | rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/*.la |
---|
400 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
401 | rm -f $RPM_BUILD_ROOT%{_mandir}/cat8/saslauthd.8 |
---|
402 | |
---|
403 | %clean |
---|
404 | test "$RPM_BUILD_ROOT" != "/" && rm -rf $RPM_BUILD_ROOT |
---|
405 | |
---|
406 | %post |
---|
407 | /sbin/ldconfig |
---|
408 | /sbin/chkconfig --add saslauthd |
---|
409 | |
---|
410 | %preun |
---|
411 | if [ $1 = 0 ] ; then |
---|
412 | /sbin/chkconfig --del saslauthd |
---|
413 | fi |
---|
414 | |
---|
415 | %postun |
---|
416 | /sbin/ldconfig |
---|
417 | if [ $1 != 0 ] ; then |
---|
418 | /sbin/service saslauthd condrestart 2>&1 > /dev/null |
---|
419 | fi |
---|
420 | |
---|
421 | %if %{build_compat32} |
---|
422 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
423 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
424 | %endif |
---|
425 | |
---|
426 | %files |
---|
427 | %defattr(-,root,root) |
---|
428 | %doc AUTHORS COPYING NEWS README doc/*.html |
---|
429 | %doc $RPM_SOURCE_DIR/README.RPM |
---|
430 | %dir %{_sysconfdir}/sasl2 |
---|
431 | %{_libdir}/libsasl*.so.* |
---|
432 | %dir %{_plugindir2}/ |
---|
433 | %{_plugindir2}/*anonymous*.so* |
---|
434 | %{_plugindir2}/*sasldb*.so* |
---|
435 | %{_mandir}/man8/* |
---|
436 | %{_sbindir}/dbconverter-2 |
---|
437 | %{_sbindir}/saslpasswd2 |
---|
438 | %{_sbindir}/sasldblistusers2 |
---|
439 | %{_sbindir}/pluginviewer |
---|
440 | %{_sbindir}/saslauthd |
---|
441 | %{_sbindir}/testsaslauthd |
---|
442 | %config(noreplace) /etc/sysconfig/saslauthd |
---|
443 | %config /etc/rc.d/init.d/saslauthd |
---|
444 | /var/run/saslauthd |
---|
445 | |
---|
446 | %files gssapi |
---|
447 | %defattr(-,root,root) |
---|
448 | %{_plugindir2}/*gssapi*.so* |
---|
449 | |
---|
450 | %files plain |
---|
451 | %defattr(-,root,root) |
---|
452 | %{_plugindir2}/*plain*.so* |
---|
453 | %{_plugindir2}/*login*.so* |
---|
454 | |
---|
455 | %files md5 |
---|
456 | %defattr(-,root,root) |
---|
457 | %{_plugindir2}/*crammd5*.so* |
---|
458 | %{_plugindir2}/*digestmd5*.so* |
---|
459 | |
---|
460 | %files ntlm |
---|
461 | %defattr(-,root,root) |
---|
462 | %{_plugindir2}/*ntlm*.so* |
---|
463 | |
---|
464 | %files sql |
---|
465 | %defattr(-,root,root) |
---|
466 | %{_plugindir2}/*sql*.so* |
---|
467 | |
---|
468 | %files ldap |
---|
469 | %defattr(-,root,root) |
---|
470 | %{_plugindir2}/*ldapdb*.so* |
---|
471 | |
---|
472 | %files scram |
---|
473 | %defattr(-,root,root) |
---|
474 | %{_plugindir2}/libscram.so* |
---|
475 | |
---|
476 | %files gs2 |
---|
477 | %defattr(-,root,root) |
---|
478 | %{_plugindir2}/libgs2.so* |
---|
479 | |
---|
480 | %files devel |
---|
481 | %defattr(-,root,root) |
---|
482 | %doc doc/*.txt |
---|
483 | %defattr(-,root,root) |
---|
484 | %{_bindir}/sasl2-sample-client |
---|
485 | %{_bindir}/sasl2-sample-server |
---|
486 | %{_includedir}/* |
---|
487 | %{_libdir}/libsasl*.so |
---|
488 | %{_libdir}/pkgconfig/*.pc |
---|
489 | %{_mandir}/man3/* |
---|
490 | |
---|
491 | ## to build compat32 for x86_64 architecture support |
---|
492 | %if %{build_compat32} |
---|
493 | %files -n compat32-%{name} |
---|
494 | %defattr(-,root,root) |
---|
495 | %{_libdir}/libsasl*.so.* |
---|
496 | %dir %{_plugindir2}/ |
---|
497 | %{_plugindir2}/*anonymous*.so* |
---|
498 | %{_plugindir2}/*sasldb*.so* |
---|
499 | |
---|
500 | %files -n compat32-%{name}-gssapi |
---|
501 | %defattr(-,root,root) |
---|
502 | %{_plugindir2}/*gssapi*.so* |
---|
503 | |
---|
504 | %files -n compat32-%{name}-plain |
---|
505 | %defattr(-,root,root) |
---|
506 | %{_plugindir2}/*plain*.so* |
---|
507 | %{_plugindir2}/*login*.so* |
---|
508 | |
---|
509 | %files -n compat32-%{name}-md5 |
---|
510 | %defattr(-,root,root) |
---|
511 | %{_plugindir2}/*crammd5*.so* |
---|
512 | %{_plugindir2}/*digestmd5*.so* |
---|
513 | |
---|
514 | %files -n compat32-%{name}-ntlm |
---|
515 | %defattr(-,root,root) |
---|
516 | %{_plugindir2}/*ntlm*.so* |
---|
517 | |
---|
518 | # %files -n compat32-%{name}-sql |
---|
519 | # %defattr(-,root,root) |
---|
520 | # %{_plugindir2}/*sql*.so* |
---|
521 | |
---|
522 | %files -n compat32-%{name}-ldap |
---|
523 | %defattr(-,root,root) |
---|
524 | %{_plugindir2}/*ldapdb*.so* |
---|
525 | |
---|
526 | %files -n compat32-%{name}-scram |
---|
527 | %defattr(-,root,root) |
---|
528 | %{_plugindir2}/libscram.so* |
---|
529 | |
---|
530 | %files -n compat32-%{name}-gs2 |
---|
531 | %defattr(-,root,root) |
---|
532 | %{_plugindir2}/libgs2.so* |
---|
533 | |
---|
534 | %files -n compat32-%{name}-devel |
---|
535 | %defattr(-,root,root) |
---|
536 | %{_libdir}/libsasl*.so |
---|
537 | %endif |
---|
538 | |
---|
539 | |
---|
540 | %changelog |
---|
541 | * Mon Mar 21 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.26-5 |
---|
542 | - rebuilt with openssl-1.0.2g. |
---|
543 | |
---|
544 | * Sun Dec 14 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2.1.26-4 |
---|
545 | - built with libdb 5.3.28 |
---|
546 | - dropt Patch10 |
---|
547 | - added Patch44, 45, 49, 50, 52 and 53 |
---|
548 | - fixed typo of Require of compat32-cyrus-sasl-{scram, gs2} |
---|
549 | - fixed %%doc of cyrus-sasl and cyrus-sasl-devel |
---|
550 | - added Japanese summary |
---|
551 | |
---|
552 | * Sun Jul 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.26-3 |
---|
553 | - rebuild with VineSeed environment |
---|
554 | - change BuildRequires: libmysqlclient-devel instead of MySQL-devel |
---|
555 | - change BuildRequires: libpq-devel instead of postgresql-devel |
---|
556 | |
---|
557 | * Sat Feb 08 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.26-2 |
---|
558 | - add Patch46 (cyrus-sasl-2.1.26-size_t.patch) from fedora |
---|
559 | |
---|
560 | * Thu Jan 9 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 2.1.26-1 |
---|
561 | - update to 2.1.26 |
---|
562 | - drop sig file (Source1): upstream isn't release. |
---|
563 | - add cyrus-sasl-scram and cyrus-sasl-gs2 packages |
---|
564 | - add pkgconfig file in cyrus-sasl-devel package |
---|
565 | - fix License |
---|
566 | - update URL |
---|
567 | - update %%doc |
---|
568 | - drop SASLv1 |
---|
569 | - drop Source2,3 |
---|
570 | - drop Patch0-5 for SASLv1 patches |
---|
571 | - update patch from RHEL7 beta cyrus-sasl-2.1.26-12.1.el7 |
---|
572 | - no rpath patch (Patch11) |
---|
573 | - keytab patch (Patch28) |
---|
574 | - db4 patch (Patch100) |
---|
575 | - gcc44 patch (Patch101) |
---|
576 | - update CVE-2013-4122 patch (Patch200) from Gentoo Linux |
---|
577 | - update configure patch (Patch102) |
---|
578 | - drop unnecessary patch |
---|
579 | - automake 1.10 patch (Patch27) |
---|
580 | - upstream fixed |
---|
581 | - typo patch (Patch25) |
---|
582 | - digest commas patch (Patch26) |
---|
583 | |
---|
584 | * Mon Sep 16 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.1.23-11 |
---|
585 | - add patch200 for fix CVE-2013-4122 (NULL ptr. dereference) |
---|
586 | |
---|
587 | * Mon Aug 22 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.1.23-10 |
---|
588 | - add Vendor/Distri Tags |
---|
589 | |
---|
590 | * Mon Aug 22 2011 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.23-9 |
---|
591 | - fixed pam support. |
---|
592 | - fixed MySQL support. |
---|
593 | |
---|
594 | * Tue Apr 12 2011 Shu KONNO <owa@bg.wakwak.com> 2.1.23-8 |
---|
595 | - rebuilt with postgresql-9.0.3 |
---|
596 | |
---|
597 | * Tue Mar 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.1.23-7 |
---|
598 | - rebuild with krb5-libs-1.8.2 and openssl-1.0.0d |
---|
599 | |
---|
600 | * Tue Jan 11 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.23-6 |
---|
601 | - rebuild with openssl-1.0.0c |
---|
602 | - add BuildRequires: groff |
---|
603 | |
---|
604 | * Thu Feb 11 2010 NAKAMURA Kenta <kenta@vinelinux.org> 2.1.23-5 |
---|
605 | - rebuilt with db4-4.8 |
---|
606 | - updated Patch100: cyrus-sasl-2.1.22-db4.patch |
---|
607 | - added Patch101: cyrus-sasl-2.1.23-gcc44.patch |
---|
608 | |
---|
609 | * Sun Jul 05 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.1.23-4 |
---|
610 | - dropped compat32-%%{name}-sql |
---|
611 | |
---|
612 | * Sat Jul 04 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.1.23-3 |
---|
613 | - added compat32 subpackages |
---|
614 | |
---|
615 | * Fri May 22 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.23-2 |
---|
616 | - rebuilt with MySQL-5.1.34. |
---|
617 | |
---|
618 | * Mon May 18 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.1.23-1 |
---|
619 | - new upstream release with security fix (CVE-2009-0688) |
---|
620 | - add patch5 to fix CVE-2009-0688 issue in 1.5.28 side |
---|
621 | (No effect in Current VineSeed package) |
---|
622 | |
---|
623 | * Sun Jan 04 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.1.22-5 |
---|
624 | - rebuilt with openldap-2.4.11 |
---|
625 | |
---|
626 | * Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 2.1.22-4 |
---|
627 | - s/%%{name}-lib/%%{name}/ at requires of sql, ldap sub-packages |
---|
628 | |
---|
629 | * Sun Oct 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.1.22-3 |
---|
630 | - added gssapi subpackage |
---|
631 | |
---|
632 | * Fri Jun 20 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.1.22-2 |
---|
633 | - rebuilt against db-4.6.21 with Patch100 |
---|
634 | - import Patch27 from Fedora |
---|
635 | |
---|
636 | * Sat Apr 19 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.1.22-1vl5 |
---|
637 | - updated to 2.1.22 |
---|
638 | - added Patches from Fedora |
---|
639 | * Tue Jun 20 2006 Nalin Dahyabhai <nalin@redhat.com> 2.1.22-2 |
---|
640 | - fix a typo in sasl_client_start(3) (#196066) |
---|
641 | * Thu Apr 27 2006 Nalin Dahyabhai <nalin@redhat.com> 2.1.21-11 |
---|
642 | - add unapplied patch which makes the DIGEST-MD5 plugin omit the realm |
---|
643 | argument when the environment has $CYRUS_SASL_DIGEST_MD5_OMIT_REALM set |
---|
644 | to a non-zero value, for testing purposes |
---|
645 | - added subpackages for the ldapdb auxprop support |
---|
646 | - added --disable-static option to %%configure |
---|
647 | |
---|
648 | * Tue May 22 2007 NAKAMURA Kenta <kenta@vinelinux.org> 2.1.18-0vl8 |
---|
649 | - added Patch17: cyrus-sasl-2.1.18-openssl-098.patch |
---|
650 | - rebuilt with openssl-0.9.8 |
---|
651 | |
---|
652 | * Thu May 10 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.1.18-0vl7 |
---|
653 | - disable version 1 now (no VineSeed package require version 1) |
---|
654 | - enable ntlm subpackage now |
---|
655 | - rebuilt with new toolchain and db4-4.3.x |
---|
656 | |
---|
657 | * Sat Jul 1 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.1.18-0vl6 |
---|
658 | - rebuilt for VineSeed |
---|
659 | |
---|
660 | * Fri Apr 28 2006 IWAI, Masaharu <iwai@alib.jp> 2.1.18-0vl5 |
---|
661 | - SECURITY FIX for Vine 3.2: CVE-2006-1721 |
---|
662 | - add 23_CVE-2006-1721.diff ( Patch16 ) |
---|
663 | from Debian Sarge cyrus-sasl2_2.1.19-1.5sarge1.diff.gz |
---|
664 | |
---|
665 | * Mon Dec 26 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.18-0vl4 |
---|
666 | - rebuild for VineSeed |
---|
667 | |
---|
668 | * Sat Nov 27 2004 IKEDA Katsumi <ikeda@webmasters.gr.jp> 2.1.18-0vl3 |
---|
669 | - added security patch cyrus-sasl-CAN-2004-0884.patch for CAN-2004-0884 |
---|
670 | from Mandrakelinux. |
---|
671 | |
---|
672 | * Mon Oct 11 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.1.18-0vl2 |
---|
673 | - rebuilt with db4-4.2.52 |
---|
674 | |
---|
675 | * Thu Aug 19 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.18-0vl1 |
---|
676 | - new upstream release |
---|
677 | - rebuild with openssl-0.9.7d |
---|
678 | - import some patch from fedora package |
---|
679 | |
---|
680 | * Sun Nov 23 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.15-6vl1 |
---|
681 | - new upstream release |
---|
682 | - remove prereq initscripts |
---|
683 | - merged with fedora package |
---|
684 | * Thu Oct 23 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.15-6 |
---|
685 | - use /dev/urandom instead of /dev/random for SASL2 (docs indicate that this is |
---|
686 | safe if you aren't using OTP or SRP, and we build neither); SASL1 appears to |
---|
687 | use it to seed the libc RNG only (#103378) |
---|
688 | * Mon Oct 20 2003 Nalin Dahyabhai <nalin@redhat.com> |
---|
689 | - obey RPM_OPT_FLAGS again when krb5_prefix != %%{_prefix} |
---|
690 | * Fri Oct 17 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.15-5 |
---|
691 | - install saslauthd's mdoc page instead of the pre-formatted man page, which |
---|
692 | would get formatted again |
---|
693 | * Mon Sep 15 2003 Nalin Dahyabhai <nalin@redhat.com> |
---|
694 | - include testsaslauthd |
---|
695 | - note in the README that the saslauthd protocol is different for v1 and v2, |
---|
696 | so v1's clients can't talk to the v2 server |
---|
697 | * Thu Aug 21 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.15-3 |
---|
698 | - add logic to build with gssapi libs in either /usr or /usr/kerberos |
---|
699 | * Tue Jul 15 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.15-1 |
---|
700 | - update to 2.1.15 |
---|
701 | * Mon Jul 14 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.14-1 |
---|
702 | - update to 2.1.14 |
---|
703 | |
---|
704 | * Wed May 14 2003 Satoshi MACHINO <machino@vinelinux.org> 2.1.13-3vl1 |
---|
705 | - new upstream version |
---|
706 | - merged with rawhide version |
---|
707 | -- * Fri May 9 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.13-3 |
---|
708 | -- - change -m argument to saslauthd to be a directory instead of a path |
---|
709 | -- * Thu May 8 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.13-2 |
---|
710 | -- - link libsasl2 with -lpthread to ensure that the sasldb plug-in |
---|
711 | can always be loaded |
---|
712 | -- * Tue Apr 29 2003 Nalin Dahyabhai <nalin@redhat.com> 2.1.13-1 |
---|
713 | -- - update to 2.1.13 |
---|
714 | - disable gssapi because Vine Linux don't support Kerberos |
---|
715 | |
---|
716 | * Sun Dec 9 2001 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.5.27-17vl1 |
---|
717 | - upstream release |
---|
718 | - obsoleted cyrus-sasl-1.5.21-des.patch ( upstream merged ) |
---|
719 | - obsoleted cyrus-sasl-1.5.24-external.patch ( upstream merged ) |
---|
720 | - added BuildPrereq: gdbm-devel, pam-devel |
---|
721 | |
---|
722 | * Mon Jul 16 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> |
---|
723 | - 1.5.24-17vl2 |
---|
724 | - rebuilt with openssl-0.9.6b |
---|
725 | |
---|
726 | * Wed Apr 11 2001 Satoshi MACHINO <machino@vinelinux.org> 1.5.24-17vl1 |
---|
727 | - merged Rawhide Package |
---|
728 | |
---|
729 | * Sat Nov 18 2000 MACHINO, Satoshi <machino@vinelinux.org> 1.5.24-14vl1 |
---|
730 | - build for Vine Linux |
---|
731 | - build with gcc-2.95.3 |
---|
732 | - removed kerberos and gssapi |
---|
733 | |
---|
734 | * Fri Oct 27 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
735 | - enable static libraries, but always build with -fPIC |
---|
736 | |
---|
737 | * Wed Oct 25 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
738 | - make sure the version of 1.5.24 in the package matches the masters (#18968) |
---|
739 | |
---|
740 | * Mon Oct 9 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
741 | - re-add the libsasl.so symlink to the -devel package (oops) |
---|
742 | |
---|
743 | * Fri Oct 6 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
744 | - move .so files for modules to their respective packages -- they're not -devel |
---|
745 | links meant for use by ld anyway |
---|
746 | |
---|
747 | * Thu Oct 5 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
748 | - split off -devel subpackage |
---|
749 | - add a -gssapi subpackage for the gssapi plugins |
---|
750 | |
---|
751 | * Wed Aug 16 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
752 | - fix the summary text |
---|
753 | |
---|
754 | * Sun Aug 13 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
755 | - re-enable arcfour and CRAM |
---|
756 | |
---|
757 | * Fri Aug 4 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
758 | - force use of gdbm for database files to avoid DB migration weirdness |
---|
759 | - enable login mechanism |
---|
760 | - disable gssapi until it can coexist peacefully with non-gssapi setups |
---|
761 | - actually do a make in the build section (#15410) |
---|
762 | |
---|
763 | * Fri Jul 21 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
764 | - update to 1.5.24 |
---|
765 | |
---|
766 | * Wed Jul 12 2000 Prospector <bugzilla@redhat.com> |
---|
767 | - automatic rebuild |
---|
768 | |
---|
769 | * Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
770 | - rebuild in new environment (release 3) |
---|
771 | |
---|
772 | * Mon Jun 19 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
773 | - don't muck with syslogd in post |
---|
774 | - remove patch for db-3.0 wackiness, no longer needed |
---|
775 | |
---|
776 | * Thu Jun 8 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
777 | - FHS cleanup |
---|
778 | - don't strip anything by default |
---|
779 | |
---|
780 | * Fri Feb 11 2000 Tim Powers <timp@redhat.com> |
---|
781 | - fixed man pages not being gzipped |
---|
782 | |
---|
783 | * Tue Nov 16 1999 Tim Powers <timp@redhat.com> |
---|
784 | - incorporated changes from Mads Kiilerich |
---|
785 | - release number is 1, not mk1 |
---|
786 | |
---|
787 | * Wed Nov 10 1999 Mads Kiilerich <mads@kiilerich.com> |
---|
788 | - updated to sasl 1.5.11 |
---|
789 | - configure --disable-krb4 --without-rc4 --disable-cram |
---|
790 | because of missing libraries and pine having cram as default... |
---|
791 | - handle changing libsasl.so versions |
---|
792 | |
---|
793 | * Mon Aug 30 1999 Tim Powers <timp@redhat.com> |
---|
794 | - changed group |
---|
795 | |
---|
796 | * Fri Aug 13 1999 Tim Powers <timp@redhat.com> |
---|
797 | - first build for Powertools |
---|