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