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