Browse Source

postfix-3.1.0-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@10249 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 8 years ago
parent
commit
4979eac6d9
1 changed files with 17 additions and 7 deletions
  1. 17 7
      p/postfix/postfix-vl.spec

+ 17 - 7
p/postfix/postfix-vl.spec

@@ -28,7 +28,7 @@
 %define postfix_readme_dir      %{postfix_doc_dir}/README_FILES
 
 
-%define origversion 3.0.4
+%define origversion 3.1.0
 
 Summary:   Postfix Mail Transport Agent
 Summary(ja):   Postfix メールトランスポートエージェント
@@ -367,13 +367,10 @@ if [ ! -e %{_libdir}/sendmail ]; then
 fi
 /sbin/chkconfig --del sendmail &> /dev/null ||:
 %{_sbindir}/postfix check >/dev/null 2>&1 ||:
-if [ -f %{_var}/lock/subsys/postfix ]; then
-   %{_sysconfdir}/rc.d/init.d/postfix restart
-fi
 
 
 %preun
-if [ $1 = 0 ]; then
+if [ $1 -eq 0 ]; then
    if [ -f %{_var}/lock/subsys/postfix -a -f %{_sysconfdir}/rc.d/init.d/postfix ]; then
       %{_sysconfdir}/rc.d/init.d/postfix stop
    fi
@@ -383,12 +380,22 @@ fi
 
 %postun
 /sbin/ldconfig
-if [ $1 = 0 ]; then
-   if ! [ -f %{_var}/lock/subsys/postfix ]; then
+if [ -f %{_var}/lock/subsys/postfix ]; then
+   if [ $1 -eq 0 ]; then
         rm -rf %{_var}/lock/subsys/postfix
+   else
+        %{_sysconfdir}/rc.d/init.d/postfix restart
+   fi
+fi
+
+%triggerpostun -- postfix < 3.1.0
+if [ -f %{_var}/lock/subsys/postfix ]; then
+   if [ $2 -gt 0 ]; then
+        %{_sysconfdir}/rc.d/init.d/postfix restart
    fi
 fi
 
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -511,6 +518,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_sysconfdir}/postfix/postfix-files.d/pcre
 
 %changelog
+* Sun May  8 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.1.0-1
+- new upstream release.
+
 * Mon Mar 14 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.0.4-1
 - new upstream release.