]> git.pld-linux.org Git - packages/cyrus-sasl.git/blob - cyrus-sasl.spec
- xmms have reminder message, so sasl will also have it
[packages/cyrus-sasl.git] / cyrus-sasl.spec
1 #
2 # TODO:
3 # - add ldap plugin from openldap sources
4 #
5 # Conditional build:
6 # _with_srp             - build srp pluggin
7 # _without_myslq        - don't build mysql pluggin
8 # _without_ldap         - disable LDAP support for sasluthd
9 #
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
15 Name:           cyrus-sasl
16 Version:        2.1.13
17 Release:        0.2
18 License:        distributable
19 Group:          Libraries
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
24 Source3:        %{name}.pam
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
33 BuildRequires:  ed
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)
40
41 %define         _sysconfdir     /etc/sasl
42
43 %description
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
47 work in progress.
48
49 %description -l pl
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.
55
56 %description -l pt_BR
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.
61
62 %description -l ru
63 ðÁËÅÔ cyrus-sasl ÓÏÄÅÒÖÉÔ ÒÅÁÌÉÚÁÃÉÀ Cyrus SASL. SASL - ÜÔÏ Simple
64 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÂÁ×ÌÅÎÉÑ ÐÏÄÄÅÒÖËÉ
65 ÁÕÔÅÎÔÉËÁÃÉÉ Ë ÐÒÏÔÏËÏÌÁÍ, ÏÓÎÏ×ÁÎÎÙÍ ÎÁ ÓÏÅÄÉÎÅÎÉÑÈ.
66
67 %description -l uk
68 ðÁËÅÔ cyrus-sasl Í¦ÓÔÉÔØ ÒÅÁ̦ÚÁæÀ Cyrus SASL. SASL - ÃÅ Simple
69 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÄÁÎÎѠЦÄÔÒÉÍËÉ
70 ÁÕÔÅÎÔÉËÁ槠ÄÏ ÐÒÏÔÏËÏ̦×, ÂÁÚÏ×ÁÎÉÈ ÎÁ Ú'¤ÄÎÁÎÎÑÈ.
71
72 %package devel
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}
80
81 %description devel
82 This includes the header files and documentation needed to develop
83 applications which use SASL.
84
85 %description devel -l pl
86 Pliki nag³ówkowe i dokumentacja dla cyrus-sasl.
87
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.
91
92 %description devel -l ru
93 èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
94 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
95
96 %description devel -l uk
97 èÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
98 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ Cyrus SASL.
99
100 %package static
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}
107
108 %description static
109 Static cyrus-sasl libraries.
110
111 %description static -l pl
112 Statyczne biblioteki cyrus-sasl.
113
114 %description static -l ru
115 óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
116 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
117
118 %description static -l uk
119 óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ
120 Cyrus SASL.
121
122 %package cram-md5
123 Summary:        Cram-MD5 Cyrus SASL plugin
124 Summary(pl):    Wtyczka Cram-MD5 do Cyrus SASL
125 Summary(pt_BR): Mecanismo SASL CRAM-MD5
126 Group:          Libraries
127 Requires:       %{name} = %{version}
128
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.
134
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.
140
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.
146
147 %package digest-md5
148 Summary:        Digest-MD5 Cyrus SASL plugin
149 Summary(pl):    Wtyczka Digest-MD5 do Cyrus SASL
150 Summary(pt_BR): Mecanismo SASL DIGEST-MD5
151 Group:          Libraries
152 Requires:       %{name} = %{version}
153
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.
159
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.
166
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.
173
174 %package plain
175 Summary:        Plain Cyrus SASL plugin
176 Summary(pl):    Wtyczka plain do Cyrus SASL
177 Summary(pt_BR): Mecanismo SASL PLAIN
178 Group:          Libraries
179 Requires:       %{name} = %{version}
180
181 %description plain
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
185 password.
186
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.
192
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.
198
199 %package anonymous
200 Summary:        Anonymous Cyrus SASL plugin
201 Summary(pl):    Wtyczka anonymous do Cyrus SASL
202 Summary(pt_BR): Mecanismo SASL ANONYMOUS
203 Group:          Libraries
204 Requires:       %{name} = %{version}
205
206 %description anonymous
207 This plugin implements the SASL ANONYMOUS mechanism, used for
208 anonymous authentication.
209
210 %description anonymous -l pl
211 Wtyczka dodaj±ca obs³ugê mechanizmu ANONYMOUS do Cyrus SASL. S³u¿y do
212 anonimowego uwierzytelniania.
213
214 %description anonymous -l pt_BR
215 Este plugin implementa o mecanismo SASL ANONYMOUS, usado para
216 autenticação anônima.
217
218 %package login
219 Summary:        Unsupported Login Cyrus SASL plugin
220 Summary(pl):    Nie wspierana wtyczka Login do Cyrus SASL
221 Group:          Libraries
222 Requires:       %{name} = %{version}
223
224 %description login
225 Unsupported LOGIN Cyrus SASL plugin.
226
227 %description login -l pl
228 Wtyczka dodaj±ca obs³ugê nie wspieranego mechanizmu LOGIN do Cyrus
229 SASL.
230
231 %package srp
232 Summary:        SRP Cyrus SASL plugin
233 Summary(pl):    Wtyczka SRP do Cyrus SASL
234 Summary(pt_BR): Mecanismo SASL SRP
235 Group:          Libraries
236 Requires:       %{name} = %{version}
237
238 %description srp
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.
243
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.
249
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
255 confidencialidade.
256
257 %package otp
258 Summary:        OTP Cyrus SASL plugin
259 Summary(pl):    Wtyczka OTP do Cyrus SASL
260 Summary(pt_BR): Mecanismo SASL OTP
261 Group:          Libraries
262 Requires:       %{name} = %{version}
263
264 %description otp
265 This plugin implements the SASL OTP (One Time Password) mechanism.
266
267 %description otp -l pl
268 Wtyczka dodaj±ca obs³ugê mechanizmu OTP (has³a jednorazowe) do Cyrus
269 SASL.
270
271 %package x509
272 Summary:        x509 Cyrus SASL plugin
273 Summary(pl):    Wtyczka x509 do Cyrus SASL
274 Group:          Libraries
275 Requires:       %{name} = %{version}
276
277 %description x509
278 x509 Cyrus SASL plugin.
279
280 %description x509 -l pl
281 Wtyczka x509 do Cyrus SASL.
282
283 %package saslauthd
284 Summary:        Cyrus SASL authd
285 Summary(pl):    Demon authd do Cyrus SASL
286 Group:          Libraries
287 Requires(post,postun):  /sbin/chkconfig
288 Requires:       %{name} = %{version}
289
290 %description saslauthd
291 Cyrus SASL authd.
292
293 %description saslauthd -l pl
294 Demon authd do Cyrus SASL.
295
296 %package pwcheck
297 Summary:        Cyrus SASL pwcheck helper
298 Summary(pl):    Program pomocniczy pwcheck do Cyrus SASL
299 Group:          Libraries
300 Requires:       %{name} = %{version}
301
302 %description pwcheck
303 Cyrus SASL pwcheck helper.
304
305 %description pwcheck -l pl
306 Program pomocniczy pwcheck do Cyrus SASL.
307
308 %package sasldb
309 Summary:        Cyrus SASL sasldb plugin
310 Summary(pl):    Wtyczka sasldb do Cyrus SASL
311 Group:          Libraries
312 Requires:       %{name} = %{version}
313
314 %description sasldb
315 Cyrus SASL sasldb plugin.
316
317 %description sasldb -l pl
318 Wtyczka sasldb do Cyrus SASL.
319
320 %package mysql
321 Summary:        Cyrus SASL mysql plugin
322 Summary(pl):    Wtyczka mysql do Cyrus SASL
323 Group:          Libraries
324 Requires:       %{name} = %{version}
325
326 %description mysql
327 Cyrus SASL mysql plugin.
328
329 %description mysql -l pl
330 Wtyczka mysql do Cyrus SASL.
331
332 %prep
333 %setup  -q
334 %patch0 -p1
335 %patch1 -p1
336 %patch2 -p1
337 %patch3 -p1
338
339 cd doc
340 echo "cyrus-sasl complies with the following RFCs:" > rfc-compliance
341 ls rfc*.txt >> rfc-compliance
342 rm -f rfc*.txt
343 cd ..
344
345 %build
346 # acinclude.m4 contains only old libtool.m4
347 rm -f acinclude.m4 config/missing
348 %{__libtoolize}
349 %{__aclocal} -I cmulocal -I config
350 %{__autoheader}
351 %{__automake}
352 %{__autoconf}
353
354 cd saslauthd
355         %{__aclocal} -I ../cmulocal -I ../config -I config
356         %{__autoheader}
357         %{__automake}
358         %{__autoconf}
359 cd ..
360
361 LDFLAGS="%{rpmldflags} -ldl"; export LDFLAGS
362 %configure \
363         --enable-static \
364         --enable-login \
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 \
370         --with-pam \
371         --with-dblib=berkeley \
372         --with-dbpath=/var/lib/sasl2/sasl.db \
373         --with-configdir=%{_sysconfdir} \
374         --disable-krb4 \
375         --disable-gssapi
376 %{__make}
377
378 cd doc
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
383 done
384 cd ..
385
386 %install
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
390
391 %{__make} install \
392         DESTDIR=$RPM_BUILD_ROOT
393
394 rm -rf $RPM_BUILD_ROOT%{_mandir}/cat*
395 rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/*.{la,a}
396
397 install {utils,saslauthd}/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
398
399 ln -sf libsasl2.so $RPM_BUILD_ROOT%{_libdir}/libsasl.so
400
401 touch $RPM_BUILD_ROOT/var/lib/sasl2/sasl.db
402
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
406
407 %clean
408 rm -rf $RPM_BUILD_ROOT
409
410 %post
411 /sbin/ldconfig
412
413 echo "Remember to install apropriate plugins, or you won't have any mechs available."
414
415 %postun -p /sbin/ldconfig
416
417 %post saslauthd
418 /sbin/chkconfig --add saslauthd
419 if [ -f /var/lock/subsys/saslauthd ]; then
420         /etc/rc.d/init.d/saslauthd restart 1>&2
421 else
422         echo "Run \"/etc/rc.d/init.d/saslauthd start\" to start saslauthd."
423 fi
424
425 %preun saslauthd
426 if [ "$1" = "0" ]; then
427         if [ -f /var/lock/subsys/saslauthd ]; then
428                 /etc/rc.d/init.d/saslauthd stop 1>&2
429         fi
430         /sbin/chkconfig --del saslauthd
431 fi
432
433 %files
434 %defattr(644,root,root,755)
435 %doc AUTHORS COPYING ChangeLog NEWS README
436 %doc doc/{ONEWS,TODO,*.txt,*.html,*.fig,rfc-compliance}
437 %dir %{_sysconfdir}
438 %dir %{_libdir}/sasl2
439 %dir /var/lib/sasl2
440 %attr(755,root,root) %{_libdir}/lib*.so.*.*
441 %attr(755,root,root) %{_sbindir}/sasldblistusers2
442 %attr(755,root,root) %{_sbindir}/saslpasswd2
443
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.*
447
448 %files devel
449 %defattr(644,root,root,755)
450 %{_includedir}/sasl
451 %attr(755,root,root) %{_libdir}/lib*.so
452 %{_libdir}/lib*.la
453 %{_mandir}/man3/*
454
455 %files static
456 %defattr(644,root,root,755)
457 %{_libdir}/lib*.a
458
459 %files anonymous
460 %defattr(644,root,root,755)
461 %attr(755,root,root) %{_libdir}/sasl2/libanonymous.so*
462
463 %files cram-md5
464 %defattr(644,root,root,755)
465 %attr(755,root,root) %{_libdir}/sasl2/libcrammd5.so*
466
467 %files digest-md5
468 %defattr(644,root,root,755)
469 %attr(755,root,root) %{_libdir}/sasl2/libdigestmd5.so*
470
471 %files login
472 %defattr(644,root,root,755)
473 %attr(755,root,root) %{_libdir}/sasl2/liblogin.so*
474
475 %files otp
476 %defattr(644,root,root,755)
477 %attr(755,root,root) %{_libdir}/sasl2/libotp.so*
478
479 %files plain
480 %defattr(644,root,root,755)
481 %attr(755,root,root) %{_libdir}/sasl2/libplain.so*
482
483 %files sasldb
484 %defattr(644,root,root,755)
485 %attr(755,root,root) %{_libdir}/sasl2/libsasldb.so*
486
487 %if %{!?_without_mysql:1}%{?_without_mysql:0}
488 %files mysql
489 %defattr(644,root,root,755)
490 %attr(755,root,root) %{_libdir}/sasl2/libmysql*.so*
491 %endif
492
493 %if %{?_with_srp:1}%{?!_with_srp:0}
494 %files srp
495 %defattr(644,root,root,755)
496 %attr(755,root,root) %{_libdir}/sasl2/libsrp.so*
497 %endif
498
499 %if %{?_with_x509:1}%{?!_with_x509:0}
500 %files x509
501 %defattr(644,root,root,755)
502 %attr(755,root,root) %{_libdir}/sasl2/libx509.so*
503 %endif
504
505 %if %{?_with_pwcheck:1}%{?!_with_pwcheck:0}
506 %files pwcheck
507 %defattr(644,root,root,755)
508 %attr(755,root,root) %{_sbindir}/pwcheck
509 %endif
510
511 %files saslauthd
512 %defattr(644,root,root,755)
513 %doc cyrus.pam
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.*
This page took 0.08505 seconds and 4 git commands to generate.