]> git.pld-linux.org Git - packages/cyrus-sasl.git/blame - cyrus-sasl.spec
- let's see if this will help :/
[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
45becf95 28Release: 13.1
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
76871118 55URL: http://asg.web.cmu.edu/sasl/
f9c6d263 56BuildRequires: autoconf >= 2.54
74a704a8 57BuildRequires: automake >= 1:1.7
0b06c3e1 58%{?with_authlib:BuildRequires: courier-authlib-devel}
b8922c50 59BuildRequires: db-devel
37593496 60BuildRequires: ed
5774f681 61BuildRequires: groff
bf67571e 62%{?with_gssapi:BuildRequires: heimdal-devel}
0b06c3e1 63BuildRequires: libtool >= 1.4
497e9c85 64%{?with_mysql:BuildRequires: mysql-devel}
65aa28fc 65%{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
c0677d0c 66BuildRequires: openssl-devel >= 0.9.7d
0b06c3e1 67%{?with_opie:BuildRequires: opie-devel}
2abe5362 68BuildRequires: pam-devel
0b06c3e1 69%{?with_pgsql:BuildRequires: postgresql-devel}
729a75b5 70BuildRequires: rpmbuild(macros) >= 1.268
0b06c3e1 71%{?with_sqlite:BuildRequires: sqlite-devel}
e25a1dbe 72Requires: pam >= 0.79.0
96e599e5 73Requires: %{name}-libs = %{version}-%{release}
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
14f9ae30 178%package cram-md5
24730ccf 179Summary: Cram-MD5 Cyrus SASL plugin
fd793f4a
ER
180Summary(pl.UTF-8): Wtyczka Cram-MD5 do Cyrus SASL
181Summary(pt_BR.UTF-8): Mecanismo SASL CRAM-MD5
8659fb0b 182Group: Libraries
b712ee1b 183Requires: %{name} = %{version}-%{release}
14f9ae30
AF
184
185%description cram-md5
51fbded6
JB
186This plugin implements the SASL CRAM-MD5 mechanism. CRAM-MD5 is the
187mandatory-to-implement authentication mechanism for a number of
188protocols; it uses MD5 with a challenge/response system to
b01d2a48 189authenticate the user.
24730ccf 190
ecb418f6
JR
191%description cram-md5 -l pl.UTF-8
192Wtyczka dodająca obsługę mechanizmu CRAM-MD5 do Cyrus SASL. CRAM-MD5
193jest obowiązkowym do zaimplementowania mechanizmem uwierzytelniania
194dla wielu protokołów; do uwierzytelnienia użytkownika używa MD5 wraz z
6d5bde9c 195systemem challenge/response.
14f9ae30 196
ecb418f6
JR
197%description cram-md5 -l pt_BR.UTF-8
198Este plugin implementa o mecanismo SASL CRAM-MD5. CRAM-MD5 é o
199mecanismo de autenticação obrigatório de ser implementado para vários
b01d2a48 200protocolos: ele usa MD5 com um sistema de desafio/resposta para
ecb418f6 201autenticar o usuário.
b01d2a48 202
14f9ae30 203%package digest-md5
24730ccf 204Summary: Digest-MD5 Cyrus SASL plugin
fd793f4a
ER
205Summary(pl.UTF-8): Wtyczka Digest-MD5 do Cyrus SASL
206Summary(pt_BR.UTF-8): Mecanismo SASL DIGEST-MD5
8659fb0b 207Group: Libraries
b712ee1b 208Requires: %{name} = %{version}-%{release}
14f9ae30
AF
209
210%description digest-md5
b01d2a48 211This plugin implements the latest draft of the SASL DIGEST-MD5
51fbded6 212mechanism. Although not yet finalized, this is likely to become the
b01d2a48
PG
213new mandatory-to-implement authentication system in all new protocols.
214It's based on the digest md5 authentication system designed for HTTP.
24730ccf 215
ecb418f6
JR
216%description digest-md5 -l pl.UTF-8
217Wtyczka dodająca najnowszą wersję mechanizmu DIGEST-MD5 do Cyrus SASL.
218Pomimo tego, że nie jest jeszcze ukończony, najprawdopodobniej stanie
219się obowiązkowym do zaimplementowania systemem uwierzytelniania we
220wszystkich nowych protokołach. Bazuje na systemie uwierzytelniania
51fbded6 221Digest-MD5 zaprojektowanym dla HTTP.
14f9ae30 222
ecb418f6
JR
223%description digest-md5 -l pt_BR.UTF-8
224Este plugin implementa a última versão da especificação do mecanismo
225SASL DIGEST-MD5. Embora ainda não esteja finalizado, DIGEST-MD5
226provavelmente será o novo sistema de autenticação obrigatório para
227protocolos novos. Ele é baseado na autenticação md5 digest
b01d2a48
PG
228desenvolvida para HTTP.
229
14f9ae30 230%package plain
24730ccf 231Summary: Plain Cyrus SASL plugin
fd793f4a
ER
232Summary(pl.UTF-8): Wtyczka plain do Cyrus SASL
233Summary(pt_BR.UTF-8): Mecanismo SASL PLAIN
8659fb0b 234Group: Libraries
b712ee1b 235Requires: %{name} = %{version}-%{release}
14f9ae30
AF
236
237%description plain
51fbded6 238This plugin implements the SASL PLAIN mechanism. Although insecure,
b01d2a48
PG
239PLAIN is useful for transitioning to new security mechanisms, as this
240is the only mechanism which gives the server a copy of the user's
241password.
24730ccf 242
ecb418f6
JR
243%description plain -l pl.UTF-8
244Wtyczka dodająca obsługę mechanizmu PLAIN do Cyrus SASL. Pomimo tego,
245że nie jest bezpieczny, PLAIN jest przydatny przy przechodzeniu na
246nowe mechanizmu bezpieczeństwa, jako że jest to jedyny mechanizm,
247który udostępnia serwerowi kopię hasła użytkownika.
14f9ae30 248
ecb418f6 249%description plain -l pt_BR.UTF-8
6d5bde9c 250Este plugin implementa o mecanismo SASL PLAIN. Embora inseguro, este
ecb418f6
JR
251mecanismo é útil durante transições para novos mecanismos de
252segurança, pois é o único esquema que fornece uma cópia da senha do
253usuário para o servidor.
b01d2a48 254
14f9ae30 255%package anonymous
24730ccf 256Summary: Anonymous Cyrus SASL plugin
fd793f4a
ER
257Summary(pl.UTF-8): Wtyczka anonymous do Cyrus SASL
258Summary(pt_BR.UTF-8): Mecanismo SASL ANONYMOUS
8659fb0b 259Group: Libraries
b712ee1b 260Requires: %{name} = %{version}-%{release}
14f9ae30
AF
261
262%description anonymous
6d5bde9c
JK
263This plugin implements the SASL ANONYMOUS mechanism, used for
264anonymous authentication.
24730ccf 265
ecb418f6
JR
266%description anonymous -l pl.UTF-8
267Wtyczka dodająca obsługę mechanizmu ANONYMOUS do Cyrus SASL. Służy do
51fbded6 268anonimowego uwierzytelniania.
14f9ae30 269
ecb418f6 270%description anonymous -l pt_BR.UTF-8
6d5bde9c 271Este plugin implementa o mecanismo SASL ANONYMOUS, usado para
ecb418f6 272autenticação anônima.
b01d2a48 273
1d2545d6 274%package gssapi
275Summary: GSSAPI Cyrus SASL plugin
fd793f4a
ER
276Summary(pl.UTF-8): Wtyczka GSSAPI do Cyrus SASL
277Summary(pt_BR.UTF-8): Mecanismo SASL GSSAPI
1d2545d6 278Group: Libraries
b712ee1b 279Requires: %{name} = %{version}-%{release}
1d2545d6 280
281%description gssapi
282This plugin implements the SASL GSSAPI mechanism, used for
283GSSAPI/Kerberos5 authentication.
284
ecb418f6
JR
285%description gssapi -l pl.UTF-8
286Wtyczka dodająca obsługę mechanizmu SASL GSSAPI, używanego do
287uwierzytelniania z użyciem GSSAPI/Kerberos5.
2c23c412 288
ecb418f6 289%description gssapi -l pt_BR.UTF-8
1d2545d6 290Este plugin implementa o mecanismo SASL GSSAPI, usado para
ecb418f6 291autenticação Kerberos/GSSAPI.
1d2545d6 292
14f9ae30 293%package login
24730ccf 294Summary: Unsupported Login Cyrus SASL plugin
fd793f4a 295Summary(pl.UTF-8): Nie wspierana wtyczka Login do Cyrus SASL
8659fb0b 296Group: Libraries
b712ee1b 297Requires: %{name} = %{version}-%{release}
14f9ae30
AF
298
299%description login
51fbded6 300Unsupported LOGIN Cyrus SASL plugin.
24730ccf 301
ecb418f6
JR
302%description login -l pl.UTF-8
303Wtyczka dodająca obsługę nie wspieranego mechanizmu LOGIN do Cyrus
51fbded6 304SASL.
14f9ae30 305
b82b9fc8 306%package srp
24730ccf 307Summary: SRP Cyrus SASL plugin
fd793f4a
ER
308Summary(pl.UTF-8): Wtyczka SRP do Cyrus SASL
309Summary(pt_BR.UTF-8): Mecanismo SASL SRP
b82b9fc8 310Group: Libraries
b712ee1b 311Requires: %{name} = %{version}-%{release}
b82b9fc8
AF
312
313%description srp
6d5bde9c
JK
314This plugin implements the SASL SRP mechanism, based on the Secure
315Remote Password protocol. This mechanism performs mutual
316authentication and can provide a security layer with replay detection,
317integrity protection and/or condifentiality protection.
24730ccf 318
ecb418f6
JR
319%description srp -l pl.UTF-8
320Wtyczka dodająca obsługę mechanizmu SRP do Cyrus SASL. Bazuje na
51fbded6 321protokole Secure Remote Password. Ten mechanizm dokonuje wzajemnego
ecb418f6
JR
322uwierzytelnienia i może dodawać warstwę bezpieczeństwa z wykrywaniem
323powtarzania, zabezpieczeniem integralności i/lub poufności.
b82b9fc8 324
ecb418f6 325%description srp -l pt_BR.UTF-8
6d5bde9c 326Este plugin implementa o mecanismo SASL SRP, baseado no protocolo SRP
ecb418f6
JR
327(Secure Remote Password). Este mecanismo oferece autenticação mútua
328(do cliente e do servidor) e pode prover uma camada de segurança com
329detecção de ataques de replay, garantia de integridade e/ou
6d5bde9c
JK
330confidencialidade.
331
332%package otp
333Summary: OTP Cyrus SASL plugin
fd793f4a
ER
334Summary(pl.UTF-8): Wtyczka OTP do Cyrus SASL
335Summary(pt_BR.UTF-8): Mecanismo SASL OTP
6d5bde9c 336Group: Libraries
b712ee1b 337Requires: %{name} = %{version}-%{release}
6d5bde9c
JK
338
339%description otp
340This plugin implements the SASL OTP (One Time Password) mechanism.
341
ecb418f6
JR
342%description otp -l pl.UTF-8
343Wtyczka dodająca obsługę mechanizmu OTP (hasła jednorazowe) do Cyrus
6d5bde9c 344SASL.
e470390b 345
7b0e765f 346%package opie
31ce14b6 347Summary: OPIE Cyrus SASL plugin
fd793f4a
ER
348Summary(pl.UTF-8): Wtyczka OPIE do Cyrus SASL
349Summary(pt_BR.UTF-8): Mecanismo SASL OPIE
31ce14b6
ER
350Group: Libraries
351Requires: %{name} = %{version}-%{release}
7b0e765f
AM
352
353%description opie
354This plugin implements the SASL OPIE (One Time Password) mechanism.
355
ecb418f6
JR
356%description opie -l pl.UTF-8
357Wtyczka dodająca obsługę mechanizmu OPIE (hasła jednorazowe) do Cyrus
7b0e765f
AM
358SASL.
359
b82b9fc8 360%package x509
24730ccf 361Summary: x509 Cyrus SASL plugin
fd793f4a 362Summary(pl.UTF-8): Wtyczka x509 do Cyrus SASL
b82b9fc8 363Group: Libraries
b712ee1b 364Requires: %{name} = %{version}-%{release}
b82b9fc8
AF
365
366%description x509
24730ccf
JB
367x509 Cyrus SASL plugin.
368
ecb418f6 369%description x509 -l pl.UTF-8
24730ccf 370Wtyczka x509 do Cyrus SASL.
b82b9fc8 371
1a347c1c
AF
372%package saslauthd
373Summary: Cyrus SASL authd
fd793f4a 374Summary(pl.UTF-8): Demon authd do Cyrus SASL
b712ee1b 375Group: Daemons
0b06c3e1 376Requires(post,preun): /sbin/chkconfig
b712ee1b 377Requires: %{name} = %{version}-%{release}
729a75b5 378Requires: /sbin/chkconfig
0b06c3e1 379Requires: rc-scripts
1a347c1c
AF
380
381%description saslauthd
382Cyrus SASL authd.
383
ecb418f6 384%description saslauthd -l pl.UTF-8
24730ccf
JB
385Demon authd do Cyrus SASL.
386
1a347c1c
AF
387%package pwcheck
388Summary: Cyrus SASL pwcheck helper
fd793f4a 389Summary(pl.UTF-8): Program pomocniczy pwcheck do Cyrus SASL
1a347c1c 390Group: Libraries
b712ee1b 391Requires: %{name} = %{version}-%{release}
1a347c1c
AF
392
393%description pwcheck
394Cyrus SASL pwcheck helper.
395
ecb418f6 396%description pwcheck -l pl.UTF-8
24730ccf
JB
397Program pomocniczy pwcheck do Cyrus SASL.
398
6d5bde9c
JK
399%package sasldb
400Summary: Cyrus SASL sasldb plugin
fd793f4a 401Summary(pl.UTF-8): Wtyczka sasldb do Cyrus SASL
6d5bde9c 402Group: Libraries
b712ee1b 403Requires: %{name} = %{version}-%{release}
6d5bde9c
JK
404
405%description sasldb
406Cyrus SASL sasldb plugin.
407
ecb418f6 408%description sasldb -l pl.UTF-8
6d5bde9c
JK
409Wtyczka sasldb do Cyrus SASL.
410
411%package mysql
55f89eea 412Summary: Cyrus SASL MySQL plugin
fd793f4a 413Summary(pl.UTF-8): Wtyczka MySQL do Cyrus SASL
6d5bde9c 414Group: Libraries
b712ee1b 415Requires: %{name} = %{version}-%{release}
6d5bde9c
JK
416
417%description mysql
55f89eea 418Cyrus SASL MySQL plugin.
6d5bde9c 419
ecb418f6 420%description mysql -l pl.UTF-8
55f89eea 421Wtyczka MySQL do Cyrus SASL.
6d5bde9c 422
8786a90a
JK
423%package pgsql
424Summary: Cyrus SASL PostgreSQL plugin
fd793f4a 425Summary(pl.UTF-8): Wtyczka PostgreSQL do Cyrus SASL
8786a90a 426Group: Libraries
b712ee1b 427Requires: %{name} = %{version}-%{release}
8786a90a
JK
428
429%description pgsql
430Cyrus SASL PostgreSQL plugin.
431
ecb418f6 432%description pgsql -l pl.UTF-8
8786a90a
JK
433Wtyczka PostgreSQL do Cyrus SASL.
434
7b0e765f 435%package sqlite
31ce14b6 436Summary: Cyrus SQLite PostgreSQL plugin
fd793f4a 437Summary(pl.UTF-8): Wtyczka SQLite do Cyrus SASL
31ce14b6
ER
438Group: Libraries
439Requires: %{name} = %{version}-%{release}
7b0e765f
AM
440
441%description sqlite
442Cyrus SASL SQLite plugin.
443
ecb418f6 444%description sqlite -l pl.UTF-8
7b0e765f
AM
445Wtyczka SQLite do Cyrus SASL.
446
71e6f5e8
ER
447%package -n nagios-plugin-check_saslauthd
448Summary: Nagios plugin to check health of saslauthd
85e8b8b9 449Summary(pl.UTF-8): Wtyczka Nagiosa do sprawdzania działania saslauthd
71e6f5e8
ER
450Group: Networking
451Requires: nagios-core
452
453%description -n nagios-plugin-check_saslauthd
85e8b8b9
JB
454Nagios plugin to check health of saslauthd.
455
456%description -n nagios-plugin-check_saslauthd -l pl.UTF-8
457Wtyczka Nagiosa do sprawdzania działania saslauthd.
71e6f5e8 458
42ff9e9b 459%prep
d00ca9cd 460%setup -q
a5578583 461%patch0 -p1
2abe5362 462%patch1 -p1
62e12ee1 463%patch2 -p1
14094880 464%patch3 -p1
7b0e765f 465%patch4 -p1
0725404e 466%if %{with cryptedpw}
bce57f8d 467%patch5 -p1
0725404e 468%patch6 -p1
469%endif
542a80f9 470%patch7 -p1
703809ad 471%patch8 -p1
33b4b2e7
JR
472%patch9 -p2
473%patch10 -p1
474%patch11 -p1
71e6f5e8 475%patch12 -p1
38ee6d59 476%patch13 -p1
617658b2 477%patch14 -p1
d5574fc8 478%patch15 -p0
e937072c 479%patch16 -p1
42ff9e9b 480
9a9f42e8 481cd doc
482echo "cyrus-sasl complies with the following RFCs:" > rfc-compliance
483ls rfc*.txt >> rfc-compliance
484rm -f rfc*.txt
d9dbaca3 485cd ..
9a9f42e8 486
d9dbaca3 487rm -rf autom4te.cache saslauthd/autom4te.cache
2abe5362 488# acinclude.m4 contains only old libtool.m4
d9dbaca3
JB
489rm -f acinclude.m4 libtool config/libtool.m4 saslauthd/acinclude.m4
490
3994f286
ER
491# update to our paths
492sed -i -e '
493 s,/usr/local/etc/saslauthd.conf,%{_sysconfdir}/saslauthd.conf,g
494 s,/etc/saslauthd.conf,%{_sysconfdir}/saslauthd.conf,g
495 s,/var/run/saslauthd/mux,/var/lib/sasl2/mux,g
496 s,/var/state/saslauthd,/var/lib/sasl2,g
497' saslauthd/saslauthd.8 saslauthd/saslauthd.mdoc saslauthd/LDAP_SASLAUTHD doc/sysadmin.html
498
d9dbaca3 499%build
7fdef82d 500%{__libtoolize}
6d5bde9c
JK
501%{__aclocal} -I cmulocal -I config
502%{__autoheader}
2abe5362 503%{__automake}
6d5bde9c
JK
504%{__autoconf}
505
506cd saslauthd
d9dbaca3
JB
507%{__libtoolize}
508%{__aclocal} -I ../cmulocal -I ../config -I config
509%{__autoheader}
510%{__automake}
511%{__autoconf}
6d5bde9c
JK
512cd ..
513
64473676 514%configure \
76c44887 515 --with-lib-subdir=%{_lib} \
0725404e 516 %{?with_cryptedpw: LDFLAGS=-lcrypt} \
f9c6d263
JB
517 --disable-krb4 \
518 %{!?with_gssapi: --disable-gssapi} \
bf67571e 519 %{?with_gssapi: --enable-gssapi --with-gss_impl=heimdal} \
14f9ae30 520 --enable-login \
bce57f8d 521 --enable-sample \
71e6f5e8 522 --enable-httpform \
f9c6d263 523 --enable-sql \
497e9c85 524 %{?with_srp: --enable-srp} \
f9c6d263 525 --enable-static \
9255a2e8 526 --with-plugindir=%{_libdir}/sasl2 \
f9c6d263 527 --with-configdir=%{_sysconfdir} \
b82b9fc8 528 --with-dblib=berkeley \
6d5bde9c 529 --with-dbpath=/var/lib/sasl2/sasl.db \
31ce14b6 530 %{?with_authlib:--with-authdaemond=/var/spool/authdaemon/socket} \
e937072c
JR
531 %{?with_ldap: --with-ldap=%{_prefix}} \
532 %{?with_mysql: --with-mysql=%{_prefix}} \
533 %{?with_pgsql: --with-pgsql=%{_prefix}} \
534 %{?with_sqlite: --with-sqlite=%{_prefix}} \
535 %{?with_opie: --with-opie=%{_prefix}} \
f9c6d263
JB
536 --with-pam \
537 %{?with_pwcheck: --with-pwcheck=/var/lib/sasl2} \
538 --with-saslauthd=/var/lib/sasl2
e937072c 539
7bc0085a 540%{__make}
42ff9e9b 541
4bc9052e 542%{__make} -C saslauthd testsaslauthd
543%{__make} -C saslauthd saslcache
e3a25986 544%{__make} -C sample sample-client sample-server
4bc9052e 545
9a9f42e8 546cd doc
3994f286 547RFCLIST=$(grep 'rfc.\+\.txt' rfc-compliance)
9a9f42e8 548for i in $RFCLIST; do
549 RFCDIR=../RFC/text/`echo $i | sed -e 's:^rfc::' -e 's:..\.txt$::' `00
37593496 550 echo -e ',s:'$i':'$RFCDIR/$i'\n,w\nq' | ed index.html
9a9f42e8 551done
9a9f42e8 552
42ff9e9b 553%install
d2ddcdfc 554rm -rf $RPM_BUILD_ROOT
31ce14b6 555install -d $RPM_BUILD_ROOT{%{_bindir},/var/lib/sasl2,%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
6d5bde9c 556 $RPM_BUILD_ROOT%{_mandir}/man8
76871118
PG
557
558%{__make} install \
9255a2e8 559 sasldir=%{_libdir}/sasl2 \
76871118 560 DESTDIR=$RPM_BUILD_ROOT
64473676 561
6d5bde9c 562rm -rf $RPM_BUILD_ROOT%{_mandir}/cat*
db5abc64 563rm -f $RPM_BUILD_ROOT%{_libdir}/sasl2/*.{la,a}
6d5bde9c 564
3994f286
ER
565cp -a utils/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
566cp -a saslauthd/saslauthd.mdoc $RPM_BUILD_ROOT%{_mandir}/man8/saslauthd.8
6d5bde9c
JK
567
568ln -sf libsasl2.so $RPM_BUILD_ROOT%{_libdir}/libsasl.so
569
570touch $RPM_BUILD_ROOT/var/lib/sasl2/sasl.db
14f9ae30 571
31ce14b6
ER
572# create empty config
573touch $RPM_BUILD_ROOT%{_sysconfdir}/saslauthd.conf
3994f286
ER
574install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/saslauthd
575cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/saslauthd
576cp -a %{SOURCE3} cyrus.pam
e421a0c7 577
3994f286 578install -p saslauthd/{testsaslauthd,saslcache} $RPM_BUILD_ROOT%{_sbindir}
4bc9052e 579
31ce14b6 580# sample programs for testing sasl
e3a25986
JR
581libtool --mode=install cp sample/sample-client $RPM_BUILD_ROOT%{_bindir}/sasl-sample-client
582libtool --mode=install cp sample/sample-server $RPM_BUILD_ROOT%{_bindir}/sasl-sample-server
31ce14b6 583
71e6f5e8
ER
584# package for ghost
585touch $RPM_BUILD_ROOT/var/lib/sasl2/{cache.flock,cache.mmap,mux,mux.accept,saslauthd.pid}
586
587install -d $RPM_BUILD_ROOT/etc/nagios/plugins
588%{__sed} -e 's,@plugindir@,%{_libdir}/nagios/plugins,' %{SOURCE4} > $RPM_BUILD_ROOT/etc/nagios/plugins/check_saslauthd.cfg
589
42ff9e9b 590%clean
d2ddcdfc 591rm -rf $RPM_BUILD_ROOT
42ff9e9b 592
96e599e5
JR
593%post libs -p /sbin/ldconfig
594%postun libs -p /sbin/ldconfig
42ff9e9b 595
e421a0c7 596%post saslauthd
7c6dc918 597/sbin/chkconfig --add saslauthd
729a75b5 598%service saslauthd restart
7c6dc918 599
a5ab8e56 600%preun saslauthd
7c6dc918 601if [ "$1" = "0" ]; then
729a75b5 602 %service saslauthd stop
7c6dc918 603 /sbin/chkconfig --del saslauthd
604fi
e421a0c7 605
d2339bdb
JR
606%triggerin saslauthd -- pam
607# restart saslauthd if pam is upgraded
5883f0b6 608# (saslauth is linked with old libpam but tries to open modules linked with new libpam)
d2339bdb
JR
609if [ "$2" != 1 ]; then
610 %service -q saslauthd restart
611fi
612
64473676 613%files
614%defattr(644,root,root,755)
6d5bde9c 615%doc AUTHORS COPYING ChangeLog NEWS README
9a9f42e8 616%doc doc/{ONEWS,TODO,*.txt,*.html,*.fig,rfc-compliance}
71e6f5e8
ER
617%dir %{_sysconfdir}
618%dir %{_libdir}/sasl2
31ce14b6
ER
619# sample programs to subpackage instead?
620%attr(755,root,root) %{_bindir}/sasl-sample-client
621%attr(755,root,root) %{_bindir}/sasl-sample-server
bce57f8d 622%attr(755,root,root) %{_sbindir}/pluginviewer
6d5bde9c
JK
623%attr(755,root,root) %{_sbindir}/sasldblistusers2
624%attr(755,root,root) %{_sbindir}/saslpasswd2
aae2e3ba 625%dir /var/lib/sasl2
31ce14b6 626%attr(640,root,mail) %ghost %config(noreplace) %verify(not md5 mtime size) /var/lib/sasl2/sasl.db
bce57f8d
JB
627%{_mandir}/man8/pluginviewer.8*
628%{_mandir}/man8/sasldblistusers2.8*
629%{_mandir}/man8/saslpasswd2.8*
42ff9e9b 630
96e599e5
JR
631%files libs
632%defattr(644,root,root,755)
633%attr(755,root,root) %{_libdir}/libsasl2.so.*.*.*
634%attr(755,root,root) %ghost %{_libdir}/libsasl2.so.2
635
64473676 636%files devel
637%defattr(644,root,root,755)
aae2e3ba
JB
638%attr(755,root,root) %{_libdir}/libsasl2.so
639%attr(755,root,root) %{_libdir}/libsasl.so
640%{_libdir}/libsasl2.la
6d5bde9c 641%{_includedir}/sasl
aae2e3ba 642%{_mandir}/man3/sasl*.3*
42ff9e9b 643
64473676 644%files static
645%defattr(644,root,root,755)
aae2e3ba 646%{_libdir}/libsasl2.a
6d5bde9c
JK
647
648%files anonymous
649%defattr(644,root,root,755)
650%attr(755,root,root) %{_libdir}/sasl2/libanonymous.so*
14f9ae30 651
1d2545d6 652%if %{with gssapi}
653%files gssapi
654%defattr(644,root,root,755)
497e9c85 655%attr(755,root,root) %{_libdir}/sasl2/libgssapiv2.so*
1d2545d6 656%endif
657
14f9ae30 658%files cram-md5
f9654629 659%defattr(644,root,root,755)
6d5bde9c 660%attr(755,root,root) %{_libdir}/sasl2/libcrammd5.so*
14f9ae30
AF
661
662%files digest-md5
f9654629 663%defattr(644,root,root,755)
6d5bde9c
JK
664%attr(755,root,root) %{_libdir}/sasl2/libdigestmd5.so*
665
666%files login
667%defattr(644,root,root,755)
668%attr(755,root,root) %{_libdir}/sasl2/liblogin.so*
669
670%files otp
671%defattr(644,root,root,755)
672%attr(755,root,root) %{_libdir}/sasl2/libotp.so*
14f9ae30 673
7b0e765f
AM
674%if %{with opie}
675%files opie
676%defattr(644,root,root,755)
677%attr(755,root,root) %{_libdir}/sasl2/libopie.so*
678%endif
679
14f9ae30 680%files plain
f9654629 681%defattr(644,root,root,755)
6d5bde9c 682%attr(755,root,root) %{_libdir}/sasl2/libplain.so*
14f9ae30 683
6d5bde9c 684%files sasldb
f9654629 685%defattr(644,root,root,755)
6d5bde9c 686%attr(755,root,root) %{_libdir}/sasl2/libsasldb.so*
14f9ae30 687
497e9c85 688%if %{with mysql}
6d5bde9c 689%files mysql
f9654629 690%defattr(644,root,root,755)
7b0e765f 691%attr(755,root,root) %{_libdir}/sasl2/libmysql.so*
27ae5c2b 692%endif
b82b9fc8 693
8786a90a
JK
694%if %{with pgsql}
695%files pgsql
696%defattr(644,root,root,755)
7b0e765f
AM
697%attr(755,root,root) %{_libdir}/sasl2/libpgsql.so*
698%endif
699
700%if %{with sqlite}
701%files sqlite
702%defattr(644,root,root,755)
703%attr(755,root,root) %{_libdir}/sasl2/libsqlite.so*
8786a90a
JK
704%endif
705
497e9c85 706%if %{with srp}
b82b9fc8
AF
707%files srp
708%defattr(644,root,root,755)
6d5bde9c 709%attr(755,root,root) %{_libdir}/sasl2/libsrp.so*
b82b9fc8
AF
710%endif
711
497e9c85 712%if %{with x509}
b82b9fc8
AF
713%files x509
714%defattr(644,root,root,755)
6d5bde9c 715%attr(755,root,root) %{_libdir}/sasl2/libx509.so*
b82b9fc8 716%endif
1a347c1c 717
497e9c85 718%if %{with pwcheck}
1a347c1c 719%files pwcheck
24730ccf 720%defattr(644,root,root,755)
1a347c1c
AF
721%attr(755,root,root) %{_sbindir}/pwcheck
722%endif
723
1a347c1c 724%files saslauthd
24730ccf 725%defattr(644,root,root,755)
71e6f5e8
ER
726%doc cyrus.pam
727%doc saslauthd/{AUTHORS,LDAP_SASLAUTHD}
31ce14b6
ER
728%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/saslauthd.conf
729%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/saslauthd
1a347c1c 730%attr(755,root,root) %{_sbindir}/saslauthd
4bc9052e 731%attr(755,root,root) %{_sbindir}/testsaslauthd
732%attr(755,root,root) %{_sbindir}/saslcache
193579bb 733%attr(754,root,root) /etc/rc.d/init.d/saslauthd
71e6f5e8
ER
734%ghost /var/lib/sasl2/cache.flock
735%ghost /var/lib/sasl2/cache.mmap
736%ghost /var/lib/sasl2/mux
737%ghost /var/lib/sasl2/mux.accept
738%ghost /var/lib/sasl2/saslauthd.pid
bce57f8d 739%{_mandir}/man8/saslauthd.8*
71e6f5e8
ER
740
741%files -n nagios-plugin-check_saslauthd
742%defattr(644,root,root,755)
743%config(noreplace) %verify(not md5 mtime size) /etc/nagios/plugins/check_saslauthd.cfg
744%attr(755,root,root) %{_libdir}/nagios/plugins/check_saslauthd
This page took 0.211644 seconds and 4 git commands to generate.