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