3 # - add ldap plugin from openldap sources
6 # _with_srp - build srp pluggin
7 # _without_myslq - don't build mysql pluggin
8 # _without_ldap - disable LDAP support for sasluthd
9 # _with_gssapi - enable GSSAPI support for sasluthd
11 Summary: The SASL library API for the Cyrus mail system
12 Summary(pl): Biblioteka Cyrus SASL
13 Summary(pt_BR): Implementação da API SASL
14 Summary(ru): âÉÂÌÉÏÔÅËÁ Cyrus SASL
15 Summary(uk): â¦Â̦ÏÔÅËÁ Cyrus SASL
19 License: distributable
21 Source0: ftp://ftp.andrew.cmu.edu/pub/cyrus/%{name}-%{version}.tar.gz
22 # Source0-md5: 82c7f82a777b7bc10cc1ef68fb8e2a37
23 Source1: saslauthd.init
24 Source2: saslauthd.sysconfig
26 Patch0: %{name}-configdir.patch
27 Patch1: %{name}-nolibs.patch
28 Patch2: %{name}-lt14d.patch
29 Patch3: %{name}-do_dlopen.patch
30 URL: http://asg.web.cmu.edu/sasl/
31 BuildRequires: autoconf
32 BuildRequires: automake
33 BuildRequires: db-devel
35 BuildRequires: libtool >= 1.4
36 %{!?_without_mysql:BuildRequires: mysql-devel}
37 %{!?_without_ldap:BuildRequires: openldap-devel}
38 BuildRequires: openssl-devel >= 0.9.7
39 BuildRequires: pam-devel
40 Requires(post): /sbin/ldconfig
41 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 %define _sysconfdir /etc/sasl
46 This is an implementation of the SASL API, useful for adding
47 authentication, authorization, and security to network protocols. The
48 SASL protocol itself is documented in rfc2222; the API standard is a
52 Pakiet cyrus-sasl zawiera implementacjê biblioteki API SASL dla
53 systemu poczty elektronicznej Cyrusa. Biblioteka ta jest przydatna
54 tak¿e do dodawania uwierzytelniania, autoryzacji oraz zwiêkszania
55 bezpieczeñstwa protoko³ów sieciowych. Sam protokó³ SASL jest opisany w
56 RFC 2222; standaryzacja API jest w toku.
59 Esta é uma implementação da API SASL, útil para acrescentar
60 autenticação, autorização e seguança (criptografia) para protocolos de
61 rede. O protocolo SASL está documentado na RFC 2222. A API "padrão"
62 ainda está em desenvolvimento.
65 ðÁËÅÔ cyrus-sasl ÓÏÄÅÒÖÉÔ ÒÅÁÌÉÚÁÃÉÀ Cyrus SASL. SASL - ÜÔÏ Simple
66 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÂÁ×ÌÅÎÉÑ ÐÏÄÄÅÒÖËÉ
67 ÁÕÔÅÎÔÉËÁÃÉÉ Ë ÐÒÏÔÏËÏÌÁÍ, ÏÓÎÏ×ÁÎÎÙÍ ÎÁ ÓÏÅÄÉÎÅÎÉÑÈ.
70 ðÁËÅÔ cyrus-sasl ͦÓÔÉÔØ ÒÅÁ̦ÚÁæÀ Cyrus SASL. SASL - ÃÅ Simple
71 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÄÁÎÎÑ Ð¦ÄÔÒÉÍËÉ
72 ÁÕÔÅÎÔÉËÁæ§ ÄÏ ÐÒÏÔÏËÏ̦×, ÂÁÚÏ×ÁÎÉÈ ÎÁ Ú'¤ÄÎÁÎÎÑÈ.
75 Summary: Header files and documentation for cyrus-sasl
76 Summary(pl): Pliki nag³ówkowe i dokumentacja dla cyrus-sasl
77 Summary(pt_BR): Exemplos e arquivos para desenvolvimento com SASL
78 Summary(ru): æÁÊÌÙ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó ÂÉÂÌÉÏÔÅËÏÊ Cyrus SASL
79 Summary(ru): æÁÊÌÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú Â¦Â̦ÏÔÅËÏÀ Cyrus SASL
80 Group: Development/Libraries
81 Requires: %{name} = %{version}
84 This includes the header files and documentation needed to develop
85 applications which use SASL.
87 %description devel -l pl
88 Pliki nag³ówkowe i dokumentacja dla cyrus-sasl.
90 %description devel -l pt_BR
91 Este pacote inclui os arquivos de cabeçalho e documentação necessários
92 para desenvolver aplicativos que usem SASL.
94 %description devel -l ru
95 èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
96 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
98 %description devel -l uk
99 èÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
100 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ Cyrus SASL.
103 Summary: Static cyrus-sasl libraries
104 Summary(pl): Statyczne biblioteki cyrus-sasl
105 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ Cyrus SASL
106 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ Cyrus SASL
107 Group: Development/Libraries
108 Requires: %{name}-devel = %{version}
111 Static cyrus-sasl libraries.
113 %description static -l pl
114 Statyczne biblioteki cyrus-sasl.
116 %description static -l ru
117 óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
118 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
120 %description static -l uk
121 óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ
125 Summary: Cram-MD5 Cyrus SASL plugin
126 Summary(pl): Wtyczka Cram-MD5 do Cyrus SASL
127 Summary(pt_BR): Mecanismo SASL CRAM-MD5
129 Requires: %{name} = %{version}
131 %description cram-md5
132 This plugin implements the SASL CRAM-MD5 mechanism. CRAM-MD5 is the
133 mandatory-to-implement authentication mechanism for a number of
134 protocols; it uses MD5 with a challenge/response system to
135 authenticate the user.
137 %description cram-md5 -l pl
138 Wtyczka dodaj±ca obs³ugê mechanizmu CRAM-MD5 do Cyrus SASL. CRAM-MD5
139 jest obowi±zkowym do zaimplementowania mechanizmem uwierzytelniania
140 dla wielu protoko³ów; do uwierzytelnienia u¿ytkownika u¿ywa MD5 wraz z
141 systemem challenge/response.
143 %description cram-md5 -l pt_BR
144 Este plugin implementa o mecanismo SASL CRAM-MD5. CRAM-MD5 é o
145 mecanismo de autenticação obrigatório de ser implementado para vários
146 protocolos: ele usa MD5 com um sistema de desafio/resposta para
147 autenticar o usuário.
150 Summary: Digest-MD5 Cyrus SASL plugin
151 Summary(pl): Wtyczka Digest-MD5 do Cyrus SASL
152 Summary(pt_BR): Mecanismo SASL DIGEST-MD5
154 Requires: %{name} = %{version}
156 %description digest-md5
157 This plugin implements the latest draft of the SASL DIGEST-MD5
158 mechanism. Although not yet finalized, this is likely to become the
159 new mandatory-to-implement authentication system in all new protocols.
160 It's based on the digest md5 authentication system designed for HTTP.
162 %description digest-md5 -l pl
163 Wtyczka dodaj±ca najnowsz± wersjê mechanizmu DIGEST-MD5 do Cyrus SASL.
164 Pomimo tego, ¿e nie jest jeszcze ukoñczony, najprawdopodobniej stanie
165 siê obowi±zkowym do zaimplementowania systemem uwierzytelniania we
166 wszystkich nowych protoko³ach. Bazuje na systemie uwierzytelniania
167 Digest-MD5 zaprojektowanym dla HTTP.
169 %description digest-md5 -l pt_BR
170 Este plugin implementa a última versão da especificação do mecanismo
171 SASL DIGEST-MD5. Embora ainda não esteja finalizado, DIGEST-MD5
172 provavelmente será o novo sistema de autenticação obrigatório para
173 protocolos novos. Ele é baseado na autenticação md5 digest
174 desenvolvida para HTTP.
177 Summary: Plain Cyrus SASL plugin
178 Summary(pl): Wtyczka plain do Cyrus SASL
179 Summary(pt_BR): Mecanismo SASL PLAIN
181 Requires: %{name} = %{version}
184 This plugin implements the SASL PLAIN mechanism. Although insecure,
185 PLAIN is useful for transitioning to new security mechanisms, as this
186 is the only mechanism which gives the server a copy of the user's
189 %description plain -l pl
190 Wtyczka dodaj±ca obs³ugê mechanizmu PLAIN do Cyrus SASL. Pomimo tego,
191 ¿e nie jest bezpieczny, PLAIN jest przydatny przy przechodzeniu na
192 nowe mechanizmu bezpieczeñstwa, jako ¿e jest to jedyny mechanizm,
193 który udostêpnia serwerowi kopiê has³a u¿ytkownika.
195 %description plain -l pt_BR
196 Este plugin implementa o mecanismo SASL PLAIN. Embora inseguro, este
197 mecanismo é útil durante transições para novos mecanismos de
198 segurança, pois é o único esquema que fornece uma cópia da senha do
199 usuário para o servidor.
202 Summary: Anonymous Cyrus SASL plugin
203 Summary(pl): Wtyczka anonymous do Cyrus SASL
204 Summary(pt_BR): Mecanismo SASL ANONYMOUS
206 Requires: %{name} = %{version}
208 %description anonymous
209 This plugin implements the SASL ANONYMOUS mechanism, used for
210 anonymous authentication.
212 %description anonymous -l pl
213 Wtyczka dodaj±ca obs³ugê mechanizmu ANONYMOUS do Cyrus SASL. S³u¿y do
214 anonimowego uwierzytelniania.
216 %description anonymous -l pt_BR
217 Este plugin implementa o mecanismo SASL ANONYMOUS, usado para
218 autenticação anônima.
221 Summary: GSSAPI Cyrus SASL plugin
222 Summary(pl): Wtyczka GSSAPI do Cyrus SASL
223 Summary(pt_BR): Mecanismo SASL GSSAPI
225 Requires: %{name} = %{version}
228 This plugin implements the SASL GSSAPI mechanism, used for
229 GSSAPI/Kerberos5 authentication.
231 %description gssapi -l pl
232 Wtyczka dodaj±ca obs³ugê mechanizmu SASL GSSAPI, u¿ywanego do
233 uwierzytelniania z u¿yciem GSSAPI/Kerberos5.
235 %description gssapi -l pt_BR
236 Este plugin implementa o mecanismo SASL GSSAPI, usado para
237 autenticação Kerberos/GSSAPI.
240 Summary: Unsupported Login Cyrus SASL plugin
241 Summary(pl): Nie wspierana wtyczka Login do Cyrus SASL
243 Requires: %{name} = %{version}
246 Unsupported LOGIN Cyrus SASL plugin.
248 %description login -l pl
249 Wtyczka dodaj±ca obs³ugê nie wspieranego mechanizmu LOGIN do Cyrus
253 Summary: SRP Cyrus SASL plugin
254 Summary(pl): Wtyczka SRP do Cyrus SASL
255 Summary(pt_BR): Mecanismo SASL SRP
257 Requires: %{name} = %{version}
260 This plugin implements the SASL SRP mechanism, based on the Secure
261 Remote Password protocol. This mechanism performs mutual
262 authentication and can provide a security layer with replay detection,
263 integrity protection and/or condifentiality protection.
265 %description srp -l pl
266 Wtyczka dodaj±ca obs³ugê mechanizmu SRP do Cyrus SASL. Bazuje na
267 protokole Secure Remote Password. Ten mechanizm dokonuje wzajemnego
268 uwierzytelnienia i mo¿e dodawaæ warstwê bezpieczeñstwa z wykrywaniem
269 powtarzania, zabezpieczeniem integralno¶ci i/lub poufno¶ci.
271 %description srp -l pt_BR
272 Este plugin implementa o mecanismo SASL SRP, baseado no protocolo SRP
273 (Secure Remote Password). Este mecanismo oferece autenticação mútua
274 (do cliente e do servidor) e pode prover uma camada de segurança com
275 detecção de ataques de replay, garantia de integridade e/ou
279 Summary: OTP Cyrus SASL plugin
280 Summary(pl): Wtyczka OTP do Cyrus SASL
281 Summary(pt_BR): Mecanismo SASL OTP
283 Requires: %{name} = %{version}
286 This plugin implements the SASL OTP (One Time Password) mechanism.
288 %description otp -l pl
289 Wtyczka dodaj±ca obs³ugê mechanizmu OTP (has³a jednorazowe) do Cyrus
293 Summary: x509 Cyrus SASL plugin
294 Summary(pl): Wtyczka x509 do Cyrus SASL
296 Requires: %{name} = %{version}
299 x509 Cyrus SASL plugin.
301 %description x509 -l pl
302 Wtyczka x509 do Cyrus SASL.
305 Summary: Cyrus SASL authd
306 Summary(pl): Demon authd do Cyrus SASL
308 Requires(post,postun): /sbin/chkconfig
309 Requires: %{name} = %{version}
311 %description saslauthd
314 %description saslauthd -l pl
315 Demon authd do Cyrus SASL.
318 Summary: Cyrus SASL pwcheck helper
319 Summary(pl): Program pomocniczy pwcheck do Cyrus SASL
321 Requires: %{name} = %{version}
324 Cyrus SASL pwcheck helper.
326 %description pwcheck -l pl
327 Program pomocniczy pwcheck do Cyrus SASL.
330 Summary: Cyrus SASL sasldb plugin
331 Summary(pl): Wtyczka sasldb do Cyrus SASL
333 Requires: %{name} = %{version}
336 Cyrus SASL sasldb plugin.
338 %description sasldb -l pl
339 Wtyczka sasldb do Cyrus SASL.
342 Summary: Cyrus SASL mysql plugin
343 Summary(pl): Wtyczka mysql do Cyrus SASL
345 Requires: %{name} = %{version}
348 Cyrus SASL mysql plugin.
350 %description mysql -l pl
351 Wtyczka mysql do Cyrus SASL.
361 echo "cyrus-sasl complies with the following RFCs:" > rfc-compliance
362 ls rfc*.txt >> rfc-compliance
367 # acinclude.m4 contains only old libtool.m4
368 rm -f acinclude.m4 config/missing
370 %{__aclocal} -I cmulocal -I config
376 %{__aclocal} -I ../cmulocal -I ../config -I config
382 LDFLAGS="%{rpmldflags} -ldl"; export LDFLAGS
386 %{?_with_srp:--enable-srp} \
387 %{?!_without_mysql: --with-mysql=%{_prefix}} \
388 %{?!_without_ldap: --with-ldap=%{_prefix}} \
389 %{?_with_pwcheck: --with-pwcheck=/var/lib/sasl2} \
390 --with-saslauthd=/var/lib/sasl2 \
392 --with-dblib=berkeley \
393 --with-dbpath=/var/lib/sasl2/sasl.db \
394 --with-configdir=%{_sysconfdir} \
396 %{?_with_gssapi: --enable-gssapi } \
397 %{?!_with_gssapi: --disable-gssapi }
401 RFCLIST=`grep 'rfc.\+\.txt' rfc-compliance`
402 for i in $RFCLIST; do
403 RFCDIR=../RFC/text/`echo $i | sed -e 's:^rfc::' -e 's:..\.txt$::' `00
404 echo -e ',s:'$i':'$RFCDIR/$i'\n,w\nq' | ed index.html
409 rm -rf $RPM_BUILD_ROOT
410 install -d $RPM_BUILD_ROOT{/var/lib/sasl2,%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
411 $RPM_BUILD_ROOT%{_mandir}/man8
414 DESTDIR=$RPM_BUILD_ROOT
416 rm -rf $RPM_BUILD_ROOT%{_mandir}/cat*
417 rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/*.{la,a}
419 install {utils,saslauthd}/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
421 ln -sf libsasl2.so $RPM_BUILD_ROOT%{_libdir}/libsasl.so
423 touch $RPM_BUILD_ROOT/var/lib/sasl2/sasl.db
425 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/saslauthd
426 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/saslauthd
427 install %{SOURCE3} ./cyrus.pam
430 rm -rf $RPM_BUILD_ROOT
434 echo "Remember to install appropriate plugins, or you won't have any mechs available."
436 %postun -p /sbin/ldconfig
439 /sbin/chkconfig --add saslauthd
440 if [ -f /var/lock/subsys/saslauthd ]; then
441 /etc/rc.d/init.d/saslauthd restart 1>&2
443 echo "Run \"/etc/rc.d/init.d/saslauthd start\" to start saslauthd."
447 if [ "$1" = "0" ]; then
448 if [ -f /var/lock/subsys/saslauthd ]; then
449 /etc/rc.d/init.d/saslauthd stop 1>&2
451 /sbin/chkconfig --del saslauthd
455 %defattr(644,root,root,755)
456 %doc AUTHORS COPYING ChangeLog NEWS README
457 %doc doc/{ONEWS,TODO,*.txt,*.html,*.fig,rfc-compliance}
459 %dir %{_libdir}/sasl2
461 %attr(755,root,root) %{_libdir}/lib*.so.*.*
462 %attr(755,root,root) %{_sbindir}/sasldblistusers2
463 %attr(755,root,root) %{_sbindir}/saslpasswd2
465 %attr(640,root,mail) %ghost %config(noreplace) %verify(not mtime md5 size) /var/lib/sasl2/sasl.db
466 %{_mandir}/man8/sasldblistusers2.*
467 %{_mandir}/man8/saslpasswd2.*
470 %defattr(644,root,root,755)
472 %attr(755,root,root) %{_libdir}/lib*.so
477 %defattr(644,root,root,755)
481 %defattr(644,root,root,755)
482 %attr(755,root,root) %{_libdir}/sasl2/libanonymous.so*
486 %defattr(644,root,root,755)
487 %attr(755,root,root) %{_libdir}/sasl2/libgssapi.so*
491 %defattr(644,root,root,755)
492 %attr(755,root,root) %{_libdir}/sasl2/libcrammd5.so*
495 %defattr(644,root,root,755)
496 %attr(755,root,root) %{_libdir}/sasl2/libdigestmd5.so*
499 %defattr(644,root,root,755)
500 %attr(755,root,root) %{_libdir}/sasl2/liblogin.so*
503 %defattr(644,root,root,755)
504 %attr(755,root,root) %{_libdir}/sasl2/libotp.so*
507 %defattr(644,root,root,755)
508 %attr(755,root,root) %{_libdir}/sasl2/libplain.so*
511 %defattr(644,root,root,755)
512 %attr(755,root,root) %{_libdir}/sasl2/libsasldb.so*
514 %if %{!?_without_mysql:1}%{?_without_mysql:0}
516 %defattr(644,root,root,755)
517 %attr(755,root,root) %{_libdir}/sasl2/libmysql*.so*
520 %if %{?_with_srp:1}%{?!_with_srp:0}
522 %defattr(644,root,root,755)
523 %attr(755,root,root) %{_libdir}/sasl2/libsrp.so*
526 %if %{?_with_x509:1}%{?!_with_x509:0}
528 %defattr(644,root,root,755)
529 %attr(755,root,root) %{_libdir}/sasl2/libx509.so*
532 %if %{?_with_pwcheck:1}%{?!_with_pwcheck:0}
534 %defattr(644,root,root,755)
535 %attr(755,root,root) %{_sbindir}/pwcheck
539 %defattr(644,root,root,755)
541 %attr(755,root,root) %{_sbindir}/saslauthd
542 %attr(754,root,root) /etc/rc.d/init.d/saslauthd
543 %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/saslauthd
544 %{_mandir}/man8/saslauthd.*