]> git.pld-linux.org Git - packages/cyrus-sasl.git/blob - cyrus-sasl.spec
- cleanup in ac/am, more specific Requires for saslauthd
[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.10
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 BuildRequires:  autoconf
25 BuildRequires:  automake
26 BuildRequires:  db-devel
27 BuildRequires:  libtool >= 1.4
28 %{!?_without_mysql:BuildRequires: mysql-devel}
29 %{!?_without_ldap:BuildRequires: openldap-devel}
30 BuildRequires:  openssl-devel >= 0.9.6a
31 BuildRequires:  pam-devel
32 URL:            http://asg.web.cmu.edu/sasl/
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %define         _sysconfdir     /etc/sasl
36
37 %description
38 This is an implemention of the SASL API, useful for adding
39 authentication, authorization, and security to network protocols. The
40 SASL protocol itself is documented in rfc2222; the API standard is a
41 work in progress.
42
43 %description -l pl
44 Pakiet cyrus-sasl zawiera implementacjê biblioteki API SASL dla
45 systemu poczty elektronicznej Cyrusa. Biblioteka ta jest przydatna
46 tak¿e do dodawania uwierzytelniania, autoryzacji oraz zwiêkszania
47 bezpieczeñstwa protoko³ów sieciowych. Sam protokó³ SASL jest opisany w
48 RFC 2222; standaryzacja API jest w toku.
49
50 %description -l pt_BR
51 Esta é uma implementação da API SASL, útil para acrescentar
52 autenticação, autorização e seguança (criptografia) para protocolos de
53 rede. O protocolo SASL está documentado na RFC 2222. A API "padrão"
54 ainda está em desenvolvimento.
55
56 %description -l ru
57 ðÁËÅÔ cyrus-sasl ÓÏÄÅÒÖÉÔ ÒÅÁÌÉÚÁÃÉÀ Cyrus SASL. SASL - ÜÔÏ Simple
58 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÂÁ×ÌÅÎÉÑ ÐÏÄÄÅÒÖËÉ
59 ÁÕÔÅÎÔÉËÁÃÉÉ Ë ÐÒÏÔÏËÏÌÁÍ, ÏÓÎÏ×ÁÎÎÙÍ ÎÁ ÓÏÅÄÉÎÅÎÉÑÈ.
60
61 %description -l uk
62 ðÁËÅÔ cyrus-sasl Í¦ÓÔÉÔØ ÒÅÁ̦ÚÁæÀ Cyrus SASL. SASL - ÃÅ Simple
63 Authentication and Security Layer, ÍÅÔÏÄ ÄÌÑ ÄÏÄÁÎÎѠЦÄÔÒÉÍËÉ
64 ÁÕÔÅÎÔÉËÁ槠ÄÏ ÐÒÏÔÏËÏ̦×, ÂÁÚÏ×ÁÎÉÈ ÎÁ Ú'¤ÄÎÁÎÎÑÈ.
65
66 %package devel
67 Summary:        Header files and documentation for cyrus-sasl
68 Summary(pl):    Pliki nag³ówkowe i dokumentacja dla cyrus-sasl
69 Summary(pt_BR): Exemplos e arquivos para desenvolvimento com SASL
70 Summary(ru):    æÁÊÌÙ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó ÂÉÂÌÉÏÔÅËÏÊ Cyrus SASL
71 Summary(ru):    æÁÊÌÉ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎѠڠ¦Â̦ÏÔÅËÏÀ Cyrus SASL
72 Group:          Development/Libraries
73 Requires:       %{name} = %{version}
74
75 %description devel
76 This includes the header files and documentation needed to develop
77 applications which use SASL.
78
79 %description devel -l pl
80 Pliki nag³ówkowe i dokumentacja dla cyrus-sasl.
81
82 %description devel -l pt_BR
83 Este pacote inclui os arquivos de cabeçalho e documentação necessários
84 para desenvolver aplicativos que usem SASL.
85
86 %description devel -l ru
87 èÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
88 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
89
90 %description devel -l uk
91 èÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ
92 ×ÉËÏÒÉÓÔÏ×ÕÀÔØ Cyrus SASL.
93
94 %package static
95 Summary:        Static cyrus-sasl libraries
96 Summary(pl):    Statyczne biblioteki cyrus-sasl
97 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ Cyrus SASL
98 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ Cyrus SASL
99 Group:          Development/Libraries
100 Requires:       %{name}-devel = %{version}
101
102 %description static
103 Static cyrus-sasl libraries.
104
105 %description static -l pl
106 Statyczne biblioteki cyrus-sasl.
107
108 %description static -l ru
109 óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÉÌÏÖÅÎÉÊ,
110 ÉÓÐÏÌØÚÕÀÝÉÈ Cyrus SASL.
111
112 %description static -l uk
113 óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ
114 Cyrus SASL.
115
116 %package cram-md5
117 Summary:        Cram-MD5 Cyrus SASL plugin
118 Summary(pl):    Wtyczka Cram-MD5 do Cyrus SASL
119 Summary(pt_BR): Mecanismo SASL CRAM-MD5
120 Group:          Libraries
121 Requires:       %{name} = %{version}
122
123 %description cram-md5
124 This plugin implements the SASL CRAM-MD5 mechanism. CRAM-MD5 is the
125 mandatory-to-implement authentication mechanism for a number of
126 protocols; it uses MD5 with a challenge/response system to
127 authenticate the user.
128
129 %description cram-md5 -l pl
130 Wtyczka dodaj±ca obs³ugê mechanizmu CRAM-MD5 do Cyrus SASL. CRAM-MD5
131 jest obowi±zkowym do zaimplementowania mechanizmem uwierzytelniania
132 dla wielu protoko³ów; do uwierzytelnienia u¿ytkownika u¿ywa MD5 wraz z
133 systemem challenge/response.
134
135 %description cram-md5 -l pt_BR
136 Este plugin implementa o mecanismo SASL CRAM-MD5. CRAM-MD5 é o
137 mecanismo de autenticação obrigatório de ser implementado para vários
138 protocolos: ele usa MD5 com um sistema de desafio/resposta para
139 autenticar o usuário.
140
141 %package digest-md5
142 Summary:        Digest-MD5 Cyrus SASL plugin
143 Summary(pl):    Wtyczka Digest-MD5 do Cyrus SASL
144 Summary(pt_BR): Mecanismo SASL DIGEST-MD5
145 Group:          Libraries
146 Requires:       %{name} = %{version}
147
148 %description digest-md5
149 This plugin implements the latest draft of the SASL DIGEST-MD5
150 mechanism. Although not yet finalized, this is likely to become the
151 new mandatory-to-implement authentication system in all new protocols.
152 It's based on the digest md5 authentication system designed for HTTP.
153
154 %description digest-md5 -l pl
155 Wtyczka dodaj±ca najnowsz± wersjê mechanizmu DIGEST-MD5 do Cyrus SASL.
156 Pomimo tego, ¿e nie jest jeszcze ukoñczony, najprawdopodobniej stanie
157 siê obowi±zkowym do zaimplementowania systemem uwierzytelniania we
158 wszystkich nowych protoko³ach. Bazuje na systemie uwierzytelniania
159 Digest-MD5 zaprojektowanym dla HTTP.
160
161 %description digest-md5 -l pt_BR
162 Este plugin implementa a última versão da especificação do mecanismo
163 SASL DIGEST-MD5. Embora ainda não esteja finalizado, DIGEST-MD5
164 provavelmente será o novo sistema de autenticação obrigatório para
165 protocolos novos. Ele é baseado na autenticação md5 digest
166 desenvolvida para HTTP.
167
168 %package plain
169 Summary:        Plain Cyrus SASL plugin
170 Summary(pl):    Wtyczka plain do Cyrus SASL
171 Summary(pt_BR): Mecanismo SASL PLAIN
172 Group:          Libraries
173 Requires:       %{name} = %{version}
174
175 %description plain
176 This plugin implements the SASL PLAIN mechanism. Although insecure,
177 PLAIN is useful for transitioning to new security mechanisms, as this
178 is the only mechanism which gives the server a copy of the user's
179 password.
180
181 %description plain -l pl
182 Wtyczka dodaj±ca obs³ugê mechanizmu PLAIN do Cyrus SASL. Pomimo tego,
183 ¿e nie jest bezpieczny, PLAIN jest przydatny przy przechodzeniu na
184 nowe mechanizmu bezpieczeñstwa, jako ¿e jest to jedyny mechanizm,
185 który udostêpnia serwerowi kopiê has³a u¿ytkownika.
186
187 %description plain -l pt_BR
188 Este plugin implementa o mecanismo SASL PLAIN. Embora inseguro, este
189 mecanismo é útil durante transições para novos mecanismos de
190 segurança, pois é o único esquema que fornece uma cópia da senha do
191 usuário para o servidor.
192
193 %package anonymous
194 Summary:        Anonymous Cyrus SASL plugin
195 Summary(pl):    Wtyczka anonymous do Cyrus SASL
196 Summary(pt_BR): Mecanismo SASL ANONYMOUS
197 Group:          Libraries
198 Requires:       %{name} = %{version}
199
200 %description anonymous
201 This plugin implements the SASL ANONYMOUS mechanism, used for
202 anonymous authentication.
203
204 %description anonymous -l pl
205 Wtyczka dodaj±ca obs³ugê mechanizmu ANONYMOUS do Cyrus SASL. S³u¿y do
206 anonimowego uwierzytelniania.
207
208 %description anonymous -l pt_BR
209 Este plugin implementa o mecanismo SASL ANONYMOUS, usado para
210 autenticação anônima.
211
212 %package login
213 Summary:        Unsupported Login Cyrus SASL plugin
214 Summary(pl):    Nie wspierana wtyczka Login do Cyrus SASL
215 Group:          Libraries
216 Requires:       %{name} = %{version}
217
218 %description login
219 Unsupported LOGIN Cyrus SASL plugin.
220
221 %description login -l pl
222 Wtyczka dodaj±ca obs³ugê nie wspieranego mechanizmu LOGIN do Cyrus
223 SASL.
224
225 %package srp
226 Summary:        SRP Cyrus SASL plugin
227 Summary(pl):    Wtyczka SRP do Cyrus SASL
228 Summary(pt_BR): Mecanismo SASL SRP
229 Group:          Libraries
230 Requires:       %{name} = %{version}
231
232 %description srp
233 This plugin implements the SASL SRP mechanism, based on the Secure
234 Remote Password protocol. This mechanism performs mutual
235 authentication and can provide a security layer with replay detection,
236 integrity protection and/or condifentiality protection.
237
238 %description srp -l pl
239 Wtyczka dodaj±ca obs³ugê mechanizmu SRP do Cyrus SASL. Bazuje na
240 protokole Secure Remote Password. Ten mechanizm dokonuje wzajemnego
241 uwierzytelnienia i mo¿e dodawaæ warstwê bezpieczeñstwa z wykrywaniem
242 powtarzania, zabezpieczeniem integralno¶ci i/lub poufno¶ci.
243
244 %description srp -l pt_BR
245 Este plugin implementa o mecanismo SASL SRP, baseado no protocolo SRP
246 (Secure Remote Password). Este mecanismo oferece autenticação mútua
247 (do cliente e do servidor) e pode prover uma camada de segurança com
248 detecção de ataques de replay, garantia de integridade e/ou
249 confidencialidade.
250
251 %package otp
252 Summary:        OTP Cyrus SASL plugin
253 Summary(pl):    Wtyczka OTP do Cyrus SASL
254 Summary(pt_BR): Mecanismo SASL OTP
255 Group:          Libraries
256 Requires:       %{name} = %{version}
257
258 %description otp
259 This plugin implements the SASL OTP (One Time Password) mechanism.
260
261 %description otp -l pl
262 Wtyczka dodaj±ca obs³ugê mechanizmu OTP (has³a jednorazowe) do Cyrus
263 SASL.
264
265 %package x509
266 Summary:        x509 Cyrus SASL plugin
267 Summary(pl):    Wtyczka x509 do Cyrus SASL
268 Group:          Libraries
269 Requires:       %{name} = %{version}
270
271 %description x509
272 x509 Cyrus SASL plugin.
273
274 %description x509 -l pl
275 Wtyczka x509 do Cyrus SASL.
276
277 %package saslauthd
278 Summary:        Cyrus SASL authd
279 Summary(pl):    Demon authd do Cyrus SASL
280 Group:          Libraries
281 Requires(post,postun):  /sbin/chkconfig
282 Requires:       %{name} = %{version}
283
284 %description saslauthd
285 Cyrus SASL authd.
286
287 %description saslauthd -l pl
288 Demon authd do Cyrus SASL.
289
290 %package pwcheck
291 Summary:        Cyrus SASL pwcheck helper
292 Summary(pl):    Program pomocniczy pwcheck do Cyrus SASL
293 Group:          Libraries
294 Requires:       %{name} = %{version}
295
296 %description pwcheck
297 Cyrus SASL pwcheck helper.
298
299 %description pwcheck -l pl
300 Program pomocniczy pwcheck do Cyrus SASL.
301
302 %package sasldb
303 Summary:        Cyrus SASL sasldb plugin
304 Summary(pl):    Wtyczka sasldb do Cyrus SASL
305 Group:          Libraries
306 Requires:       %{name} = %{version}
307
308 %description sasldb
309 Cyrus SASL sasldb plugin.
310
311 %description sasldb -l pl
312 Wtyczka sasldb do Cyrus SASL.
313
314 %package mysql
315 Summary:        Cyrus SASL mysql plugin
316 Summary(pl):    Wtyczka mysql do Cyrus SASL
317 Group:          Libraries
318 Requires:       %{name} = %{version}
319
320 %description mysql
321 Cyrus SASL mysql plugin.
322
323 %description mysql -l pl
324 Wtyczka mysql do Cyrus SASL.
325
326 %prep
327 %setup  -q
328 %patch0 -p1
329 %patch1 -p1
330 %patch2 -p1
331
332 %build
333 # acinclude.m4 contains only old libtool.m4
334 rm -f acinclude.m4 config/missing
335 %{__libtoolize}
336 %{__aclocal} -I cmulocal -I config
337 %{__autoheader}
338 %{__automake}
339 %{__autoconf}
340
341 cd saslauthd
342 %{__aclocal} -I ../cmulocal -I ../config -I config
343 %{__autoheader}
344 automake -a
345 %{__autoconf}
346 cd ..
347
348 LDFLAGS="%{rpmldflags} -ldl"; export LDFLAGS
349 %configure \
350         --enable-static \
351         --enable-login \
352         %{?_with_srp:--enable-srp} \
353         %{?!_without_mysql: --with-mysql=%{_prefix}} \
354         %{?!_without_ldap: --with-ldap=%{_prefix}} \
355         %{?_with_pwcheck: --with-pwcheck=/var/lib/sasl2} \
356         --with-saslauthd=/var/lib/sasl2 \
357         --with-pam \
358         --with-dblib=berkeley \
359         --with-dbpath=/var/lib/sasl2/sasl.db \
360         --with-configdir=%{_sysconfdir} \
361         --disable-krb4 \
362         --disable-gssapi
363 %{__make}
364
365 %install
366 rm -rf $RPM_BUILD_ROOT
367 install -d $RPM_BUILD_ROOT{/var/lib/sasl2,%{_sysconfdir},/etc/{rc.d/init.d,sysconfig,pam.d}} \
368                 $RPM_BUILD_ROOT%{_mandir}/man8
369 %{__make} install DESTDIR=$RPM_BUILD_ROOT
370
371 rm -rf $RPM_BUILD_ROOT%{_mandir}/cat*
372 rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/*.la
373
374 install {utils,saslauthd}/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
375
376 ln -sf libsasl2.so $RPM_BUILD_ROOT%{_libdir}/libsasl.so
377
378 touch $RPM_BUILD_ROOT/var/lib/sasl2/sasl.db
379
380 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/saslauthd
381 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/saslauthd
382 install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/cyrus
383
384 %clean
385 rm -rf $RPM_BUILD_ROOT
386
387 %post   -p /sbin/ldconfig
388 %postun -p /sbin/ldconfig
389
390 %post saslauthd
391 /sbin/chkconfig --add saslauthd
392 if [ -f /var/lock/subsys/saslauthd ]; then
393         /etc/rc.d/init.d/saslauthd restart 1>&2
394 else
395         echo "Run \"/etc/rc.d/init.d/saslauthd start\" to start saslauthd."
396 fi
397
398 %preun saslauthd
399 if [ "$1" = "0" ]; then
400         if [ -f /var/lock/subsys/saslauthd ]; then
401                 /etc/rc.d/init.d/saslauthd stop 1>&2
402         fi
403         /sbin/chkconfig --del saslauthd
404 fi
405
406 %files
407 %defattr(644,root,root,755)
408 %doc AUTHORS COPYING ChangeLog NEWS README
409 %doc doc/{ONEWS,TODO,*.txt,*.html,*.fig}
410 %dir %{_sysconfdir}
411 %dir %{_libdir}/sasl2
412 %dir /var/lib/sasl2
413 %attr(755,root,root) %{_libdir}/lib*.so.*.*
414 %attr(755,root,root) %{_sbindir}/sasldblistusers2
415 %attr(755,root,root) %{_sbindir}/saslpasswd2
416
417 %attr(640,root,mail) %ghost %config(noreplace) %verify(not mtime md5 size) /var/lib/sasl2/sasl.db
418 %{_mandir}/man8/sasldblistusers2.*
419 %{_mandir}/man8/saslpasswd2.*
420
421 %files devel
422 %defattr(644,root,root,755)
423 %{_includedir}/sasl
424 %attr(755,root,root) %{_libdir}/lib*.so
425 %{_libdir}/lib*.la
426 %{_mandir}/man3/*
427
428 %files static
429 %defattr(644,root,root,755)
430 %{_libdir}/lib*.a
431 %{_libdir}/sasl2/lib*.a
432
433 %files anonymous
434 %defattr(644,root,root,755)
435 %attr(755,root,root) %{_libdir}/sasl2/libanonymous.so*
436
437 %files cram-md5
438 %defattr(644,root,root,755)
439 %attr(755,root,root) %{_libdir}/sasl2/libcrammd5.so*
440
441 %files digest-md5
442 %defattr(644,root,root,755)
443 %attr(755,root,root) %{_libdir}/sasl2/libdigestmd5.so*
444
445 %files login
446 %defattr(644,root,root,755)
447 %attr(755,root,root) %{_libdir}/sasl2/liblogin.so*
448
449 %files otp
450 %defattr(644,root,root,755)
451 %attr(755,root,root) %{_libdir}/sasl2/libotp.so*
452
453 %files plain
454 %defattr(644,root,root,755)
455 %attr(755,root,root) %{_libdir}/sasl2/libplain.so*
456
457 %files sasldb
458 %defattr(644,root,root,755)
459 %attr(755,root,root) %{_libdir}/sasl2/libsasldb.so*
460
461 %files mysql
462 %defattr(644,root,root,755)
463 %attr(755,root,root) %{_libdir}/sasl2/libmysql*.so*
464
465 %if %{?_with_srp:1}%{?!_with_srp:0}
466 %files srp
467 %defattr(644,root,root,755)
468 %attr(755,root,root) %{_libdir}/sasl2/libsrp.so*
469 %endif
470
471 %if %{?_with_x509:1}%{?!_with_x509:0}
472 %files x509
473 %defattr(644,root,root,755)
474 %attr(755,root,root) %{_libdir}/sasl2/libx509.so*
475 %endif
476
477 %if %{?_with_pwcheck:1}%{?!_with_pwcheck:0}
478 %files pwcheck
479 %defattr(644,root,root,755)
480 %attr(755,root,root) %{_sbindir}/pwcheck
481 %endif
482
483 %files saslauthd
484 %defattr(644,root,root,755)
485 %attr(755,root,root) %{_sbindir}/saslauthd
486 %attr(754,root,root) /etc/rc.d/init.d/saslauthd
487 %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/saslauthd
488 %config(noreplace) %verify(not mtime md5 size) /etc/pam.d/cyrus
489 %{_mandir}/man8/saslauthd.*
This page took 0.067674 seconds and 3 git commands to generate.