3 # _with_srp - build srp pluggin
4 # _without_myslq - don't build mysql pluggin
5 # _without_ldap - disable LDAP support for sasluthd
7 Summary: The SASL library API for the Cyrus mail system
8 Summary(pl): Biblioteka Cyrus SASL
9 Summary(pt_BR): Implementação da API SASL
10 Summary(ru): âÉÂÌÉÏÔÅËÁ Cyrus SASL
11 Summary(uk): â¦Â̦ÏÔÅËÁ Cyrus SASL
15 License: distributable
17 Source0: ftp://ftp.andrew.cmu.edu/pub/cyrus-mail//%{name}-%{version}.tar.gz
18 Source1: saslauthd.init
19 Source2: saslauthd.sysconfig
21 Patch0: %{name}-configdir.patch
22 BuildRequires: autoconf
23 BuildRequires: automake
24 BuildRequires: db-devel
25 BuildRequires: pam-devel
26 BuildRequires: openssl-devel >= 0.9.6a
27 BuildRequires: libtool >= 1.4
28 %{!?_without_mysql:BuildRequires: mysql-devel}
29 %{!?_without_ldap:BuildRequires: openldap-devel}
30 URL: http://asg.web.cmu.edu/sasl/
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define _sysconfdir /etc/sasl
36 This is an implemention of the SASL API, useful for adding
37 authentication, authorization, and security to network protocols. The
38 SASL protocol itself is documented in rfc2222; the API standard is a
42 Pakiet cyrus-sasl zawiera implementacjê biblioteki API SASL dla
43 systemu poczty elektronicznej Cyrusa. Biblioteka ta jest przydatna
44 tak¿e do dodawania uwierzytelniania, autoryzacji oraz zwiêkszania
45 bezpieczeñstwa protoko³ów sieciowych. Sam protokó³ SASL jest opisany w
46 RFC 2222; standaryzacja API jest w toku.
49 Esta é uma implementação da API SASL, útil para acrescentar
50 autenticação, autorização e seguança (criptografia) para protocolos de
51 rede. O protocolo SASL está documentado na RFC 2222. A API "padrão"
52 ainda está em desenvolvimento.
55 ðÁËÅÔ cyrus-sasl ÓÏÄÅÒÖÉÔ ÒÅÁÌÉÚÁÃÉÀ Cyrus SASL. SASL - ÜÔÏ Simple
56 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÂÁ×ÌÅÎÉÑ ÐÏÄÄÅÒÖËÉ
57 ÁÕÔÅÎÔÉËÁÃÉÉ Ë ÐÒÏÔÏËÏÌÁÍ, ÏÓÎÏ×ÁÎÎÙÍ ÎÁ ÓÏÅÄÉÎÅÎÉÑÈ.
60 ðÁËÅÔ cyrus-sasl ͦÓÔÉÔØ ÒÅÁ̦ÚÁæÀ Cyrus SASL. SASL - ÃÅ Simple
61 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÄÁÎÎÑ Ð¦ÄÔÒÉÍËÉ
62 ÁÕÔÅÎÔÉËÁæ§ ÄÏ ÐÒÏÔÏËÏ̦×, ÂÁÚÏ×ÁÎÉÈ ÎÁ Ú'¤ÄÎÁÎÎÑÈ.
65 Summary: Header files and documentation for cyrus-sasl
66 Summary(pl): Pliki nag³ówkowe i dokumentacja dla cyrus-sasl
67 Summary(pt_BR): Exemplos e arquivos para desenvolvimento com SASL
68 Summary(ru): æÁÊÌÙ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó ÂÉÂÌÉÏÔÅËÏÊ Cyrus SASL
69 Summary(ru): æÁÊÌÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú Â¦Â̦ÏÔÅËÏÀ Cyrus SASL
70 Group: Development/Libraries
71 Requires: %{name} = %{version}
74 This includes the header files and documentation needed to develop
75 applications which use SASL.
77 %description devel -l pl
78 Pliki nag³ówkowe i dokumentacja dla cyrus-sasl.
80 %description devel -l pt_BR
81 Este pacote inclui os arquivos de cabeçalho e documentação necessários
82 para desenvolver aplicativos que usem SASL.
84 %description devel -l ru
85 èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
86 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
88 %description devel -l uk
89 èÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
90 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ Cyrus SASL.
93 Summary: Static cyrus-sasl libraries
94 Summary(pl): Statyczne biblioteki cyrus-sasl
95 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ Cyrus SASL
96 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ Cyrus SASL
97 Group: Development/Libraries
98 Requires: %{name}-devel = %{version}
101 Static cyrus-sasl libraries.
103 %description static -l pl
104 Statyczne biblioteki cyrus-sasl.
106 %description static -l ru
107 óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
108 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
110 %description static -l uk
111 óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ
115 Summary: Cram-MD5 Cyrus SASL plugin
116 Summary(pl): Wtyczka Cram-MD5 do Cyrus SASL
117 Summary(pt_BR): Mecanismo SASL CRAM-MD5
119 Requires: %{name} = %{version}
121 %description cram-md5
122 This plugin implements the SASL CRAM-MD5 mechanism. CRAM-MD5 is the
123 mandatory-to-implement authentication mechanism for a number of
124 protocols; it uses MD5 with a challenge/response system to
125 authenticate the user.
127 %description cram-md5 -l pl
128 Wtyczka dodaj±ca obs³ugê mechanizmu CRAM-MD5 do Cyrus SASL. CRAM-MD5
129 jest obowi±zkowym do zaimplementowania mechanizmem uwierzytelniania
130 dla wielu protoko³ów; do uwierzytelnienia u¿ytkownika u¿ywa MD5 wraz z
131 systemem challenge/response.
133 %description cram-md5 -l pt_BR
134 Este plugin implementa o mecanismo SASL CRAM-MD5. CRAM-MD5 é o
135 mecanismo de autenticação obrigatório de ser implementado para vários
136 protocolos: ele usa MD5 com um sistema de desafio/resposta para
137 autenticar o usuário.
140 Summary: Digest-MD5 Cyrus SASL plugin
141 Summary(pl): Wtyczka Digest-MD5 do Cyrus SASL
142 Summary(pt_BR): Mecanismo SASL DIGEST-MD5
144 Requires: %{name} = %{version}
146 %description digest-md5
147 This plugin implements the latest draft of the SASL DIGEST-MD5
148 mechanism. Although not yet finalized, this is likely to become the
149 new mandatory-to-implement authentication system in all new protocols.
150 It's based on the digest md5 authentication system designed for HTTP.
152 %description digest-md5 -l pl
153 Wtyczka dodaj±ca najnowsz± wersjê mechanizmu DIGEST-MD5 do Cyrus SASL.
154 Pomimo tego, ¿e nie jest jeszcze ukoñczony, najprawdopodobniej stanie
155 siê obowi±zkowym do zaimplementowania systemem uwierzytelniania we
156 wszystkich nowych protoko³ach. Bazuje na systemie uwierzytelniania
157 Digest-MD5 zaprojektowanym dla HTTP.
159 %description digest-md5 -l pt_BR
160 Este plugin implementa a última versão da especificação do mecanismo
161 SASL DIGEST-MD5. Embora ainda não esteja finalizado, DIGEST-MD5
162 provavelmente será o novo sistema de autenticação obrigatório para
163 protocolos novos. Ele é baseado na autenticação md5 digest
164 desenvolvida para HTTP.
167 Summary: Plain Cyrus SASL plugin
168 Summary(pl): Wtyczka plain do Cyrus SASL
169 Summary(pt_BR): Mecanismo SASL PLAIN
171 Requires: %{name} = %{version}
174 This plugin implements the SASL PLAIN mechanism. Although insecure,
175 PLAIN is useful for transitioning to new security mechanisms, as this
176 is the only mechanism which gives the server a copy of the user's
179 %description plain -l pl
180 Wtyczka dodaj±ca obs³ugê mechanizmu PLAIN do Cyrus SASL. Pomimo tego,
181 ¿e nie jest bezpieczny, PLAIN jest przydatny przy przechodzeniu na
182 nowe mechanizmu bezpieczeñstwa, jako ¿e jest to jedyny mechanizm,
183 który udostêpnia serwerowi kopiê has³a u¿ytkownika.
185 %description plain -l pt_BR
186 Este plugin implementa o mecanismo SASL PLAIN. Embora inseguro, este
187 mecanismo é útil durante transições para novos mecanismos de
188 segurança, pois é o único esquema que fornece uma cópia da senha do
189 usuário para o servidor.
192 Summary: Anonymous Cyrus SASL plugin
193 Summary(pl): Wtyczka anonymous do Cyrus SASL
194 Summary(pt_BR): Mecanismo SASL ANONYMOUS
196 Requires: %{name} = %{version}
198 %description anonymous
199 This plugin implements the SASL ANONYMOUS mechanism, used for
200 anonymous authentication.
202 %description anonymous -l pl
203 Wtyczka dodaj±ca obs³ugê mechanizmu ANONYMOUS do Cyrus SASL. S³u¿y do
204 anonimowego uwierzytelniania.
206 %description anonymous -l pt_BR
207 Este plugin implementa o mecanismo SASL ANONYMOUS, usado para
208 autenticação anônima.
211 Summary: Unsupported Login Cyrus SASL plugin
212 Summary(pl): Nie wspierana wtyczka Login do Cyrus SASL
214 Requires: %{name} = %{version}
217 Unsupported LOGIN Cyrus SASL plugin.
219 %description login -l pl
220 Wtyczka dodaj±ca obs³ugê nie wspieranego mechanizmu LOGIN do Cyrus
224 Summary: SRP Cyrus SASL plugin
225 Summary(pl): Wtyczka SRP do Cyrus SASL
226 Summary(pt_BR): Mecanismo SASL SRP
228 Requires: %{name} = %{version}
231 This plugin implements the SASL SRP mechanism, based on the Secure
232 Remote Password protocol. This mechanism performs mutual
233 authentication and can provide a security layer with replay detection,
234 integrity protection and/or condifentiality protection.
236 %description srp -l pl
237 Wtyczka dodaj±ca obs³ugê mechanizmu SRP do Cyrus SASL. Bazuje na
238 protokole Secure Remote Password. Ten mechanizm dokonuje wzajemnego
239 uwierzytelnienia i mo¿e dodawaæ warstwê bezpieczeñstwa z wykrywaniem
240 powtarzania, zabezpieczeniem integralno¶ci i/lub poufno¶ci.
242 %description srp -l pt_BR
243 Este plugin implementa o mecanismo SASL SRP, baseado no protocolo SRP
244 (Secure Remote Password). Este mecanismo oferece autenticação mútua
245 (do cliente e do servidor) e pode prover uma camada de segurança com
246 detecção de ataques de replay, garantia de integridade e/ou
250 Summary: OTP Cyrus SASL plugin
251 Summary(pl): Wtyczka OTP do Cyrus SASL
252 Summary(pt_BR): Mecanismo SASL OTP
254 Requires: %{name} = %{version}
257 This plugin implements the SASL OTP (One Time Password) mechanism.
259 %description otp -l pl
260 Wtyczka dodaj±ca obs³ugê mechanizmu OTP (has³a jednorazowe) do Cyrus
264 Summary: x509 Cyrus SASL plugin
265 Summary(pl): Wtyczka x509 do Cyrus SASL
267 Requires: %{name} = %{version}
270 x509 Cyrus SASL plugin.
272 %description x509 -l pl
273 Wtyczka x509 do Cyrus SASL.
276 Summary: Cyrus SASL authd
277 Summary(pl): Demon authd do Cyrus SASL
279 Requires: %{name} = %{version}
280 Prereq: /sbin/chkconfig
282 %description saslauthd
285 %description saslauthd -l pl
286 Demon authd do Cyrus SASL.
289 Summary: Cyrus SASL pwcheck helper
290 Summary(pl): Program pomocniczy pwcheck do Cyrus SASL
292 Requires: %{name} = %{version}
295 Cyrus SASL pwcheck helper.
297 %description pwcheck -l pl
298 Program pomocniczy pwcheck do Cyrus SASL.
301 Summary: Cyrus SASL sasldb plugin
302 Summary(pl): Wtyczka sasldb do Cyrus SASL
304 Requires: %{name} = %{version}
307 Cyrus SASL sasldb plugin.
309 %description sasldb -l pl
310 Wtyczka sasldb do Cyrus SASL.
313 Summary: Cyrus SASL mysql plugin
314 Summary(pl): Wtyczka mysql do Cyrus SASL
316 Requires: %{name} = %{version}
319 Cyrus SASL mysql plugin.
321 %description mysql -l pl
322 Wtyczka mysql do Cyrus SASL.
332 %{__aclocal} -I cmulocal -I config
339 %{__aclocal} -I ../cmulocal -I ../config -I config
345 LDFLAGS="%{rpmldflags} -ldl"; export LDFLAGS
349 %{?_with_srp:--enable-srp} \
350 %{?!_without_mysql: --with-mysql=%{_prefix}} \
351 %{?!_without_ldap: --with-ldap=%{_prefix}} \
352 %{?_with_pwcheck: --with-pwcheck=/var/lib/sasl2} \
353 --with-saslauthd=/var/lib/sasl2 \
355 --with-dblib=berkeley \
356 --with-dbpath=/var/lib/sasl2/sasl.db \
357 --with-configdir=%{_sysconfdir} \
362 rm -rf $RPM_BUILD_ROOT
363 install -d $RPM_BUILD_ROOT{/var/lib/sasl2,%{_sysconfdir},/etc/{rc.d/init.d,sysconfig,pam.d}} \
364 $RPM_BUILD_ROOT%{_mandir}/man8
365 %{__make} install DESTDIR=$RPM_BUILD_ROOT
367 rm -rf $RPM_BUILD_ROOT%{_mandir}/cat*
368 rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/*.la
370 install {utils,saslauthd}/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
372 ln -sf libsasl2.so $RPM_BUILD_ROOT%{_libdir}/libsasl.so
374 touch $RPM_BUILD_ROOT/var/lib/sasl2/sasl.db
376 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/saslauthd
377 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/saslauthd
378 install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/cyrus
381 rm -rf $RPM_BUILD_ROOT
383 %post -p /sbin/ldconfig
384 %postun -p /sbin/ldconfig
387 /sbin/chkconfig --add saslauthd
388 if [ -f /var/lock/subsys/saslauthd ]; then
389 /etc/rc.d/init.d/saslauthd restart 1>&2
391 echo "Run \"/etc/rc.d/init.d/saslauthd start\" to start saslauthd."
395 if [ "$1" = "0" ]; then
396 if [ -f /var/lock/subsys/saslauthd ]; then
397 /etc/rc.d/init.d/saslauthd stop 1>&2
399 /sbin/chkconfig --del saslauthd
403 %defattr(644,root,root,755)
404 %doc AUTHORS COPYING ChangeLog NEWS README
405 %doc doc/{ONEWS,TODO,*.txt,*.html,*.fig}
407 %dir %{_libdir}/sasl2
409 %attr(755,root,root) %{_libdir}/lib*.so.*.*
410 %attr(755,root,root) %{_sbindir}/sasldblistusers2
411 %attr(755,root,root) %{_sbindir}/saslpasswd2
413 %attr(640,root,mail) %ghost %config(noreplace) %verify(not mtime md5 size) /var/lib/sasl2/sasl.db
414 %{_mandir}/man8/sasldblistusers2.*
415 %{_mandir}/man8/saslpasswd2.*
418 %defattr(644,root,root,755)
420 %attr(755,root,root) %{_libdir}/lib*.so
425 %defattr(644,root,root,755)
427 %{_libdir}/sasl2/lib*.a
430 %defattr(644,root,root,755)
431 %attr(755,root,root) %{_libdir}/sasl2/libanonymous.so*
434 %defattr(644,root,root,755)
435 %attr(755,root,root) %{_libdir}/sasl2/libcrammd5.so*
438 %defattr(644,root,root,755)
439 %attr(755,root,root) %{_libdir}/sasl2/libdigestmd5.so*
442 %defattr(644,root,root,755)
443 %attr(755,root,root) %{_libdir}/sasl2/liblogin.so*
446 %defattr(644,root,root,755)
447 %attr(755,root,root) %{_libdir}/sasl2/libotp.so*
450 %defattr(644,root,root,755)
451 %attr(755,root,root) %{_libdir}/sasl2/libplain.so*
454 %defattr(644,root,root,755)
455 %attr(755,root,root) %{_libdir}/sasl2/libsasldb.so*
458 %defattr(644,root,root,755)
459 %attr(755,root,root) %{_libdir}/sasl2/libmysql*.so*
461 %if %{?_with_srp:1}%{?!_with_srp:0}
463 %defattr(644,root,root,755)
464 %attr(755,root,root) %{_libdir}/sasl2/libsrp.so*
467 %if %{?_with_x509:1}%{?!_with_x509:0}
469 %defattr(644,root,root,755)
470 %attr(755,root,root) %{_libdir}/sasl2/libx509.so*
473 %if %{?_with_pwcheck:1}%{?!_with_pwcheck:0}
475 %defattr(644,root,root,755)
476 %attr(755,root,root) %{_sbindir}/pwcheck
480 %defattr(644,root,root,755)
481 %attr(755,root,root) %{_sbindir}/saslauthd
482 %attr(754,root,root) /etc/rc.d/init.d/saslauthd
483 %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/saslauthd
484 %config(noreplace) %verify(not mtime md5 size) /etc/pam.d/cyrus
485 %{_mandir}/man8/saslauthd.*