Summary: A lightweight caching nameserver
Summary(pl): Lekki buforuj±cy serwer nazw (DNS)
Name: dnsmasq
-Version: 2.7
+Version: 2.30
Release: 1
License: GPL
Group: Networking/Daemons
Source0: http://thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.gz
-# Source0-md5: f526e81e11627177e9949b72d5424f7a
+# 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)
connections.
%description -l pl
-Dnsmasq jest lekkim, ³atwym do konfiguracji forwarderem DNS
+Dnsmasq jest lekkim, ³atwym w konfiguracji forwarderem DNS
zaprojektowanym do serwowania us³ugi DNS dla ma³ych sieci, gdzie
u¿ywanie BIND by³oby przesad±. Zewnêtrzne serwery DNS mog± byæ
automatycznie konfigurowane przez PPP lub DHCP. Mo¿e on serwowaæ tak¿e
%build
%{__make} \
- CC=%{__cc} \
+ CC="%{__cc}" \
CFLAGS="%{rpmcflags}"
%install
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dnsmasq
install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/dnsmasq
install src/dnsmasq $RPM_BUILD_ROOT%{_sbindir}
-install dnsmasq.8 $RPM_BUILD_ROOT%{_mandir}/man8
+install man/dnsmasq.8 $RPM_BUILD_ROOT%{_mandir}/man8
+install dnsmasq.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/dnsmasq.conf
%clean
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
%doc CHANGELOG FAQ *.html
%attr(754,root,root) /etc/rc.d/init.d/dnsmasq
%attr(755,root,root) %{_sbindir}/dnsmasq
-%config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/dnsmasq
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dnsmasq
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnsmasq.conf
%{_mandir}/man8/*