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