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