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