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