2 # - possible SECURITY: http://securitytracker.com/alerts/2004/Oct/1011568.html
5 # x509 - build x509 pluggin
6 # srp - build srp pluggin
7 # _with_mysql - with mysql support
8 # _with_ldap - with ldap support
9 # _with_pwcheck - build pwcheck pluggin
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-mail/%{name}-%{version}.tar.gz
22 # Source0-md5: 60710be040801e9aff7353563b636518
23 Source1: saslauthd.init
24 Source2: saslauthd.sysconfig
26 Patch0: %{name}-configdir.patch
27 Patch1: %{name}-des.patch
28 Patch2: %{name}-mysql-ldap.patch
29 Patch3: %{name}-saslauthd.patch
30 #Patch4: http://www.imasy.or.jp/~ume/ipv6/cyrus-sasl-1.5.24-ipv6-20010321.diff.gz
31 Patch4: %{name}-ipv6.patch
32 Patch5: %{name}-ac25x.patch
33 Patch6: saslauthd-man.diff
34 Patch7: %{name}-unchecked_env.patch
35 BuildRequires: autoconf
36 BuildRequires: automake
37 BuildRequires: db3-devel >= 3.1.17-8
38 BuildRequires: pam-devel
39 BuildRequires: openssl-devel >= 0.9.6m
40 BuildRequires: libtool >= 1.4
41 %{?_with_mysql:BuildRequires: mysql-devel}
42 %{?_with_ldap:BuildRequires: openldap-devel}
43 URL: http://asg.web.cmu.edu/sasl/
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46 %define _sysconfdir /etc/sasl
49 This is an implemention of the SASL API, useful for adding
50 authentication, authorization, and security to network protocols. The
51 SASL protocol itself is documented in rfc2222; the API standard is a
55 Pakiet cyrus-sasl zawiera implementacjê biblioteki API SASL dla
56 systemu poczty elektronicznej Cyrusa. Biblioteka ta jest przydatna
57 tak¿e do dodawania uwierzytelniania, autoryzacji oraz zwiêkszania
58 bezpieczeñstwa protoko³ów sieciowych. Sam protokó³ SASL jest opisany
59 w RFC 2222; standaryzacja API jest w toku.
62 Esta é uma implementação da API SASL, útil para acrescentar autenticação,
63 autorização e seguança (criptografia) para protocolos de rede. O
64 protocolo SASL está documentado na RFC 2222. A API "padrão" ainda está
68 ðÁËÅÔ cyrus-sasl ÓÏÄÅÒÖÉÔ ÒÅÁÌÉÚÁÃÉÀ Cyrus SASL. SASL - ÜÔÏ Simple
69 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÂÁ×ÌÅÎÉÑ ÐÏÄÄÅÒÖËÉ
70 ÁÕÔÅÎÔÉËÁÃÉÉ Ë ÐÒÏÔÏËÏÌÁÍ, ÏÓÎÏ×ÁÎÎÙÍ ÎÁ ÓÏÅÄÉÎÅÎÉÑÈ.
73 ðÁËÅÔ cyrus-sasl ͦÓÔÉÔØ ÒÅÁ̦ÚÁæÀ Cyrus SASL. SASL - ÃÅ Simple
74 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÄÁÎÎÑ Ð¦ÄÔÒÉÍËÉ
75 ÁÕÔÅÎÔÉËÁæ§ ÄÏ ÐÒÏÔÏËÏ̦×, ÂÁÚÏ×ÁÎÉÈ ÎÁ Ú'¤ÄÎÁÎÎÑÈ.
78 Summary: Header files and documentation for cyrus-sasl
79 Summary(pl): Pliki nag³ówkowe i dokumentacja dla cyrus-sasl
80 Summary(pt_BR): Exemplos e arquivos para desenvolvimento com SASL
81 Summary(ru): æÁÊÌÙ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó ÂÉÂÌÉÏÔÅËÏÊ Cyrus SASL
82 Summary(ru): æÁÊÌÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú Â¦Â̦ÏÔÅËÏÀ Cyrus SASL
83 Group: Development/Libraries
84 Requires: %{name} = %{version}
89 This includes the header files and documentation needed to develop
90 applications which use SASL.
92 %description devel -l pl
93 Pliki nag³ówkowe i dokumentacja dla cyrus-sasl.
95 %description devel -l pt_BR
96 Este pacote inclui os arquivos de cabeçalho e documentação necessários
97 para desenvolver aplicativos que usem SASL.
99 %description devel -l ru
100 èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
101 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
103 %description devel -l uk
104 èÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
105 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ Cyrus SASL.
108 Summary: Static cyrus-sasl libraries
109 Summary(pl): Statyczne biblioteki cyrus-sasl
110 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ Cyrus SASL
111 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ Cyrus SASL
112 Group: Development/Libraries
113 Requires: %{name}-devel = %{version}
116 Static cyrus-sasl libraries.
118 %description static -l pl
119 Statyczne biblioteki cyrus-sasl.
121 %description static -l ru
122 óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
123 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
125 %description static -l uk
126 óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ
130 Summary: Cram-MD5 Cyrus SASL plugin
131 Summary(pl): Wtyczka Cram-MD5 do Cyrus SASL
132 Summary(pt_BR): Mecanismo SASL CRAM-MD5
134 Requires: %{name} = %{version}
136 %description cram-md5
137 This plugin implements the SASL CRAM-MD5 mechanism. CRAM-MD5 is the
138 mandatory-to-implement authentication mechanism for a number of
139 protocols; it uses MD5 with a challenge/response system to
140 authenticate the user.
142 %description cram-md5 -l pl
143 Wtyczka dodaj±ca obs³ugê mechanizmu CRAM-MD5 do Cyrus SASL. CRAM-MD5
144 jest obowi±zkowym do zaimplementowania mechanizmem uwierzytelniania
145 dla wielu protoko³ów; do uwierzytelnienia u¿ytkownika u¿ywa MD5 wraz
146 z systemem challenge/response.
148 %description cram-md5 -l pt_BR
149 Este plugin implementa o mecanismo SASL CRAM-MD5. CRAM-MD5 é o
150 mecanismo de autenticação obrigatório de ser implementado para vários
151 protocolos: ele usa MD5 com um sistema de desafio/resposta para
152 autenticar o usuário.
155 Summary: Digest-MD5 Cyrus SASL plugin
156 Summary(pl): Wtyczka Digest-MD5 do Cyrus SASL
157 Summary(pt_BR): Mecanismo SASL DIGEST-MD5
159 Requires: %{name} = %{version}
161 %description digest-md5
162 This plugin implements the latest draft of the SASL DIGEST-MD5
163 mechanism. Although not yet finalized, this is likely to become the
164 new mandatory-to-implement authentication system in all new protocols.
165 It's based on the digest md5 authentication system designed for HTTP.
167 %description digest-md5 -l pl
168 Wtyczka dodaj±ca najnowsz± wersjê mechanizmu DIGEST-MD5 do Cyrus SASL.
169 Pomimo tego, ¿e nie jest jeszcze ukoñczony, najprawdopodobniej stanie
170 siê obowi±zkowym do zaimplementowania systemem uwierzytelniania we
171 wszystkich nowych protoko³ach. Bazuje na systemie uwierzytelniania
172 Digest-MD5 zaprojektowanym dla HTTP.
174 %description digest-md5 -l pt_BR
175 Este plugin implementa a última versão da especificação do
176 mecanismo SASL DIGEST-MD5. Embora ainda não esteja finalizado,
177 DIGEST-MD5 provavelmente será o novo sistema de autenticação obrigatório
178 para protocolos novos. Ele é baseado na autenticação md5 digest
179 desenvolvida para HTTP.
182 Summary: Plain Cyrus SASL plugin
183 Summary(pl): Wtyczka plain do Cyrus SASL
184 Summary(pt_BR): Mecanismo SASL PLAIN
186 Requires: %{name} = %{version}
189 This plugin implements the SASL PLAIN mechanism. Although insecure,
190 PLAIN is useful for transitioning to new security mechanisms, as this
191 is the only mechanism which gives the server a copy of the user's
194 %description plain -l pl
195 Wtyczka dodaj±ca obs³ugê mechanizmu PLAIN do Cyrus SASL. Pomimo tego,
196 ¿e nie jest bezpieczny, PLAIN jest przydatny przy przechodzeniu na
197 nowe mechanizmu bezpieczeñstwa, jako ¿e jest to jedyny mechanizm,
198 który udostêpnia serwerowi kopiê has³a u¿ytkownika.
200 %description plain -l pt_BR
201 Este plugin implementa o mecanismo SASL PLAIN. Embora inseguro,
202 este mecanismo é útil durante transições para novos mecanismos de
203 segurança, pois é o único esquema que fornece uma cópia da senha
204 do usuário para o servidor.
207 Summary: Anonymous Cyrus SASL plugin
208 Summary(pl): Wtyczka anonymous do Cyrus SASL
209 Summary(pt_BR): Mecanismo SASL ANONYMOUS
211 Requires: %{name} = %{version}
213 %description anonymous
214 This plugin implements the SASL ANONYMOUS mechanism,
215 used for anonymous authentication.
217 %description anonymous -l pl
218 Wtyczka dodaj±ca obs³ugê mechanizmu ANONYMOUS do Cyrus SASL. S³u¿y do
219 anonimowego uwierzytelniania.
221 %description anonymous -l pt_BR
222 Este plugin implementa o mecanismo SASL ANONYMOUS, usado
223 para autenticação anônima.
226 Summary: Unsupported Login Cyrus SASL plugin
227 Summary(pl): Nie wspierana wtyczka Login do Cyrus SASL
229 Requires: %{name} = %{version}
232 Unsupported LOGIN Cyrus SASL plugin.
234 %description login -l pl
235 Wtyczka dodaj±ca obs³ugê nie wspieranego mechanizmu LOGIN do Cyrus
239 Summary: SRP Cyrus SASL plugin
240 Summary(pl): Wtyczka SRP do Cyrus SASL
241 Summary(pt_BR): Mecanismo SASL SRP
243 Requires: %{name} = %{version}
246 This plugin implements the SASL SRP mechanism, based on the
247 Secure Remote Password protocol. This mechanism performs mutual
248 authentication and can provide a security layer with replay
249 detection, integrity protection and/or condifentiality
252 %description srp -l pl
253 Wtyczka dodaj±ca obs³ugê mechanizmu SRP do Cyrus SASL. Bazuje na
254 protokole Secure Remote Password. Ten mechanizm dokonuje wzajemnego
255 uwierzytelnienia i mo¿e dodawaæ warstwê bezpieczeñstwa z wykrywaniem
256 powtarzania, zabezpieczeniem integralno¶ci i/lub poufno¶ci.
258 %description srp -l pt_BR
259 Este plugin implementa o mecanismo SASL SRP, baseado no protocolo SRP (Secure
260 Remote Password). Este mecanismo oferece autenticação mútua (do cliente e do
261 servidor) e pode prover uma camada de segurança com detecção de ataques de
262 replay, garantia de integridade e/ou confidencialidade.
265 Summary: x509 Cyrus SASL plugin
266 Summary(pl): Wtyczka x509 do Cyrus SASL
268 Requires: %{name} = %{version}
271 x509 Cyrus SASL plugin.
273 %description x509 -l pl
274 Wtyczka x509 do Cyrus SASL.
277 Summary: Cyrus SASL authd
278 Summary(pl): Demon authd do Cyrus SASL
280 Requires: %{name} = %{version}
281 Prereq: /sbin/chkconfig
283 %description saslauthd
286 %description saslauthd -l pl
287 Demon authd do Cyrus SASL.
290 Summary: Cyrus SASL pwcheck helper
291 Summary(pl): Program pomocniczy pwcheck do Cyrus SASL
293 Requires: %{name} = %{version}
296 Cyrus SASL pwcheck helper.
298 %description pwcheck -l pl
299 Program pomocniczy pwcheck do Cyrus SASL.
315 %{__aclocal} -I cmulocal
319 LDFLAGS="%{rpmldflags} -ldl"; export LDFLAGS
325 %{?_with_srp:--enable-srp} \
326 %{?_with_x509:--enable-x509} \
327 %{?_with_mysql: --with-mysql=%{_prefix}} \
328 %{?_with_ldap: --with-ldap=%{_prefix}} \
329 %{?_with_pwcheck: --with-pwcheck=/var/lib/sasl} \
330 --with-saslauthd=/var/lib/sasl \
332 --with-dblib=berkeley \
333 --with-dbpath=/var/lib/sasl/sasl.db \
334 --with-configdir=%{_sysconfdir}
338 rm -rf $RPM_BUILD_ROOT
339 install -d $RPM_BUILD_ROOT{/var/lib/sasl,%{_sysconfdir},/etc/{rc.d/init.d,sysconfig,pam.d}}
341 %{__make} install DESTDIR=$RPM_BUILD_ROOT
343 touch $RPM_BUILD_ROOT/var/lib/sasl/sasl.db
345 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/saslauthd
346 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/saslauthd
347 install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/cyrus
350 rm -rf $RPM_BUILD_ROOT
352 %post -p /sbin/ldconfig
353 %postun -p /sbin/ldconfig
356 /sbin/chkconfig --add saslauthd
357 if [ -f /var/lock/subsys/saslauthd ]; then
358 /etc/rc.d/init.d/saslauthd restart 1>&2
360 echo "Run \"/etc/rc.d/init.d/saslauthd start\" to start saslauthd."
364 if [ "$1" = "0" ]; then
365 if [ -f /var/lock/subsys/saslauthd ]; then
366 /etc/rc.d/init.d/saslauthd stop 1>&2
368 /sbin/chkconfig --del saslauthd
372 %defattr(644,root,root,755)
373 %doc COPYING testing.txt NEWS TODO README doc/*.txt doc/*.html
377 %attr(755,root,root) %{_libdir}/lib*.so.*.*
378 %attr(755,root,root) %{_sbindir}/sasldblistusers
379 %attr(755,root,root) %{_sbindir}/saslpasswd
381 %attr(640,root,mail) %ghost %config(noreplace) %verify(not mtime md5 size) /var/lib/sasl/sasl.db
385 %defattr(644,root,root,755)
387 %attr(755,root,root) %{_libdir}/lib*.so
388 %attr(755,root,root) %{_libdir}/lib*.la
392 %defattr(644,root,root,755)
394 %{_libdir}/sasl/lib*.a
397 %defattr(644,root,root,755)
398 %attr(755,root,root) %{_libdir}/sasl/libcrammd5.so*
401 %defattr(644,root,root,755)
402 %attr(755,root,root) %{_libdir}/sasl/libdigestmd5.so*
405 %defattr(644,root,root,755)
406 %attr(755,root,root) %{_libdir}/sasl/libplain.so*
409 %defattr(644,root,root,755)
410 %attr(755,root,root) %{_libdir}/sasl/libanonymous.so*
413 %defattr(644,root,root,755)
414 %attr(755,root,root) %{_libdir}/sasl/liblogin.so*
416 %if %{?_with_srp:1}%{?!_with_srp:0}
418 %defattr(644,root,root,755)
419 %attr(755,root,root) %{_libdir}/sasl/libsrp.so*
422 %if %{?_with_x509:1}%{?!_with_x509:0}
424 %defattr(644,root,root,755)
425 %attr(755,root,root) %{_libdir}/sasl/libx509.so*
428 %if %{?_with_pwcheck:1}%{?!_with_pwcheck:0}
430 %defattr(644,root,root,755)
431 %attr(755,root,root) %{_sbindir}/pwcheck
435 %defattr(644,root,root,755)
436 %attr(755,root,root) %{_sbindir}/saslauthd
437 %attr(754,root,root) /etc/rc.d/init.d/saslauthd
438 %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/saslauthd
439 %config(noreplace) %verify(not mtime md5 size) /etc/pam.d/cyrus