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)
%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