]> git.pld-linux.org Git - packages/dnsmasq.git/blobdiff - dnsmasq.spec
- 2.36
[packages/dnsmasq.git] / dnsmasq.spec
index 7b31b5caef90b80310e8afe18d688ceb71fcde03..f46b5e04d090b62a21cfd2e15e2fed5f43d39c9f 100644 (file)
@@ -1,77 +1,95 @@
-Summary:       A lightweight caching nameserver
-Summary(pl):   Lekki buforuj±cy serwer nazw (DNS)
+Summary:       A lightweight caching server (DNS, DHCP)
+Summary(pl):   Lekki buforuj±cy serwer nazw (DNS) i DHCP
 Name:          dnsmasq
-Version:       2.2
+Version:       2.36
 Release:       1
-License:       GPL
+License:       GPL v2
 Group:         Networking/Daemons
 Source0:       http://thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.gz
-# Source0-md5: 577852d339f6adfd15a04e31fbd39e55
+# Source0-md5: 392bf22dbff84eae010e149f15cd4136
 Source1:       %{name}.init
 Source2:       %{name}.config
-URL:           http://www.thekelleys.org.uk/dnsmasq/
-PreReq:                rc-scripts
-Requires(post,postun): /sbin/chkconfig
+URL:           http://www.thekelleys.org.uk/dnsmasq/doc.html
+BuildRequires: gettext-devel
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,preun):  /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.
+Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP
+server.  It is designed to provide DNS and, optionally, DHCP, to a
+small network. It can serve the names of local machines which are not
+in the global DNS. The DHCP server integrates with the DNS server and
+allows machines with DHCP-allocated addresses to appear in the DNS
+with names configured either in each host or in a central
+configuration file. Dnsmasq supports static and dynamic DHCP leases
+and BOOTP for network booting of diskless machines.
+
+Dnsmasq is targeted at home networks using NAT and connected to the
+Internet via a modem, cable-modem or ADSL connection but would be a
+good choice for any small network where low resource use and ease of
+configuration are important. 
 
 %description -l pl
-Dnsmasq jest lekkim, ³atwym do konfiguracji forwarderem DNS
-zaprojektowanym do serwowania us³ugi DNS dla ma³ych sieci, gdzie u¿ywanie
-BIND by³o by 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.
+dnsmasq jest lekkim, ³atwym w konfiguracji forwarderem DNS i serwerem
+DHCP zaprojektowanym do serwowania us³ugi DNS i opcjonalnie DHCP dla
+ma³ych sieci. Mo¿e on serwowaæ tak¿e nazwy dla lokalnych maszyn nie
+znajduj±cych siê w globalnym DNS-ie. Serwer DHCP integruje siê z
+serwerem DNS, umo¿liwiaj±c maszynom o adresach przydzielonych przez
+DHCP pojawienie siê w DNS-ie z nazwami konfigurowanymi dla ka¿dego
+hosta lub w centralnym pliku konfiguracyjnym. dnsmasq obs³uguje
+statyczne i dynamiczne dzier¿awy DHCP oraz BOOTP do uruchamiania z
+sieci maszyn bezdyskowych.
+
+dnsmasq jest przeznaczony g³ównie dla sieci domowych u¿ywaj±cych NAT-u
+i pod³±czonych do Internetu przez modem, modem kablowy lub ³±cze ADSL,
+ale jest dobrym wyborem dla dowolnej ma³ej sieci, gdzie wa¿ne jest
+ma³e wykorzystanie zasobów i ³atwa konfiguracja.
 
 %prep
 %setup -q
 
 %build
-%{__make} \
-       CC=%{__cc} \
-       CFLAGS="%{rpmcflags}"
+%{__make} all-i18n \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags} -DHAVE_ISC_READER" \
+       PREFIX=%{_prefix}
 
 %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 dnsmasq.8 $RPM_BUILD_ROOT%{_mandir}/man8
+install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dnsmasq
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/dnsmasq
+install dnsmasq.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/dnsmasq.conf
+
+%{__make} install-i18n \
+       DESTDIR=$RPM_BUILD_ROOT \
+       PREFIX=%{_prefix}
+
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add dnsmasq
-if [ -f %{_localstatedir}/lock/subsys/dnsmasq ]; then
-       /etc/rc.d/init.d/dnsmasq restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/dnsmasq start\" to start dnsmasq." >&2
-fi
+%service dnsmasq restart
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f %{_localstatedir}/lock/subsys/dnsmasq ]; then
-               /etc/rc.d/init.d/dnsmasq stop
-       fi
+       %service dnsmasq stop
        /sbin/chkconfig --del dnsmasq
 fi
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc CHANGELOG FAQ *.html
+%doc CHANGELOG FAQ *.html contrib/{dnslist,dynamic-dnsmasq,port-forward}
 %attr(754,root,root) /etc/rc.d/init.d/dnsmasq
 %attr(755,root,root) %{_sbindir}/dnsmasq
-%config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/dnsmasq
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dnsmasq
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnsmasq.conf
 %{_mandir}/man8/*
+%lang(es) %{_mandir}/es/man8/* 
This page took 0.065532 seconds and 4 git commands to generate.