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