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