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