]> git.pld-linux.org Git - packages/dnsmasq.git/commitdiff
- use %service
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 24 Feb 2006 15:35:49 +0000 (15:35 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dnsmasq.spec -> 1.47

dnsmasq.spec

index d2cb59eb471539860f8517ce2cebf5ad213c5eab..475cb2c0560b3a81011f86334e97c5765c99dcf9 100644 (file)
@@ -10,8 +10,9 @@ Source0:      http://thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.gz
 Source1:       %{name}.init
 Source2:       %{name}.config
 URL:           http://www.thekelleys.org.uk/dnsmasq/
-PreReq:                rc-scripts
+BuildRequires: rpmbuild(macros) >= 1.268
 Requires(post,postun): /sbin/chkconfig
+Requires:      rc-scripts
 Provides:      caching-nameserver
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -56,17 +57,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add dnsmasq
-if [ -f %{_localstatedir}/lock/subsys/dnsmasq ]; then
-       /etc/rc.d/init.d/dnsmasq restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/dnsmasq start\" to start dnsmasq." >&2
-fi
+%service dnsmasq restart
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f %{_localstatedir}/lock/subsys/dnsmasq ]; then
-               /etc/rc.d/init.d/dnsmasq stop
-       fi
+       %service dnsmasq stop
        /sbin/chkconfig --del dnsmasq
 fi
 
This page took 0.103588 seconds and 4 git commands to generate.