]> git.pld-linux.org Git - packages/cyrus-sasl.git/blob - cyrus-sasl.spec
- release 14.
[packages/cyrus-sasl.git] / cyrus-sasl.spec
1 #
2 # Conditional builds:
3 # x509 - build x509 pluggin
4 # srp - build srp pluggin
5 #
6 Summary:        The SASL library API for the Cyrus mail system
7 Summary(pl):    Biblioteka Cyrus SASL
8 Summary(pt_BR): Implementação da API SASL
9 Summary(ru):    âÉÂÌÉÏÔÅËÁ Cyrus SASL
10 Summary(uk):    â¦Â̦ÏÔÅËÁ Cyrus SASL
11 Name:           cyrus-sasl
12 Version:        1.5.27
13 Release:        14
14 License:        distributable
15 Group:          Libraries
16 Source0:        ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/%{name}-%{version}.tar.gz
17 Source1:        saslauthd.init
18 Source2:        saslauthd.sysconfig
19 Source3:        %{name}.pam
20 Patch0:         %{name}-configdir.patch
21 Patch1:         %{name}-des.patch
22 Patch2:         %{name}-mysql-ldap.patch
23 Patch3:         %{name}-saslauthd.patch
24 #Patch4:        http://www.imasy.or.jp/~ume/ipv6/cyrus-sasl-1.5.24-ipv6-20010321.diff.gz
25 Patch4:         %{name}-ipv6.patch
26 Patch5:         %{name}-ac25x.patch
27 Patch6:         saslauthd-man.diff
28 BuildRequires:  autoconf
29 BuildRequires:  automake
30 BuildRequires:  db3-devel >= 3.1.17-8
31 BuildRequires:  pam-devel
32 BuildRequires:  openssl-devel >= 0.9.6a
33 BuildRequires:  libtool >= 1.4
34 %{?_with_mysql:BuildRequires: mysql-devel}
35 %{?_with_ldap:BuildRequires: openldap-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 implemention 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
52 w RFC 2222; standaryzacja API jest w toku.
53
54 %description -l pt_BR
55 Esta é uma implementação da API SASL, útil para acrescentar autenticação,
56 autorização e seguança (criptografia) para protocolos de rede. O
57 protocolo SASL está documentado na RFC 2222. A API "padrão" ainda está
58 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
137 z 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
167 mecanismo SASL DIGEST-MD5. Embora ainda não esteja finalizado,
168 DIGEST-MD5 provavelmente será o novo sistema de autenticação obrigatório
169 para 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,
193 este mecanismo é útil durante transições para novos mecanismos de
194 segurança, pois é o único esquema que fornece uma cópia da senha
195 do 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,
206 used for 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
214 para 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
238 Secure Remote Password protocol. This mechanism performs mutual
239 authentication and can provide a security layer with replay
240 detection, integrity protection and/or condifentiality
241 protection.
242
243 %description srp -l pl
244 Wtyczka dodaj±ca obs³ugê mechanizmu SRP do Cyrus SASL. Bazuje na
245 protokole Secure Remote Password. Ten mechanizm dokonuje wzajemnego
246 uwierzytelnienia i mo¿e dodawaæ warstwê bezpieczeñstwa z wykrywaniem
247 powtarzania, zabezpieczeniem integralno¶ci i/lub poufno¶ci.
248
249 %description srp -l pt_BR
250 Este plugin implementa o mecanismo SASL SRP, baseado no protocolo SRP (Secure
251 Remote Password). Este mecanismo oferece autenticação mútua (do cliente e do
252 servidor) e pode prover uma camada de segurança com detecção de ataques de
253 replay, garantia de integridade e/ou confidencialidade.
254
255 %package x509
256 Summary:        x509 Cyrus SASL plugin
257 Summary(pl):    Wtyczka x509 do Cyrus SASL
258 Group:          Libraries
259 Requires:       %{name} = %{version}
260
261 %description x509
262 x509 Cyrus SASL plugin.
263
264 %description x509 -l pl
265 Wtyczka x509 do Cyrus SASL.
266
267 %package saslauthd
268 Summary:        Cyrus SASL authd
269 Summary(pl):    Demon authd do Cyrus SASL
270 Group:          Libraries
271 Requires:       %{name} = %{version}
272 Prereq:         /sbin/chkconfig
273
274 %description saslauthd
275 Cyrus SASL authd.
276
277 %description saslauthd -l pl
278 Demon authd do Cyrus SASL.
279
280 %package pwcheck
281 Summary:        Cyrus SASL pwcheck helper
282 Summary(pl):    Program pomocniczy pwcheck do Cyrus SASL
283 Group:          Libraries
284 Requires:       %{name} = %{version}
285
286 %description pwcheck
287 Cyrus SASL pwcheck helper.
288
289 %description pwcheck -l pl
290 Program pomocniczy pwcheck do Cyrus SASL.
291
292 %prep
293 %setup  -q
294 %patch0 -p1
295 %patch1 -p1
296 %patch2 -p1
297 %patch3 -p1
298 %patch4 -p1
299 %patch5 -p1
300 %patch6 -p0
301
302 %build
303 rm -f config/missing
304 %{__libtoolize}
305 aclocal -I cmulocal
306 autoheader
307 automake -a
308 %{__autoconf}
309 LDFLAGS="%{rpmldflags} -ldl"; export LDFLAGS
310 %configure \
311         --enable-static \
312         --enable-login \
313         %{?_with_srp:--enable-srp} \
314         %{?_with_x509:--enable-x509} \
315         %{?_with_mysql: --with-mysql=%{_prefix}} \
316         %{?_with_ldap: --with-ldap=%{_prefix}} \
317         %{?_with_pwcheck: --with-pwcheck=/var/lib/sasl} \
318         --with-saslauthd=/var/lib/sasl \
319         --with-pam \
320         --with-dblib=berkeley \
321         --with-dbpath=/var/lib/sasl/sasl.db \
322         --with-configdir=%{_sysconfdir}
323 %{__make}
324
325 %install
326 rm -rf $RPM_BUILD_ROOT
327 install -d $RPM_BUILD_ROOT{/var/lib/sasl,%{_sysconfdir},/etc/{rc.d/init.d,sysconfig,pam.d}}
328
329 %{__make} install DESTDIR=$RPM_BUILD_ROOT
330
331 touch $RPM_BUILD_ROOT/var/lib/sasl/sasl.db
332
333 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/saslauthd
334 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/saslauthd
335 install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/cyrus
336
337 %clean
338 rm -rf $RPM_BUILD_ROOT
339
340 %post   -p /sbin/ldconfig
341 %postun -p /sbin/ldconfig
342
343 %post saslauthd
344 /sbin/chkconfig --add saslauthd
345 if [ -f /var/lock/subsys/saslauthd ]; then
346         /etc/rc.d/init.d/saslauthd restart 1>&2
347 else
348         echo "Run \"/etc/rc.d/init.d/saslauthd start\" to start saslauthd."
349 fi
350
351 %preun saslauthd
352 if [ "$1" = "0" ]; then
353         if [ -f /var/lock/subsys/saslauthd ]; then
354                 /etc/rc.d/init.d/saslauthd stop 1>&2
355         fi
356         /sbin/chkconfig --del saslauthd
357 fi
358
359 %files
360 %defattr(644,root,root,755)
361 %doc COPYING testing.txt NEWS TODO README doc/*.txt doc/*.html
362 %dir %{_sysconfdir}
363 %dir %{_libdir}/sasl
364 %dir /var/lib/sasl
365 %attr(755,root,root) %{_libdir}/lib*.so.*.*
366 %attr(755,root,root) %{_sbindir}/sasldblistusers
367 %attr(755,root,root) %{_sbindir}/saslpasswd
368
369 %attr(640,root,mail) %ghost %config(noreplace) %verify(not mtime md5 size) /var/lib/sasl/sasl.db
370 %{_mandir}/man[18]/*
371
372 %files devel
373 %defattr(644,root,root,755)
374 %{_includedir}/*.h
375 %attr(755,root,root) %{_libdir}/lib*.so
376 %attr(755,root,root) %{_libdir}/lib*.la
377
378 %files static
379 %defattr(644,root,root,755)
380 %{_libdir}/lib*.a
381 %{_libdir}/sasl/lib*.a
382
383 %files cram-md5
384 %defattr(644,root,root,755)
385 %attr(755,root,root) %{_libdir}/sasl/libcrammd5.so*
386
387 %files digest-md5
388 %defattr(644,root,root,755)
389 %attr(755,root,root) %{_libdir}/sasl/libdigestmd5.so*
390
391 %files plain
392 %defattr(644,root,root,755)
393 %attr(755,root,root) %{_libdir}/sasl/libplain.so*
394
395 %files anonymous
396 %defattr(644,root,root,755)
397 %attr(755,root,root) %{_libdir}/sasl/libanonymous.so*
398
399 %files login
400 %defattr(644,root,root,755)
401 %attr(755,root,root) %{_libdir}/sasl/liblogin.so*
402
403 %if %{?_with_srp:1}%{?!_with_srp:0}
404 %files srp
405 %defattr(644,root,root,755)
406 %attr(755,root,root) %{_libdir}/sasl/libsrp.so*
407 %endif
408
409 %if %{?_with_x509:1}%{?!_with_x509:0}
410 %files x509
411 %defattr(644,root,root,755)
412 %attr(755,root,root) %{_libdir}/sasl/libx509.so*
413 %endif
414
415 %if %{?_with_pwcheck:1}%{?!_with_pwcheck:0}
416 %files pwcheck
417 %defattr(644,root,root,755)
418 %attr(755,root,root) %{_sbindir}/pwcheck
419 %endif
420
421 %files saslauthd
422 %defattr(644,root,root,755)
423 %attr(755,root,root) %{_sbindir}/saslauthd
424 %attr(754,root,root) /etc/rc.d/init.d/saslauthd
425 %config(noreplace) %verify(not mtime md5 size) /etc/sysconfig/saslauthd
426 %config(noreplace) %verify(not mtime md5 size) /etc/pam.d/cyrus
This page took 0.057638 seconds and 4 git commands to generate.