]> git.pld-linux.org Git - packages/courier-imap.git/commitdiff
- fix post, preun sections, rel. 4 auto/ac/courier-imap-2_2_1-4
authorAndrzej Augustynowicz <andrzej@augustynowicz.eu.org>
Wed, 25 Feb 2004 00:24:39 +0000 (00:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    courier-imap.spec -> 1.104

courier-imap.spec

index aeb4193cea8746e2c4aaaae7280b49ca7c4c3bc2..ad67b438a5a53ca2b21d0cb580b0b3173340386a 100644 (file)
@@ -7,7 +7,7 @@ Summary:        Courier-IMAP server
 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
@@ -320,11 +320,13 @@ fi
 
 %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
@@ -340,13 +342,37 @@ fi
 
 %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
This page took 2.604595 seconds and 4 git commands to generate.