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
10 Source2: %{name}.config
11 Patch0: %{name}-cc.patch
12 URL: http://www.thekelleys.org.uk/dnsmasq/
13 PreReq: /sbin/chkconfig
14 Provides: caching-nameserver
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Dnsmasq is lightweight, easy to configure DNS forwarder designed to
19 provide DNS (domain name) services to a small network where using BIND
20 would be overkill. It can be have its DNS servers automatically
21 configured by PPP or DHCP, and it can serve the names of local
22 machines which are not in the global DNS. It is ideal for networks
23 behind NAT routers and connected via modem, ISDN, ADSL, or cable-modem
27 Dnsmasq jest lekkim, ³atwym do konfiguracji forwarderem DNS
28 zaprojektowanym do serwowania us³ugi DNS dla ma³ych sieci, gdzie u¿ywanie
29 BIND by³o by przesad±. Zewnêtrzne serwery DNS mog± byæ automatycznie
30 konfigurowane przez PPP lub DHCP. Mo¿e on serwowaæ tak¿e nazwy dla lokalnych
31 maszyn nie znajduj±cych siê w globalnym DNS. Jest idealny dla sieci za NAT
32 i po³±czonych przez modem, ISDL, ADSL lub po³±czenia kablowe.
39 %{__make} CC=%{__cc} OPT="%{rpmcflags}"
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/sysconfig,/etc/rc.d/init.d,%{_mandir}/man8}
45 install %SOURCE1 $RPM_BUILD_ROOT/etc/rc.d/init.d/dnsmasq
46 install %SOURCE2 $RPM_BUILD_ROOT/etc/sysconfig/dnsmasq
47 install dnsmasq $RPM_BUILD_ROOT%{_sbindir}
48 install dnsmasq.8 $RPM_BUILD_ROOT%{_mandir}/man8
51 rm -rf $RPM_BUILD_ROOT
54 /sbin/chkconfig --add dnsmasq
55 if [ -f %{_localstatedir}/lock/subsys/dnsmasq ]; then
56 /etc/rc.d/init.d/dnsmasq restart >&2
58 echo "Run \"/etc/rc.d/init.d/dnsmasq start\" to start dnsmasq." >&2
62 if [ "$1" = "0" ]; then
63 if [ -f %{_localstatedir}/lock/subsys/dnsmasq ]; then
64 /etc/rc.d/init.d/dnsmasq stop
66 /sbin/chkconfig --del dnsmasq
70 %defattr(644,root,root,755)
71 %doc CHANGELOG FAQ *.html
72 %attr(755,root,root) /etc/rc.d/init.d/dnsmasq
73 %attr(755,root,root) %{_sbindir}/dnsmasq
74 %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/dnsmasq