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