Summary: A lightweight caching nameserver Summary(pl): Lekki buforujący serwer nazw (DNS) Name: dnsmasq Version: 2.27 Release: 1 License: GPL Group: Networking/Daemons Source0: http://thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.gz # Source0-md5: 489198ec87101087043adc98bbe062dc Source1: %{name}.init Source2: %{name}.config URL: http://www.thekelleys.org.uk/dnsmasq/ BuildRequires: rpmbuild(macros) >= 1.268 Requires(post,postun): /sbin/chkconfig Requires: rc-scripts Provides: caching-nameserver BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Dnsmasq is lightweight, easy to configure DNS forwarder designed to provide DNS (domain name) services to a small network where using BIND would be overkill. It can be have its DNS servers automatically configured by PPP or DHCP, and it can serve the names of local machines which are not in the global DNS. It is ideal for networks behind NAT routers and connected via modem, ISDN, ADSL, or cable-modem connections. %description -l pl 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 nazwy dla lokalnych maszyn nie znajdujących się w globalnym DNS. Jest idealny dla sieci za NAT i połączonych przez modem, ISDL, ADSL lub połączenia kablowe. %prep %setup -q %build %{__make} \ CC="%{__cc}" \ CFLAGS="%{rpmcflags}" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/sysconfig,/etc/rc.d/init.d,%{_mandir}/man8} 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 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 %service dnsmasq restart %preun if [ "$1" = "0" ]; then %service dnsmasq stop /sbin/chkconfig --del dnsmasq fi %files %defattr(644,root,root,755) %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 mtime size) /etc/sysconfig/dnsmasq %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnsmasq.conf %{_mandir}/man8/*