Summary(pl): Serwer Courier-IMAP
Name: courier-imap
Version: 2.2.1
-Release: 3
+Release: 4
License: GPL
Group: Networking/Daemons
Source0: http://dl.sourceforge.net/courier/%{name}-%{version}.tar.bz2
%preun authldap
METHOD=plain
-. /etc/sysconfig/authdaemon
-if [ "$1" = "$0" -a "$METHOD" = "ldap" ]; then
- if [ -f /var/lock/subsys/authdaemon ]; then
- /etc/rc.d/init.d/authdaemon stop >&2
- fi
+if [ -e /etc/sysconfig/authdaemon ]; then
+ . /etc/sysconfig/authdaemon
+ if [ "$1" = "$0" -a "$METHOD" = "ldap" ]; then
+ if [ -f /var/lock/subsys/authdaemon ]; then
+ /etc/rc.d/init.d/authdaemon stop >&2
+ fi
+ fi
fi
%post authmysql
%preun authmysql
METHOD=plain
+if [ -e /etc/sysconfig/authdaemon ]; then
+ . /etc/sysconfig/authdaemon
+ if [ "$1" = "$0" -a "$METHOD" = "mysql" ]; then
+ if [ -f /var/lock/subsys/authdaemon ]; then
+ /etc/rc.d/init.d/authdaemon stop >&2
+ fi
+ fi
+fi
+
+%post authpgsql
+METHOD=plain
. /etc/sysconfig/authdaemon
-if [ "$1" = "$0" -a "$METHOD" = "mysql" ]; then
+if [ "$METHOD" = "pgsql" ]; then
if [ -f /var/lock/subsys/authdaemon ]; then
- /etc/rc.d/init.d/authdaemon stop >&2
+ /etc/rc.d/init.d/authdaemon restart >&2
+ else
+ echo "Run \"/etc/rc.d/init.d/authdaemon start\" to start courier-imap authdaemon."
fi
fi
+%preun authpgsql
+METHOD=plain
+if [ -e /etc/sysconfig/authdaemon ]; then
+ . /etc/sysconfig/authdaemon
+ if [ "$1" = "$0" -a "$METHOD" = "pgsql" ]; then
+ if [ -f /var/lock/subsys/authdaemon ]; then
+ /etc/rc.d/init.d/authdaemon stop >&2
+ fi
+ fi
+fi
+
%files
%defattr(644,root,root,755)
%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/pam.d/imap