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