3 # - add ldap plugin from openldap sources
6 %bcond_with srp # build srp pluggin
7 %bcond_without mysql # don't build mysql pluggin
8 %bcond_without ldap # disable LDAP support for sasluthd
9 %bcond_with gssapi # enable GSSAPI support for sasluthd
12 Summary: The SASL library API for the Cyrus mail system
13 Summary(pl): Biblioteka Cyrus SASL
14 Summary(pt_BR): Implementação da API SASL
15 Summary(ru): âÉÂÌÉÏÔÅËÁ Cyrus SASL
16 Summary(uk): â¦Â̦ÏÔÅËÁ Cyrus SASL
20 License: distributable
22 Source0: ftp://ftp.andrew.cmu.edu/pub/cyrus/%{name}-%{version}.tar.gz
23 # Source0-md5: 82c7f82a777b7bc10cc1ef68fb8e2a37
24 Source1: saslauthd.init
25 Source2: saslauthd.sysconfig
27 Patch0: %{name}-configdir.patch
28 Patch1: %{name}-nolibs.patch
29 Patch2: %{name}-lt14d.patch
30 Patch3: %{name}-do_dlopen.patch
31 URL: http://asg.web.cmu.edu/sasl/
32 BuildRequires: autoconf
33 BuildRequires: automake
34 BuildRequires: db-devel
36 BuildRequires: libtool >= 1.4
37 %{?with_mysql:BuildRequires: mysql-devel}
38 %{?with_ldap:BuildRequires: openldap-devel}
39 BuildRequires: openssl-devel >= 0.9.7c
40 BuildRequires: pam-devel
41 Requires(post): /sbin/ldconfig
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 %define _sysconfdir /etc/sasl
47 This is an implementation of the SASL API, useful for adding
48 authentication, authorization, and security to network protocols. The
49 SASL protocol itself is documented in rfc2222; the API standard is a
53 Pakiet cyrus-sasl zawiera implementacjê biblioteki API SASL dla
54 systemu poczty elektronicznej Cyrusa. Biblioteka ta jest przydatna
55 tak¿e do dodawania uwierzytelniania, autoryzacji oraz zwiêkszania
56 bezpieczeñstwa protoko³ów sieciowych. Sam protokó³ SASL jest opisany w
57 RFC 2222; standaryzacja API jest w toku.
60 Esta é uma implementação da API SASL, útil para acrescentar
61 autenticação, autorização e seguança (criptografia) para protocolos de
62 rede. O protocolo SASL está documentado na RFC 2222. A API "padrão"
63 ainda está em desenvolvimento.
66 ðÁËÅÔ cyrus-sasl ÓÏÄÅÒÖÉÔ ÒÅÁÌÉÚÁÃÉÀ Cyrus SASL. SASL - ÜÔÏ Simple
67 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÂÁ×ÌÅÎÉÑ ÐÏÄÄÅÒÖËÉ
68 ÁÕÔÅÎÔÉËÁÃÉÉ Ë ÐÒÏÔÏËÏÌÁÍ, ÏÓÎÏ×ÁÎÎÙÍ ÎÁ ÓÏÅÄÉÎÅÎÉÑÈ.
71 ðÁËÅÔ cyrus-sasl ͦÓÔÉÔØ ÒÅÁ̦ÚÁæÀ Cyrus SASL. SASL - ÃÅ Simple
72 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÄÁÎÎÑ Ð¦ÄÔÒÉÍËÉ
73 ÁÕÔÅÎÔÉËÁæ§ ÄÏ ÐÒÏÔÏËÏ̦×, ÂÁÚÏ×ÁÎÉÈ ÎÁ Ú'¤ÄÎÁÎÎÑÈ.
76 Summary: Header files and documentation for cyrus-sasl
77 Summary(pl): Pliki nag³ówkowe i dokumentacja dla cyrus-sasl
78 Summary(pt_BR): Exemplos e arquivos para desenvolvimento com SASL
79 Summary(ru): æÁÊÌÙ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó ÂÉÂÌÉÏÔÅËÏÊ Cyrus SASL
80 Summary(ru): æÁÊÌÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú Â¦Â̦ÏÔÅËÏÀ Cyrus SASL
81 Group: Development/Libraries
82 Requires: %{name} = %{version}
85 This includes the header files and documentation needed to develop
86 applications which use SASL.
88 %description devel -l pl
89 Pliki nag³ówkowe i dokumentacja dla cyrus-sasl.
91 %description devel -l pt_BR
92 Este pacote inclui os arquivos de cabeçalho e documentação necessários
93 para desenvolver aplicativos que usem SASL.
95 %description devel -l ru
96 èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
97 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
99 %description devel -l uk
100 èÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
101 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ Cyrus SASL.
104 Summary: Static cyrus-sasl libraries
105 Summary(pl): Statyczne biblioteki cyrus-sasl
106 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ Cyrus SASL
107 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ Cyrus SASL
108 Group: Development/Libraries
109 Requires: %{name}-devel = %{version}
112 Static cyrus-sasl libraries.
114 %description static -l pl
115 Statyczne biblioteki cyrus-sasl.
117 %description static -l ru
118 óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
119 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
121 %description static -l uk
122 óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ
126 Summary: Cram-MD5 Cyrus SASL plugin
127 Summary(pl): Wtyczka Cram-MD5 do Cyrus SASL
128 Summary(pt_BR): Mecanismo SASL CRAM-MD5
130 Requires: %{name} = %{version}
132 %description cram-md5
133 This plugin implements the SASL CRAM-MD5 mechanism. CRAM-MD5 is the
134 mandatory-to-implement authentication mechanism for a number of
135 protocols; it uses MD5 with a challenge/response system to
136 authenticate the user.
138 %description cram-md5 -l pl
139 Wtyczka dodaj±ca obs³ugê mechanizmu CRAM-MD5 do Cyrus SASL. CRAM-MD5
140 jest obowi±zkowym do zaimplementowania mechanizmem uwierzytelniania
141 dla wielu protoko³ów; do uwierzytelnienia u¿ytkownika u¿ywa MD5 wraz z
142 systemem challenge/response.
144 %description cram-md5 -l pt_BR
145 Este plugin implementa o mecanismo SASL CRAM-MD5. CRAM-MD5 é o
146 mecanismo de autenticação obrigatório de ser implementado para vários
147 protocolos: ele usa MD5 com um sistema de desafio/resposta para
148 autenticar o usuário.
151 Summary: Digest-MD5 Cyrus SASL plugin
152 Summary(pl): Wtyczka Digest-MD5 do Cyrus SASL
153 Summary(pt_BR): Mecanismo SASL DIGEST-MD5
155 Requires: %{name} = %{version}
157 %description digest-md5
158 This plugin implements the latest draft of the SASL DIGEST-MD5
159 mechanism. Although not yet finalized, this is likely to become the
160 new mandatory-to-implement authentication system in all new protocols.
161 It's based on the digest md5 authentication system designed for HTTP.
163 %description digest-md5 -l pl
164 Wtyczka dodaj±ca najnowsz± wersjê mechanizmu DIGEST-MD5 do Cyrus SASL.
165 Pomimo tego, ¿e nie jest jeszcze ukoñczony, najprawdopodobniej stanie
166 siê obowi±zkowym do zaimplementowania systemem uwierzytelniania we
167 wszystkich nowych protoko³ach. Bazuje na systemie uwierzytelniania
168 Digest-MD5 zaprojektowanym dla HTTP.
170 %description digest-md5 -l pt_BR
171 Este plugin implementa a última versão da especificação do mecanismo
172 SASL DIGEST-MD5. Embora ainda não esteja finalizado, DIGEST-MD5
173 provavelmente será o novo sistema de autenticação obrigatório para
174 protocolos novos. Ele é baseado na autenticação md5 digest
175 desenvolvida para HTTP.
178 Summary: Plain Cyrus SASL plugin
179 Summary(pl): Wtyczka plain do Cyrus SASL
180 Summary(pt_BR): Mecanismo SASL PLAIN
182 Requires: %{name} = %{version}
185 This plugin implements the SASL PLAIN mechanism. Although insecure,
186 PLAIN is useful for transitioning to new security mechanisms, as this
187 is the only mechanism which gives the server a copy of the user's
190 %description plain -l pl
191 Wtyczka dodaj±ca obs³ugê mechanizmu PLAIN do Cyrus SASL. Pomimo tego,
192 ¿e nie jest bezpieczny, PLAIN jest przydatny przy przechodzeniu na
193 nowe mechanizmu bezpieczeñstwa, jako ¿e jest to jedyny mechanizm,
194 który udostêpnia serwerowi kopiê has³a u¿ytkownika.
196 %description plain -l pt_BR
197 Este plugin implementa o mecanismo SASL PLAIN. Embora inseguro, este
198 mecanismo é útil durante transições para novos mecanismos de
199 segurança, pois é o único esquema que fornece uma cópia da senha do
200 usuário para o servidor.
203 Summary: Anonymous Cyrus SASL plugin
204 Summary(pl): Wtyczka anonymous do Cyrus SASL
205 Summary(pt_BR): Mecanismo SASL ANONYMOUS
207 Requires: %{name} = %{version}
209 %description anonymous
210 This plugin implements the SASL ANONYMOUS mechanism, used for
211 anonymous authentication.
213 %description anonymous -l pl
214 Wtyczka dodaj±ca obs³ugê mechanizmu ANONYMOUS do Cyrus SASL. S³u¿y do
215 anonimowego uwierzytelniania.
217 %description anonymous -l pt_BR
218 Este plugin implementa o mecanismo SASL ANONYMOUS, usado para
219 autenticação anônima.
222 Summary: GSSAPI Cyrus SASL plugin
223 Summary(pl): Wtyczka GSSAPI do Cyrus SASL
224 Summary(pt_BR): Mecanismo SASL GSSAPI
226 Requires: %{name} = %{version}
229 This plugin implements the SASL GSSAPI mechanism, used for
230 GSSAPI/Kerberos5 authentication.
232 %description gssapi -l pl
233 Wtyczka dodaj±ca obs³ugê mechanizmu SASL GSSAPI, u¿ywanego do
234 uwierzytelniania z u¿yciem GSSAPI/Kerberos5.
236 %description gssapi -l pt_BR
237 Este plugin implementa o mecanismo SASL GSSAPI, usado para
238 autenticação Kerberos/GSSAPI.
241 Summary: Unsupported Login Cyrus SASL plugin
242 Summary(pl): Nie wspierana wtyczka Login do Cyrus SASL
244 Requires: %{name} = %{version}
247 Unsupported LOGIN Cyrus SASL plugin.
249 %description login -l pl
250 Wtyczka dodaj±ca obs³ugê nie wspieranego mechanizmu LOGIN do Cyrus
254 Summary: SRP Cyrus SASL plugin
255 Summary(pl): Wtyczka SRP do Cyrus SASL
256 Summary(pt_BR): Mecanismo SASL SRP
258 Requires: %{name} = %{version}
261 This plugin implements the SASL SRP mechanism, based on the Secure
262 Remote Password protocol. This mechanism performs mutual
263 authentication and can provide a security layer with replay detection,
264 integrity protection and/or condifentiality protection.
266 %description srp -l pl
267 Wtyczka dodaj±ca obs³ugê mechanizmu SRP do Cyrus SASL. Bazuje na
268 protokole Secure Remote Password. Ten mechanizm dokonuje wzajemnego
269 uwierzytelnienia i mo¿e dodawaæ warstwê bezpieczeñstwa z wykrywaniem
270 powtarzania, zabezpieczeniem integralno¶ci i/lub poufno¶ci.
272 %description srp -l pt_BR
273 Este plugin implementa o mecanismo SASL SRP, baseado no protocolo SRP
274 (Secure Remote Password). Este mecanismo oferece autenticação mútua
275 (do cliente e do servidor) e pode prover uma camada de segurança com
276 detecção de ataques de replay, garantia de integridade e/ou
280 Summary: OTP Cyrus SASL plugin
281 Summary(pl): Wtyczka OTP do Cyrus SASL
282 Summary(pt_BR): Mecanismo SASL OTP
284 Requires: %{name} = %{version}
287 This plugin implements the SASL OTP (One Time Password) mechanism.
289 %description otp -l pl
290 Wtyczka dodaj±ca obs³ugê mechanizmu OTP (has³a jednorazowe) do Cyrus
294 Summary: x509 Cyrus SASL plugin
295 Summary(pl): Wtyczka x509 do Cyrus SASL
297 Requires: %{name} = %{version}
300 x509 Cyrus SASL plugin.
302 %description x509 -l pl
303 Wtyczka x509 do Cyrus SASL.
306 Summary: Cyrus SASL authd
307 Summary(pl): Demon authd do Cyrus SASL
309 Requires(post,postun): /sbin/chkconfig
310 Requires: %{name} = %{version}
312 %description saslauthd
315 %description saslauthd -l pl
316 Demon authd do Cyrus SASL.
319 Summary: Cyrus SASL pwcheck helper
320 Summary(pl): Program pomocniczy pwcheck do Cyrus SASL
322 Requires: %{name} = %{version}
325 Cyrus SASL pwcheck helper.
327 %description pwcheck -l pl
328 Program pomocniczy pwcheck do Cyrus SASL.
331 Summary: Cyrus SASL sasldb plugin
332 Summary(pl): Wtyczka sasldb do Cyrus SASL
334 Requires: %{name} = %{version}
337 Cyrus SASL sasldb plugin.
339 %description sasldb -l pl
340 Wtyczka sasldb do Cyrus SASL.
343 Summary: Cyrus SASL mysql plugin
344 Summary(pl): Wtyczka mysql do Cyrus SASL
346 Requires: %{name} = %{version}
349 Cyrus SASL mysql plugin.
351 %description mysql -l pl
352 Wtyczka mysql do Cyrus SASL.
362 echo "cyrus-sasl complies with the following RFCs:" > rfc-compliance
363 ls rfc*.txt >> rfc-compliance
368 # acinclude.m4 contains only old libtool.m4
369 rm -f acinclude.m4 config/missing
371 %{__aclocal} -I cmulocal -I config
377 %{__aclocal} -I ../cmulocal -I ../config -I config
383 LDFLAGS="%{rpmldflags} -ldl"; export LDFLAGS
387 %{?with_srp: --enable-srp} \
388 %{?with_mysql: --with-mysql=%{_prefix}} \
389 %{?with_ldap: --with-ldap=%{_prefix}} \
390 %{?with_pwcheck: --with-pwcheck=/var/lib/sasl2} \
391 --with-saslauthd=/var/lib/sasl2 \
393 --with-dblib=berkeley \
394 --with-dbpath=/var/lib/sasl2/sasl.db \
395 --with-configdir=%{_sysconfdir} \
397 %{?with_gssapi: --enable-gssapi}%{?!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/libgssapiv2.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*
516 %defattr(644,root,root,755)
517 %attr(755,root,root) %{_libdir}/sasl2/libmysql*.so*
522 %defattr(644,root,root,755)
523 %attr(755,root,root) %{_libdir}/sasl2/libsrp.so*
528 %defattr(644,root,root,755)
529 %attr(755,root,root) %{_libdir}/sasl2/libx509.so*
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.*