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