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
28 BuildRequires: libtool >= 1.4
29 %{!?_without_mysql:BuildRequires: mysql-devel}
30 %{!?_without_ldap:BuildRequires: openldap-devel}
31 BuildRequires: openssl-devel >= 0.9.7
32 BuildRequires: pam-devel
33 URL: http://asg.web.cmu.edu/sasl/
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 %define _sysconfdir /etc/sasl
39 This is an implementation of the SASL API, useful for adding
40 authentication, authorization, and security to network protocols. The
41 SASL protocol itself is documented in rfc2222; the API standard is a
45 Pakiet cyrus-sasl zawiera implementacjê biblioteki API SASL dla
46 systemu poczty elektronicznej Cyrusa. Biblioteka ta jest przydatna
47 tak¿e do dodawania uwierzytelniania, autoryzacji oraz zwiêkszania
48 bezpieczeñstwa protoko³ów sieciowych. Sam protokó³ SASL jest opisany w
49 RFC 2222; standaryzacja API jest w toku.
52 Esta é uma implementação da API SASL, útil para acrescentar
53 autenticação, autorização e seguança (criptografia) para protocolos de
54 rede. O protocolo SASL está documentado na RFC 2222. A API "padrão"
55 ainda está em desenvolvimento.
58 ðÁËÅÔ cyrus-sasl ÓÏÄÅÒÖÉÔ ÒÅÁÌÉÚÁÃÉÀ Cyrus SASL. SASL - ÜÔÏ Simple
59 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÂÁ×ÌÅÎÉÑ ÐÏÄÄÅÒÖËÉ
60 ÁÕÔÅÎÔÉËÁÃÉÉ Ë ÐÒÏÔÏËÏÌÁÍ, ÏÓÎÏ×ÁÎÎÙÍ ÎÁ ÓÏÅÄÉÎÅÎÉÑÈ.
63 ðÁËÅÔ cyrus-sasl ͦÓÔÉÔØ ÒÅÁ̦ÚÁæÀ Cyrus SASL. SASL - ÃÅ Simple
64 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÄÁÎÎÑ Ð¦ÄÔÒÉÍËÉ
65 ÁÕÔÅÎÔÉËÁæ§ ÄÏ ÐÒÏÔÏËÏ̦×, ÂÁÚÏ×ÁÎÉÈ ÎÁ Ú'¤ÄÎÁÎÎÑÈ.
68 Summary: Header files and documentation for cyrus-sasl
69 Summary(pl): Pliki nag³ówkowe i dokumentacja dla cyrus-sasl
70 Summary(pt_BR): Exemplos e arquivos para desenvolvimento com SASL
71 Summary(ru): æÁÊÌÙ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó ÂÉÂÌÉÏÔÅËÏÊ Cyrus SASL
72 Summary(ru): æÁÊÌÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú Â¦Â̦ÏÔÅËÏÀ Cyrus SASL
73 Group: Development/Libraries
74 Requires: %{name} = %{version}
77 This includes the header files and documentation needed to develop
78 applications which use SASL.
80 %description devel -l pl
81 Pliki nag³ówkowe i dokumentacja dla cyrus-sasl.
83 %description devel -l pt_BR
84 Este pacote inclui os arquivos de cabeçalho e documentação necessários
85 para desenvolver aplicativos que usem SASL.
87 %description devel -l ru
88 èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
89 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
91 %description devel -l uk
92 èÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
93 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ Cyrus SASL.
96 Summary: Static cyrus-sasl libraries
97 Summary(pl): Statyczne biblioteki cyrus-sasl
98 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ Cyrus SASL
99 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ Cyrus SASL
100 Group: Development/Libraries
101 Requires: %{name}-devel = %{version}
104 Static cyrus-sasl libraries.
106 %description static -l pl
107 Statyczne biblioteki cyrus-sasl.
109 %description static -l ru
110 óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
111 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
113 %description static -l uk
114 óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ
118 Summary: Cram-MD5 Cyrus SASL plugin
119 Summary(pl): Wtyczka Cram-MD5 do Cyrus SASL
120 Summary(pt_BR): Mecanismo SASL CRAM-MD5
122 Requires: %{name} = %{version}
124 %description cram-md5
125 This plugin implements the SASL CRAM-MD5 mechanism. CRAM-MD5 is the
126 mandatory-to-implement authentication mechanism for a number of
127 protocols; it uses MD5 with a challenge/response system to
128 authenticate the user.
130 %description cram-md5 -l pl
131 Wtyczka dodaj±ca obs³ugê mechanizmu CRAM-MD5 do Cyrus SASL. CRAM-MD5
132 jest obowi±zkowym do zaimplementowania mechanizmem uwierzytelniania
133 dla wielu protoko³ów; do uwierzytelnienia u¿ytkownika u¿ywa MD5 wraz z
134 systemem challenge/response.
136 %description cram-md5 -l pt_BR
137 Este plugin implementa o mecanismo SASL CRAM-MD5. CRAM-MD5 é o
138 mecanismo de autenticação obrigatório de ser implementado para vários
139 protocolos: ele usa MD5 com um sistema de desafio/resposta para
140 autenticar o usuário.
143 Summary: Digest-MD5 Cyrus SASL plugin
144 Summary(pl): Wtyczka Digest-MD5 do Cyrus SASL
145 Summary(pt_BR): Mecanismo SASL DIGEST-MD5
147 Requires: %{name} = %{version}
149 %description digest-md5
150 This plugin implements the latest draft of the SASL DIGEST-MD5
151 mechanism. Although not yet finalized, this is likely to become the
152 new mandatory-to-implement authentication system in all new protocols.
153 It's based on the digest md5 authentication system designed for HTTP.
155 %description digest-md5 -l pl
156 Wtyczka dodaj±ca najnowsz± wersjê mechanizmu DIGEST-MD5 do Cyrus SASL.
157 Pomimo tego, ¿e nie jest jeszcze ukoñczony, najprawdopodobniej stanie
158 siê obowi±zkowym do zaimplementowania systemem uwierzytelniania we
159 wszystkich nowych protoko³ach. Bazuje na systemie uwierzytelniania
160 Digest-MD5 zaprojektowanym dla HTTP.
162 %description digest-md5 -l pt_BR
163 Este plugin implementa a última versão da especificação do mecanismo
164 SASL DIGEST-MD5. Embora ainda não esteja finalizado, DIGEST-MD5
165 provavelmente será o novo sistema de autenticação obrigatório para
166 protocolos novos. Ele é baseado na autenticação md5 digest
167 desenvolvida para HTTP.
170 Summary: Plain Cyrus SASL plugin
171 Summary(pl): Wtyczka plain do Cyrus SASL
172 Summary(pt_BR): Mecanismo SASL PLAIN
174 Requires: %{name} = %{version}
177 This plugin implements the SASL PLAIN mechanism. Although insecure,
178 PLAIN is useful for transitioning to new security mechanisms, as this
179 is the only mechanism which gives the server a copy of the user's
182 %description plain -l pl
183 Wtyczka dodaj±ca obs³ugê mechanizmu PLAIN do Cyrus SASL. Pomimo tego,
184 ¿e nie jest bezpieczny, PLAIN jest przydatny przy przechodzeniu na
185 nowe mechanizmu bezpieczeñstwa, jako ¿e jest to jedyny mechanizm,
186 który udostêpnia serwerowi kopiê has³a u¿ytkownika.
188 %description plain -l pt_BR
189 Este plugin implementa o mecanismo SASL PLAIN. Embora inseguro, este
190 mecanismo é útil durante transições para novos mecanismos de
191 segurança, pois é o único esquema que fornece uma cópia da senha do
192 usuário para o servidor.
195 Summary: Anonymous Cyrus SASL plugin
196 Summary(pl): Wtyczka anonymous do Cyrus SASL
197 Summary(pt_BR): Mecanismo SASL ANONYMOUS
199 Requires: %{name} = %{version}
201 %description anonymous
202 This plugin implements the SASL ANONYMOUS mechanism, used for
203 anonymous authentication.
205 %description anonymous -l pl
206 Wtyczka dodaj±ca obs³ugê mechanizmu ANONYMOUS do Cyrus SASL. S³u¿y do
207 anonimowego uwierzytelniania.
209 %description anonymous -l pt_BR
210 Este plugin implementa o mecanismo SASL ANONYMOUS, usado para
211 autenticação anônima.
214 Summary: Unsupported Login Cyrus SASL plugin
215 Summary(pl): Nie wspierana wtyczka Login do Cyrus SASL
217 Requires: %{name} = %{version}
220 Unsupported LOGIN Cyrus SASL plugin.
222 %description login -l pl
223 Wtyczka dodaj±ca obs³ugê nie wspieranego mechanizmu LOGIN do Cyrus
227 Summary: SRP Cyrus SASL plugin
228 Summary(pl): Wtyczka SRP do Cyrus SASL
229 Summary(pt_BR): Mecanismo SASL SRP
231 Requires: %{name} = %{version}
234 This plugin implements the SASL SRP mechanism, based on the Secure
235 Remote Password protocol. This mechanism performs mutual
236 authentication and can provide a security layer with replay detection,
237 integrity protection and/or condifentiality protection.
239 %description srp -l pl
240 Wtyczka dodaj±ca obs³ugê mechanizmu SRP do Cyrus SASL. Bazuje na
241 protokole Secure Remote Password. Ten mechanizm dokonuje wzajemnego
242 uwierzytelnienia i mo¿e dodawaæ warstwê bezpieczeñstwa z wykrywaniem
243 powtarzania, zabezpieczeniem integralno¶ci i/lub poufno¶ci.
245 %description srp -l pt_BR
246 Este plugin implementa o mecanismo SASL SRP, baseado no protocolo SRP
247 (Secure Remote Password). Este mecanismo oferece autenticação mútua
248 (do cliente e do servidor) e pode prover uma camada de segurança com
249 detecção de ataques de replay, garantia de integridade e/ou
253 Summary: OTP Cyrus SASL plugin
254 Summary(pl): Wtyczka OTP do Cyrus SASL
255 Summary(pt_BR): Mecanismo SASL OTP
257 Requires: %{name} = %{version}
260 This plugin implements the SASL OTP (One Time Password) mechanism.
262 %description otp -l pl
263 Wtyczka dodaj±ca obs³ugê mechanizmu OTP (has³a jednorazowe) do Cyrus
267 Summary: x509 Cyrus SASL plugin
268 Summary(pl): Wtyczka x509 do Cyrus SASL
270 Requires: %{name} = %{version}
273 x509 Cyrus SASL plugin.
275 %description x509 -l pl
276 Wtyczka x509 do Cyrus SASL.
279 Summary: Cyrus SASL authd
280 Summary(pl): Demon authd do Cyrus SASL
282 Requires(post,postun): /sbin/chkconfig
283 Requires: %{name} = %{version}
285 %description saslauthd
288 %description saslauthd -l pl
289 Demon authd do Cyrus SASL.
292 Summary: Cyrus SASL pwcheck helper
293 Summary(pl): Program pomocniczy pwcheck do Cyrus SASL
295 Requires: %{name} = %{version}
298 Cyrus SASL pwcheck helper.
300 %description pwcheck -l pl
301 Program pomocniczy pwcheck do Cyrus SASL.
304 Summary: Cyrus SASL sasldb plugin
305 Summary(pl): Wtyczka sasldb do Cyrus SASL
307 Requires: %{name} = %{version}
310 Cyrus SASL sasldb plugin.
312 %description sasldb -l pl
313 Wtyczka sasldb do Cyrus SASL.
316 Summary: Cyrus SASL mysql plugin
317 Summary(pl): Wtyczka mysql do Cyrus SASL
319 Requires: %{name} = %{version}
322 Cyrus SASL mysql plugin.
324 %description mysql -l pl
325 Wtyczka mysql do Cyrus SASL.
335 echo "cyrus-sasl complies with the following RFCs:" > rfc-compliance
336 ls rfc*.txt >> rfc-compliance
341 # acinclude.m4 contains only old libtool.m4
342 rm -f acinclude.m4 config/missing
344 %{__aclocal} -I cmulocal -I config
350 %{__aclocal} -I ../cmulocal -I ../config -I config
356 LDFLAGS="%{rpmldflags} -ldl"; export LDFLAGS
360 %{?_with_srp:--enable-srp} \
361 %{?!_without_mysql: --with-mysql=%{_prefix}} \
362 %{?!_without_ldap: --with-ldap=%{_prefix}} \
363 %{?_with_pwcheck: --with-pwcheck=/var/lib/sasl2} \
364 --with-saslauthd=/var/lib/sasl2 \
366 --with-dblib=berkeley \
367 --with-dbpath=/var/lib/sasl2/sasl.db \
368 --with-configdir=%{_sysconfdir} \
374 RFCLIST=`grep 'rfc.+\.txt' rfc-compliance`
375 for i in $RFCLIST; do
376 RFCDIR=../RFC/text/`echo $i | sed -e 's:^rfc::' -e 's:..\.txt$::' `00
377 echo -e ',s:'$i':'$RFCDIR/$i\n,w\nq' | ed index.html
382 rm -rf $RPM_BUILD_ROOT
383 install -d $RPM_BUILD_ROOT{/var/lib/sasl2,%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
384 $RPM_BUILD_ROOT%{_mandir}/man8
385 %{__make} install DESTDIR=$RPM_BUILD_ROOT
387 rm -rf $RPM_BUILD_ROOT%{_mandir}/cat*
388 rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/*.la
390 install {utils,saslauthd}/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
392 ln -sf libsasl2.so $RPM_BUILD_ROOT%{_libdir}/libsasl.so
394 touch $RPM_BUILD_ROOT/var/lib/sasl2/sasl.db
396 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/saslauthd
397 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/saslauthd
398 install %{SOURCE3} ./cyrus.pam
401 rm -rf $RPM_BUILD_ROOT
403 %post -p /sbin/ldconfig
404 %postun -p /sbin/ldconfig
407 /sbin/chkconfig --add saslauthd
408 if [ -f /var/lock/subsys/saslauthd ]; then
409 /etc/rc.d/init.d/saslauthd restart 1>&2
411 echo "Run \"/etc/rc.d/init.d/saslauthd start\" to start saslauthd."
415 if [ "$1" = "0" ]; then
416 if [ -f /var/lock/subsys/saslauthd ]; then
417 /etc/rc.d/init.d/saslauthd stop 1>&2
419 /sbin/chkconfig --del saslauthd
423 %defattr(644,root,root,755)
424 %doc AUTHORS COPYING ChangeLog NEWS README
425 %doc doc/{ONEWS,TODO,*.txt,*.html,*.fig,rfc-compliance}
427 %dir %{_libdir}/sasl2
429 %attr(755,root,root) %{_libdir}/lib*.so.*.*
430 %attr(755,root,root) %{_sbindir}/sasldblistusers2
431 %attr(755,root,root) %{_sbindir}/saslpasswd2
433 %attr(640,root,mail) %ghost %config(noreplace) %verify(not mtime md5 size) /var/lib/sasl2/sasl.db
434 %{_mandir}/man8/sasldblistusers2.*
435 %{_mandir}/man8/saslpasswd2.*
438 %defattr(644,root,root,755)
440 %attr(755,root,root) %{_libdir}/lib*.so
445 %defattr(644,root,root,755)
447 %{_libdir}/sasl2/lib*.a
450 %defattr(644,root,root,755)
451 %attr(755,root,root) %{_libdir}/sasl2/libanonymous.so*
454 %defattr(644,root,root,755)
455 %attr(755,root,root) %{_libdir}/sasl2/libcrammd5.so*
458 %defattr(644,root,root,755)
459 %attr(755,root,root) %{_libdir}/sasl2/libdigestmd5.so*
462 %defattr(644,root,root,755)
463 %attr(755,root,root) %{_libdir}/sasl2/liblogin.so*
466 %defattr(644,root,root,755)
467 %attr(755,root,root) %{_libdir}/sasl2/libotp.so*
470 %defattr(644,root,root,755)
471 %attr(755,root,root) %{_libdir}/sasl2/libplain.so*
474 %defattr(644,root,root,755)
475 %attr(755,root,root) %{_libdir}/sasl2/libsasldb.so*
477 %if %{!?_without_mysql:1}%{?_without_mysql:0}
479 %defattr(644,root,root,755)
480 %attr(755,root,root) %{_libdir}/sasl2/libmysql*.so*
483 %if %{?_with_srp:1}%{?!_with_srp:0}
485 %defattr(644,root,root,755)
486 %attr(755,root,root) %{_libdir}/sasl2/libsrp.so*
489 %if %{?_with_x509:1}%{?!_with_x509:0}
491 %defattr(644,root,root,755)
492 %attr(755,root,root) %{_libdir}/sasl2/libx509.so*
495 %if %{?_with_pwcheck:1}%{?!_with_pwcheck:0}
497 %defattr(644,root,root,755)
498 %attr(755,root,root) %{_sbindir}/pwcheck
502 %defattr(644,root,root,755)
504 %attr(755,root,root) %{_sbindir}/saslauthd
505 %attr(754,root,root) /etc/rc.d/init.d/saslauthd
506 %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/saslauthd
507 %{_mandir}/man8/saslauthd.*