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