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