1 Summary: A lightweight caching server (DNS, DHCP)
2 Summary(pl): Lekki buforuj±cy serwer nazw (DNS) i DHCP
7 Group: Networking/Daemons
8 Source0: http://thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.gz
9 # Source0-md5: e105a41cdf5adb8b615f0a06eb17ecb9
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
22 server. It is designed to provide DNS and, optionally, DHCP, to a
23 small network. It can serve the names of local machines which are not
24 in the global DNS. The DHCP server integrates with the DNS server and
25 allows machines with DHCP-allocated addresses to appear in the DNS
26 with names configured either in each host or in a central
27 configuration file. Dnsmasq supports static and dynamic DHCP leases
28 and BOOTP for network booting of diskless machines.
30 Dnsmasq is targeted at home networks using NAT and connected to the
31 Internet via a modem, cable-modem or ADSL connection but would be a
32 good choice for any small network where low resource use and ease of
33 configuration are important.
36 dnsmasq jest lekkim, ³atwym w konfiguracji forwarderem DNS i serwerem
37 DHCP zaprojektowanym do serwowania us³ugi DNS i opcjonalnie DHCP dla
38 ma³ych sieci. Mo¿e on serwowaæ tak¿e nazwy dla lokalnych maszyn nie
39 znajduj±cych siê w globalnym DNS-ie. Serwer DHCP integruje siê z
40 serwerem DNS, umo¿liwiaj±c maszynom o adresach przydzielonych przez
41 DHCP pojawienie siê w DNS-ie z nazwami konfigurowanymi dla ka¿dego
42 hosta lub w centralnym pliku konfiguracyjnym. dnsmasq obs³uguje
43 statyczne i dynamiczne dzier¿awy DHCP oraz BOOTP do uruchamiania z
44 sieci maszyn bezdyskowych.
46 dnsmasq jest przeznaczony g³ównie dla sieci domowych u¿ywaj±cych NAT-u
47 i pod³±czonych do Internetu przez modem, modem kablowy lub ³±cze ADSL,
48 ale jest dobrym wyborem dla dowolnej ma³ej sieci, gdzie wa¿ne jest
49 ma³e wykorzystanie zasobów i ³atwa konfiguracja.
57 CFLAGS="%{rpmcflags} -DHAVE_ISC_READER" \
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/sysconfig,/etc/rc.d/init.d,%{_mandir}/man8}
64 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dnsmasq
65 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/dnsmasq
66 install dnsmasq.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/dnsmasq.conf
68 %{__make} install-i18n \
69 DESTDIR=$RPM_BUILD_ROOT \
75 rm -rf $RPM_BUILD_ROOT
78 /sbin/chkconfig --add dnsmasq
79 %service dnsmasq restart
82 if [ "$1" = "0" ]; then
84 /sbin/chkconfig --del dnsmasq
87 %files -f %{name}.lang
88 %defattr(644,root,root,755)
89 %doc CHANGELOG FAQ *.html contrib/{dnslist,dynamic-dnsmasq,port-forward}
90 %attr(754,root,root) /etc/rc.d/init.d/dnsmasq
91 %attr(755,root,root) %{_sbindir}/dnsmasq
92 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dnsmasq
93 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnsmasq.conf
95 %lang(es) %{_mandir}/es/man8/*