]> git.pld-linux.org Git - packages/cyrus-sasl.git/blob - cyrus-sasl.spec
- updated to 2.1.26 (note: new soname)
[packages/cyrus-sasl.git] / cyrus-sasl.spec
1 #
2 # Conditional build:
3 %bcond_without  cryptedpw       # if you keep crypted passwords in your *sql
4 %bcond_without  ldap            # disable LDAP support for saslauthd
5 %bcond_without  gssapi          # do not enable GSSAPI support for saslauthd and build gssapi plugin
6 %bcond_without  mysql           # don't build MySQL pluggin
7 %bcond_without  pgsql           # do not build PostgreSQL pluggin
8 %bcond_without  sqlite          # do not enable sqlite 2 plugin
9 %bcond_without  sqlite3         # do not enable sqlite 3 plugin
10 %bcond_with     authlib         # enable courier-authlib (i wasn't able to test it)
11 %bcond_with     opie            # OTP plugin using opie library instead of internal code
12 %bcond_with     srp             # build srp plugin
13 %bcond_with     pwcheck         # build pwcheck helper (deprecated)
14 #
15 %if %{without mysql} && %{without pgsql}
16 %undefine with_cryptedpw
17 %endif
18
19 Summary:        The SASL library API for the Cyrus mail system
20 Summary(pl.UTF-8):      Biblioteka Cyrus SASL
21 Summary(pt_BR.UTF-8):   Implementação da API SASL
22 Summary(ru.UTF-8):      Библиотека Cyrus SASL
23 Summary(uk.UTF-8):      Бібліотека Cyrus SASL
24 Name:           cyrus-sasl
25 Version:        2.1.26
26 Release:        1
27 License:        distributable
28 Group:          Libraries
29 Source0:        ftp://ftp.cyrusimap.org/cyrus-sasl/%{name}-%{version}.tar.gz
30 # Source0-md5:  a7f4e5e559a0e37b3ffc438c9456e425
31 Source1:        saslauthd.init
32 Source2:        saslauthd.sysconfig
33 Source3:        %{name}.pam
34 Source4:        check_saslauthd.cfg
35 Patch0:         %{name}-nolibs.patch
36 Patch1:         %{name}-lt.patch
37 Patch2:         %{name}-split-sql.patch
38 Patch3:         %{name}-opie.patch
39 Patch4:         %{name}-gcc4.patch
40 # Adapted from http://frost.ath.cx/software/cyrus-sasl-patches/dist/2.1.19/cyrus-sasl-2.1.19-checkpw.c+sql.c.patch
41 Patch5:         %{name}-cryptedpw.patch
42 Patch6:         %{name}-md5sum-passwords.patch
43 Patch7:         %{name}-db.patch
44 Patch8:         %{name}-keytab.patch
45 Patch9:         %{name}-sizes.patch
46 Patch10:        %{name}-nagios-plugin.patch
47 Patch11:        %{name}-parallel-make.patch
48 Patch12:        %{name}-gssapi-detect.patch
49 Patch13:        %{name}-saslauthd-httpform-urlescape.patch
50 Patch14:        %{name}-ac-libs.patch
51 Patch15:        %{name}-pam.patch
52 Patch16:        %{name}-gssapi_ext.patch
53 Patch17:        0032-revert_1.103_revision_to_unbreak_GSSAPI.patch
54 Patch18:        0033-fix_segfault_in_GSSAPI.patch
55 Patch19:        0034-fix_dovecot_authentication.patch
56 Patch20:        %{name}-auxprop.patch
57 Patch21:        0030-dont_use_la_files_for_opening_plugins.patch
58 URL:            http://asg.web.cmu.edu/sasl/
59 BuildRequires:  autoconf >= 2.54
60 BuildRequires:  automake >= 1:1.7
61 %{?with_authlib:BuildRequires:  courier-authlib-devel}
62 BuildRequires:  db-devel
63 BuildRequires:  ed
64 BuildRequires:  groff
65 %{?with_gssapi:BuildRequires:   heimdal-devel}
66 BuildRequires:  libtool >= 1.4
67 %{?with_mysql:BuildRequires:    mysql-devel}
68 %{?with_ldap:BuildRequires:     openldap-devel >= 2.3.0}
69 BuildRequires:  openssl-devel >= 0.9.7d
70 %{?with_opie:BuildRequires:     opie-devel}
71 BuildRequires:  pam-devel
72 %{?with_pgsql:BuildRequires:    postgresql-devel}
73 BuildRequires:  rpmbuild(macros) >= 1.268
74 %{?with_sqlite:BuildRequires:   sqlite-devel}
75 %{?with_sqlite3:BuildRequires:  sqlite3-devel >= 3}
76 Requires:       pam >= 0.79.0
77 Requires:       %{name}-libs = %{version}-%{release}
78 Obsoletes:      cyrus-sasl-x509 < %{version}
79 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
80
81 %define         _sysconfdir     /etc/sasl
82
83 %define         specflags       -fno-strict-aliasing
84
85 %description
86 This is an implementation of the SASL API, useful for adding
87 authentication, authorization, and security to network protocols. The
88 SASL protocol itself is documented in rfc2222; the API standard is a
89 work in progress.
90
91 Note: remember to install appropriate plugins, or you won't have any
92 authentication mechanisms available.
93
94 %description -l pl.UTF-8
95 Pakiet cyrus-sasl zawiera implementację biblioteki API SASL dla
96 systemu poczty elektronicznej Cyrusa. Biblioteka ta jest przydatna
97 także do dodawania uwierzytelniania, autoryzacji oraz zwiększania
98 bezpieczeństwa protokołów sieciowych. Sam protokół SASL jest opisany w
99 RFC 2222; standaryzacja API jest w toku.
100
101 Uwaga: aby były dostępne jakiekolwiek mechanizmy autoryzacji, należy
102 doinstalować odpowiednie wtyczki.
103
104 %description -l pt_BR.UTF-8
105 Esta é uma implementação da API SASL, útil para acrescentar
106 autenticação, autorização e seguança (criptografia) para protocolos de
107 rede. O protocolo SASL está documentado na RFC 2222. A API "padrão"
108 ainda está em desenvolvimento.
109
110 %description -l ru.UTF-8
111 Пакет cyrus-sasl содержит реализацию Cyrus SASL. SASL - это Simple
112 Authentication and Security Layer, метод для добавления поддержки
113 аутентикации к протоколам, основанным на соединениях.
114
115 %description -l uk.UTF-8
116 Пакет cyrus-sasl містить реалізацію Cyrus SASL. SASL - це Simple
117 Authentication and Security Layer, метод для додання підтримки
118 аутентикації до протоколів, базованих на з'єднаннях.
119
120 %package libs
121 Summary:        cyrus-sasl library itself
122 Summary(pl.UTF-8):      Sama biblioteka cyrus-sasl
123 Group:          Libraries
124 Requires(post,postun):  /sbin/ldconfig
125 Conflicts:      cyrus-sasl < 2.1.23-8
126
127 %description libs
128 cyrus-sasl library itself.
129
130 %description libs -l pl.UTF-8
131 Sama biblioteka cyrus-sasl.
132
133 %package devel
134 Summary:        Header files and documentation for cyrus-sasl
135 Summary(pl.UTF-8):      Pliki nagłówkowe i dokumentacja dla cyrus-sasl
136 Summary(pt_BR.UTF-8):   Exemplos e arquivos para desenvolvimento com SASL
137 Summary(ru.UTF-8):      Файлы для программирования с библиотекой Cyrus SASL
138 Summary(uk.UTF-8):      Файли для програмування з бібліотекою Cyrus SASL
139 Group:          Development/Libraries
140 Requires:       %{name} = %{version}-%{release}
141
142 %description devel
143 This includes the header files and documentation needed to develop
144 applications which use SASL.
145
146 %description devel -l pl.UTF-8
147 Pliki nagłówkowe i dokumentacja dla cyrus-sasl.
148
149 %description devel -l pt_BR.UTF-8
150 Este pacote inclui os arquivos de cabeçalho e documentação necessários
151 para desenvolver aplicativos que usem SASL.
152
153 %description devel -l ru.UTF-8
154 Хедеры и библиотеки, необходимые для разработки приложений,
155 использующих Cyrus SASL.
156
157 %description devel -l uk.UTF-8
158 Хедери та бібліотеки, необхідні для розробки програм, що
159 використовують Cyrus SASL.
160
161 %package static
162 Summary:        Static cyrus-sasl libraries
163 Summary(pl.UTF-8):      Statyczne biblioteki cyrus-sasl
164 Summary(ru.UTF-8):      Статические библиотеки Cyrus SASL
165 Summary(uk.UTF-8):      Статичні бібліотеки Cyrus SASL
166 Group:          Development/Libraries
167 Requires:       %{name}-devel = %{version}-%{release}
168
169 %description static
170 Static cyrus-sasl libraries.
171
172 %description static -l pl.UTF-8
173 Statyczne biblioteki cyrus-sasl.
174
175 %description static -l ru.UTF-8
176 Статические библиотеки, необходимые для разработки приложений,
177 использующих Cyrus SASL.
178
179 %description static -l uk.UTF-8
180 Статичні бібліотеки, необхідні для розробки програм, що використовують
181 Cyrus SASL.
182
183 %package anonymous
184 Summary:        Anonymous Cyrus SASL plugin
185 Summary(pl.UTF-8):      Wtyczka anonymous do Cyrus SASL
186 Summary(pt_BR.UTF-8):   Mecanismo SASL ANONYMOUS
187 Group:          Libraries
188 Requires:       %{name} = %{version}-%{release}
189
190 %description anonymous
191 This plugin implements the SASL ANONYMOUS mechanism, used for
192 anonymous authentication.
193
194 %description anonymous -l pl.UTF-8
195 Wtyczka dodająca obsługę mechanizmu ANONYMOUS do Cyrus SASL. Służy do
196 anonimowego uwierzytelniania.
197
198 %description anonymous -l pt_BR.UTF-8
199 Este plugin implementa o mecanismo SASL ANONYMOUS, usado para
200 autenticação anônima.
201
202 %package cram-md5
203 Summary:        Cram-MD5 Cyrus SASL plugin
204 Summary(pl.UTF-8):      Wtyczka Cram-MD5 do Cyrus SASL
205 Summary(pt_BR.UTF-8):   Mecanismo SASL CRAM-MD5
206 Group:          Libraries
207 Requires:       %{name} = %{version}-%{release}
208
209 %description cram-md5
210 This plugin implements the SASL CRAM-MD5 mechanism. CRAM-MD5 is the
211 mandatory-to-implement authentication mechanism for a number of
212 protocols; it uses MD5 with a challenge/response system to
213 authenticate the user.
214
215 %description cram-md5 -l pl.UTF-8
216 Wtyczka dodająca obsługę mechanizmu CRAM-MD5 do Cyrus SASL. CRAM-MD5
217 jest obowiązkowym do zaimplementowania mechanizmem uwierzytelniania
218 dla wielu protokołów; do uwierzytelnienia użytkownika używa MD5 wraz z
219 systemem challenge/response.
220
221 %description cram-md5 -l pt_BR.UTF-8
222 Este plugin implementa o mecanismo SASL CRAM-MD5. CRAM-MD5 é o
223 mecanismo de autenticação obrigatório de ser implementado para vários
224 protocolos: ele usa MD5 com um sistema de desafio/resposta para
225 autenticar o usuário.
226
227 %package digest-md5
228 Summary:        Digest-MD5 Cyrus SASL plugin
229 Summary(pl.UTF-8):      Wtyczka Digest-MD5 do Cyrus SASL
230 Summary(pt_BR.UTF-8):   Mecanismo SASL DIGEST-MD5
231 Group:          Libraries
232 Requires:       %{name} = %{version}-%{release}
233
234 %description digest-md5
235 This plugin implements the latest draft of the SASL DIGEST-MD5
236 mechanism. Although not yet finalized, this is likely to become the
237 new mandatory-to-implement authentication system in all new protocols.
238 It's based on the digest md5 authentication system designed for HTTP.
239
240 %description digest-md5 -l pl.UTF-8
241 Wtyczka dodająca najnowszą wersję mechanizmu DIGEST-MD5 do Cyrus SASL.
242 Pomimo tego, że nie jest jeszcze ukończony, najprawdopodobniej stanie
243 się obowiązkowym do zaimplementowania systemem uwierzytelniania we
244 wszystkich nowych protokołach. Bazuje na systemie uwierzytelniania
245 Digest-MD5 zaprojektowanym dla HTTP.
246
247 %description digest-md5 -l pt_BR.UTF-8
248 Este plugin implementa a última versão da especificação do mecanismo
249 SASL DIGEST-MD5. Embora ainda não esteja finalizado, DIGEST-MD5
250 provavelmente será o novo sistema de autenticação obrigatório para
251 protocolos novos. Ele é baseado na autenticação md5 digest
252 desenvolvida para HTTP.
253
254 %package gssapi
255 Summary:        GSSAPI Cyrus SASL plugin
256 Summary(pl.UTF-8):      Wtyczka GSSAPI do Cyrus SASL
257 Summary(pt_BR.UTF-8):   Mecanismo SASL GSSAPI
258 Group:          Libraries
259 Requires:       %{name} = %{version}-%{release}
260
261 %description gssapi
262 This plugin implements the SASL GSSAPI mechanism, used for
263 GSSAPI/Kerberos5 authentication.
264
265 %description gssapi -l pl.UTF-8
266 Wtyczka dodająca obsługę mechanizmu SASL GSSAPI, używanego do
267 uwierzytelniania z użyciem GSSAPI/Kerberos5.
268
269 %description gssapi -l pt_BR.UTF-8
270 Este plugin implementa o mecanismo SASL GSSAPI, usado para
271 autenticação Kerberos/GSSAPI.
272
273 %package login
274 Summary:        Unsupported Login Cyrus SASL plugin
275 Summary(pl.UTF-8):      Nie wspierana wtyczka Login do Cyrus SASL
276 Group:          Libraries
277 Requires:       %{name} = %{version}-%{release}
278
279 %description login
280 Unsupported LOGIN Cyrus SASL plugin.
281
282 %description login -l pl.UTF-8
283 Wtyczka dodająca obsługę nie wspieranego mechanizmu LOGIN do Cyrus
284 SASL.
285
286 %package mysql
287 Summary:        Cyrus SASL MySQL plugin
288 Summary(pl.UTF-8):      Wtyczka MySQL do Cyrus SASL
289 Group:          Libraries
290 Requires:       %{name} = %{version}-%{release}
291
292 %description mysql
293 Cyrus SASL MySQL plugin.
294
295 %description mysql -l pl.UTF-8
296 Wtyczka MySQL do Cyrus SASL.
297
298 %package otp
299 Summary:        OTP Cyrus SASL plugin
300 Summary(pl.UTF-8):      Wtyczka OTP do Cyrus SASL
301 Summary(pt_BR.UTF-8):   Mecanismo SASL OTP
302 Group:          Libraries
303 Requires:       %{name} = %{version}-%{release}
304 Obsoletes:      cyrus-sasl-opie < %{version}
305
306 %description otp
307 This plugin implements the SASL OTP (One Time Password) mechanism.
308
309 %description otp -l pl.UTF-8
310 Wtyczka dodająca obsługę mechanizmu OTP (hasła jednorazowe) do Cyrus
311 SASL.
312
313 %package pgsql
314 Summary:        Cyrus SASL PostgreSQL plugin
315 Summary(pl.UTF-8):      Wtyczka PostgreSQL do Cyrus SASL
316 Group:          Libraries
317 Requires:       %{name} = %{version}-%{release}
318
319 %description pgsql
320 Cyrus SASL PostgreSQL plugin.
321
322 %description pgsql -l pl.UTF-8
323 Wtyczka PostgreSQL do Cyrus SASL.
324
325 %package plain
326 Summary:        Plain Cyrus SASL plugin
327 Summary(pl.UTF-8):      Wtyczka plain do Cyrus SASL
328 Summary(pt_BR.UTF-8):   Mecanismo SASL PLAIN
329 Group:          Libraries
330 Requires:       %{name} = %{version}-%{release}
331
332 %description plain
333 This plugin implements the SASL PLAIN mechanism. Although insecure,
334 PLAIN is useful for transitioning to new security mechanisms, as this
335 is the only mechanism which gives the server a copy of the user's
336 password.
337
338 %description plain -l pl.UTF-8
339 Wtyczka dodająca obsługę mechanizmu PLAIN do Cyrus SASL. Pomimo tego,
340 że nie jest bezpieczny, PLAIN jest przydatny przy przechodzeniu na
341 nowe mechanizmu bezpieczeństwa, jako że jest to jedyny mechanizm,
342 który udostępnia serwerowi kopię hasła użytkownika.
343
344 %description plain -l pt_BR.UTF-8
345 Este plugin implementa o mecanismo SASL PLAIN. Embora inseguro, este
346 mecanismo é útil durante transições para novos mecanismos de
347 segurança, pois é o único esquema que fornece uma cópia da senha do
348 usuário para o servidor.
349
350 %package sasldb
351 Summary:        Cyrus SASL sasldb plugin
352 Summary(pl.UTF-8):      Wtyczka sasldb do Cyrus SASL
353 Group:          Libraries
354 Requires:       %{name} = %{version}-%{release}
355
356 %description sasldb
357 Cyrus SASL sasldb plugin.
358
359 %description sasldb -l pl.UTF-8
360 Wtyczka sasldb do Cyrus SASL.
361
362 %package ldapdb
363 Summary:        Cyrus SASL LDAPDB plugin
364 Summary(pl.UTF-8):      Wtyczka LDAPDB do Cyrus SASL
365 Group:          Libraries
366 Requires:       %{name} = %{version}-%{release}
367
368 %description ldapdb
369 Cyrus SASL ldapdb plugin.
370
371 %description ldapdb -l pl.UTF-8
372 Wtyczka ldapdb do Cyrus SASL.
373
374 %package passdss
375 Summary:        PASSDSS Cyrus SASL plugin
376 Summary(pl.UTF-8):      Wtyczka PASSDSS do Cyrus SASL
377 Summary(pt_BR.UTF-8):   Mecanismo SASL PASSDSS
378 Group:          Libraries
379 Requires:       %{name} = %{version}-%{release}
380
381 %description passdss
382 This plugin implements the PASSDSS 3DES mechanism.
383
384 %description passdss -l pl.UTF-8
385 Wtyczka dodająca obsługę mechanizmu PASSDSS 3DES do Cyrus SASL.
386
387 %description passdss -l pt_BR.UTF-8
388 Este plugin implementa o mecanismo SASL PASSDSS 3DES.
389
390 %package scram
391 Summary:        SCRAM Cyrus SASL plugin
392 Summary(pl.UTF-8):      Wtyczka SCRAM do Cyrus SASL
393 Summary(pt_BR.UTF-8):   Mecanismo SASL SCRAM
394 Group:          Libraries
395 Requires:       %{name} = %{version}-%{release}
396
397 %description scram
398 This plugin implements the SASL SCRAM-MD5 mechanism.
399
400 %description scram -l pl.UTF-8
401 Wtyczka dodająca obsługę mechanizmu SCRAM do Cyrus SASL.
402
403 %description scram -l pt_BR.UTF-8
404 Este plugin implementa o mecanismo SASL SCRAM.
405
406 %package sqlite
407 Summary:        Cyrus SQLite 2 PostgreSQL plugin
408 Summary(pl.UTF-8):      Wtyczka SQLite 2 do Cyrus SASL
409 Group:          Libraries
410 Requires:       %{name} = %{version}-%{release}
411
412 %description sqlite
413 Cyrus SASL SQLite 2 plugin.
414
415 %description sqlite -l pl.UTF-8
416 Wtyczka SQLite 2 do Cyrus SASL.
417
418 %package sqlite3
419 Summary:        Cyrus SQLite 3 PostgreSQL plugin
420 Summary(pl.UTF-8):      Wtyczka SQLite 3 do Cyrus SASL
421 Group:          Libraries
422 Requires:       %{name} = %{version}-%{release}
423
424 %description sqlite3
425 Cyrus SASL SQLite 3 plugin.
426
427 %description sqlite3 -l pl.UTF-8
428 Wtyczka SQLite 3 do Cyrus SASL.
429
430 %package srp
431 Summary:        SRP Cyrus SASL plugin
432 Summary(pl.UTF-8):      Wtyczka SRP do Cyrus SASL
433 Summary(pt_BR.UTF-8):   Mecanismo SASL SRP
434 Group:          Libraries
435 Requires:       %{name} = %{version}-%{release}
436
437 %description srp
438 This plugin implements the SASL SRP mechanism, based on the Secure
439 Remote Password protocol. This mechanism performs mutual
440 authentication and can provide a security layer with replay detection,
441 integrity protection and/or condifentiality protection.
442
443 %description srp -l pl.UTF-8
444 Wtyczka dodająca obsługę mechanizmu SRP do Cyrus SASL. Bazuje na
445 protokole Secure Remote Password. Ten mechanizm dokonuje wzajemnego
446 uwierzytelnienia i może dodawać warstwę bezpieczeństwa z wykrywaniem
447 powtarzania, zabezpieczeniem integralności i/lub poufności.
448
449 %description srp -l pt_BR.UTF-8
450 Este plugin implementa o mecanismo SASL SRP, baseado no protocolo SRP
451 (Secure Remote Password). Este mecanismo oferece autenticação mútua
452 (do cliente e do servidor) e pode prover uma camada de segurança com
453 detecção de ataques de replay, garantia de integridade e/ou
454 confidencialidade.
455
456 %package pwcheck
457 Summary:        Cyrus SASL pwcheck helper
458 Summary(pl.UTF-8):      Program pomocniczy pwcheck do Cyrus SASL
459 Group:          Libraries
460 Requires:       %{name} = %{version}-%{release}
461
462 %description pwcheck
463 Cyrus SASL pwcheck helper.
464
465 %description pwcheck -l pl.UTF-8
466 Program pomocniczy pwcheck do Cyrus SASL.
467
468 %package saslauthd
469 Summary:        Cyrus SASL authd
470 Summary(pl.UTF-8):      Demon authd do Cyrus SASL
471 Group:          Daemons
472 Requires(post,preun):   /sbin/chkconfig
473 Requires:       %{name} = %{version}-%{release}
474 Requires:       /sbin/chkconfig
475 Requires:       rc-scripts
476
477 %description saslauthd
478 Cyrus SASL authd.
479
480 %description saslauthd -l pl.UTF-8
481 Demon authd do Cyrus SASL.
482
483 %package -n nagios-plugin-check_saslauthd
484 Summary:        Nagios plugin to check health of saslauthd
485 Summary(pl.UTF-8):      Wtyczka Nagiosa do sprawdzania działania saslauthd
486 Group:          Networking
487 Requires:       nagios-core
488
489 %description -n nagios-plugin-check_saslauthd
490 Nagios plugin to check health of saslauthd.
491
492 %description -n nagios-plugin-check_saslauthd -l pl.UTF-8
493 Wtyczka Nagiosa do sprawdzania działania saslauthd.
494
495 %prep
496 %setup -q
497 %patch0 -p1
498 %patch1 -p1
499 %patch2 -p1
500 %patch3 -p1
501 %patch4 -p1
502 %if %{with cryptedpw}
503 %patch5 -p1
504 %patch6 -p1
505 %endif
506 %patch7 -p1
507 %patch8 -p1
508 %patch9 -p1
509 %patch10 -p1
510 %patch11 -p1
511 %patch12 -p1
512 %patch13 -p0
513 %patch14 -p1
514 %patch15 -p1
515 %patch16 -p1
516 %patch17 -p1
517 %patch18 -p1
518 %patch19 -p1
519 %patch20 -p1
520 %patch21 -p1
521
522 cd doc
523 echo "cyrus-sasl complies with the following RFCs:" > rfc-compliance
524 ls rfc*.txt >> rfc-compliance
525 rm -f rfc*.txt
526 cd ..
527
528 # old version
529 %{__rm} config/libtool.m4
530
531 # update to our paths
532 sed -i -e '
533         s,/usr/local/etc/saslauthd.conf,%{_sysconfdir}/saslauthd.conf,g
534         s,/etc/saslauthd.conf,%{_sysconfdir}/saslauthd.conf,g
535         s,/var/run/saslauthd/mux,/var/lib/sasl2/mux,g
536         s,/var/state/saslauthd,/var/lib/sasl2,g
537 ' saslauthd/saslauthd.8 saslauthd/saslauthd.mdoc saslauthd/LDAP_SASLAUTHD doc/sysadmin.html
538
539 %build
540 %{__libtoolize}
541 %{__aclocal} -I cmulocal -I config
542 %{__autoheader}
543 %{__autoconf}
544 %{__automake}
545 cd saslauthd
546 %{__aclocal} -I ../cmulocal -I ../config
547 %{__autoheader}
548 %{__autoconf}
549 %{__automake}
550 cd ..
551 %configure \
552         %{?with_cryptedpw: LDFLAGS=-lcrypt} \
553         --disable-krb4 \
554         %{!?with_gssapi: --disable-gssapi} \
555         %{?with_gssapi: --enable-gssapi --with-gss_impl=heimdal} \
556         --enable-login \
557         --enable-sample \
558         --enable-httpform \
559         --enable-sql \
560         --enable-passdss \
561         %{?with_srp: --enable-srp} \
562         --enable-static \
563         --with-plugindir=%{_libdir}/sasl2 \
564         --with-configdir=%{_sysconfdir} \
565         --with-dblib=berkeley \
566         --with-dbpath=/var/lib/sasl2/sasl.db \
567         %{?with_authlib:--with-authdaemond=/var/spool/authdaemon/socket} \
568         %{?with_ldap: --with-ldap=%{_prefix}} \
569         %{?with_ldap: --enable-ldapdb} \
570         %{?with_mysql: --with-mysql=%{_prefix}} \
571         %{?with_pgsql: --with-pgsql=%{_prefix}} \
572         %{?with_sqlite: --with-sqlite=%{_prefix}} \
573         %{?with_sqlite3: --with-sqlite3=%{_prefix}} \
574         %{?with_opie: --with-opie=%{_prefix}} \
575         --with-pam \
576         %{?with_pwcheck: --with-pwcheck=/var/lib/sasl2} \
577         --with-saslauthd=/var/lib/sasl2
578
579 %{__make}
580
581 %{__make} -C saslauthd testsaslauthd
582 %{__make} -C saslauthd saslcache
583 %{__make} -C sample sample-client sample-server
584
585 cd doc
586 RFCLIST=$(grep 'rfc.\+\.txt' rfc-compliance)
587 for i in $RFCLIST; do
588         RFCDIR=../RFC/text/`echo $i | sed -e 's:^rfc::' -e 's:..\.txt$::' `00
589         echo -e ',s:'$i':'$RFCDIR/$i'\n,w\nq' | ed index.html
590 done
591
592 %install
593 rm -rf $RPM_BUILD_ROOT
594 install -d $RPM_BUILD_ROOT{%{_bindir},/var/lib/sasl2,%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
595                 $RPM_BUILD_ROOT%{_mandir}/man8
596
597 %{__make} install \
598         sasldir=%{_libdir}/sasl2 \
599         DESTDIR=$RPM_BUILD_ROOT
600
601 %{__rm} $RPM_BUILD_ROOT%{_libdir}/sasl2/*.{la,a}
602
603 cp -a utils/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
604 cp -a saslauthd/saslauthd.mdoc $RPM_BUILD_ROOT%{_mandir}/man8/saslauthd.8
605
606 ln -sf libsasl2.so $RPM_BUILD_ROOT%{_libdir}/libsasl.so
607
608 touch $RPM_BUILD_ROOT/var/lib/sasl2/sasl.db
609
610 # create empty config
611 touch $RPM_BUILD_ROOT%{_sysconfdir}/saslauthd.conf
612 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/saslauthd
613 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/saslauthd
614 cp -a %{SOURCE3} cyrus.pam
615
616 install -p saslauthd/{testsaslauthd,saslcache} $RPM_BUILD_ROOT%{_sbindir}
617
618 # sample programs for testing sasl
619 libtool --mode=install cp sample/sample-client $RPM_BUILD_ROOT%{_bindir}/sasl-sample-client
620 libtool --mode=install cp sample/sample-server $RPM_BUILD_ROOT%{_bindir}/sasl-sample-server
621
622 # package for ghost
623 touch $RPM_BUILD_ROOT/var/lib/sasl2/{cache.flock,cache.mmap,mux,mux.accept,saslauthd.pid}
624
625 install -d $RPM_BUILD_ROOT/etc/nagios/plugins
626 %{__sed} -e 's,@plugindir@,%{_libdir}/nagios/plugins,' %{SOURCE4} > $RPM_BUILD_ROOT/etc/nagios/plugins/check_saslauthd.cfg
627
628 %clean
629 rm -rf $RPM_BUILD_ROOT
630
631 %post   libs -p /sbin/ldconfig
632 %postun libs -p /sbin/ldconfig
633
634 %post saslauthd
635 /sbin/chkconfig --add saslauthd
636 %service saslauthd restart
637
638 %preun saslauthd
639 if [ "$1" = "0" ]; then
640         %service saslauthd stop
641         /sbin/chkconfig --del saslauthd
642 fi
643
644 %triggerin saslauthd -- pam
645 # restart saslauthd if pam is upgraded
646 # (saslauth is linked with old libpam but tries to open modules linked with new libpam)
647 if [ "$2" != 1 ]; then
648         %service -q saslauthd restart
649 fi
650
651 %files
652 %defattr(644,root,root,755)
653 %doc AUTHORS COPYING ChangeLog NEWS README
654 %doc doc/{ONEWS,TODO,*.txt,*.html,*.fig,rfc-compliance}
655 %dir %{_sysconfdir}
656 %dir %{_libdir}/sasl2
657 # sample programs to subpackage instead?
658 %attr(755,root,root) %{_bindir}/sasl-sample-client
659 %attr(755,root,root) %{_bindir}/sasl-sample-server
660 %attr(755,root,root) %{_sbindir}/pluginviewer
661 %attr(755,root,root) %{_sbindir}/sasldblistusers2
662 %attr(755,root,root) %{_sbindir}/saslpasswd2
663 %dir /var/lib/sasl2
664 %attr(640,root,mail) %ghost %config(noreplace) %verify(not md5 mtime size) /var/lib/sasl2/sasl.db
665 %{_mandir}/man8/pluginviewer.8*
666 %{_mandir}/man8/sasldblistusers2.8*
667 %{_mandir}/man8/saslpasswd2.8*
668
669 %files libs
670 %defattr(644,root,root,755)
671 %attr(755,root,root) %{_libdir}/libsasl2.so.*.*.*
672 %attr(755,root,root) %ghost %{_libdir}/libsasl2.so.3
673
674 %files devel
675 %defattr(644,root,root,755)
676 %attr(755,root,root) %{_libdir}/libsasl2.so
677 %attr(755,root,root) %{_libdir}/libsasl.so
678 %{_libdir}/libsasl2.la
679 %{_includedir}/sasl
680 %{_pkgconfigdir}/libsasl2.pc
681 %{_mandir}/man3/sasl*.3*
682
683 %files static
684 %defattr(644,root,root,755)
685 %{_libdir}/libsasl2.a
686
687 %files anonymous
688 %defattr(644,root,root,755)
689 %attr(755,root,root) %{_libdir}/sasl2/libanonymous.so*
690
691 %if %{with gssapi}
692 %files gssapi
693 %defattr(644,root,root,755)
694 %attr(755,root,root) %{_libdir}/sasl2/libgs2.so*
695 %attr(755,root,root) %{_libdir}/sasl2/libgssapiv2.so*
696 %endif
697
698 %files cram-md5
699 %defattr(644,root,root,755)
700 %attr(755,root,root) %{_libdir}/sasl2/libcrammd5.so*
701
702 %files digest-md5
703 %defattr(644,root,root,755)
704 %attr(755,root,root) %{_libdir}/sasl2/libdigestmd5.so*
705
706 %files login
707 %defattr(644,root,root,755)
708 %attr(755,root,root) %{_libdir}/sasl2/liblogin.so*
709
710 %if %{with mysql}
711 %files mysql
712 %defattr(644,root,root,755)
713 %attr(755,root,root) %{_libdir}/sasl2/libmysql.so*
714 %endif
715
716 %files otp
717 %defattr(644,root,root,755)
718 %attr(755,root,root) %{_libdir}/sasl2/libotp.so*
719
720 %if %{with pgsql}
721 %files pgsql
722 %defattr(644,root,root,755)
723 %attr(755,root,root) %{_libdir}/sasl2/libpgsql.so*
724 %endif
725
726 %files plain
727 %defattr(644,root,root,755)
728 %attr(755,root,root) %{_libdir}/sasl2/libplain.so*
729
730 %files sasldb
731 %defattr(644,root,root,755)
732 %attr(755,root,root) %{_libdir}/sasl2/libsasldb.so*
733
734 %if %{with ldap}
735 %files ldapdb
736 %defattr(644,root,root,755)
737 %attr(755,root,root) %{_libdir}/sasl2/libldapdb.so*
738 %endif
739
740 %files passdss
741 %defattr(644,root,root,755)
742 %attr(755,root,root) %{_libdir}/sasl2/libpassdss.so*
743
744 %files scram
745 %defattr(644,root,root,755)
746 %attr(755,root,root) %{_libdir}/sasl2/libscram.so*
747
748 %if %{with sqlite}
749 %files sqlite
750 %defattr(644,root,root,755)
751 %attr(755,root,root) %{_libdir}/sasl2/libsqlite.so*
752 %endif
753
754 %if %{with sqlite3}
755 %files sqlite3
756 %defattr(644,root,root,755)
757 %attr(755,root,root) %{_libdir}/sasl2/libsqlite3.so*
758 %endif
759
760 %if %{with srp}
761 %files srp
762 %defattr(644,root,root,755)
763 %attr(755,root,root) %{_libdir}/sasl2/libsrp.so*
764 %endif
765
766 %if %{with pwcheck}
767 %files pwcheck
768 %defattr(644,root,root,755)
769 %attr(755,root,root) %{_sbindir}/pwcheck
770 %endif
771
772 %files saslauthd
773 %defattr(644,root,root,755)
774 %doc cyrus.pam
775 %doc saslauthd/{AUTHORS,LDAP_SASLAUTHD}
776 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/saslauthd.conf
777 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/saslauthd
778 %attr(755,root,root) %{_sbindir}/saslauthd
779 %attr(755,root,root) %{_sbindir}/testsaslauthd
780 %attr(755,root,root) %{_sbindir}/saslcache
781 %attr(754,root,root) /etc/rc.d/init.d/saslauthd
782 %ghost /var/lib/sasl2/cache.flock
783 %ghost /var/lib/sasl2/cache.mmap
784 %ghost /var/lib/sasl2/mux
785 %ghost /var/lib/sasl2/mux.accept
786 %ghost /var/lib/sasl2/saslauthd.pid
787 %{_mandir}/man8/saslauthd.8*
788
789 %files -n nagios-plugin-check_saslauthd
790 %defattr(644,root,root,755)
791 %config(noreplace) %verify(not md5 mtime size) /etc/nagios/plugins/check_saslauthd.cfg
792 %attr(755,root,root) %{_libdir}/nagios/plugins/check_saslauthd
This page took 0.290772 seconds and 3 git commands to generate.