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