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