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