-#
# TODO:
# - add ldap plugin from openldap sources
#
Summary(uk): â¦Â̦ÏÔÅËÁ Cyrus SASL
Name: cyrus-sasl
Version: 2.1.22
-Release: 1
+Release: 2
License: distributable
Group: Libraries
Source0: ftp://ftp.andrew.cmu.edu/pub/cyrus/%{name}-%{version}.tar.gz
%{?with_opie:BuildRequires: opie-devel}
BuildRequires: pam-devel
%{?with_pgsql:BuildRequires: postgresql-devel}
+BuildRequires: rpmbuild(macros) >= 1.268
%{?with_sqlite:BuildRequires: sqlite-devel}
Requires: pam >= 0.79.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Group: Daemons
Requires(post,preun): /sbin/chkconfig
Requires: %{name} = %{version}-%{release}
+Requires: /sbin/chkconfig
Requires: rc-scripts
%description saslauthd
%post saslauthd
/sbin/chkconfig --add saslauthd
-if [ -f /var/lock/subsys/saslauthd ]; then
- /etc/rc.d/init.d/saslauthd restart 1>&2
-else
- echo "Run \"/etc/rc.d/init.d/saslauthd start\" to start saslauthd."
-fi
+%service saslauthd restart
%preun saslauthd
if [ "$1" = "0" ]; then
- if [ -f /var/lock/subsys/saslauthd ]; then
- /etc/rc.d/init.d/saslauthd stop 1>&2
- fi
+ %service saslauthd stop
/sbin/chkconfig --del saslauthd
fi