3 # - add ldap plugin from openldap sources
6 # _with_srp - build srp pluggin
7 # _without_myslq - don't build mysql pluggin
8 # _without_ldap - disable LDAP support for sasluthd
10 Summary: The SASL library API for the Cyrus mail system
11 Summary(pl): Biblioteka Cyrus SASL
12 Summary(pt_BR): Implementação da API SASL
13 Summary(ru): âÉÂÌÉÏÔÅËÁ Cyrus SASL
14 Summary(uk): â¦Â̦ÏÔÅËÁ Cyrus SASL
18 License: distributable
20 Source0: ftp://ftp.andrew.cmu.edu/pub/cyrus/%{name}-%{version}.tar.gz
21 # Source0-md5: 1114d59d970791932e96de8557472672
22 Source1: saslauthd.init
23 Source2: saslauthd.sysconfig
25 Patch0: %{name}-configdir.patch
26 Patch1: %{name}-nolibs.patch
27 Patch2: %{name}-lt14d.patch
28 Patch3: %{name}-do_dlopen.patch
29 URL: http://asg.web.cmu.edu/sasl/
30 BuildRequires: autoconf
31 BuildRequires: automake
32 BuildRequires: db-devel
34 BuildRequires: libtool >= 1.4
35 %{!?_without_mysql:BuildRequires: mysql-devel}
36 %{!?_without_ldap:BuildRequires: openldap-devel}
37 BuildRequires: openssl-devel >= 0.9.7
38 BuildRequires: pam-devel
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 %define _sysconfdir /etc/sasl
44 This is an implementation of the SASL API, useful for adding
45 authentication, authorization, and security to network protocols. The
46 SASL protocol itself is documented in rfc2222; the API standard is a
50 Pakiet cyrus-sasl zawiera implementacjê biblioteki API SASL dla
51 systemu poczty elektronicznej Cyrusa. Biblioteka ta jest przydatna
52 tak¿e do dodawania uwierzytelniania, autoryzacji oraz zwiêkszania
53 bezpieczeñstwa protoko³ów sieciowych. Sam protokó³ SASL jest opisany w
54 RFC 2222; standaryzacja API jest w toku.
57 Esta é uma implementação da API SASL, útil para acrescentar
58 autenticação, autorização e seguança (criptografia) para protocolos de
59 rede. O protocolo SASL está documentado na RFC 2222. A API "padrão"
60 ainda está em desenvolvimento.
63 ðÁËÅÔ cyrus-sasl ÓÏÄÅÒÖÉÔ ÒÅÁÌÉÚÁÃÉÀ Cyrus SASL. SASL - ÜÔÏ Simple
64 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÂÁ×ÌÅÎÉÑ ÐÏÄÄÅÒÖËÉ
65 ÁÕÔÅÎÔÉËÁÃÉÉ Ë ÐÒÏÔÏËÏÌÁÍ, ÏÓÎÏ×ÁÎÎÙÍ ÎÁ ÓÏÅÄÉÎÅÎÉÑÈ.
68 ðÁËÅÔ cyrus-sasl ͦÓÔÉÔØ ÒÅÁ̦ÚÁæÀ Cyrus SASL. SASL - ÃÅ Simple
69 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÄÁÎÎÑ Ð¦ÄÔÒÉÍËÉ
70 ÁÕÔÅÎÔÉËÁæ§ ÄÏ ÐÒÏÔÏËÏ̦×, ÂÁÚÏ×ÁÎÉÈ ÎÁ Ú'¤ÄÎÁÎÎÑÈ.
73 Summary: Header files and documentation for cyrus-sasl
74 Summary(pl): Pliki nag³ówkowe i dokumentacja dla cyrus-sasl
75 Summary(pt_BR): Exemplos e arquivos para desenvolvimento com SASL
76 Summary(ru): æÁÊÌÙ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó ÂÉÂÌÉÏÔÅËÏÊ Cyrus SASL
77 Summary(ru): æÁÊÌÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú Â¦Â̦ÏÔÅËÏÀ Cyrus SASL
78 Group: Development/Libraries
79 Requires: %{name} = %{version}
82 This includes the header files and documentation needed to develop
83 applications which use SASL.
85 %description devel -l pl
86 Pliki nag³ówkowe i dokumentacja dla cyrus-sasl.
88 %description devel -l pt_BR
89 Este pacote inclui os arquivos de cabeçalho e documentação necessários
90 para desenvolver aplicativos que usem SASL.
92 %description devel -l ru
93 èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
94 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
96 %description devel -l uk
97 èÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
98 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ Cyrus SASL.
101 Summary: Static cyrus-sasl libraries
102 Summary(pl): Statyczne biblioteki cyrus-sasl
103 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ Cyrus SASL
104 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ Cyrus SASL
105 Group: Development/Libraries
106 Requires: %{name}-devel = %{version}
109 Static cyrus-sasl libraries.
111 %description static -l pl
112 Statyczne biblioteki cyrus-sasl.
114 %description static -l ru
115 óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
116 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
118 %description static -l uk
119 óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ
123 Summary: Cram-MD5 Cyrus SASL plugin
124 Summary(pl): Wtyczka Cram-MD5 do Cyrus SASL
125 Summary(pt_BR): Mecanismo SASL CRAM-MD5
127 Requires: %{name} = %{version}
129 %description cram-md5
130 This plugin implements the SASL CRAM-MD5 mechanism. CRAM-MD5 is the
131 mandatory-to-implement authentication mechanism for a number of
132 protocols; it uses MD5 with a challenge/response system to
133 authenticate the user.
135 %description cram-md5 -l pl
136 Wtyczka dodaj±ca obs³ugê mechanizmu CRAM-MD5 do Cyrus SASL. CRAM-MD5
137 jest obowi±zkowym do zaimplementowania mechanizmem uwierzytelniania
138 dla wielu protoko³ów; do uwierzytelnienia u¿ytkownika u¿ywa MD5 wraz z
139 systemem challenge/response.
141 %description cram-md5 -l pt_BR
142 Este plugin implementa o mecanismo SASL CRAM-MD5. CRAM-MD5 é o
143 mecanismo de autenticação obrigatório de ser implementado para vários
144 protocolos: ele usa MD5 com um sistema de desafio/resposta para
145 autenticar o usuário.
148 Summary: Digest-MD5 Cyrus SASL plugin
149 Summary(pl): Wtyczka Digest-MD5 do Cyrus SASL
150 Summary(pt_BR): Mecanismo SASL DIGEST-MD5
152 Requires: %{name} = %{version}
154 %description digest-md5
155 This plugin implements the latest draft of the SASL DIGEST-MD5
156 mechanism. Although not yet finalized, this is likely to become the
157 new mandatory-to-implement authentication system in all new protocols.
158 It's based on the digest md5 authentication system designed for HTTP.
160 %description digest-md5 -l pl
161 Wtyczka dodaj±ca najnowsz± wersjê mechanizmu DIGEST-MD5 do Cyrus SASL.
162 Pomimo tego, ¿e nie jest jeszcze ukoñczony, najprawdopodobniej stanie
163 siê obowi±zkowym do zaimplementowania systemem uwierzytelniania we
164 wszystkich nowych protoko³ach. Bazuje na systemie uwierzytelniania
165 Digest-MD5 zaprojektowanym dla HTTP.
167 %description digest-md5 -l pt_BR
168 Este plugin implementa a última versão da especificação do mecanismo
169 SASL DIGEST-MD5. Embora ainda não esteja finalizado, DIGEST-MD5
170 provavelmente será o novo sistema de autenticação obrigatório para
171 protocolos novos. Ele é baseado na autenticação md5 digest
172 desenvolvida para HTTP.
175 Summary: Plain Cyrus SASL plugin
176 Summary(pl): Wtyczka plain do Cyrus SASL
177 Summary(pt_BR): Mecanismo SASL PLAIN
179 Requires: %{name} = %{version}
182 This plugin implements the SASL PLAIN mechanism. Although insecure,
183 PLAIN is useful for transitioning to new security mechanisms, as this
184 is the only mechanism which gives the server a copy of the user's
187 %description plain -l pl
188 Wtyczka dodaj±ca obs³ugê mechanizmu PLAIN do Cyrus SASL. Pomimo tego,
189 ¿e nie jest bezpieczny, PLAIN jest przydatny przy przechodzeniu na
190 nowe mechanizmu bezpieczeñstwa, jako ¿e jest to jedyny mechanizm,
191 który udostêpnia serwerowi kopiê has³a u¿ytkownika.
193 %description plain -l pt_BR
194 Este plugin implementa o mecanismo SASL PLAIN. Embora inseguro, este
195 mecanismo é útil durante transições para novos mecanismos de
196 segurança, pois é o único esquema que fornece uma cópia da senha do
197 usuário para o servidor.
200 Summary: Anonymous Cyrus SASL plugin
201 Summary(pl): Wtyczka anonymous do Cyrus SASL
202 Summary(pt_BR): Mecanismo SASL ANONYMOUS
204 Requires: %{name} = %{version}
206 %description anonymous
207 This plugin implements the SASL ANONYMOUS mechanism, used for
208 anonymous authentication.
210 %description anonymous -l pl
211 Wtyczka dodaj±ca obs³ugê mechanizmu ANONYMOUS do Cyrus SASL. S³u¿y do
212 anonimowego uwierzytelniania.
214 %description anonymous -l pt_BR
215 Este plugin implementa o mecanismo SASL ANONYMOUS, usado para
216 autenticação anônima.
219 Summary: Unsupported Login Cyrus SASL plugin
220 Summary(pl): Nie wspierana wtyczka Login do Cyrus SASL
222 Requires: %{name} = %{version}
225 Unsupported LOGIN Cyrus SASL plugin.
227 %description login -l pl
228 Wtyczka dodaj±ca obs³ugê nie wspieranego mechanizmu LOGIN do Cyrus
232 Summary: SRP Cyrus SASL plugin
233 Summary(pl): Wtyczka SRP do Cyrus SASL
234 Summary(pt_BR): Mecanismo SASL SRP
236 Requires: %{name} = %{version}
239 This plugin implements the SASL SRP mechanism, based on the Secure
240 Remote Password protocol. This mechanism performs mutual
241 authentication and can provide a security layer with replay detection,
242 integrity protection and/or condifentiality protection.
244 %description srp -l pl
245 Wtyczka dodaj±ca obs³ugê mechanizmu SRP do Cyrus SASL. Bazuje na
246 protokole Secure Remote Password. Ten mechanizm dokonuje wzajemnego
247 uwierzytelnienia i mo¿e dodawaæ warstwê bezpieczeñstwa z wykrywaniem
248 powtarzania, zabezpieczeniem integralno¶ci i/lub poufno¶ci.
250 %description srp -l pt_BR
251 Este plugin implementa o mecanismo SASL SRP, baseado no protocolo SRP
252 (Secure Remote Password). Este mecanismo oferece autenticação mútua
253 (do cliente e do servidor) e pode prover uma camada de segurança com
254 detecção de ataques de replay, garantia de integridade e/ou
258 Summary: OTP Cyrus SASL plugin
259 Summary(pl): Wtyczka OTP do Cyrus SASL
260 Summary(pt_BR): Mecanismo SASL OTP
262 Requires: %{name} = %{version}
265 This plugin implements the SASL OTP (One Time Password) mechanism.
267 %description otp -l pl
268 Wtyczka dodaj±ca obs³ugê mechanizmu OTP (has³a jednorazowe) do Cyrus
272 Summary: x509 Cyrus SASL plugin
273 Summary(pl): Wtyczka x509 do Cyrus SASL
275 Requires: %{name} = %{version}
278 x509 Cyrus SASL plugin.
280 %description x509 -l pl
281 Wtyczka x509 do Cyrus SASL.
284 Summary: Cyrus SASL authd
285 Summary(pl): Demon authd do Cyrus SASL
287 Requires(post,postun): /sbin/chkconfig
288 Requires: %{name} = %{version}
290 %description saslauthd
293 %description saslauthd -l pl
294 Demon authd do Cyrus SASL.
297 Summary: Cyrus SASL pwcheck helper
298 Summary(pl): Program pomocniczy pwcheck do Cyrus SASL
300 Requires: %{name} = %{version}
303 Cyrus SASL pwcheck helper.
305 %description pwcheck -l pl
306 Program pomocniczy pwcheck do Cyrus SASL.
309 Summary: Cyrus SASL sasldb plugin
310 Summary(pl): Wtyczka sasldb do Cyrus SASL
312 Requires: %{name} = %{version}
315 Cyrus SASL sasldb plugin.
317 %description sasldb -l pl
318 Wtyczka sasldb do Cyrus SASL.
321 Summary: Cyrus SASL mysql plugin
322 Summary(pl): Wtyczka mysql do Cyrus SASL
324 Requires: %{name} = %{version}
327 Cyrus SASL mysql plugin.
329 %description mysql -l pl
330 Wtyczka mysql do Cyrus SASL.
340 echo "cyrus-sasl complies with the following RFCs:" > rfc-compliance
341 ls rfc*.txt >> rfc-compliance
346 # acinclude.m4 contains only old libtool.m4
347 rm -f acinclude.m4 config/missing
349 %{__aclocal} -I cmulocal -I config
355 %{__aclocal} -I ../cmulocal -I ../config -I config
361 LDFLAGS="%{rpmldflags} -ldl"; export LDFLAGS
365 %{?_with_srp:--enable-srp} \
366 %{?!_without_mysql: --with-mysql=%{_prefix}} \
367 %{?!_without_ldap: --with-ldap=%{_prefix}} \
368 %{?_with_pwcheck: --with-pwcheck=/var/lib/sasl2} \
369 --with-saslauthd=/var/lib/sasl2 \
371 --with-dblib=berkeley \
372 --with-dbpath=/var/lib/sasl2/sasl.db \
373 --with-configdir=%{_sysconfdir} \
379 RFCLIST=`grep 'rfc.\+\.txt' rfc-compliance`
380 for i in $RFCLIST; do
381 RFCDIR=../RFC/text/`echo $i | sed -e 's:^rfc::' -e 's:..\.txt$::' `00
382 echo -e ',s:'$i':'$RFCDIR/$i'\n,w\nq' | ed index.html
387 rm -rf $RPM_BUILD_ROOT
388 install -d $RPM_BUILD_ROOT{/var/lib/sasl2,%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
389 $RPM_BUILD_ROOT%{_mandir}/man8
392 DESTDIR=$RPM_BUILD_ROOT
394 rm -rf $RPM_BUILD_ROOT%{_mandir}/cat*
395 rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/*.{la,a}
397 install {utils,saslauthd}/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
399 ln -sf libsasl2.so $RPM_BUILD_ROOT%{_libdir}/libsasl.so
401 touch $RPM_BUILD_ROOT/var/lib/sasl2/sasl.db
403 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/saslauthd
404 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/saslauthd
405 install %{SOURCE3} ./cyrus.pam
408 rm -rf $RPM_BUILD_ROOT
413 echo "Remember to install apropriate plugins, or you won't have any mechs available."
415 %postun -p /sbin/ldconfig
418 /sbin/chkconfig --add saslauthd
419 if [ -f /var/lock/subsys/saslauthd ]; then
420 /etc/rc.d/init.d/saslauthd restart 1>&2
422 echo "Run \"/etc/rc.d/init.d/saslauthd start\" to start saslauthd."
426 if [ "$1" = "0" ]; then
427 if [ -f /var/lock/subsys/saslauthd ]; then
428 /etc/rc.d/init.d/saslauthd stop 1>&2
430 /sbin/chkconfig --del saslauthd
434 %defattr(644,root,root,755)
435 %doc AUTHORS COPYING ChangeLog NEWS README
436 %doc doc/{ONEWS,TODO,*.txt,*.html,*.fig,rfc-compliance}
438 %dir %{_libdir}/sasl2
440 %attr(755,root,root) %{_libdir}/lib*.so.*.*
441 %attr(755,root,root) %{_sbindir}/sasldblistusers2
442 %attr(755,root,root) %{_sbindir}/saslpasswd2
444 %attr(640,root,mail) %ghost %config(noreplace) %verify(not mtime md5 size) /var/lib/sasl2/sasl.db
445 %{_mandir}/man8/sasldblistusers2.*
446 %{_mandir}/man8/saslpasswd2.*
449 %defattr(644,root,root,755)
451 %attr(755,root,root) %{_libdir}/lib*.so
456 %defattr(644,root,root,755)
460 %defattr(644,root,root,755)
461 %attr(755,root,root) %{_libdir}/sasl2/libanonymous.so*
464 %defattr(644,root,root,755)
465 %attr(755,root,root) %{_libdir}/sasl2/libcrammd5.so*
468 %defattr(644,root,root,755)
469 %attr(755,root,root) %{_libdir}/sasl2/libdigestmd5.so*
472 %defattr(644,root,root,755)
473 %attr(755,root,root) %{_libdir}/sasl2/liblogin.so*
476 %defattr(644,root,root,755)
477 %attr(755,root,root) %{_libdir}/sasl2/libotp.so*
480 %defattr(644,root,root,755)
481 %attr(755,root,root) %{_libdir}/sasl2/libplain.so*
484 %defattr(644,root,root,755)
485 %attr(755,root,root) %{_libdir}/sasl2/libsasldb.so*
487 %if %{!?_without_mysql:1}%{?_without_mysql:0}
489 %defattr(644,root,root,755)
490 %attr(755,root,root) %{_libdir}/sasl2/libmysql*.so*
493 %if %{?_with_srp:1}%{?!_with_srp:0}
495 %defattr(644,root,root,755)
496 %attr(755,root,root) %{_libdir}/sasl2/libsrp.so*
499 %if %{?_with_x509:1}%{?!_with_x509:0}
501 %defattr(644,root,root,755)
502 %attr(755,root,root) %{_libdir}/sasl2/libx509.so*
505 %if %{?_with_pwcheck:1}%{?!_with_pwcheck:0}
507 %defattr(644,root,root,755)
508 %attr(755,root,root) %{_sbindir}/pwcheck
512 %defattr(644,root,root,755)
514 %attr(755,root,root) %{_sbindir}/saslauthd
515 %attr(754,root,root) /etc/rc.d/init.d/saslauthd
516 %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/saslauthd
517 %{_mandir}/man8/saslauthd.*