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