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