]> git.pld-linux.org Git - packages/dnsmasq.git/blobdiff - dnsmasq.spec
- updated to 2.30
[packages/dnsmasq.git] / dnsmasq.spec
index d2cb59eb471539860f8517ce2cebf5ad213c5eab..788a500c1354f82086d8a0514b4020663dc8324b 100644 (file)
@@ -1,17 +1,18 @@
 Summary:       A lightweight caching nameserver
 Summary(pl):   Lekki buforuj±cy serwer nazw (DNS)
 Name:          dnsmasq
-Version:       2.25
+Version:       2.30
 Release:       1
 License:       GPL
 Group:         Networking/Daemons
 Source0:       http://thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.gz
-# Source0-md5: a5a387aed551acf91990567a5e8e4fa4
+# Source0-md5: 91db9ef2c63269debf7794783074b751
 Source1:       %{name}.init
 Source2:       %{name}.config
 URL:           http://www.thekelleys.org.uk/dnsmasq/
-PreReq:                rc-scripts
-Requires(post,postun): /sbin/chkconfig
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,preun):  /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.074808 seconds and 4 git commands to generate.