[packages/postfix] - fix systemd macros usage - rel 2

baggins baggins at pld-linux.org
Tue Oct 29 07:44:31 CET 2013


commit def2e0f04c0ee4bb89027adb193bb2832a6467dd
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Oct 29 07:44:04 2013 +0100

    - fix systemd macros usage
    - rel 2

 postfix.spec | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/postfix.spec b/postfix.spec
index d5ff80e..d8a03fa 100644
--- a/postfix.spec
+++ b/postfix.spec
@@ -403,14 +403,14 @@ fi
 %{_bindir}/newaliases
 /sbin/chkconfig --add postfix
 %service postfix restart "Postfix Daemon"
-%systemd_post
+%systemd_post postfix.service
 
 %preun
 if [ "$1" = "0" ]; then
 	%service postfix stop
 	/sbin/chkconfig --del postfix
 fi
-%systemd_preun
+%systemd_preun postfix.service
 
 %postun
 /sbin/ldconfig
@@ -421,6 +421,9 @@ if [ "$1" = "0" ]; then
 fi
 %systemd_reload
 
+%triggerpostun -- postfix < 2:2.9.4-4
+%systemd_trigger postfix.service
+
 %files
 %defattr(644,root,root,755)
 %doc html COMPATIBILITY HISTORY LICENSE RELEASE_NOTES* TLS_*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/postfix.git/commitdiff/def2e0f04c0ee4bb89027adb193bb2832a6467dd



More information about the pld-cvs-commit mailing list