]> git.pld-linux.org Git - packages/dovecot.git/commitdiff
- use %service macro auto/th/dovecot-2_0_6-3
authorpawelz <pawelz@pld-linux.org>
Sun, 31 Oct 2010 00:17:46 +0000 (00:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- dropped TODO (done)
- rel 3

Changed files:
    dovecot.spec -> 1.170

dovecot.spec

index 1e8b8a0d73e7874e4ca29c14697e39caf2a627c5..86cfc8dae7bc4f4da9131f54438888e46e1f252e 100644 (file)
@@ -1,5 +1,3 @@
-# TODO:
-# - use service macros
 #
 # Conditional build:
 %bcond_without gssapi  # without GSSAPI support
@@ -13,7 +11,7 @@ Summary:      IMAP and POP3 server written with security primarily in mind
 Summary(pl.UTF-8):     Serwer IMAP i POP3 pisany głównie z myślą o bezpieczeństwie
 Name:          dovecot
 Version:       2.0.6
-Release:       2
+Release:       3
 Epoch:         1
 License:       MIT (libraries), LGPL v2.1 (the rest)
 Group:         Networking/Daemons
@@ -209,17 +207,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add dovecot
-if [ -f /var/lock/subsys/dovecot ]; then
-       /etc/rc.d/init.d/dovecot restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/dovecot start\" to start dovecot daemon."
-fi
+%service sshd reload "dovecot"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/dovecot ]; then
-               /etc/rc.d/init.d/dovecot stop >&2
-       fi
+       %service dovecot stop
        /sbin/chkconfig --del dovecot
 fi
 
This page took 0.029853 seconds and 4 git commands to generate.