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