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