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