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