1 Summary: A lightweight caching nameserver
2 Summary(pl): Lekki buforuj±cy serwer nazw (DNS)
7 Group: Networking/Daemons
8 Source0: http://thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.gz
9 # Source0-md5: 57b8643dc394cf2fbd1bced64536c6df
11 Source2: %{name}.config
12 URL: http://www.thekelleys.org.uk/dnsmasq/doc.html
13 BuildRequires: gettext-devel
14 BuildRequires: rpmbuild(macros) >= 1.268
15 Requires(post,preun): /sbin/chkconfig
17 Provides: caching-nameserver
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server.
22 It is designed to provide DNS and, optionally, DHCP, to a small network. It
23 can serve the names of local machines which are not in the global DNS. The
24 DHCP server integrates with the DNS server and allows machines with
25 DHCP-allocated addresses to appear in the DNS with names configured either
26 in each host or in a central configuration file. Dnsmasq supports static and
27 dynamic DHCP leases and BOOTP for network booting of diskless machines.
29 Dnsmasq is targeted at home networks using NAT and connected to the internet
30 via a modem, cable-modem or ADSL connection but would be a good choice for
31 any small network where low resource use and ease of configuration are
35 Dnsmasq jest lekkim, ³atwym w konfiguracji forwarderem DNS
36 zaprojektowanym do serwowania us³ugi DNS dla ma³ych sieci, gdzie
37 u¿ywanie BIND by³oby przesad±. Zewnêtrzne serwery DNS mog± byæ
38 automatycznie konfigurowane przez PPP lub DHCP. Mo¿e on serwowaæ tak¿e
39 nazwy dla lokalnych maszyn nie znajduj±cych siê w globalnym DNS. Jest
40 idealny dla sieci za NAT i po³±czonych przez modem, ISDL, ADSL lub
49 CFLAGS="%{rpmcflags} -DHAVE_ISC_READER" \
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/sysconfig,/etc/rc.d/init.d,%{_mandir}/man8}
56 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dnsmasq
57 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/dnsmasq
58 install dnsmasq.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/dnsmasq.conf
60 %{__make} install-i18n \
61 DESTDIR=$RPM_BUILD_ROOT \
67 rm -rf $RPM_BUILD_ROOT
70 /sbin/chkconfig --add dnsmasq
71 %service dnsmasq restart
74 if [ "$1" = "0" ]; then
76 /sbin/chkconfig --del dnsmasq
79 %files -f %{name}.lang
80 %defattr(644,root,root,755)
81 %doc CHANGELOG FAQ *.html contrib/{dnslist,dynamic-dnsmasq,port-forward}
82 %attr(754,root,root) /etc/rc.d/init.d/dnsmasq
83 %attr(755,root,root) %{_sbindir}/dnsmasq
84 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dnsmasq
85 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnsmasq.conf
87 %lang(es) %{_mandir}/es/man8/*