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 Patch1: %{name}-nolibs.patch
23 Patch2: %{name}-lt14d.patch
24 Patch3: %{name}-do_dlopen.patch
25 BuildRequires: autoconf
26 BuildRequires: automake
27 BuildRequires: db-devel
29 BuildRequires: libtool >= 1.4
30 %{!?_without_mysql:BuildRequires: mysql-devel}
31 %{!?_without_ldap:BuildRequires: openldap-devel}
32 BuildRequires: openssl-devel >= 0.9.7
33 BuildRequires: pam-devel
34 URL: http://asg.web.cmu.edu/sasl/
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37 %define _sysconfdir /etc/sasl
40 This is an implementation of the SASL API, useful for adding
41 authentication, authorization, and security to network protocols. The
42 SASL protocol itself is documented in rfc2222; the API standard is a
46 Pakiet cyrus-sasl zawiera implementacjê biblioteki API SASL dla
47 systemu poczty elektronicznej Cyrusa. Biblioteka ta jest przydatna
48 tak¿e do dodawania uwierzytelniania, autoryzacji oraz zwiêkszania
49 bezpieczeñstwa protoko³ów sieciowych. Sam protokó³ SASL jest opisany w
50 RFC 2222; standaryzacja API jest w toku.
53 Esta é uma implementação da API SASL, útil para acrescentar
54 autenticação, autorização e seguança (criptografia) para protocolos de
55 rede. O protocolo SASL está documentado na RFC 2222. A API "padrão"
56 ainda está em desenvolvimento.
59 ðÁËÅÔ cyrus-sasl ÓÏÄÅÒÖÉÔ ÒÅÁÌÉÚÁÃÉÀ Cyrus SASL. SASL - ÜÔÏ Simple
60 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÂÁ×ÌÅÎÉÑ ÐÏÄÄÅÒÖËÉ
61 ÁÕÔÅÎÔÉËÁÃÉÉ Ë ÐÒÏÔÏËÏÌÁÍ, ÏÓÎÏ×ÁÎÎÙÍ ÎÁ ÓÏÅÄÉÎÅÎÉÑÈ.
64 ðÁËÅÔ cyrus-sasl ͦÓÔÉÔØ ÒÅÁ̦ÚÁæÀ Cyrus SASL. SASL - ÃÅ Simple
65 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÄÁÎÎÑ Ð¦ÄÔÒÉÍËÉ
66 ÁÕÔÅÎÔÉËÁæ§ ÄÏ ÐÒÏÔÏËÏ̦×, ÂÁÚÏ×ÁÎÉÈ ÎÁ Ú'¤ÄÎÁÎÎÑÈ.
69 Summary: Header files and documentation for cyrus-sasl
70 Summary(pl): Pliki nag³ówkowe i dokumentacja dla cyrus-sasl
71 Summary(pt_BR): Exemplos e arquivos para desenvolvimento com SASL
72 Summary(ru): æÁÊÌÙ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó ÂÉÂÌÉÏÔÅËÏÊ Cyrus SASL
73 Summary(ru): æÁÊÌÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú Â¦Â̦ÏÔÅËÏÀ Cyrus SASL
74 Group: Development/Libraries
75 Requires: %{name} = %{version}
78 This includes the header files and documentation needed to develop
79 applications which use SASL.
81 %description devel -l pl
82 Pliki nag³ówkowe i dokumentacja dla cyrus-sasl.
84 %description devel -l pt_BR
85 Este pacote inclui os arquivos de cabeçalho e documentação necessários
86 para desenvolver aplicativos que usem SASL.
88 %description devel -l ru
89 èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
90 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
92 %description devel -l uk
93 èÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
94 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ Cyrus SASL.
97 Summary: Static cyrus-sasl libraries
98 Summary(pl): Statyczne biblioteki cyrus-sasl
99 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ Cyrus SASL
100 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ Cyrus SASL
101 Group: Development/Libraries
102 Requires: %{name}-devel = %{version}
105 Static cyrus-sasl libraries.
107 %description static -l pl
108 Statyczne biblioteki cyrus-sasl.
110 %description static -l ru
111 óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
112 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
114 %description static -l uk
115 óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ
119 Summary: Cram-MD5 Cyrus SASL plugin
120 Summary(pl): Wtyczka Cram-MD5 do Cyrus SASL
121 Summary(pt_BR): Mecanismo SASL CRAM-MD5
123 Requires: %{name} = %{version}
125 %description cram-md5
126 This plugin implements the SASL CRAM-MD5 mechanism. CRAM-MD5 is the
127 mandatory-to-implement authentication mechanism for a number of
128 protocols; it uses MD5 with a challenge/response system to
129 authenticate the user.
131 %description cram-md5 -l pl
132 Wtyczka dodaj±ca obs³ugê mechanizmu CRAM-MD5 do Cyrus SASL. CRAM-MD5
133 jest obowi±zkowym do zaimplementowania mechanizmem uwierzytelniania
134 dla wielu protoko³ów; do uwierzytelnienia u¿ytkownika u¿ywa MD5 wraz z
135 systemem challenge/response.
137 %description cram-md5 -l pt_BR
138 Este plugin implementa o mecanismo SASL CRAM-MD5. CRAM-MD5 é o
139 mecanismo de autenticação obrigatório de ser implementado para vários
140 protocolos: ele usa MD5 com um sistema de desafio/resposta para
141 autenticar o usuário.
144 Summary: Digest-MD5 Cyrus SASL plugin
145 Summary(pl): Wtyczka Digest-MD5 do Cyrus SASL
146 Summary(pt_BR): Mecanismo SASL DIGEST-MD5
148 Requires: %{name} = %{version}
150 %description digest-md5
151 This plugin implements the latest draft of the SASL DIGEST-MD5
152 mechanism. Although not yet finalized, this is likely to become the
153 new mandatory-to-implement authentication system in all new protocols.
154 It's based on the digest md5 authentication system designed for HTTP.
156 %description digest-md5 -l pl
157 Wtyczka dodaj±ca najnowsz± wersjê mechanizmu DIGEST-MD5 do Cyrus SASL.
158 Pomimo tego, ¿e nie jest jeszcze ukoñczony, najprawdopodobniej stanie
159 siê obowi±zkowym do zaimplementowania systemem uwierzytelniania we
160 wszystkich nowych protoko³ach. Bazuje na systemie uwierzytelniania
161 Digest-MD5 zaprojektowanym dla HTTP.
163 %description digest-md5 -l pt_BR
164 Este plugin implementa a última versão da especificação do mecanismo
165 SASL DIGEST-MD5. Embora ainda não esteja finalizado, DIGEST-MD5
166 provavelmente será o novo sistema de autenticação obrigatório para
167 protocolos novos. Ele é baseado na autenticação md5 digest
168 desenvolvida para HTTP.
171 Summary: Plain Cyrus SASL plugin
172 Summary(pl): Wtyczka plain do Cyrus SASL
173 Summary(pt_BR): Mecanismo SASL PLAIN
175 Requires: %{name} = %{version}
178 This plugin implements the SASL PLAIN mechanism. Although insecure,
179 PLAIN is useful for transitioning to new security mechanisms, as this
180 is the only mechanism which gives the server a copy of the user's
183 %description plain -l pl
184 Wtyczka dodaj±ca obs³ugê mechanizmu PLAIN do Cyrus SASL. Pomimo tego,
185 ¿e nie jest bezpieczny, PLAIN jest przydatny przy przechodzeniu na
186 nowe mechanizmu bezpieczeñstwa, jako ¿e jest to jedyny mechanizm,
187 który udostêpnia serwerowi kopiê has³a u¿ytkownika.
189 %description plain -l pt_BR
190 Este plugin implementa o mecanismo SASL PLAIN. Embora inseguro, este
191 mecanismo é útil durante transições para novos mecanismos de
192 segurança, pois é o único esquema que fornece uma cópia da senha do
193 usuário para o servidor.
196 Summary: Anonymous Cyrus SASL plugin
197 Summary(pl): Wtyczka anonymous do Cyrus SASL
198 Summary(pt_BR): Mecanismo SASL ANONYMOUS
200 Requires: %{name} = %{version}
202 %description anonymous
203 This plugin implements the SASL ANONYMOUS mechanism, used for
204 anonymous authentication.
206 %description anonymous -l pl
207 Wtyczka dodaj±ca obs³ugê mechanizmu ANONYMOUS do Cyrus SASL. S³u¿y do
208 anonimowego uwierzytelniania.
210 %description anonymous -l pt_BR
211 Este plugin implementa o mecanismo SASL ANONYMOUS, usado para
212 autenticação anônima.
215 Summary: Unsupported Login Cyrus SASL plugin
216 Summary(pl): Nie wspierana wtyczka Login do Cyrus SASL
218 Requires: %{name} = %{version}
221 Unsupported LOGIN Cyrus SASL plugin.
223 %description login -l pl
224 Wtyczka dodaj±ca obs³ugê nie wspieranego mechanizmu LOGIN do Cyrus
228 Summary: SRP Cyrus SASL plugin
229 Summary(pl): Wtyczka SRP do Cyrus SASL
230 Summary(pt_BR): Mecanismo SASL SRP
232 Requires: %{name} = %{version}
235 This plugin implements the SASL SRP mechanism, based on the Secure
236 Remote Password protocol. This mechanism performs mutual
237 authentication and can provide a security layer with replay detection,
238 integrity protection and/or condifentiality protection.
240 %description srp -l pl
241 Wtyczka dodaj±ca obs³ugê mechanizmu SRP do Cyrus SASL. Bazuje na
242 protokole Secure Remote Password. Ten mechanizm dokonuje wzajemnego
243 uwierzytelnienia i mo¿e dodawaæ warstwê bezpieczeñstwa z wykrywaniem
244 powtarzania, zabezpieczeniem integralno¶ci i/lub poufno¶ci.
246 %description srp -l pt_BR
247 Este plugin implementa o mecanismo SASL SRP, baseado no protocolo SRP
248 (Secure Remote Password). Este mecanismo oferece autenticação mútua
249 (do cliente e do servidor) e pode prover uma camada de segurança com
250 detecção de ataques de replay, garantia de integridade e/ou
254 Summary: OTP Cyrus SASL plugin
255 Summary(pl): Wtyczka OTP do Cyrus SASL
256 Summary(pt_BR): Mecanismo SASL OTP
258 Requires: %{name} = %{version}
261 This plugin implements the SASL OTP (One Time Password) mechanism.
263 %description otp -l pl
264 Wtyczka dodaj±ca obs³ugê mechanizmu OTP (has³a jednorazowe) do Cyrus
268 Summary: x509 Cyrus SASL plugin
269 Summary(pl): Wtyczka x509 do Cyrus SASL
271 Requires: %{name} = %{version}
274 x509 Cyrus SASL plugin.
276 %description x509 -l pl
277 Wtyczka x509 do Cyrus SASL.
280 Summary: Cyrus SASL authd
281 Summary(pl): Demon authd do Cyrus SASL
283 Requires(post,postun): /sbin/chkconfig
284 Requires: %{name} = %{version}
286 %description saslauthd
289 %description saslauthd -l pl
290 Demon authd do Cyrus SASL.
293 Summary: Cyrus SASL pwcheck helper
294 Summary(pl): Program pomocniczy pwcheck do Cyrus SASL
296 Requires: %{name} = %{version}
299 Cyrus SASL pwcheck helper.
301 %description pwcheck -l pl
302 Program pomocniczy pwcheck do Cyrus SASL.
305 Summary: Cyrus SASL sasldb plugin
306 Summary(pl): Wtyczka sasldb do Cyrus SASL
308 Requires: %{name} = %{version}
311 Cyrus SASL sasldb plugin.
313 %description sasldb -l pl
314 Wtyczka sasldb do Cyrus SASL.
317 Summary: Cyrus SASL mysql plugin
318 Summary(pl): Wtyczka mysql do Cyrus SASL
320 Requires: %{name} = %{version}
323 Cyrus SASL mysql plugin.
325 %description mysql -l pl
326 Wtyczka mysql do Cyrus SASL.
336 echo "cyrus-sasl complies with the following RFCs:" > rfc-compliance
337 ls rfc*.txt >> rfc-compliance
342 # acinclude.m4 contains only old libtool.m4
343 rm -f acinclude.m4 config/missing
345 %{__aclocal} -I cmulocal -I config
351 %{__aclocal} -I ../cmulocal -I ../config -I config
357 LDFLAGS="%{rpmldflags} -ldl"; export LDFLAGS
361 %{?_with_srp:--enable-srp} \
362 %{?!_without_mysql: --with-mysql=%{_prefix}} \
363 %{?!_without_ldap: --with-ldap=%{_prefix}} \
364 %{?_with_pwcheck: --with-pwcheck=/var/lib/sasl2} \
365 --with-saslauthd=/var/lib/sasl2 \
367 --with-dblib=berkeley \
368 --with-dbpath=/var/lib/sasl2/sasl.db \
369 --with-configdir=%{_sysconfdir} \
375 RFCLIST=`grep 'rfc.\+\.txt' rfc-compliance`
376 for i in $RFCLIST; do
377 RFCDIR=../RFC/text/`echo $i | sed -e 's:^rfc::' -e 's:..\.txt$::' `00
378 echo -e ',s:'$i':'$RFCDIR/$i'\n,w\nq' | ed index.html
383 rm -rf $RPM_BUILD_ROOT
384 install -d $RPM_BUILD_ROOT{/var/lib/sasl2,%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
385 $RPM_BUILD_ROOT%{_mandir}/man8
386 %{__make} install DESTDIR=$RPM_BUILD_ROOT
388 rm -rf $RPM_BUILD_ROOT%{_mandir}/cat*
389 rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/*.la
391 install {utils,saslauthd}/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
393 ln -sf libsasl2.so $RPM_BUILD_ROOT%{_libdir}/libsasl.so
395 touch $RPM_BUILD_ROOT/var/lib/sasl2/sasl.db
397 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/saslauthd
398 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/saslauthd
399 install %{SOURCE3} ./cyrus.pam
402 rm -rf $RPM_BUILD_ROOT
404 %post -p /sbin/ldconfig
405 %postun -p /sbin/ldconfig
408 /sbin/chkconfig --add saslauthd
409 if [ -f /var/lock/subsys/saslauthd ]; then
410 /etc/rc.d/init.d/saslauthd restart 1>&2
412 echo "Run \"/etc/rc.d/init.d/saslauthd start\" to start saslauthd."
416 if [ "$1" = "0" ]; then
417 if [ -f /var/lock/subsys/saslauthd ]; then
418 /etc/rc.d/init.d/saslauthd stop 1>&2
420 /sbin/chkconfig --del saslauthd
424 %defattr(644,root,root,755)
425 %doc AUTHORS COPYING ChangeLog NEWS README
426 %doc doc/{ONEWS,TODO,*.txt,*.html,*.fig,rfc-compliance}
428 %dir %{_libdir}/sasl2
430 %attr(755,root,root) %{_libdir}/lib*.so.*.*
431 %attr(755,root,root) %{_sbindir}/sasldblistusers2
432 %attr(755,root,root) %{_sbindir}/saslpasswd2
434 %attr(640,root,mail) %ghost %config(noreplace) %verify(not mtime md5 size) /var/lib/sasl2/sasl.db
435 %{_mandir}/man8/sasldblistusers2.*
436 %{_mandir}/man8/saslpasswd2.*
439 %defattr(644,root,root,755)
441 %attr(755,root,root) %{_libdir}/lib*.so
446 %defattr(644,root,root,755)
448 %{_libdir}/sasl2/lib*.a
451 %defattr(644,root,root,755)
452 %attr(755,root,root) %{_libdir}/sasl2/libanonymous.so*
455 %defattr(644,root,root,755)
456 %attr(755,root,root) %{_libdir}/sasl2/libcrammd5.so*
459 %defattr(644,root,root,755)
460 %attr(755,root,root) %{_libdir}/sasl2/libdigestmd5.so*
463 %defattr(644,root,root,755)
464 %attr(755,root,root) %{_libdir}/sasl2/liblogin.so*
467 %defattr(644,root,root,755)
468 %attr(755,root,root) %{_libdir}/sasl2/libotp.so*
471 %defattr(644,root,root,755)
472 %attr(755,root,root) %{_libdir}/sasl2/libplain.so*
475 %defattr(644,root,root,755)
476 %attr(755,root,root) %{_libdir}/sasl2/libsasldb.so*
478 %if %{!?_without_mysql:1}%{?_without_mysql:0}
480 %defattr(644,root,root,755)
481 %attr(755,root,root) %{_libdir}/sasl2/libmysql*.so*
484 %if %{?_with_srp:1}%{?!_with_srp:0}
486 %defattr(644,root,root,755)
487 %attr(755,root,root) %{_libdir}/sasl2/libsrp.so*
490 %if %{?_with_x509:1}%{?!_with_x509:0}
492 %defattr(644,root,root,755)
493 %attr(755,root,root) %{_libdir}/sasl2/libx509.so*
496 %if %{?_with_pwcheck:1}%{?!_with_pwcheck:0}
498 %defattr(644,root,root,755)
499 %attr(755,root,root) %{_sbindir}/pwcheck
503 %defattr(644,root,root,755)
505 %attr(755,root,root) %{_sbindir}/saslauthd
506 %attr(754,root,root) /etc/rc.d/init.d/saslauthd
507 %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/saslauthd
508 %{_mandir}/man8/saslauthd.*