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