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