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