]> git.pld-linux.org Git - packages/postfix.git/commitdiff
- use %service, adapterized
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 12 Mar 2006 22:45:47 +0000 (22:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    postfix.spec -> 1.249

postfix.spec

index 526efd0dcaea9bc8c540c7d1e5b0c163d5a55c23..6faab67fc49fa7a5743210ce9e05900654e800e8 100644 (file)
@@ -24,8 +24,8 @@ Name:         postfix
 Version:       2.2.5
 Release:       4.1
 Epoch:         2
-Group:         Networking/Daemons
 License:       distributable
+Group:         Networking/Daemons
 Source0:       ftp://ftp.porcupine.org/mirrors/postfix-release/official/%{name}-%{version}.tar.gz
 # Source0-md5: 9c13d58494c64012bfd8ab0d6967305c
 Source1:       %{name}.aliases
@@ -59,7 +59,7 @@ BuildRequires:        grep
 %{?with_ssl:BuildRequires:     openssl-devel >= 0.9.7d}
 BuildRequires: pcre-devel
 %{?with_pgsql:BuildRequires:   postgresql-devel}
-BuildRequires: rpmbuild(macros) >= 1.202
+BuildRequires: rpmbuild(macros) >= 1.268
 %{?with_cdb:BuildRequires:     tinycdb-devel}
 Requires(post):        /bin/hostname
 Requires(post,postun): /sbin/ldconfig
@@ -307,17 +307,11 @@ fi
 
 newaliases
 /sbin/chkconfig --add postfix
-if [ -f /var/lock/subsys/postfix ]; then
-       /etc/rc.d/init.d/postfix restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/postfix start\" to start postfix daemon." >&2
-fi
+%service postfix restart "postfix daemon"
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/postfix ]; then
-               /etc/rc.d/init.d/postfix stop >&2
-       fi
+       %service postfix stop
        /sbin/chkconfig --del postfix
 fi
 
This page took 0.13225 seconds and 4 git commands to generate.