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