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