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