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