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