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