]> git.pld-linux.org Git - packages/cyrus-sasl.git/blob - cyrus-sasl.spec
- fixed rfc list generation
[packages/cyrus-sasl.git] / cyrus-sasl.spec
1 #
2 # Conditional builds:
3 # _with_srp - build srp pluggin
4 # _without_myslq - don't build mysql pluggin
5 # _without_ldap - disable LDAP support for sasluthd
6 #
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
12 Name:           cyrus-sasl
13 Version:        2.1.12
14 Release:        2
15 License:        distributable
16 Group:          Libraries
17 Source0:        ftp://ftp.andrew.cmu.edu/pub/cyrus-mail//%{name}-%{version}.tar.gz
18 Source1:        saslauthd.init
19 Source2:        saslauthd.sysconfig
20 Source3:        %{name}.pam
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:  ed
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)
36
37 %define         _sysconfdir     /etc/sasl
38
39 %description
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
43 work in progress.
44
45 %description -l pl
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.
51
52 %description -l pt_BR
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.
57
58 %description -l ru
59 ðÁËÅÔ cyrus-sasl ÓÏÄÅÒÖÉÔ ÒÅÁÌÉÚÁÃÉÀ Cyrus SASL. SASL - ÜÔÏ Simple
60 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÂÁ×ÌÅÎÉÑ ÐÏÄÄÅÒÖËÉ
61 ÁÕÔÅÎÔÉËÁÃÉÉ Ë ÐÒÏÔÏËÏÌÁÍ, ÏÓÎÏ×ÁÎÎÙÍ ÎÁ ÓÏÅÄÉÎÅÎÉÑÈ.
62
63 %description -l uk
64 ðÁËÅÔ cyrus-sasl Í¦ÓÔÉÔØ ÒÅÁ̦ÚÁæÀ Cyrus SASL. SASL - ÃÅ Simple
65 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÄÁÎÎѠЦÄÔÒÉÍËÉ
66 ÁÕÔÅÎÔÉËÁ槠ÄÏ ÐÒÏÔÏËÏ̦×, ÂÁÚÏ×ÁÎÉÈ ÎÁ Ú'¤ÄÎÁÎÎÑÈ.
67
68 %package devel
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}
76
77 %description devel
78 This includes the header files and documentation needed to develop
79 applications which use SASL.
80
81 %description devel -l pl
82 Pliki nag³ówkowe i dokumentacja dla cyrus-sasl.
83
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.
87
88 %description devel -l ru
89 èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
90 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
91
92 %description devel -l uk
93 èÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
94 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ Cyrus SASL.
95
96 %package static
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}
103
104 %description static
105 Static cyrus-sasl libraries.
106
107 %description static -l pl
108 Statyczne biblioteki cyrus-sasl.
109
110 %description static -l ru
111 óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
112 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
113
114 %description static -l uk
115 óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ
116 Cyrus SASL.
117
118 %package cram-md5
119 Summary:        Cram-MD5 Cyrus SASL plugin
120 Summary(pl):    Wtyczka Cram-MD5 do Cyrus SASL
121 Summary(pt_BR): Mecanismo SASL CRAM-MD5
122 Group:          Libraries
123 Requires:       %{name} = %{version}
124
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.
130
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.
136
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.
142
143 %package digest-md5
144 Summary:        Digest-MD5 Cyrus SASL plugin
145 Summary(pl):    Wtyczka Digest-MD5 do Cyrus SASL
146 Summary(pt_BR): Mecanismo SASL DIGEST-MD5
147 Group:          Libraries
148 Requires:       %{name} = %{version}
149
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.
155
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.
162
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.
169
170 %package plain
171 Summary:        Plain Cyrus SASL plugin
172 Summary(pl):    Wtyczka plain do Cyrus SASL
173 Summary(pt_BR): Mecanismo SASL PLAIN
174 Group:          Libraries
175 Requires:       %{name} = %{version}
176
177 %description plain
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
181 password.
182
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.
188
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.
194
195 %package anonymous
196 Summary:        Anonymous Cyrus SASL plugin
197 Summary(pl):    Wtyczka anonymous do Cyrus SASL
198 Summary(pt_BR): Mecanismo SASL ANONYMOUS
199 Group:          Libraries
200 Requires:       %{name} = %{version}
201
202 %description anonymous
203 This plugin implements the SASL ANONYMOUS mechanism, used for
204 anonymous authentication.
205
206 %description anonymous -l pl
207 Wtyczka dodaj±ca obs³ugê mechanizmu ANONYMOUS do Cyrus SASL. S³u¿y do
208 anonimowego uwierzytelniania.
209
210 %description anonymous -l pt_BR
211 Este plugin implementa o mecanismo SASL ANONYMOUS, usado para
212 autenticação anônima.
213
214 %package login
215 Summary:        Unsupported Login Cyrus SASL plugin
216 Summary(pl):    Nie wspierana wtyczka Login do Cyrus SASL
217 Group:          Libraries
218 Requires:       %{name} = %{version}
219
220 %description login
221 Unsupported LOGIN Cyrus SASL plugin.
222
223 %description login -l pl
224 Wtyczka dodaj±ca obs³ugê nie wspieranego mechanizmu LOGIN do Cyrus
225 SASL.
226
227 %package srp
228 Summary:        SRP Cyrus SASL plugin
229 Summary(pl):    Wtyczka SRP do Cyrus SASL
230 Summary(pt_BR): Mecanismo SASL SRP
231 Group:          Libraries
232 Requires:       %{name} = %{version}
233
234 %description srp
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.
239
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.
245
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
251 confidencialidade.
252
253 %package otp
254 Summary:        OTP Cyrus SASL plugin
255 Summary(pl):    Wtyczka OTP do Cyrus SASL
256 Summary(pt_BR): Mecanismo SASL OTP
257 Group:          Libraries
258 Requires:       %{name} = %{version}
259
260 %description otp
261 This plugin implements the SASL OTP (One Time Password) mechanism.
262
263 %description otp -l pl
264 Wtyczka dodaj±ca obs³ugê mechanizmu OTP (has³a jednorazowe) do Cyrus
265 SASL.
266
267 %package x509
268 Summary:        x509 Cyrus SASL plugin
269 Summary(pl):    Wtyczka x509 do Cyrus SASL
270 Group:          Libraries
271 Requires:       %{name} = %{version}
272
273 %description x509
274 x509 Cyrus SASL plugin.
275
276 %description x509 -l pl
277 Wtyczka x509 do Cyrus SASL.
278
279 %package saslauthd
280 Summary:        Cyrus SASL authd
281 Summary(pl):    Demon authd do Cyrus SASL
282 Group:          Libraries
283 Requires(post,postun):  /sbin/chkconfig
284 Requires:       %{name} = %{version}
285
286 %description saslauthd
287 Cyrus SASL authd.
288
289 %description saslauthd -l pl
290 Demon authd do Cyrus SASL.
291
292 %package pwcheck
293 Summary:        Cyrus SASL pwcheck helper
294 Summary(pl):    Program pomocniczy pwcheck do Cyrus SASL
295 Group:          Libraries
296 Requires:       %{name} = %{version}
297
298 %description pwcheck
299 Cyrus SASL pwcheck helper.
300
301 %description pwcheck -l pl
302 Program pomocniczy pwcheck do Cyrus SASL.
303
304 %package sasldb
305 Summary:        Cyrus SASL sasldb plugin
306 Summary(pl):    Wtyczka sasldb do Cyrus SASL
307 Group:          Libraries
308 Requires:       %{name} = %{version}
309
310 %description sasldb
311 Cyrus SASL sasldb plugin.
312
313 %description sasldb -l pl
314 Wtyczka sasldb do Cyrus SASL.
315
316 %package mysql
317 Summary:        Cyrus SASL mysql plugin
318 Summary(pl):    Wtyczka mysql do Cyrus SASL
319 Group:          Libraries
320 Requires:       %{name} = %{version}
321
322 %description mysql
323 Cyrus SASL mysql plugin.
324
325 %description mysql -l pl
326 Wtyczka mysql do Cyrus SASL.
327
328 %prep
329 %setup  -q
330 %patch0 -p1
331 %patch1 -p1
332 %patch2 -p1
333 %patch3 -p1
334
335 cd doc
336 echo "cyrus-sasl complies with the following RFCs:" > rfc-compliance
337 ls rfc*.txt >> rfc-compliance
338 rm -f rfc*.txt
339 cd ..
340
341 %build
342 # acinclude.m4 contains only old libtool.m4
343 rm -f acinclude.m4 config/missing
344 %{__libtoolize}
345 %{__aclocal} -I cmulocal -I config
346 %{__autoheader}
347 %{__automake}
348 %{__autoconf}
349
350 cd saslauthd
351 %{__aclocal} -I ../cmulocal -I ../config -I config
352 %{__autoheader}
353 automake -a
354 %{__autoconf}
355 cd ..
356
357 LDFLAGS="%{rpmldflags} -ldl"; export LDFLAGS
358 %configure \
359         --enable-static \
360         --enable-login \
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 \
366         --with-pam \
367         --with-dblib=berkeley \
368         --with-dbpath=/var/lib/sasl2/sasl.db \
369         --with-configdir=%{_sysconfdir} \
370         --disable-krb4 \
371         --disable-gssapi
372 %{__make}
373
374 cd doc
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
379 done
380 cd ..
381
382 %install
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
387
388 rm -rf $RPM_BUILD_ROOT%{_mandir}/cat*
389 rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/*.la
390
391 install {utils,saslauthd}/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
392
393 ln -sf libsasl2.so $RPM_BUILD_ROOT%{_libdir}/libsasl.so
394
395 touch $RPM_BUILD_ROOT/var/lib/sasl2/sasl.db
396
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
400
401 %clean
402 rm -rf $RPM_BUILD_ROOT
403
404 %post   -p /sbin/ldconfig
405 %postun -p /sbin/ldconfig
406
407 %post saslauthd
408 /sbin/chkconfig --add saslauthd
409 if [ -f /var/lock/subsys/saslauthd ]; then
410         /etc/rc.d/init.d/saslauthd restart 1>&2
411 else
412         echo "Run \"/etc/rc.d/init.d/saslauthd start\" to start saslauthd."
413 fi
414
415 %preun saslauthd
416 if [ "$1" = "0" ]; then
417         if [ -f /var/lock/subsys/saslauthd ]; then
418                 /etc/rc.d/init.d/saslauthd stop 1>&2
419         fi
420         /sbin/chkconfig --del saslauthd
421 fi
422
423 %files
424 %defattr(644,root,root,755)
425 %doc AUTHORS COPYING ChangeLog NEWS README
426 %doc doc/{ONEWS,TODO,*.txt,*.html,*.fig,rfc-compliance}
427 %dir %{_sysconfdir}
428 %dir %{_libdir}/sasl2
429 %dir /var/lib/sasl2
430 %attr(755,root,root) %{_libdir}/lib*.so.*.*
431 %attr(755,root,root) %{_sbindir}/sasldblistusers2
432 %attr(755,root,root) %{_sbindir}/saslpasswd2
433
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.*
437
438 %files devel
439 %defattr(644,root,root,755)
440 %{_includedir}/sasl
441 %attr(755,root,root) %{_libdir}/lib*.so
442 %{_libdir}/lib*.la
443 %{_mandir}/man3/*
444
445 %files static
446 %defattr(644,root,root,755)
447 %{_libdir}/lib*.a
448 %{_libdir}/sasl2/lib*.a
449
450 %files anonymous
451 %defattr(644,root,root,755)
452 %attr(755,root,root) %{_libdir}/sasl2/libanonymous.so*
453
454 %files cram-md5
455 %defattr(644,root,root,755)
456 %attr(755,root,root) %{_libdir}/sasl2/libcrammd5.so*
457
458 %files digest-md5
459 %defattr(644,root,root,755)
460 %attr(755,root,root) %{_libdir}/sasl2/libdigestmd5.so*
461
462 %files login
463 %defattr(644,root,root,755)
464 %attr(755,root,root) %{_libdir}/sasl2/liblogin.so*
465
466 %files otp
467 %defattr(644,root,root,755)
468 %attr(755,root,root) %{_libdir}/sasl2/libotp.so*
469
470 %files plain
471 %defattr(644,root,root,755)
472 %attr(755,root,root) %{_libdir}/sasl2/libplain.so*
473
474 %files sasldb
475 %defattr(644,root,root,755)
476 %attr(755,root,root) %{_libdir}/sasl2/libsasldb.so*
477
478 %if %{!?_without_mysql:1}%{?_without_mysql:0}
479 %files mysql
480 %defattr(644,root,root,755)
481 %attr(755,root,root) %{_libdir}/sasl2/libmysql*.so*
482 %endif
483
484 %if %{?_with_srp:1}%{?!_with_srp:0}
485 %files srp
486 %defattr(644,root,root,755)
487 %attr(755,root,root) %{_libdir}/sasl2/libsrp.so*
488 %endif
489
490 %if %{?_with_x509:1}%{?!_with_x509:0}
491 %files x509
492 %defattr(644,root,root,755)
493 %attr(755,root,root) %{_libdir}/sasl2/libx509.so*
494 %endif
495
496 %if %{?_with_pwcheck:1}%{?!_with_pwcheck:0}
497 %files pwcheck
498 %defattr(644,root,root,755)
499 %attr(755,root,root) %{_sbindir}/pwcheck
500 %endif
501
502 %files saslauthd
503 %defattr(644,root,root,755)
504 %doc cyrus.pam
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.*
This page took 0.094246 seconds and 4 git commands to generate.