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 plugin
7 %bcond_without ntlm # do not build NTLM plugin
8 %bcond_without pgsql # do not build PostgreSQL plugin
9 %bcond_without sqlite # do not enable sqlite 2 plugin
10 %bcond_without sqlite3 # do not enable sqlite 3 plugin
11 %bcond_with authlib # enable courier-authlib (i wasn't able to test it)
12 %bcond_with opie # OTP plugin using opie library instead of internal code
13 %bcond_with srp # build srp plugin
14 %bcond_with pwcheck # build pwcheck helper (deprecated)
16 %if %{without mysql} && %{without pgsql}
17 %undefine with_cryptedpw
20 Summary: The SASL library API for the Cyrus mail system
21 Summary(pl.UTF-8): Biblioteka Cyrus SASL
22 Summary(pt_BR.UTF-8): Implementação da API SASL
23 Summary(ru.UTF-8): Библиотека Cyrus SASL
24 Summary(uk.UTF-8): Бібліотека Cyrus SASL
28 License: distributable
30 Source0: ftp://ftp.cyrusimap.org/cyrus-sasl/%{name}-%{version}.tar.gz
31 # Source0-md5: a7f4e5e559a0e37b3ffc438c9456e425
32 Source1: saslauthd.init
33 Source2: saslauthd.sysconfig
35 Source4: check_saslauthd.cfg
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
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
42 Patch5: %{name}-cryptedpw.patch
43 Patch6: %{name}-md5sum-passwords.patch
44 Patch7: %{name}-db.patch
45 Patch8: %{name}-keytab.patch
46 Patch9: %{name}-sizes.patch
47 Patch10: %{name}-nagios-plugin.patch
48 Patch11: %{name}-parallel-make.patch
49 Patch12: %{name}-gssapi-detect.patch
50 Patch13: %{name}-saslauthd-httpform-urlescape.patch
51 Patch14: %{name}-ac-libs.patch
52 Patch15: %{name}-pam.patch
53 Patch16: %{name}-gssapi_ext.patch
54 Patch17: 0032-revert_1.103_revision_to_unbreak_GSSAPI.patch
55 Patch18: 0033-fix_segfault_in_GSSAPI.patch
56 Patch19: 0034-fix_dovecot_authentication.patch
57 Patch20: %{name}-auxprop.patch
58 Patch21: 0030-dont_use_la_files_for_opening_plugins.patch
59 Patch22: %{name}-stddef.patch
60 Patch23: http://sourceforge.net/projects/miscellaneouspa/files/glibc217/cyrus-sasl-2.1.26-glibc217-crypt.diff
61 URL: http://asg.web.cmu.edu/sasl/
62 BuildRequires: autoconf >= 2.54
63 BuildRequires: automake >= 1:1.7
64 %{?with_authlib:BuildRequires: courier-authlib-devel}
65 BuildRequires: db-devel
68 %{?with_gssapi:BuildRequires: heimdal-devel}
69 BuildRequires: libtool >= 1.4
70 %{?with_mysql:BuildRequires: mysql-devel}
71 %{?with_ldap:BuildRequires: openldap-devel >= 2.3.0}
72 BuildRequires: openssl-devel >= 0.9.7d
73 %{?with_opie:BuildRequires: opie-devel}
74 BuildRequires: pam-devel
75 %{?with_pgsql:BuildRequires: postgresql-devel}
76 BuildRequires: rpmbuild(macros) >= 1.268
77 %{?with_sqlite:BuildRequires: sqlite-devel}
78 %{?with_sqlite3:BuildRequires: sqlite3-devel >= 3}
79 Requires: pam >= 0.79.0
80 Requires: %{name}-libs = %{version}-%{release}
81 Obsoletes: cyrus-sasl-x509 < %{version}
82 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
84 %define _sysconfdir /etc/sasl
86 %define specflags -fno-strict-aliasing
89 This is an implementation of the SASL API, useful for adding
90 authentication, authorization, and security to network protocols. The
91 SASL protocol itself is documented in rfc2222; the API standard is a
94 Note: remember to install appropriate plugins, or you won't have any
95 authentication mechanisms available.
97 %description -l pl.UTF-8
98 Pakiet cyrus-sasl zawiera implementację biblioteki API SASL dla
99 systemu poczty elektronicznej Cyrusa. Biblioteka ta jest przydatna
100 także do dodawania uwierzytelniania, autoryzacji oraz zwiększania
101 bezpieczeństwa protokołów sieciowych. Sam protokół SASL jest opisany w
102 RFC 2222; standaryzacja API jest w toku.
104 Uwaga: aby były dostępne jakiekolwiek mechanizmy autoryzacji, należy
105 doinstalować odpowiednie wtyczki.
107 %description -l pt_BR.UTF-8
108 Esta é uma implementação da API SASL, útil para acrescentar
109 autenticação, autorização e seguança (criptografia) para protocolos de
110 rede. O protocolo SASL está documentado na RFC 2222. A API "padrão"
111 ainda está em desenvolvimento.
113 %description -l ru.UTF-8
114 Пакет cyrus-sasl содержит реализацию Cyrus SASL. SASL - это Simple
115 Authentication and Security Layer, метод для добавления поддержки
116 аутентикации к протоколам, основанным на соединениях.
118 %description -l uk.UTF-8
119 Пакет cyrus-sasl містить реалізацію Cyrus SASL. SASL - це Simple
120 Authentication and Security Layer, метод для додання підтримки
121 аутентикації до протоколів, базованих на з'єднаннях.
124 Summary: cyrus-sasl library itself
125 Summary(pl.UTF-8): Sama biblioteka cyrus-sasl
127 Requires(post,postun): /sbin/ldconfig
128 Conflicts: cyrus-sasl < 2.1.23-8
131 cyrus-sasl library itself.
133 %description libs -l pl.UTF-8
134 Sama biblioteka cyrus-sasl.
137 Summary: Header files and documentation for cyrus-sasl
138 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja dla cyrus-sasl
139 Summary(pt_BR.UTF-8): Exemplos e arquivos para desenvolvimento com SASL
140 Summary(ru.UTF-8): Файлы для программирования с библиотекой Cyrus SASL
141 Summary(uk.UTF-8): Файли для програмування з бібліотекою Cyrus SASL
142 Group: Development/Libraries
143 Requires: %{name} = %{version}-%{release}
146 This includes the header files and documentation needed to develop
147 applications which use SASL.
149 %description devel -l pl.UTF-8
150 Pliki nagłówkowe i dokumentacja dla cyrus-sasl.
152 %description devel -l pt_BR.UTF-8
153 Este pacote inclui os arquivos de cabeçalho e documentação necessários
154 para desenvolver aplicativos que usem SASL.
156 %description devel -l ru.UTF-8
157 Хедеры и библиотеки, необходимые для разработки приложений,
158 использующих Cyrus SASL.
160 %description devel -l uk.UTF-8
161 Хедери та бібліотеки, необхідні для розробки програм, що
162 використовують Cyrus SASL.
165 Summary: Static cyrus-sasl libraries
166 Summary(pl.UTF-8): Statyczne biblioteki cyrus-sasl
167 Summary(ru.UTF-8): Статические библиотеки Cyrus SASL
168 Summary(uk.UTF-8): Статичні бібліотеки Cyrus SASL
169 Group: Development/Libraries
170 Requires: %{name}-devel = %{version}-%{release}
173 Static cyrus-sasl libraries.
175 %description static -l pl.UTF-8
176 Statyczne biblioteki cyrus-sasl.
178 %description static -l ru.UTF-8
179 Статические библиотеки, необходимые для разработки приложений,
180 использующих Cyrus SASL.
182 %description static -l uk.UTF-8
183 Статичні бібліотеки, необхідні для розробки програм, що використовують
187 Summary: Anonymous Cyrus SASL plugin
188 Summary(pl.UTF-8): Wtyczka anonymous do Cyrus SASL
189 Summary(pt_BR.UTF-8): Mecanismo SASL ANONYMOUS
191 Requires: %{name} = %{version}-%{release}
193 %description anonymous
194 This plugin implements the SASL ANONYMOUS mechanism, used for
195 anonymous authentication.
197 %description anonymous -l pl.UTF-8
198 Wtyczka dodająca obsługę mechanizmu ANONYMOUS do Cyrus SASL. Służy do
199 anonimowego uwierzytelniania.
201 %description anonymous -l pt_BR.UTF-8
202 Este plugin implementa o mecanismo SASL ANONYMOUS, usado para
203 autenticação anônima.
206 Summary: Cram-MD5 Cyrus SASL plugin
207 Summary(pl.UTF-8): Wtyczka Cram-MD5 do Cyrus SASL
208 Summary(pt_BR.UTF-8): Mecanismo SASL CRAM-MD5
210 Requires: %{name} = %{version}-%{release}
212 %description cram-md5
213 This plugin implements the SASL CRAM-MD5 mechanism. CRAM-MD5 is the
214 mandatory-to-implement authentication mechanism for a number of
215 protocols; it uses MD5 with a challenge/response system to
216 authenticate the user.
218 %description cram-md5 -l pl.UTF-8
219 Wtyczka dodająca obsługę mechanizmu CRAM-MD5 do Cyrus SASL. CRAM-MD5
220 jest obowiązkowym do zaimplementowania mechanizmem uwierzytelniania
221 dla wielu protokołów; do uwierzytelnienia użytkownika używa MD5 wraz z
222 systemem challenge/response.
224 %description cram-md5 -l pt_BR.UTF-8
225 Este plugin implementa o mecanismo SASL CRAM-MD5. CRAM-MD5 é o
226 mecanismo de autenticação obrigatório de ser implementado para vários
227 protocolos: ele usa MD5 com um sistema de desafio/resposta para
228 autenticar o usuário.
231 Summary: Digest-MD5 Cyrus SASL plugin
232 Summary(pl.UTF-8): Wtyczka Digest-MD5 do Cyrus SASL
233 Summary(pt_BR.UTF-8): Mecanismo SASL DIGEST-MD5
235 Requires: %{name} = %{version}-%{release}
237 %description digest-md5
238 This plugin implements the latest draft of the SASL DIGEST-MD5
239 mechanism. Although not yet finalized, this is likely to become the
240 new mandatory-to-implement authentication system in all new protocols.
241 It's based on the digest md5 authentication system designed for HTTP.
243 %description digest-md5 -l pl.UTF-8
244 Wtyczka dodająca najnowszą wersję mechanizmu DIGEST-MD5 do Cyrus SASL.
245 Pomimo tego, że nie jest jeszcze ukończony, najprawdopodobniej stanie
246 się obowiązkowym do zaimplementowania systemem uwierzytelniania we
247 wszystkich nowych protokołach. Bazuje na systemie uwierzytelniania
248 Digest-MD5 zaprojektowanym dla HTTP.
250 %description digest-md5 -l pt_BR.UTF-8
251 Este plugin implementa a última versão da especificação do mecanismo
252 SASL DIGEST-MD5. Embora ainda não esteja finalizado, DIGEST-MD5
253 provavelmente será o novo sistema de autenticação obrigatório para
254 protocolos novos. Ele é baseado na autenticação md5 digest
255 desenvolvida para HTTP.
258 Summary: GSSAPI Cyrus SASL plugin
259 Summary(pl.UTF-8): Wtyczka GSSAPI do Cyrus SASL
260 Summary(pt_BR.UTF-8): Mecanismo SASL GSSAPI
262 Requires: %{name} = %{version}-%{release}
265 This plugin implements the SASL GSSAPI mechanism, used for
266 GSSAPI/Kerberos5 authentication.
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.
272 %description gssapi -l pt_BR.UTF-8
273 Este plugin implementa o mecanismo SASL GSSAPI, usado para
274 autenticação Kerberos/GSSAPI.
277 Summary: Unsupported Login Cyrus SASL plugin
278 Summary(pl.UTF-8): Nie wspierana wtyczka Login do Cyrus SASL
280 Requires: %{name} = %{version}-%{release}
283 Unsupported LOGIN Cyrus SASL plugin.
285 %description login -l pl.UTF-8
286 Wtyczka dodająca obsługę nie wspieranego mechanizmu LOGIN do Cyrus
290 Summary: Cyrus SASL MySQL plugin
291 Summary(pl.UTF-8): Wtyczka MySQL do Cyrus SASL
293 Requires: %{name} = %{version}-%{release}
296 Cyrus SASL MySQL plugin.
298 %description mysql -l pl.UTF-8
299 Wtyczka MySQL do Cyrus SASL.
302 Summary: Cyrus SASL NTLM plugin
303 Summary(pl.UTF-8): Wtyczka NTLM do Cyrus SASL
305 Requires: %{name} = %{version}-%{release}
308 Cyrus SASL NTLM plugin.
310 %description ntlm -l pl.UTF-8
311 Wtyczka NTLM do Cyrus SASL.
314 Summary: OTP Cyrus SASL plugin
315 Summary(pl.UTF-8): Wtyczka OTP do Cyrus SASL
316 Summary(pt_BR.UTF-8): Mecanismo SASL OTP
318 Requires: %{name} = %{version}-%{release}
319 Obsoletes: cyrus-sasl-opie < %{version}
322 This plugin implements the SASL OTP (One Time Password) mechanism.
324 %description otp -l pl.UTF-8
325 Wtyczka dodająca obsługę mechanizmu OTP (hasła jednorazowe) do Cyrus
329 Summary: Cyrus SASL PostgreSQL plugin
330 Summary(pl.UTF-8): Wtyczka PostgreSQL do Cyrus SASL
332 Requires: %{name} = %{version}-%{release}
335 Cyrus SASL PostgreSQL plugin.
337 %description pgsql -l pl.UTF-8
338 Wtyczka PostgreSQL do Cyrus SASL.
341 Summary: Plain Cyrus SASL plugin
342 Summary(pl.UTF-8): Wtyczka plain do Cyrus SASL
343 Summary(pt_BR.UTF-8): Mecanismo SASL PLAIN
345 Requires: %{name} = %{version}-%{release}
348 This plugin implements the SASL PLAIN mechanism. Although insecure,
349 PLAIN is useful for transitioning to new security mechanisms, as this
350 is the only mechanism which gives the server a copy of the user's
353 %description plain -l pl.UTF-8
354 Wtyczka dodająca obsługę mechanizmu PLAIN do Cyrus SASL. Pomimo tego,
355 że nie jest bezpieczny, PLAIN jest przydatny przy przechodzeniu na
356 nowe mechanizmu bezpieczeństwa, jako że jest to jedyny mechanizm,
357 który udostępnia serwerowi kopię hasła użytkownika.
359 %description plain -l pt_BR.UTF-8
360 Este plugin implementa o mecanismo SASL PLAIN. Embora inseguro, este
361 mecanismo é útil durante transições para novos mecanismos de
362 segurança, pois é o único esquema que fornece uma cópia da senha do
363 usuário para o servidor.
366 Summary: Cyrus SASL sasldb plugin
367 Summary(pl.UTF-8): Wtyczka sasldb do Cyrus SASL
369 Requires: %{name} = %{version}-%{release}
372 Cyrus SASL sasldb plugin.
374 %description sasldb -l pl.UTF-8
375 Wtyczka sasldb do Cyrus SASL.
378 Summary: Cyrus SASL LDAPDB plugin
379 Summary(pl.UTF-8): Wtyczka LDAPDB do Cyrus SASL
381 Requires: %{name} = %{version}-%{release}
384 Cyrus SASL ldapdb plugin.
386 %description ldapdb -l pl.UTF-8
387 Wtyczka ldapdb do Cyrus SASL.
390 Summary: PASSDSS Cyrus SASL plugin
391 Summary(pl.UTF-8): Wtyczka PASSDSS do Cyrus SASL
392 Summary(pt_BR.UTF-8): Mecanismo SASL PASSDSS
394 Requires: %{name} = %{version}-%{release}
397 This plugin implements the PASSDSS 3DES mechanism.
399 %description passdss -l pl.UTF-8
400 Wtyczka dodająca obsługę mechanizmu PASSDSS 3DES do Cyrus SASL.
402 %description passdss -l pt_BR.UTF-8
403 Este plugin implementa o mecanismo SASL PASSDSS 3DES.
406 Summary: SCRAM Cyrus SASL plugin
407 Summary(pl.UTF-8): Wtyczka SCRAM do Cyrus SASL
408 Summary(pt_BR.UTF-8): Mecanismo SASL SCRAM
410 Requires: %{name} = %{version}-%{release}
413 This plugin implements the SASL SCRAM-MD5 mechanism.
415 %description scram -l pl.UTF-8
416 Wtyczka dodająca obsługę mechanizmu SCRAM do Cyrus SASL.
418 %description scram -l pt_BR.UTF-8
419 Este plugin implementa o mecanismo SASL SCRAM.
422 Summary: Cyrus SQLite 2 PostgreSQL plugin
423 Summary(pl.UTF-8): Wtyczka SQLite 2 do Cyrus SASL
425 Requires: %{name} = %{version}-%{release}
428 Cyrus SASL SQLite 2 plugin.
430 %description sqlite -l pl.UTF-8
431 Wtyczka SQLite 2 do Cyrus SASL.
434 Summary: Cyrus SQLite 3 PostgreSQL plugin
435 Summary(pl.UTF-8): Wtyczka SQLite 3 do Cyrus SASL
437 Requires: %{name} = %{version}-%{release}
440 Cyrus SASL SQLite 3 plugin.
442 %description sqlite3 -l pl.UTF-8
443 Wtyczka SQLite 3 do Cyrus SASL.
446 Summary: SRP Cyrus SASL plugin
447 Summary(pl.UTF-8): Wtyczka SRP do Cyrus SASL
448 Summary(pt_BR.UTF-8): Mecanismo SASL SRP
450 Requires: %{name} = %{version}-%{release}
453 This plugin implements the SASL SRP mechanism, based on the Secure
454 Remote Password protocol. This mechanism performs mutual
455 authentication and can provide a security layer with replay detection,
456 integrity protection and/or condifentiality protection.
458 %description srp -l pl.UTF-8
459 Wtyczka dodająca obsługę mechanizmu SRP do Cyrus SASL. Bazuje na
460 protokole Secure Remote Password. Ten mechanizm dokonuje wzajemnego
461 uwierzytelnienia i może dodawać warstwę bezpieczeństwa z wykrywaniem
462 powtarzania, zabezpieczeniem integralności i/lub poufności.
464 %description srp -l pt_BR.UTF-8
465 Este plugin implementa o mecanismo SASL SRP, baseado no protocolo SRP
466 (Secure Remote Password). Este mecanismo oferece autenticação mútua
467 (do cliente e do servidor) e pode prover uma camada de segurança com
468 detecção de ataques de replay, garantia de integridade e/ou
472 Summary: Cyrus SASL pwcheck helper
473 Summary(pl.UTF-8): Program pomocniczy pwcheck do Cyrus SASL
475 Requires: %{name} = %{version}-%{release}
478 Cyrus SASL pwcheck helper.
480 %description pwcheck -l pl.UTF-8
481 Program pomocniczy pwcheck do Cyrus SASL.
484 Summary: Cyrus SASL authd
485 Summary(pl.UTF-8): Demon authd do Cyrus SASL
487 Requires(post,preun): /sbin/chkconfig
488 Requires: %{name} = %{version}-%{release}
489 Requires: /sbin/chkconfig
492 %description saslauthd
495 %description saslauthd -l pl.UTF-8
496 Demon authd do Cyrus SASL.
498 %package -n nagios-plugin-check_saslauthd
499 Summary: Nagios plugin to check health of saslauthd
500 Summary(pl.UTF-8): Wtyczka Nagiosa do sprawdzania działania saslauthd
502 Requires: nagios-core
504 %description -n nagios-plugin-check_saslauthd
505 Nagios plugin to check health of saslauthd.
507 %description -n nagios-plugin-check_saslauthd -l pl.UTF-8
508 Wtyczka Nagiosa do sprawdzania działania saslauthd.
517 %if %{with cryptedpw}
540 echo "cyrus-sasl complies with the following RFCs:" > rfc-compliance
541 ls rfc*.txt >> rfc-compliance
546 %{__rm} config/libtool.m4
548 # update to our paths
550 s,/usr/local/etc/saslauthd.conf,%{_sysconfdir}/saslauthd.conf,g
551 s,/etc/saslauthd.conf,%{_sysconfdir}/saslauthd.conf,g
552 s,/var/run/saslauthd/mux,/var/lib/sasl2/mux,g
553 s,/var/state/saslauthd,/var/lib/sasl2,g
554 ' saslauthd/saslauthd.8 saslauthd/saslauthd.mdoc saslauthd/LDAP_SASLAUTHD doc/sysadmin.html
558 %{__aclocal} -I cmulocal -I config
563 %{__aclocal} -I ../cmulocal -I ../config
569 %{?with_cryptedpw: LDFLAGS=-lcrypt} \
571 %{!?with_gssapi:--disable-gssapi} \
572 %{?with_gssapi:--enable-gssapi --with-gss_impl=heimdal} \
578 %{?with_srp:--enable-srp} \
580 --with-plugindir=%{_libdir}/sasl2 \
581 --with-configdir=%{_sysconfdir} \
582 --with-dblib=berkeley \
583 --with-dbpath=/var/lib/sasl2/sasl.db \
584 %{?with_authlib:--with-authdaemond=/var/spool/authdaemon/socket} \
585 %{?with_ldap:--with-ldap=%{_prefix}} \
586 %{?with_ldap:--enable-ldapdb} \
587 %{?with_mysql:--with-mysql=%{_prefix}} \
588 %{?with_ntlm:--enable-ntlm} \
589 %{?with_pgsql:--with-pgsql=%{_prefix}} \
590 %{?with_sqlite:--with-sqlite=%{_prefix}} \
591 %{?with_sqlite3:--with-sqlite3=%{_prefix}} \
592 %{?with_opie:--with-opie=%{_prefix}} \
594 %{?with_pwcheck:--with-pwcheck=/var/lib/sasl2} \
595 --with-saslauthd=/var/lib/sasl2
599 %{__make} -C saslauthd testsaslauthd
600 %{__make} -C saslauthd saslcache
601 %{__make} -C sample sample-client sample-server
604 RFCLIST=$(grep 'rfc.\+\.txt' rfc-compliance)
605 for i in $RFCLIST; do
606 RFCDIR=../RFC/text/`echo $i | sed -e 's:^rfc::' -e 's:..\.txt$::' `00
607 echo -e ',s:'$i':'$RFCDIR/$i'\n,w\nq' | ed index.html
611 rm -rf $RPM_BUILD_ROOT
612 install -d $RPM_BUILD_ROOT{%{_bindir},/var/lib/sasl2,%{_sysconfdir},/etc/{rc.d/init.d,sysconfig}} \
613 $RPM_BUILD_ROOT%{_mandir}/man8
616 sasldir=%{_libdir}/sasl2 \
617 DESTDIR=$RPM_BUILD_ROOT
619 %{__rm} $RPM_BUILD_ROOT%{_libdir}/sasl2/*.{la,a}
621 cp -a utils/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
622 cp -a saslauthd/saslauthd.mdoc $RPM_BUILD_ROOT%{_mandir}/man8/saslauthd.8
624 ln -sf libsasl2.so $RPM_BUILD_ROOT%{_libdir}/libsasl.so
626 touch $RPM_BUILD_ROOT/var/lib/sasl2/sasl.db
628 # create empty config
629 touch $RPM_BUILD_ROOT%{_sysconfdir}/saslauthd.conf
630 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/saslauthd
631 cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/saslauthd
632 cp -a %{SOURCE3} cyrus.pam
634 install -p saslauthd/{testsaslauthd,saslcache} $RPM_BUILD_ROOT%{_sbindir}
636 # sample programs for testing sasl
637 libtool --mode=install cp sample/sample-client $RPM_BUILD_ROOT%{_bindir}/sasl-sample-client
638 libtool --mode=install cp sample/sample-server $RPM_BUILD_ROOT%{_bindir}/sasl-sample-server
641 touch $RPM_BUILD_ROOT/var/lib/sasl2/{cache.flock,cache.mmap,mux,mux.accept,saslauthd.pid}
643 install -d $RPM_BUILD_ROOT/etc/nagios/plugins
644 %{__sed} -e 's,@plugindir@,%{_libdir}/nagios/plugins,' %{SOURCE4} > $RPM_BUILD_ROOT/etc/nagios/plugins/check_saslauthd.cfg
647 rm -rf $RPM_BUILD_ROOT
649 %post libs -p /sbin/ldconfig
650 %postun libs -p /sbin/ldconfig
653 /sbin/chkconfig --add saslauthd
654 %service saslauthd restart
657 if [ "$1" = "0" ]; then
658 %service saslauthd stop
659 /sbin/chkconfig --del saslauthd
662 %triggerin saslauthd -- pam
663 # restart saslauthd if pam is upgraded
664 # (saslauth is linked with old libpam but tries to open modules linked with new libpam)
665 if [ "$2" != 1 ]; then
666 %service -q saslauthd restart
670 %defattr(644,root,root,755)
671 %doc AUTHORS COPYING ChangeLog NEWS README
672 %doc doc/{ONEWS,TODO,*.txt,*.html,*.fig,rfc-compliance}
674 %dir %{_libdir}/sasl2
675 # sample programs to subpackage instead?
676 %attr(755,root,root) %{_bindir}/sasl-sample-client
677 %attr(755,root,root) %{_bindir}/sasl-sample-server
678 %attr(755,root,root) %{_sbindir}/pluginviewer
679 %attr(755,root,root) %{_sbindir}/sasldblistusers2
680 %attr(755,root,root) %{_sbindir}/saslpasswd2
682 %attr(640,root,mail) %ghost %config(noreplace) %verify(not md5 mtime size) /var/lib/sasl2/sasl.db
683 %{_mandir}/man8/pluginviewer.8*
684 %{_mandir}/man8/sasldblistusers2.8*
685 %{_mandir}/man8/saslpasswd2.8*
688 %defattr(644,root,root,755)
689 %attr(755,root,root) %{_libdir}/libsasl2.so.*.*.*
690 %attr(755,root,root) %ghost %{_libdir}/libsasl2.so.3
693 %defattr(644,root,root,755)
694 %attr(755,root,root) %{_libdir}/libsasl2.so
695 %attr(755,root,root) %{_libdir}/libsasl.so
696 %{_libdir}/libsasl2.la
698 %{_pkgconfigdir}/libsasl2.pc
699 %{_mandir}/man3/sasl*.3*
702 %defattr(644,root,root,755)
703 %{_libdir}/libsasl2.a
706 %defattr(644,root,root,755)
707 %attr(755,root,root) %{_libdir}/sasl2/libanonymous.so*
711 %defattr(644,root,root,755)
712 %attr(755,root,root) %{_libdir}/sasl2/libgs2.so*
713 %attr(755,root,root) %{_libdir}/sasl2/libgssapiv2.so*
717 %defattr(644,root,root,755)
718 %attr(755,root,root) %{_libdir}/sasl2/libcrammd5.so*
721 %defattr(644,root,root,755)
722 %attr(755,root,root) %{_libdir}/sasl2/libdigestmd5.so*
725 %defattr(644,root,root,755)
726 %attr(755,root,root) %{_libdir}/sasl2/liblogin.so*
730 %defattr(644,root,root,755)
731 %attr(755,root,root) %{_libdir}/sasl2/libmysql.so*
736 %defattr(644,root,root,755)
737 %attr(755,root,root) %{_libdir}/sasl2/libntlm.so*
741 %defattr(644,root,root,755)
742 %attr(755,root,root) %{_libdir}/sasl2/libotp.so*
746 %defattr(644,root,root,755)
747 %attr(755,root,root) %{_libdir}/sasl2/libpgsql.so*
751 %defattr(644,root,root,755)
752 %attr(755,root,root) %{_libdir}/sasl2/libplain.so*
755 %defattr(644,root,root,755)
756 %attr(755,root,root) %{_libdir}/sasl2/libsasldb.so*
760 %defattr(644,root,root,755)
761 %attr(755,root,root) %{_libdir}/sasl2/libldapdb.so*
765 %defattr(644,root,root,755)
766 %attr(755,root,root) %{_libdir}/sasl2/libpassdss.so*
769 %defattr(644,root,root,755)
770 %attr(755,root,root) %{_libdir}/sasl2/libscram.so*
774 %defattr(644,root,root,755)
775 %attr(755,root,root) %{_libdir}/sasl2/libsqlite.so*
780 %defattr(644,root,root,755)
781 %attr(755,root,root) %{_libdir}/sasl2/libsqlite3.so*
786 %defattr(644,root,root,755)
787 %attr(755,root,root) %{_libdir}/sasl2/libsrp.so*
792 %defattr(644,root,root,755)
793 %attr(755,root,root) %{_sbindir}/pwcheck
797 %defattr(644,root,root,755)
799 %doc saslauthd/{AUTHORS,LDAP_SASLAUTHD}
800 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/saslauthd.conf
801 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/saslauthd
802 %attr(755,root,root) %{_sbindir}/saslauthd
803 %attr(755,root,root) %{_sbindir}/testsaslauthd
804 %attr(755,root,root) %{_sbindir}/saslcache
805 %attr(754,root,root) /etc/rc.d/init.d/saslauthd
806 %ghost /var/lib/sasl2/cache.flock
807 %ghost /var/lib/sasl2/cache.mmap
808 %ghost /var/lib/sasl2/mux
809 %ghost /var/lib/sasl2/mux.accept
810 %ghost /var/lib/sasl2/saslauthd.pid
811 %{_mandir}/man8/saslauthd.8*
813 %files -n nagios-plugin-check_saslauthd
814 %defattr(644,root,root,755)
815 %config(noreplace) %verify(not md5 mtime size) /etc/nagios/plugins/check_saslauthd.cfg
816 %attr(755,root,root) %{_libdir}/nagios/plugins/check_saslauthd