3 %bcond_without cryptedpw # if you keep crypted passwords in your *sql
4 %bcond_without ldap # disable LDAP support for saslauthd
5 %bcond_without gssapi # do not enable GSSAPI support for saslauthd and build gssapi plugin
6 %bcond_without mysql # don't build MySQL pluggin
7 %bcond_without pgsql # do not build PostgreSQL pluggin
8 %bcond_without sqlite # do not enable sqlite 2 plugin
9 %bcond_without sqlite3 # do not enable sqlite 3 plugin
10 %bcond_with authlib # enable courier-authlib (i wasn't able to test it)
11 %bcond_with opie # OTP plugin using opie library instead of internal code
12 %bcond_with srp # build srp plugin
13 %bcond_with pwcheck # build pwcheck helper (deprecated)
15 %if %{without mysql} && %{without pgsql}
16 %undefine with_cryptedpw
19 Summary: The SASL library API for the Cyrus mail system
20 Summary(pl.UTF-8): Biblioteka Cyrus SASL
21 Summary(pt_BR.UTF-8): Implementação da API SASL
22 Summary(ru.UTF-8): Библиотека Cyrus SASL
23 Summary(uk.UTF-8): Бібліотека Cyrus SASL
27 License: distributable
29 Source0: ftp://ftp.cyrusimap.org/cyrus-sasl/%{name}-%{version}.tar.gz
30 # Source0-md5: a7f4e5e559a0e37b3ffc438c9456e425
31 Source1: saslauthd.init
32 Source2: saslauthd.sysconfig
34 Source4: check_saslauthd.cfg
35 Patch0: %{name}-nolibs.patch
36 Patch1: %{name}-lt.patch
37 Patch2: %{name}-split-sql.patch
38 Patch3: %{name}-opie.patch
39 Patch4: %{name}-gcc4.patch
40 # Adapted from http://frost.ath.cx/software/cyrus-sasl-patches/dist/2.1.19/cyrus-sasl-2.1.19-checkpw.c+sql.c.patch
41 Patch5: %{name}-cryptedpw.patch
42 Patch6: %{name}-md5sum-passwords.patch
43 Patch7: %{name}-db.patch
44 Patch8: %{name}-keytab.patch
45 Patch9: %{name}-sizes.patch
46 Patch10: %{name}-nagios-plugin.patch
47 Patch11: %{name}-parallel-make.patch
48 Patch12: %{name}-gssapi-detect.patch
49 Patch13: %{name}-saslauthd-httpform-urlescape.patch
50 Patch14: %{name}-ac-libs.patch
51 Patch15: %{name}-pam.patch
52 Patch16: %{name}-gssapi_ext.patch
53 Patch17: 0032-revert_1.103_revision_to_unbreak_GSSAPI.patch
54 Patch18: 0033-fix_segfault_in_GSSAPI.patch
55 Patch19: 0034-fix_dovecot_authentication.patch
56 Patch20: %{name}-auxprop.patch
57 Patch21: 0030-dont_use_la_files_for_opening_plugins.patch
58 URL: http://asg.web.cmu.edu/sasl/
59 BuildRequires: autoconf >= 2.54
60 BuildRequires: automake >= 1:1.7
61 %{?with_authlib:BuildRequires: courier-authlib-devel}
62 BuildRequires: db-devel
65 %{?with_gssapi:BuildRequires: heimdal-devel}
66 BuildRequires: libtool >= 1.4
67 %{?with_mysql:BuildRequires: mysql-devel}
68 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
69 BuildRequires: openssl-devel >= 0.9.7d
70 %{?with_opie:BuildRequires: opie-devel}
71 BuildRequires: pam-devel
72 %{?with_pgsql:BuildRequires: postgresql-devel}
73 BuildRequires: rpmbuild(macros) >= 1.268
74 %{?with_sqlite:BuildRequires: sqlite-devel}
75 %{?with_sqlite3:BuildRequires: sqlite3-devel >= 3}
76 Requires: pam >= 0.79.0
77 Requires: %{name}-libs = %{version}-%{release}
78 Obsoletes: cyrus-sasl-x509 < %{version}
79 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
81 %define _sysconfdir /etc/sasl
83 %define specflags -fno-strict-aliasing
86 This is an implementation of the SASL API, useful for adding
87 authentication, authorization, and security to network protocols. The
88 SASL protocol itself is documented in rfc2222; the API standard is a
91 Note: remember to install appropriate plugins, or you won't have any
92 authentication mechanisms available.
94 %description -l pl.UTF-8
95 Pakiet cyrus-sasl zawiera implementację biblioteki API SASL dla
96 systemu poczty elektronicznej Cyrusa. Biblioteka ta jest przydatna
97 także do dodawania uwierzytelniania, autoryzacji oraz zwiększania
98 bezpieczeństwa protokołów sieciowych. Sam protokół SASL jest opisany w
99 RFC 2222; standaryzacja API jest w toku.
101 Uwaga: aby były dostępne jakiekolwiek mechanizmy autoryzacji, należy
102 doinstalować odpowiednie wtyczki.
104 %description -l pt_BR.UTF-8
105 Esta é uma implementação da API SASL, útil para acrescentar
106 autenticação, autorização e seguança (criptografia) para protocolos de
107 rede. O protocolo SASL está documentado na RFC 2222. A API "padrão"
108 ainda está em desenvolvimento.
110 %description -l ru.UTF-8
111 Пакет cyrus-sasl содержит реализацию Cyrus SASL. SASL - это Simple
112 Authentication and Security Layer, метод для добавления поддержки
113 аутентикации к протоколам, основанным на соединениях.
115 %description -l uk.UTF-8
116 Пакет cyrus-sasl містить реалізацію Cyrus SASL. SASL - це Simple
117 Authentication and Security Layer, метод для додання підтримки
118 аутентикації до протоколів, базованих на з'єднаннях.
121 Summary: cyrus-sasl library itself
122 Summary(pl.UTF-8): Sama biblioteka cyrus-sasl
124 Requires(post,postun): /sbin/ldconfig
125 Conflicts: cyrus-sasl < 2.1.23-8
128 cyrus-sasl library itself.
130 %description libs -l pl.UTF-8
131 Sama biblioteka cyrus-sasl.
134 Summary: Header files and documentation for cyrus-sasl
135 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja dla cyrus-sasl
136 Summary(pt_BR.UTF-8): Exemplos e arquivos para desenvolvimento com SASL
137 Summary(ru.UTF-8): Файлы для программирования с библиотекой Cyrus SASL
138 Summary(uk.UTF-8): Файли для програмування з бібліотекою Cyrus SASL
139 Group: Development/Libraries
140 Requires: %{name} = %{version}-%{release}
143 This includes the header files and documentation needed to develop
144 applications which use SASL.
146 %description devel -l pl.UTF-8
147 Pliki nagłówkowe i dokumentacja dla cyrus-sasl.
149 %description devel -l pt_BR.UTF-8
150 Este pacote inclui os arquivos de cabeçalho e documentação necessários
151 para desenvolver aplicativos que usem SASL.
153 %description devel -l ru.UTF-8
154 Хедеры и библиотеки, необходимые для разработки приложений,
155 использующих Cyrus SASL.
157 %description devel -l uk.UTF-8
158 Хедери та бібліотеки, необхідні для розробки програм, що
159 використовують Cyrus SASL.
162 Summary: Static cyrus-sasl libraries
163 Summary(pl.UTF-8): Statyczne biblioteki cyrus-sasl
164 Summary(ru.UTF-8): Статические библиотеки Cyrus SASL
165 Summary(uk.UTF-8): Статичні бібліотеки Cyrus SASL
166 Group: Development/Libraries
167 Requires: %{name}-devel = %{version}-%{release}
170 Static cyrus-sasl libraries.
172 %description static -l pl.UTF-8
173 Statyczne biblioteki cyrus-sasl.
175 %description static -l ru.UTF-8
176 Статические библиотеки, необходимые для разработки приложений,
177 использующих Cyrus SASL.
179 %description static -l uk.UTF-8
180 Статичні бібліотеки, необхідні для розробки програм, що використовують
184 Summary: Anonymous Cyrus SASL plugin
185 Summary(pl.UTF-8): Wtyczka anonymous do Cyrus SASL
186 Summary(pt_BR.UTF-8): Mecanismo SASL ANONYMOUS
188 Requires: %{name} = %{version}-%{release}
190 %description anonymous
191 This plugin implements the SASL ANONYMOUS mechanism, used for
192 anonymous authentication.
194 %description anonymous -l pl.UTF-8
195 Wtyczka dodająca obsługę mechanizmu ANONYMOUS do Cyrus SASL. Służy do
196 anonimowego uwierzytelniania.
198 %description anonymous -l pt_BR.UTF-8
199 Este plugin implementa o mecanismo SASL ANONYMOUS, usado para
200 autenticação anônima.
203 Summary: Cram-MD5 Cyrus SASL plugin
204 Summary(pl.UTF-8): Wtyczka Cram-MD5 do Cyrus SASL
205 Summary(pt_BR.UTF-8): Mecanismo SASL CRAM-MD5
207 Requires: %{name} = %{version}-%{release}
209 %description cram-md5
210 This plugin implements the SASL CRAM-MD5 mechanism. CRAM-MD5 is the
211 mandatory-to-implement authentication mechanism for a number of
212 protocols; it uses MD5 with a challenge/response system to
213 authenticate the user.
215 %description cram-md5 -l pl.UTF-8
216 Wtyczka dodająca obsługę mechanizmu CRAM-MD5 do Cyrus SASL. CRAM-MD5
217 jest obowiązkowym do zaimplementowania mechanizmem uwierzytelniania
218 dla wielu protokołów; do uwierzytelnienia użytkownika używa MD5 wraz z
219 systemem challenge/response.
221 %description cram-md5 -l pt_BR.UTF-8
222 Este plugin implementa o mecanismo SASL CRAM-MD5. CRAM-MD5 é o
223 mecanismo de autenticação obrigatório de ser implementado para vários
224 protocolos: ele usa MD5 com um sistema de desafio/resposta para
225 autenticar o usuário.
228 Summary: Digest-MD5 Cyrus SASL plugin
229 Summary(pl.UTF-8): Wtyczka Digest-MD5 do Cyrus SASL
230 Summary(pt_BR.UTF-8): Mecanismo SASL DIGEST-MD5
232 Requires: %{name} = %{version}-%{release}
234 %description digest-md5
235 This plugin implements the latest draft of the SASL DIGEST-MD5
236 mechanism. Although not yet finalized, this is likely to become the
237 new mandatory-to-implement authentication system in all new protocols.
238 It's based on the digest md5 authentication system designed for HTTP.
240 %description digest-md5 -l pl.UTF-8
241 Wtyczka dodająca najnowszą wersję mechanizmu DIGEST-MD5 do Cyrus SASL.
242 Pomimo tego, że nie jest jeszcze ukończony, najprawdopodobniej stanie
243 się obowiązkowym do zaimplementowania systemem uwierzytelniania we
244 wszystkich nowych protokołach. Bazuje na systemie uwierzytelniania
245 Digest-MD5 zaprojektowanym dla HTTP.
247 %description digest-md5 -l pt_BR.UTF-8
248 Este plugin implementa a última versão da especificação do mecanismo
249 SASL DIGEST-MD5. Embora ainda não esteja finalizado, DIGEST-MD5
250 provavelmente será o novo sistema de autenticação obrigatório para
251 protocolos novos. Ele é baseado na autenticação md5 digest
252 desenvolvida para HTTP.
255 Summary: GSSAPI Cyrus SASL plugin
256 Summary(pl.UTF-8): Wtyczka GSSAPI do Cyrus SASL
257 Summary(pt_BR.UTF-8): Mecanismo SASL GSSAPI
259 Requires: %{name} = %{version}-%{release}
262 This plugin implements the SASL GSSAPI mechanism, used for
263 GSSAPI/Kerberos5 authentication.
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.
269 %description gssapi -l pt_BR.UTF-8
270 Este plugin implementa o mecanismo SASL GSSAPI, usado para
271 autenticação Kerberos/GSSAPI.
274 Summary: Unsupported Login Cyrus SASL plugin
275 Summary(pl.UTF-8): Nie wspierana wtyczka Login do Cyrus SASL
277 Requires: %{name} = %{version}-%{release}
280 Unsupported LOGIN Cyrus SASL plugin.
282 %description login -l pl.UTF-8
283 Wtyczka dodająca obsługę nie wspieranego mechanizmu LOGIN do Cyrus
287 Summary: Cyrus SASL MySQL plugin
288 Summary(pl.UTF-8): Wtyczka MySQL do Cyrus SASL
290 Requires: %{name} = %{version}-%{release}
293 Cyrus SASL MySQL plugin.
295 %description mysql -l pl.UTF-8
296 Wtyczka MySQL do Cyrus SASL.
299 Summary: OTP Cyrus SASL plugin
300 Summary(pl.UTF-8): Wtyczka OTP do Cyrus SASL
301 Summary(pt_BR.UTF-8): Mecanismo SASL OTP
303 Requires: %{name} = %{version}-%{release}
304 Obsoletes: cyrus-sasl-opie < %{version}
307 This plugin implements the SASL OTP (One Time Password) mechanism.
309 %description otp -l pl.UTF-8
310 Wtyczka dodająca obsługę mechanizmu OTP (hasła jednorazowe) do Cyrus
314 Summary: Cyrus SASL PostgreSQL plugin
315 Summary(pl.UTF-8): Wtyczka PostgreSQL do Cyrus SASL
317 Requires: %{name} = %{version}-%{release}
320 Cyrus SASL PostgreSQL plugin.
322 %description pgsql -l pl.UTF-8
323 Wtyczka PostgreSQL do Cyrus SASL.
326 Summary: Plain Cyrus SASL plugin
327 Summary(pl.UTF-8): Wtyczka plain do Cyrus SASL
328 Summary(pt_BR.UTF-8): Mecanismo SASL PLAIN
330 Requires: %{name} = %{version}-%{release}
333 This plugin implements the SASL PLAIN mechanism. Although insecure,
334 PLAIN is useful for transitioning to new security mechanisms, as this
335 is the only mechanism which gives the server a copy of the user's
338 %description plain -l pl.UTF-8
339 Wtyczka dodająca obsługę mechanizmu PLAIN do Cyrus SASL. Pomimo tego,
340 że nie jest bezpieczny, PLAIN jest przydatny przy przechodzeniu na
341 nowe mechanizmu bezpieczeństwa, jako że jest to jedyny mechanizm,
342 który udostępnia serwerowi kopię hasła użytkownika.
344 %description plain -l pt_BR.UTF-8
345 Este plugin implementa o mecanismo SASL PLAIN. Embora inseguro, este
346 mecanismo é útil durante transições para novos mecanismos de
347 segurança, pois é o único esquema que fornece uma cópia da senha do
348 usuário para o servidor.
351 Summary: Cyrus SASL sasldb plugin
352 Summary(pl.UTF-8): Wtyczka sasldb do Cyrus SASL
354 Requires: %{name} = %{version}-%{release}
357 Cyrus SASL sasldb plugin.
359 %description sasldb -l pl.UTF-8
360 Wtyczka sasldb do Cyrus SASL.
363 Summary: Cyrus SASL LDAPDB plugin
364 Summary(pl.UTF-8): Wtyczka LDAPDB do Cyrus SASL
366 Requires: %{name} = %{version}-%{release}
369 Cyrus SASL ldapdb plugin.
371 %description ldapdb -l pl.UTF-8
372 Wtyczka ldapdb do Cyrus SASL.
375 Summary: PASSDSS Cyrus SASL plugin
376 Summary(pl.UTF-8): Wtyczka PASSDSS do Cyrus SASL
377 Summary(pt_BR.UTF-8): Mecanismo SASL PASSDSS
379 Requires: %{name} = %{version}-%{release}
382 This plugin implements the PASSDSS 3DES mechanism.
384 %description passdss -l pl.UTF-8
385 Wtyczka dodająca obsługę mechanizmu PASSDSS 3DES do Cyrus SASL.
387 %description passdss -l pt_BR.UTF-8
388 Este plugin implementa o mecanismo SASL PASSDSS 3DES.
391 Summary: SCRAM Cyrus SASL plugin
392 Summary(pl.UTF-8): Wtyczka SCRAM do Cyrus SASL
393 Summary(pt_BR.UTF-8): Mecanismo SASL SCRAM
395 Requires: %{name} = %{version}-%{release}
398 This plugin implements the SASL SCRAM-MD5 mechanism.
400 %description scram -l pl.UTF-8
401 Wtyczka dodająca obsługę mechanizmu SCRAM do Cyrus SASL.
403 %description scram -l pt_BR.UTF-8
404 Este plugin implementa o mecanismo SASL SCRAM.
407 Summary: Cyrus SQLite 2 PostgreSQL plugin
408 Summary(pl.UTF-8): Wtyczka SQLite 2 do Cyrus SASL
410 Requires: %{name} = %{version}-%{release}
413 Cyrus SASL SQLite 2 plugin.
415 %description sqlite -l pl.UTF-8
416 Wtyczka SQLite 2 do Cyrus SASL.
419 Summary: Cyrus SQLite 3 PostgreSQL plugin
420 Summary(pl.UTF-8): Wtyczka SQLite 3 do Cyrus SASL
422 Requires: %{name} = %{version}-%{release}
425 Cyrus SASL SQLite 3 plugin.
427 %description sqlite3 -l pl.UTF-8
428 Wtyczka SQLite 3 do Cyrus SASL.
431 Summary: SRP Cyrus SASL plugin
432 Summary(pl.UTF-8): Wtyczka SRP do Cyrus SASL
433 Summary(pt_BR.UTF-8): Mecanismo SASL SRP
435 Requires: %{name} = %{version}-%{release}
438 This plugin implements the SASL SRP mechanism, based on the Secure
439 Remote Password protocol. This mechanism performs mutual
440 authentication and can provide a security layer with replay detection,
441 integrity protection and/or condifentiality protection.
443 %description srp -l pl.UTF-8
444 Wtyczka dodająca obsługę mechanizmu SRP do Cyrus SASL. Bazuje na
445 protokole Secure Remote Password. Ten mechanizm dokonuje wzajemnego
446 uwierzytelnienia i może dodawać warstwę bezpieczeństwa z wykrywaniem
447 powtarzania, zabezpieczeniem integralności i/lub poufności.
449 %description srp -l pt_BR.UTF-8
450 Este plugin implementa o mecanismo SASL SRP, baseado no protocolo SRP
451 (Secure Remote Password). Este mecanismo oferece autenticação mútua
452 (do cliente e do servidor) e pode prover uma camada de segurança com
453 detecção de ataques de replay, garantia de integridade e/ou
457 Summary: Cyrus SASL pwcheck helper
458 Summary(pl.UTF-8): Program pomocniczy pwcheck do Cyrus SASL
460 Requires: %{name} = %{version}-%{release}
463 Cyrus SASL pwcheck helper.
465 %description pwcheck -l pl.UTF-8
466 Program pomocniczy pwcheck do Cyrus SASL.
469 Summary: Cyrus SASL authd
470 Summary(pl.UTF-8): Demon authd do Cyrus SASL
472 Requires(post,preun): /sbin/chkconfig
473 Requires: %{name} = %{version}-%{release}
474 Requires: /sbin/chkconfig
477 %description saslauthd
480 %description saslauthd -l pl.UTF-8
481 Demon authd do Cyrus SASL.
483 %package -n nagios-plugin-check_saslauthd
484 Summary: Nagios plugin to check health of saslauthd
485 Summary(pl.UTF-8): Wtyczka Nagiosa do sprawdzania działania saslauthd
487 Requires: nagios-core
489 %description -n nagios-plugin-check_saslauthd
490 Nagios plugin to check health of saslauthd.
492 %description -n nagios-plugin-check_saslauthd -l pl.UTF-8
493 Wtyczka Nagiosa do sprawdzania działania saslauthd.
502 %if %{with cryptedpw}
523 echo "cyrus-sasl complies with the following RFCs:" > rfc-compliance
524 ls rfc*.txt >> rfc-compliance
529 %{__rm} config/libtool.m4
531 # update to our paths
533 s,/usr/local/etc/saslauthd.conf,%{_sysconfdir}/saslauthd.conf,g
534 s,/etc/saslauthd.conf,%{_sysconfdir}/saslauthd.conf,g
535 s,/var/run/saslauthd/mux,/var/lib/sasl2/mux,g
536 s,/var/state/saslauthd,/var/lib/sasl2,g
537 ' saslauthd/saslauthd.8 saslauthd/saslauthd.mdoc saslauthd/LDAP_SASLAUTHD doc/sysadmin.html
541 %{__aclocal} -I cmulocal -I config
546 %{__aclocal} -I ../cmulocal -I ../config
552 %{?with_cryptedpw: LDFLAGS=-lcrypt} \
554 %{!?with_gssapi: --disable-gssapi} \
555 %{?with_gssapi: --enable-gssapi --with-gss_impl=heimdal} \
561 %{?with_srp: --enable-srp} \
563 --with-plugindir=%{_libdir}/sasl2 \
564 --with-configdir=%{_sysconfdir} \
565 --with-dblib=berkeley \
566 --with-dbpath=/var/lib/sasl2/sasl.db \
567 %{?with_authlib:--with-authdaemond=/var/spool/authdaemon/socket} \
568 %{?with_ldap: --with-ldap=%{_prefix}} \
569 %{?with_ldap: --enable-ldapdb} \
570 %{?with_mysql: --with-mysql=%{_prefix}} \
571 %{?with_pgsql: --with-pgsql=%{_prefix}} \
572 %{?with_sqlite: --with-sqlite=%{_prefix}} \
573 %{?with_sqlite3: --with-sqlite3=%{_prefix}} \
574 %{?with_opie: --with-opie=%{_prefix}} \
576 %{?with_pwcheck: --with-pwcheck=/var/lib/sasl2} \
577 --with-saslauthd=/var/lib/sasl2
581 %{__make} -C saslauthd testsaslauthd
582 %{__make} -C saslauthd saslcache
583 %{__make} -C sample sample-client sample-server
586 RFCLIST=$(grep 'rfc.\+\.txt' rfc-compliance)
587 for i in $RFCLIST; do
588 RFCDIR=../RFC/text/`echo $i | sed -e 's:^rfc::' -e 's:..\.txt$::' `00
589 echo -e ',s:'$i':'$RFCDIR/$i'\n,w\nq' | ed index.html
593 rm -rf $RPM_BUILD_ROOT
594 install -d $RPM_BUILD_ROOT{%{_bindir},/var/lib/sasl2,%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
595 $RPM_BUILD_ROOT%{_mandir}/man8
598 sasldir=%{_libdir}/sasl2 \
599 DESTDIR=$RPM_BUILD_ROOT
601 %{__rm} $RPM_BUILD_ROOT%{_libdir}/sasl2/*.{la,a}
603 cp -a utils/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
604 cp -a saslauthd/saslauthd.mdoc $RPM_BUILD_ROOT%{_mandir}/man8/saslauthd.8
606 ln -sf libsasl2.so $RPM_BUILD_ROOT%{_libdir}/libsasl.so
608 touch $RPM_BUILD_ROOT/var/lib/sasl2/sasl.db
610 # create empty config
611 touch $RPM_BUILD_ROOT%{_sysconfdir}/saslauthd.conf
612 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/saslauthd
613 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/saslauthd
614 cp -a %{SOURCE3} cyrus.pam
616 install -p saslauthd/{testsaslauthd,saslcache} $RPM_BUILD_ROOT%{_sbindir}
618 # sample programs for testing sasl
619 libtool --mode=install cp sample/sample-client $RPM_BUILD_ROOT%{_bindir}/sasl-sample-client
620 libtool --mode=install cp sample/sample-server $RPM_BUILD_ROOT%{_bindir}/sasl-sample-server
623 touch $RPM_BUILD_ROOT/var/lib/sasl2/{cache.flock,cache.mmap,mux,mux.accept,saslauthd.pid}
625 install -d $RPM_BUILD_ROOT/etc/nagios/plugins
626 %{__sed} -e 's,@plugindir@,%{_libdir}/nagios/plugins,' %{SOURCE4} > $RPM_BUILD_ROOT/etc/nagios/plugins/check_saslauthd.cfg
629 rm -rf $RPM_BUILD_ROOT
631 %post libs -p /sbin/ldconfig
632 %postun libs -p /sbin/ldconfig
635 /sbin/chkconfig --add saslauthd
636 %service saslauthd restart
639 if [ "$1" = "0" ]; then
640 %service saslauthd stop
641 /sbin/chkconfig --del saslauthd
644 %triggerin saslauthd -- pam
645 # restart saslauthd if pam is upgraded
646 # (saslauth is linked with old libpam but tries to open modules linked with new libpam)
647 if [ "$2" != 1 ]; then
648 %service -q saslauthd restart
652 %defattr(644,root,root,755)
653 %doc AUTHORS COPYING ChangeLog NEWS README
654 %doc doc/{ONEWS,TODO,*.txt,*.html,*.fig,rfc-compliance}
656 %dir %{_libdir}/sasl2
657 # sample programs to subpackage instead?
658 %attr(755,root,root) %{_bindir}/sasl-sample-client
659 %attr(755,root,root) %{_bindir}/sasl-sample-server
660 %attr(755,root,root) %{_sbindir}/pluginviewer
661 %attr(755,root,root) %{_sbindir}/sasldblistusers2
662 %attr(755,root,root) %{_sbindir}/saslpasswd2
664 %attr(640,root,mail) %ghost %config(noreplace) %verify(not md5 mtime size) /var/lib/sasl2/sasl.db
665 %{_mandir}/man8/pluginviewer.8*
666 %{_mandir}/man8/sasldblistusers2.8*
667 %{_mandir}/man8/saslpasswd2.8*
670 %defattr(644,root,root,755)
671 %attr(755,root,root) %{_libdir}/libsasl2.so.*.*.*
672 %attr(755,root,root) %ghost %{_libdir}/libsasl2.so.3
675 %defattr(644,root,root,755)
676 %attr(755,root,root) %{_libdir}/libsasl2.so
677 %attr(755,root,root) %{_libdir}/libsasl.so
678 %{_libdir}/libsasl2.la
680 %{_pkgconfigdir}/libsasl2.pc
681 %{_mandir}/man3/sasl*.3*
684 %defattr(644,root,root,755)
685 %{_libdir}/libsasl2.a
688 %defattr(644,root,root,755)
689 %attr(755,root,root) %{_libdir}/sasl2/libanonymous.so*
693 %defattr(644,root,root,755)
694 %attr(755,root,root) %{_libdir}/sasl2/libgs2.so*
695 %attr(755,root,root) %{_libdir}/sasl2/libgssapiv2.so*
699 %defattr(644,root,root,755)
700 %attr(755,root,root) %{_libdir}/sasl2/libcrammd5.so*
703 %defattr(644,root,root,755)
704 %attr(755,root,root) %{_libdir}/sasl2/libdigestmd5.so*
707 %defattr(644,root,root,755)
708 %attr(755,root,root) %{_libdir}/sasl2/liblogin.so*
712 %defattr(644,root,root,755)
713 %attr(755,root,root) %{_libdir}/sasl2/libmysql.so*
717 %defattr(644,root,root,755)
718 %attr(755,root,root) %{_libdir}/sasl2/libotp.so*
722 %defattr(644,root,root,755)
723 %attr(755,root,root) %{_libdir}/sasl2/libpgsql.so*
727 %defattr(644,root,root,755)
728 %attr(755,root,root) %{_libdir}/sasl2/libplain.so*
731 %defattr(644,root,root,755)
732 %attr(755,root,root) %{_libdir}/sasl2/libsasldb.so*
736 %defattr(644,root,root,755)
737 %attr(755,root,root) %{_libdir}/sasl2/libldapdb.so*
741 %defattr(644,root,root,755)
742 %attr(755,root,root) %{_libdir}/sasl2/libpassdss.so*
745 %defattr(644,root,root,755)
746 %attr(755,root,root) %{_libdir}/sasl2/libscram.so*
750 %defattr(644,root,root,755)
751 %attr(755,root,root) %{_libdir}/sasl2/libsqlite.so*
756 %defattr(644,root,root,755)
757 %attr(755,root,root) %{_libdir}/sasl2/libsqlite3.so*
762 %defattr(644,root,root,755)
763 %attr(755,root,root) %{_libdir}/sasl2/libsrp.so*
768 %defattr(644,root,root,755)
769 %attr(755,root,root) %{_sbindir}/pwcheck
773 %defattr(644,root,root,755)
775 %doc saslauthd/{AUTHORS,LDAP_SASLAUTHD}
776 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/saslauthd.conf
777 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/saslauthd
778 %attr(755,root,root) %{_sbindir}/saslauthd
779 %attr(755,root,root) %{_sbindir}/testsaslauthd
780 %attr(755,root,root) %{_sbindir}/saslcache
781 %attr(754,root,root) /etc/rc.d/init.d/saslauthd
782 %ghost /var/lib/sasl2/cache.flock
783 %ghost /var/lib/sasl2/cache.mmap
784 %ghost /var/lib/sasl2/mux
785 %ghost /var/lib/sasl2/mux.accept
786 %ghost /var/lib/sasl2/saslauthd.pid
787 %{_mandir}/man8/saslauthd.8*
789 %files -n nagios-plugin-check_saslauthd
790 %defattr(644,root,root,755)
791 %config(noreplace) %verify(not md5 mtime size) /etc/nagios/plugins/check_saslauthd.cfg
792 %attr(755,root,root) %{_libdir}/nagios/plugins/check_saslauthd