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: d1f593a8352db1d6ad3dccc9b775295d
11 Source2: %{name}.config
12 Patch0: %{name}-sh.patch
13 URL: http://www.thekelleys.org.uk/dnsmasq/
14 BuildRequires: gettext-devel
15 BuildRequires: rpmbuild(macros) >= 1.268
16 Requires(post,preun): /sbin/chkconfig
18 Provides: caching-nameserver
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Dnsmasq is lightweight, easy to configure DNS forwarder designed to
23 provide DNS (domain name) services to a small network where using BIND
24 would be overkill. It can be have its DNS servers automatically
25 configured by PPP or DHCP, and it can serve the names of local
26 machines which are not in the global DNS. It is ideal for networks
27 behind NAT routers and connected via modem, ISDN, ADSL, or cable-modem
31 Dnsmasq jest lekkim, ³atwym w konfiguracji forwarderem DNS
32 zaprojektowanym do serwowania us³ugi DNS dla ma³ych sieci, gdzie
33 u¿ywanie BIND by³oby przesad±. Zewnêtrzne serwery DNS mog± byæ
34 automatycznie konfigurowane przez PPP lub DHCP. Mo¿e on serwowaæ tak¿e
35 nazwy dla lokalnych maszyn nie znajduj±cych siê w globalnym DNS. Jest
36 idealny dla sieci za NAT i po³±czonych przez modem, ISDL, ADSL lub
46 CFLAGS="%{rpmcflags} -DHAVE_ISC_READER" \
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/sysconfig,/etc/rc.d/init.d,%{_mandir}/man8}
53 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dnsmasq
54 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/dnsmasq
55 install dnsmasq.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/dnsmasq.conf
57 %{__make} install-i18n \
58 DESTDIR=$RPM_BUILD_ROOT \
64 rm -rf $RPM_BUILD_ROOT
67 /sbin/chkconfig --add dnsmasq
68 %service dnsmasq restart
71 if [ "$1" = "0" ]; then
73 /sbin/chkconfig --del dnsmasq
76 %files -f %{name}.lang
77 %defattr(644,root,root,755)
78 %doc CHANGELOG FAQ *.html
79 %attr(754,root,root) /etc/rc.d/init.d/dnsmasq
80 %attr(755,root,root) %{_sbindir}/dnsmasq
81 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dnsmasq
82 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnsmasq.conf