3 # - add ldap plugin from openldap sources
5 # _with_srp - build srp pluggin
6 # _without_myslq - don't build mysql pluggin
7 # _without_ldap - disable LDAP support for sasluthd
9 Summary: The SASL library API for the Cyrus mail system
10 Summary(pl): Biblioteka Cyrus SASL
11 Summary(pt_BR): Implementação da API SASL
12 Summary(ru): âÉÂÌÉÏÔÅËÁ Cyrus SASL
13 Summary(uk): â¦Â̦ÏÔÅËÁ Cyrus SASL
17 License: distributable
19 Source0: ftp://ftp.andrew.cmu.edu/pub/cyrus/%{name}-%{version}.tar.gz
20 Source1: saslauthd.init
21 Source2: saslauthd.sysconfig
23 Patch0: %{name}-configdir.patch
24 Patch1: %{name}-nolibs.patch
25 Patch2: %{name}-lt14d.patch
26 Patch3: %{name}-do_dlopen.patch
27 BuildRequires: autoconf
28 BuildRequires: automake
29 BuildRequires: db-devel
31 BuildRequires: libtool >= 1.4
32 %{!?_without_mysql:BuildRequires: mysql-devel}
33 %{!?_without_ldap:BuildRequires: openldap-devel}
34 BuildRequires: openssl-devel >= 0.9.7
35 BuildRequires: pam-devel
36 URL: http://asg.web.cmu.edu/sasl/
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 %define _sysconfdir /etc/sasl
42 This is an implementation of the SASL API, useful for adding
43 authentication, authorization, and security to network protocols. The
44 SASL protocol itself is documented in rfc2222; the API standard is a
48 Pakiet cyrus-sasl zawiera implementacjê biblioteki API SASL dla
49 systemu poczty elektronicznej Cyrusa. Biblioteka ta jest przydatna
50 tak¿e do dodawania uwierzytelniania, autoryzacji oraz zwiêkszania
51 bezpieczeñstwa protoko³ów sieciowych. Sam protokó³ SASL jest opisany w
52 RFC 2222; standaryzacja API jest w toku.
55 Esta é uma implementação da API SASL, útil para acrescentar
56 autenticação, autorização e seguança (criptografia) para protocolos de
57 rede. O protocolo SASL está documentado na RFC 2222. A API "padrão"
58 ainda está em desenvolvimento.
61 ðÁËÅÔ cyrus-sasl ÓÏÄÅÒÖÉÔ ÒÅÁÌÉÚÁÃÉÀ Cyrus SASL. SASL - ÜÔÏ Simple
62 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÂÁ×ÌÅÎÉÑ ÐÏÄÄÅÒÖËÉ
63 ÁÕÔÅÎÔÉËÁÃÉÉ Ë ÐÒÏÔÏËÏÌÁÍ, ÏÓÎÏ×ÁÎÎÙÍ ÎÁ ÓÏÅÄÉÎÅÎÉÑÈ.
66 ðÁËÅÔ cyrus-sasl ͦÓÔÉÔØ ÒÅÁ̦ÚÁæÀ Cyrus SASL. SASL - ÃÅ Simple
67 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÄÁÎÎÑ Ð¦ÄÔÒÉÍËÉ
68 ÁÕÔÅÎÔÉËÁæ§ ÄÏ ÐÒÏÔÏËÏ̦×, ÂÁÚÏ×ÁÎÉÈ ÎÁ Ú'¤ÄÎÁÎÎÑÈ.
71 Summary: Header files and documentation for cyrus-sasl
72 Summary(pl): Pliki nag³ówkowe i dokumentacja dla cyrus-sasl
73 Summary(pt_BR): Exemplos e arquivos para desenvolvimento com SASL
74 Summary(ru): æÁÊÌÙ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó ÂÉÂÌÉÏÔÅËÏÊ Cyrus SASL
75 Summary(ru): æÁÊÌÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú Â¦Â̦ÏÔÅËÏÀ Cyrus SASL
76 Group: Development/Libraries
77 Requires: %{name} = %{version}
80 This includes the header files and documentation needed to develop
81 applications which use SASL.
83 %description devel -l pl
84 Pliki nag³ówkowe i dokumentacja dla cyrus-sasl.
86 %description devel -l pt_BR
87 Este pacote inclui os arquivos de cabeçalho e documentação necessários
88 para desenvolver aplicativos que usem SASL.
90 %description devel -l ru
91 èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
92 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
94 %description devel -l uk
95 èÅÄÅÒÉ ÔÁ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
96 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ Cyrus SASL.
99 Summary: Static cyrus-sasl libraries
100 Summary(pl): Statyczne biblioteki cyrus-sasl
101 Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ Cyrus SASL
102 Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ Cyrus SASL
103 Group: Development/Libraries
104 Requires: %{name}-devel = %{version}
107 Static cyrus-sasl libraries.
109 %description static -l pl
110 Statyczne biblioteki cyrus-sasl.
112 %description static -l ru
113 óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
114 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
116 %description static -l uk
117 óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ
121 Summary: Cram-MD5 Cyrus SASL plugin
122 Summary(pl): Wtyczka Cram-MD5 do Cyrus SASL
123 Summary(pt_BR): Mecanismo SASL CRAM-MD5
125 Requires: %{name} = %{version}
127 %description cram-md5
128 This plugin implements the SASL CRAM-MD5 mechanism. CRAM-MD5 is the
129 mandatory-to-implement authentication mechanism for a number of
130 protocols; it uses MD5 with a challenge/response system to
131 authenticate the user.
133 %description cram-md5 -l pl
134 Wtyczka dodaj±ca obs³ugê mechanizmu CRAM-MD5 do Cyrus SASL. CRAM-MD5
135 jest obowi±zkowym do zaimplementowania mechanizmem uwierzytelniania
136 dla wielu protoko³ów; do uwierzytelnienia u¿ytkownika u¿ywa MD5 wraz z
137 systemem challenge/response.
139 %description cram-md5 -l pt_BR
140 Este plugin implementa o mecanismo SASL CRAM-MD5. CRAM-MD5 é o
141 mecanismo de autenticação obrigatório de ser implementado para vários
142 protocolos: ele usa MD5 com um sistema de desafio/resposta para
143 autenticar o usuário.
146 Summary: Digest-MD5 Cyrus SASL plugin
147 Summary(pl): Wtyczka Digest-MD5 do Cyrus SASL
148 Summary(pt_BR): Mecanismo SASL DIGEST-MD5
150 Requires: %{name} = %{version}
152 %description digest-md5
153 This plugin implements the latest draft of the SASL DIGEST-MD5
154 mechanism. Although not yet finalized, this is likely to become the
155 new mandatory-to-implement authentication system in all new protocols.
156 It's based on the digest md5 authentication system designed for HTTP.
158 %description digest-md5 -l pl
159 Wtyczka dodaj±ca najnowsz± wersjê mechanizmu DIGEST-MD5 do Cyrus SASL.
160 Pomimo tego, ¿e nie jest jeszcze ukoñczony, najprawdopodobniej stanie
161 siê obowi±zkowym do zaimplementowania systemem uwierzytelniania we
162 wszystkich nowych protoko³ach. Bazuje na systemie uwierzytelniania
163 Digest-MD5 zaprojektowanym dla HTTP.
165 %description digest-md5 -l pt_BR
166 Este plugin implementa a última versão da especificação do mecanismo
167 SASL DIGEST-MD5. Embora ainda não esteja finalizado, DIGEST-MD5
168 provavelmente será o novo sistema de autenticação obrigatório para
169 protocolos novos. Ele é baseado na autenticação md5 digest
170 desenvolvida para HTTP.
173 Summary: Plain Cyrus SASL plugin
174 Summary(pl): Wtyczka plain do Cyrus SASL
175 Summary(pt_BR): Mecanismo SASL PLAIN
177 Requires: %{name} = %{version}
180 This plugin implements the SASL PLAIN mechanism. Although insecure,
181 PLAIN is useful for transitioning to new security mechanisms, as this
182 is the only mechanism which gives the server a copy of the user's
185 %description plain -l pl
186 Wtyczka dodaj±ca obs³ugê mechanizmu PLAIN do Cyrus SASL. Pomimo tego,
187 ¿e nie jest bezpieczny, PLAIN jest przydatny przy przechodzeniu na
188 nowe mechanizmu bezpieczeñstwa, jako ¿e jest to jedyny mechanizm,
189 który udostêpnia serwerowi kopiê has³a u¿ytkownika.
191 %description plain -l pt_BR
192 Este plugin implementa o mecanismo SASL PLAIN. Embora inseguro, este
193 mecanismo é útil durante transições para novos mecanismos de
194 segurança, pois é o único esquema que fornece uma cópia da senha do
195 usuário para o servidor.
198 Summary: Anonymous Cyrus SASL plugin
199 Summary(pl): Wtyczka anonymous do Cyrus SASL
200 Summary(pt_BR): Mecanismo SASL ANONYMOUS
202 Requires: %{name} = %{version}
204 %description anonymous
205 This plugin implements the SASL ANONYMOUS mechanism, used for
206 anonymous authentication.
208 %description anonymous -l pl
209 Wtyczka dodaj±ca obs³ugê mechanizmu ANONYMOUS do Cyrus SASL. S³u¿y do
210 anonimowego uwierzytelniania.
212 %description anonymous -l pt_BR
213 Este plugin implementa o mecanismo SASL ANONYMOUS, usado para
214 autenticação anônima.
217 Summary: Unsupported Login Cyrus SASL plugin
218 Summary(pl): Nie wspierana wtyczka Login do Cyrus SASL
220 Requires: %{name} = %{version}
223 Unsupported LOGIN Cyrus SASL plugin.
225 %description login -l pl
226 Wtyczka dodaj±ca obs³ugê nie wspieranego mechanizmu LOGIN do Cyrus
230 Summary: SRP Cyrus SASL plugin
231 Summary(pl): Wtyczka SRP do Cyrus SASL
232 Summary(pt_BR): Mecanismo SASL SRP
234 Requires: %{name} = %{version}
237 This plugin implements the SASL SRP mechanism, based on the Secure
238 Remote Password protocol. This mechanism performs mutual
239 authentication and can provide a security layer with replay detection,
240 integrity protection and/or condifentiality protection.
242 %description srp -l pl
243 Wtyczka dodaj±ca obs³ugê mechanizmu SRP do Cyrus SASL. Bazuje na
244 protokole Secure Remote Password. Ten mechanizm dokonuje wzajemnego
245 uwierzytelnienia i mo¿e dodawaæ warstwê bezpieczeñstwa z wykrywaniem
246 powtarzania, zabezpieczeniem integralno¶ci i/lub poufno¶ci.
248 %description srp -l pt_BR
249 Este plugin implementa o mecanismo SASL SRP, baseado no protocolo SRP
250 (Secure Remote Password). Este mecanismo oferece autenticação mútua
251 (do cliente e do servidor) e pode prover uma camada de segurança com
252 detecção de ataques de replay, garantia de integridade e/ou
256 Summary: OTP Cyrus SASL plugin
257 Summary(pl): Wtyczka OTP do Cyrus SASL
258 Summary(pt_BR): Mecanismo SASL OTP
260 Requires: %{name} = %{version}
263 This plugin implements the SASL OTP (One Time Password) mechanism.
265 %description otp -l pl
266 Wtyczka dodaj±ca obs³ugê mechanizmu OTP (has³a jednorazowe) do Cyrus
270 Summary: x509 Cyrus SASL plugin
271 Summary(pl): Wtyczka x509 do Cyrus SASL
273 Requires: %{name} = %{version}
276 x509 Cyrus SASL plugin.
278 %description x509 -l pl
279 Wtyczka x509 do Cyrus SASL.
282 Summary: Cyrus SASL authd
283 Summary(pl): Demon authd do Cyrus SASL
285 Requires(post,postun): /sbin/chkconfig
286 Requires: %{name} = %{version}
288 %description saslauthd
291 %description saslauthd -l pl
292 Demon authd do Cyrus SASL.
295 Summary: Cyrus SASL pwcheck helper
296 Summary(pl): Program pomocniczy pwcheck do Cyrus SASL
298 Requires: %{name} = %{version}
301 Cyrus SASL pwcheck helper.
303 %description pwcheck -l pl
304 Program pomocniczy pwcheck do Cyrus SASL.
307 Summary: Cyrus SASL sasldb plugin
308 Summary(pl): Wtyczka sasldb do Cyrus SASL
310 Requires: %{name} = %{version}
313 Cyrus SASL sasldb plugin.
315 %description sasldb -l pl
316 Wtyczka sasldb do Cyrus SASL.
319 Summary: Cyrus SASL mysql plugin
320 Summary(pl): Wtyczka mysql do Cyrus SASL
322 Requires: %{name} = %{version}
325 Cyrus SASL mysql plugin.
327 %description mysql -l pl
328 Wtyczka mysql do Cyrus SASL.
338 echo "cyrus-sasl complies with the following RFCs:" > rfc-compliance
339 ls rfc*.txt >> rfc-compliance
344 # acinclude.m4 contains only old libtool.m4
345 rm -f acinclude.m4 config/missing
347 %{__aclocal} -I cmulocal -I config
353 %{__aclocal} -I ../cmulocal -I ../config -I config
359 LDFLAGS="%{rpmldflags} -ldl"; export LDFLAGS
363 %{?_with_srp:--enable-srp} \
364 %{?!_without_mysql: --with-mysql=%{_prefix}} \
365 %{?!_without_ldap: --with-ldap=%{_prefix}} \
366 %{?_with_pwcheck: --with-pwcheck=/var/lib/sasl2} \
367 --with-saslauthd=/var/lib/sasl2 \
369 --with-dblib=berkeley \
370 --with-dbpath=/var/lib/sasl2/sasl.db \
371 --with-configdir=%{_sysconfdir} \
377 RFCLIST=`grep 'rfc.\+\.txt' rfc-compliance`
378 for i in $RFCLIST; do
379 RFCDIR=../RFC/text/`echo $i | sed -e 's:^rfc::' -e 's:..\.txt$::' `00
380 echo -e ',s:'$i':'$RFCDIR/$i'\n,w\nq' | ed index.html
385 rm -rf $RPM_BUILD_ROOT
386 install -d $RPM_BUILD_ROOT{/var/lib/sasl2,%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
387 $RPM_BUILD_ROOT%{_mandir}/man8
388 %{__make} install DESTDIR=$RPM_BUILD_ROOT
390 rm -rf $RPM_BUILD_ROOT%{_mandir}/cat*
391 rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/*.la
393 install {utils,saslauthd}/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
395 ln -sf libsasl2.so $RPM_BUILD_ROOT%{_libdir}/libsasl.so
397 touch $RPM_BUILD_ROOT/var/lib/sasl2/sasl.db
399 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/saslauthd
400 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/saslauthd
401 install %{SOURCE3} ./cyrus.pam
404 rm -rf $RPM_BUILD_ROOT
406 %post -p /sbin/ldconfig
407 %postun -p /sbin/ldconfig
410 /sbin/chkconfig --add saslauthd
411 if [ -f /var/lock/subsys/saslauthd ]; then
412 /etc/rc.d/init.d/saslauthd restart 1>&2
414 echo "Run \"/etc/rc.d/init.d/saslauthd start\" to start saslauthd."
418 if [ "$1" = "0" ]; then
419 if [ -f /var/lock/subsys/saslauthd ]; then
420 /etc/rc.d/init.d/saslauthd stop 1>&2
422 /sbin/chkconfig --del saslauthd
426 %defattr(644,root,root,755)
427 %doc AUTHORS COPYING ChangeLog NEWS README
428 %doc doc/{ONEWS,TODO,*.txt,*.html,*.fig,rfc-compliance}
430 %dir %{_libdir}/sasl2
432 %attr(755,root,root) %{_libdir}/lib*.so.*.*
433 %attr(755,root,root) %{_sbindir}/sasldblistusers2
434 %attr(755,root,root) %{_sbindir}/saslpasswd2
436 %attr(640,root,mail) %ghost %config(noreplace) %verify(not mtime md5 size) /var/lib/sasl2/sasl.db
437 %{_mandir}/man8/sasldblistusers2.*
438 %{_mandir}/man8/saslpasswd2.*
441 %defattr(644,root,root,755)
443 %attr(755,root,root) %{_libdir}/lib*.so
448 %defattr(644,root,root,755)
450 %{_libdir}/sasl2/lib*.a
453 %defattr(644,root,root,755)
454 %attr(755,root,root) %{_libdir}/sasl2/libanonymous.so*
457 %defattr(644,root,root,755)
458 %attr(755,root,root) %{_libdir}/sasl2/libcrammd5.so*
461 %defattr(644,root,root,755)
462 %attr(755,root,root) %{_libdir}/sasl2/libdigestmd5.so*
465 %defattr(644,root,root,755)
466 %attr(755,root,root) %{_libdir}/sasl2/liblogin.so*
469 %defattr(644,root,root,755)
470 %attr(755,root,root) %{_libdir}/sasl2/libotp.so*
473 %defattr(644,root,root,755)
474 %attr(755,root,root) %{_libdir}/sasl2/libplain.so*
477 %defattr(644,root,root,755)
478 %attr(755,root,root) %{_libdir}/sasl2/libsasldb.so*
480 %if %{!?_without_mysql:1}%{?_without_mysql:0}
482 %defattr(644,root,root,755)
483 %attr(755,root,root) %{_libdir}/sasl2/libmysql*.so*
486 %if %{?_with_srp:1}%{?!_with_srp:0}
488 %defattr(644,root,root,755)
489 %attr(755,root,root) %{_libdir}/sasl2/libsrp.so*
492 %if %{?_with_x509:1}%{?!_with_x509:0}
494 %defattr(644,root,root,755)
495 %attr(755,root,root) %{_libdir}/sasl2/libx509.so*
498 %if %{?_with_pwcheck:1}%{?!_with_pwcheck:0}
500 %defattr(644,root,root,755)
501 %attr(755,root,root) %{_sbindir}/pwcheck
505 %defattr(644,root,root,755)
507 %attr(755,root,root) %{_sbindir}/saslauthd
508 %attr(754,root,root) /etc/rc.d/init.d/saslauthd
509 %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/saslauthd
510 %{_mandir}/man8/saslauthd.*