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