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 Patch4: %{name}-ldb4.patch
32 URL: http://asg.web.cmu.edu/sasl/
33 BuildRequires: autoconf
34 BuildRequires: automake
35 BuildRequires: db-devel
37 BuildRequires: libtool >= 1.4
38 %{?with_mysql:BuildRequires: mysql-devel}
39 %{?with_ldap:BuildRequires: openldap-devel}
40 BuildRequires: openssl-devel >= 0.9.7c
41 BuildRequires: pam-devel
42 Requires(post): /sbin/ldconfig
43 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 %define _sysconfdir /etc/sasl
48 This is an implementation of the SASL API, useful for adding
49 authentication, authorization, and security to network protocols. The
50 SASL protocol itself is documented in rfc2222; the API standard is a
54 Pakiet cyrus-sasl zawiera implementacjê biblioteki API SASL dla
55 systemu poczty elektronicznej Cyrusa. Biblioteka ta jest przydatna
56 tak¿e do dodawania uwierzytelniania, autoryzacji oraz zwiêkszania
57 bezpieczeñstwa protoko³ów sieciowych. Sam protokó³ SASL jest opisany w
58 RFC 2222; standaryzacja API jest w toku.
61 Esta é uma implementação da API SASL, útil para acrescentar
62 autenticação, autorização e seguança (criptografia) para protocolos de
63 rede. O protocolo SASL está documentado na RFC 2222. A API "padrão"
64 ainda está em desenvolvimento.
67 ðÁËÅÔ cyrus-sasl ÓÏÄÅÒÖÉÔ ÒÅÁÌÉÚÁÃÉÀ Cyrus SASL. SASL - ÜÔÏ Simple
68 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÂÁ×ÌÅÎÉÑ ÐÏÄÄÅÒÖËÉ
69 ÁÕÔÅÎÔÉËÁÃÉÉ Ë ÐÒÏÔÏËÏÌÁÍ, ÏÓÎÏ×ÁÎÎÙÍ ÎÁ ÓÏÅÄÉÎÅÎÉÑÈ.
72 ðÁËÅÔ cyrus-sasl ͦÓÔÉÔØ ÒÅÁ̦ÚÁæÀ Cyrus SASL. SASL - ÃÅ Simple
73 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÄÁÎÎÑ Ð¦ÄÔÒÉÍËÉ
74 ÁÕÔÅÎÔÉËÁæ§ ÄÏ ÐÒÏÔÏËÏ̦×, ÂÁÚÏ×ÁÎÉÈ ÎÁ Ú'¤ÄÎÁÎÎÑÈ.
77 Summary: Header files and documentation for cyrus-sasl
78 Summary(pl): Pliki nag³ówkowe i dokumentacja dla cyrus-sasl
79 Summary(pt_BR): Exemplos e arquivos para desenvolvimento com SASL
80 Summary(ru): æÁÊÌÙ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó ÂÉÂÌÉÏÔÅËÏÊ Cyrus SASL
81 Summary(ru): æÁÊÌÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú Â¦Â̦ÏÔÅËÏÀ Cyrus SASL
82 Group: Development/Libraries
83 Requires: %{name} = %{version}
86 This includes the header files and documentation needed to develop
87 applications which use SASL.
89 %description devel -l pl
90 Pliki nag³ówkowe i dokumentacja dla cyrus-sasl.
92 %description devel -l pt_BR
93 Este pacote inclui os arquivos de cabeçalho e documentação necessários
94 para desenvolver aplicativos que usem SASL.
96 %description devel -l ru
97 èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
98 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
100 %description devel -l uk
101 èÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
102 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ Cyrus SASL.
105 Summary: Static cyrus-sasl libraries
106 Summary(pl): Statyczne biblioteki cyrus-sasl
107 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ Cyrus SASL
108 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ Cyrus SASL
109 Group: Development/Libraries
110 Requires: %{name}-devel = %{version}
113 Static cyrus-sasl libraries.
115 %description static -l pl
116 Statyczne biblioteki cyrus-sasl.
118 %description static -l ru
119 óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
120 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
122 %description static -l uk
123 óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ
127 Summary: Cram-MD5 Cyrus SASL plugin
128 Summary(pl): Wtyczka Cram-MD5 do Cyrus SASL
129 Summary(pt_BR): Mecanismo SASL CRAM-MD5
131 Requires: %{name} = %{version}
133 %description cram-md5
134 This plugin implements the SASL CRAM-MD5 mechanism. CRAM-MD5 is the
135 mandatory-to-implement authentication mechanism for a number of
136 protocols; it uses MD5 with a challenge/response system to
137 authenticate the user.
139 %description cram-md5 -l pl
140 Wtyczka dodaj±ca obs³ugê mechanizmu CRAM-MD5 do Cyrus SASL. CRAM-MD5
141 jest obowi±zkowym do zaimplementowania mechanizmem uwierzytelniania
142 dla wielu protoko³ów; do uwierzytelnienia u¿ytkownika u¿ywa MD5 wraz z
143 systemem challenge/response.
145 %description cram-md5 -l pt_BR
146 Este plugin implementa o mecanismo SASL CRAM-MD5. CRAM-MD5 é o
147 mecanismo de autenticação obrigatório de ser implementado para vários
148 protocolos: ele usa MD5 com um sistema de desafio/resposta para
149 autenticar o usuário.
152 Summary: Digest-MD5 Cyrus SASL plugin
153 Summary(pl): Wtyczka Digest-MD5 do Cyrus SASL
154 Summary(pt_BR): Mecanismo SASL DIGEST-MD5
156 Requires: %{name} = %{version}
158 %description digest-md5
159 This plugin implements the latest draft of the SASL DIGEST-MD5
160 mechanism. Although not yet finalized, this is likely to become the
161 new mandatory-to-implement authentication system in all new protocols.
162 It's based on the digest md5 authentication system designed for HTTP.
164 %description digest-md5 -l pl
165 Wtyczka dodaj±ca najnowsz± wersjê mechanizmu DIGEST-MD5 do Cyrus SASL.
166 Pomimo tego, ¿e nie jest jeszcze ukoñczony, najprawdopodobniej stanie
167 siê obowi±zkowym do zaimplementowania systemem uwierzytelniania we
168 wszystkich nowych protoko³ach. Bazuje na systemie uwierzytelniania
169 Digest-MD5 zaprojektowanym dla HTTP.
171 %description digest-md5 -l pt_BR
172 Este plugin implementa a última versão da especificação do mecanismo
173 SASL DIGEST-MD5. Embora ainda não esteja finalizado, DIGEST-MD5
174 provavelmente será o novo sistema de autenticação obrigatório para
175 protocolos novos. Ele é baseado na autenticação md5 digest
176 desenvolvida para HTTP.
179 Summary: Plain Cyrus SASL plugin
180 Summary(pl): Wtyczka plain do Cyrus SASL
181 Summary(pt_BR): Mecanismo SASL PLAIN
183 Requires: %{name} = %{version}
186 This plugin implements the SASL PLAIN mechanism. Although insecure,
187 PLAIN is useful for transitioning to new security mechanisms, as this
188 is the only mechanism which gives the server a copy of the user's
191 %description plain -l pl
192 Wtyczka dodaj±ca obs³ugê mechanizmu PLAIN do Cyrus SASL. Pomimo tego,
193 ¿e nie jest bezpieczny, PLAIN jest przydatny przy przechodzeniu na
194 nowe mechanizmu bezpieczeñstwa, jako ¿e jest to jedyny mechanizm,
195 który udostêpnia serwerowi kopiê has³a u¿ytkownika.
197 %description plain -l pt_BR
198 Este plugin implementa o mecanismo SASL PLAIN. Embora inseguro, este
199 mecanismo é útil durante transições para novos mecanismos de
200 segurança, pois é o único esquema que fornece uma cópia da senha do
201 usuário para o servidor.
204 Summary: Anonymous Cyrus SASL plugin
205 Summary(pl): Wtyczka anonymous do Cyrus SASL
206 Summary(pt_BR): Mecanismo SASL ANONYMOUS
208 Requires: %{name} = %{version}
210 %description anonymous
211 This plugin implements the SASL ANONYMOUS mechanism, used for
212 anonymous authentication.
214 %description anonymous -l pl
215 Wtyczka dodaj±ca obs³ugê mechanizmu ANONYMOUS do Cyrus SASL. S³u¿y do
216 anonimowego uwierzytelniania.
218 %description anonymous -l pt_BR
219 Este plugin implementa o mecanismo SASL ANONYMOUS, usado para
220 autenticação anônima.
223 Summary: GSSAPI Cyrus SASL plugin
224 Summary(pl): Wtyczka GSSAPI do Cyrus SASL
225 Summary(pt_BR): Mecanismo SASL GSSAPI
227 Requires: %{name} = %{version}
230 This plugin implements the SASL GSSAPI mechanism, used for
231 GSSAPI/Kerberos5 authentication.
233 %description gssapi -l pl
234 Wtyczka dodaj±ca obs³ugê mechanizmu SASL GSSAPI, u¿ywanego do
235 uwierzytelniania z u¿yciem GSSAPI/Kerberos5.
237 %description gssapi -l pt_BR
238 Este plugin implementa o mecanismo SASL GSSAPI, usado para
239 autenticação Kerberos/GSSAPI.
242 Summary: Unsupported Login Cyrus SASL plugin
243 Summary(pl): Nie wspierana wtyczka Login do Cyrus SASL
245 Requires: %{name} = %{version}
248 Unsupported LOGIN Cyrus SASL plugin.
250 %description login -l pl
251 Wtyczka dodaj±ca obs³ugê nie wspieranego mechanizmu LOGIN do Cyrus
255 Summary: SRP Cyrus SASL plugin
256 Summary(pl): Wtyczka SRP do Cyrus SASL
257 Summary(pt_BR): Mecanismo SASL SRP
259 Requires: %{name} = %{version}
262 This plugin implements the SASL SRP mechanism, based on the Secure
263 Remote Password protocol. This mechanism performs mutual
264 authentication and can provide a security layer with replay detection,
265 integrity protection and/or condifentiality protection.
267 %description srp -l pl
268 Wtyczka dodaj±ca obs³ugê mechanizmu SRP do Cyrus SASL. Bazuje na
269 protokole Secure Remote Password. Ten mechanizm dokonuje wzajemnego
270 uwierzytelnienia i mo¿e dodawaæ warstwê bezpieczeñstwa z wykrywaniem
271 powtarzania, zabezpieczeniem integralno¶ci i/lub poufno¶ci.
273 %description srp -l pt_BR
274 Este plugin implementa o mecanismo SASL SRP, baseado no protocolo SRP
275 (Secure Remote Password). Este mecanismo oferece autenticação mútua
276 (do cliente e do servidor) e pode prover uma camada de segurança com
277 detecção de ataques de replay, garantia de integridade e/ou
281 Summary: OTP Cyrus SASL plugin
282 Summary(pl): Wtyczka OTP do Cyrus SASL
283 Summary(pt_BR): Mecanismo SASL OTP
285 Requires: %{name} = %{version}
288 This plugin implements the SASL OTP (One Time Password) mechanism.
290 %description otp -l pl
291 Wtyczka dodaj±ca obs³ugê mechanizmu OTP (has³a jednorazowe) do Cyrus
295 Summary: x509 Cyrus SASL plugin
296 Summary(pl): Wtyczka x509 do Cyrus SASL
298 Requires: %{name} = %{version}
301 x509 Cyrus SASL plugin.
303 %description x509 -l pl
304 Wtyczka x509 do Cyrus SASL.
307 Summary: Cyrus SASL authd
308 Summary(pl): Demon authd do Cyrus SASL
310 Requires(post,postun): /sbin/chkconfig
311 Requires: %{name} = %{version}
313 %description saslauthd
316 %description saslauthd -l pl
317 Demon authd do Cyrus SASL.
320 Summary: Cyrus SASL pwcheck helper
321 Summary(pl): Program pomocniczy pwcheck do Cyrus SASL
323 Requires: %{name} = %{version}
326 Cyrus SASL pwcheck helper.
328 %description pwcheck -l pl
329 Program pomocniczy pwcheck do Cyrus SASL.
332 Summary: Cyrus SASL sasldb plugin
333 Summary(pl): Wtyczka sasldb do Cyrus SASL
335 Requires: %{name} = %{version}
338 Cyrus SASL sasldb plugin.
340 %description sasldb -l pl
341 Wtyczka sasldb do Cyrus SASL.
344 Summary: Cyrus SASL mysql plugin
345 Summary(pl): Wtyczka mysql do Cyrus SASL
347 Requires: %{name} = %{version}
350 Cyrus SASL mysql plugin.
352 %description mysql -l pl
353 Wtyczka mysql do Cyrus SASL.
364 echo "cyrus-sasl complies with the following RFCs:" > rfc-compliance
365 ls rfc*.txt >> rfc-compliance
370 # acinclude.m4 contains only old libtool.m4
371 rm -f acinclude.m4 config/missing
373 %{__aclocal} -I cmulocal -I config
379 %{__aclocal} -I ../cmulocal -I ../config -I config
385 LDFLAGS="%{rpmldflags} -ldl"; export LDFLAGS
389 %{?with_srp: --enable-srp} \
390 %{?with_mysql: --with-mysql=%{_prefix}} \
391 %{?with_ldap: --with-ldap=%{_prefix}} \
392 %{?with_pwcheck: --with-pwcheck=/var/lib/sasl2} \
393 --with-saslauthd=/var/lib/sasl2 \
395 --with-dblib=berkeley \
396 --with-dbpath=/var/lib/sasl2/sasl.db \
397 --with-configdir=%{_sysconfdir} \
399 %{?with_gssapi: --enable-gssapi}%{?!with_gssapi: --disable-gssapi}
403 RFCLIST=`grep 'rfc.\+\.txt' rfc-compliance`
404 for i in $RFCLIST; do
405 RFCDIR=../RFC/text/`echo $i | sed -e 's:^rfc::' -e 's:..\.txt$::' `00
406 echo -e ',s:'$i':'$RFCDIR/$i'\n,w\nq' | ed index.html
411 rm -rf $RPM_BUILD_ROOT
412 install -d $RPM_BUILD_ROOT{/var/lib/sasl2,%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
413 $RPM_BUILD_ROOT%{_mandir}/man8
416 DESTDIR=$RPM_BUILD_ROOT
418 rm -rf $RPM_BUILD_ROOT%{_mandir}/cat*
419 rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/*.{la,a}
421 install {utils,saslauthd}/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
423 ln -sf libsasl2.so $RPM_BUILD_ROOT%{_libdir}/libsasl.so
425 touch $RPM_BUILD_ROOT/var/lib/sasl2/sasl.db
427 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/saslauthd
428 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/saslauthd
429 install %{SOURCE3} ./cyrus.pam
432 rm -rf $RPM_BUILD_ROOT
436 echo "Remember to install appropriate plugins, or you won't have any mechs available."
438 %postun -p /sbin/ldconfig
441 /sbin/chkconfig --add saslauthd
442 if [ -f /var/lock/subsys/saslauthd ]; then
443 /etc/rc.d/init.d/saslauthd restart 1>&2
445 echo "Run \"/etc/rc.d/init.d/saslauthd start\" to start saslauthd."
449 if [ "$1" = "0" ]; then
450 if [ -f /var/lock/subsys/saslauthd ]; then
451 /etc/rc.d/init.d/saslauthd stop 1>&2
453 /sbin/chkconfig --del saslauthd
457 %defattr(644,root,root,755)
458 %doc AUTHORS COPYING ChangeLog NEWS README
459 %doc doc/{ONEWS,TODO,*.txt,*.html,*.fig,rfc-compliance}
461 %dir %{_libdir}/sasl2
463 %attr(755,root,root) %{_libdir}/lib*.so.*.*
464 %attr(755,root,root) %{_sbindir}/sasldblistusers2
465 %attr(755,root,root) %{_sbindir}/saslpasswd2
467 %attr(640,root,mail) %ghost %config(noreplace) %verify(not mtime md5 size) /var/lib/sasl2/sasl.db
468 %{_mandir}/man8/sasldblistusers2.*
469 %{_mandir}/man8/saslpasswd2.*
472 %defattr(644,root,root,755)
474 %attr(755,root,root) %{_libdir}/lib*.so
479 %defattr(644,root,root,755)
483 %defattr(644,root,root,755)
484 %attr(755,root,root) %{_libdir}/sasl2/libanonymous.so*
488 %defattr(644,root,root,755)
489 %attr(755,root,root) %{_libdir}/sasl2/libgssapiv2.so*
493 %defattr(644,root,root,755)
494 %attr(755,root,root) %{_libdir}/sasl2/libcrammd5.so*
497 %defattr(644,root,root,755)
498 %attr(755,root,root) %{_libdir}/sasl2/libdigestmd5.so*
501 %defattr(644,root,root,755)
502 %attr(755,root,root) %{_libdir}/sasl2/liblogin.so*
505 %defattr(644,root,root,755)
506 %attr(755,root,root) %{_libdir}/sasl2/libotp.so*
509 %defattr(644,root,root,755)
510 %attr(755,root,root) %{_libdir}/sasl2/libplain.so*
513 %defattr(644,root,root,755)
514 %attr(755,root,root) %{_libdir}/sasl2/libsasldb.so*
518 %defattr(644,root,root,755)
519 %attr(755,root,root) %{_libdir}/sasl2/libmysql*.so*
524 %defattr(644,root,root,755)
525 %attr(755,root,root) %{_libdir}/sasl2/libsrp.so*
530 %defattr(644,root,root,755)
531 %attr(755,root,root) %{_libdir}/sasl2/libx509.so*
536 %defattr(644,root,root,755)
537 %attr(755,root,root) %{_sbindir}/pwcheck
541 %defattr(644,root,root,755)
543 %attr(755,root,root) %{_sbindir}/saslauthd
544 %attr(754,root,root) /etc/rc.d/init.d/saslauthd
545 %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/saslauthd
546 %{_mandir}/man8/saslauthd.*