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