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