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