]> git.pld-linux.org Git - packages/dnsmasq.git/blob - dnsmasq.spec
- updated to 2.51
[packages/dnsmasq.git] / dnsmasq.spec
1 Summary:        A lightweight caching server (DNS, DHCP)
2 Summary(pl.UTF-8):      Lekki buforujący serwer nazw (DNS) i DHCP
3 Name:           dnsmasq
4 Version:        2.51
5 Release:        1
6 License:        GPL v2
7 Group:          Networking/Daemons
8 Source0:        http://thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.gz
9 # Source0-md5:  97465261a6de5258a3c3edfe51ca16a4
10 Source1:        %{name}.init
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
16 Requires:       rc-scripts
17 Provides:       caching-nameserver
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
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.
29
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. 
34
35 %description -l pl.UTF-8
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.
45
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.
50
51 %prep
52 %setup -q
53
54 %build
55 %{__make} all-i18n \
56         CC="%{__cc}" \
57         CFLAGS="%{rpmcflags} -DHAVE_ISC_READER -D_GNU_SOURCE" \
58         PREFIX=%{_prefix}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/sysconfig,/etc/rc.d/init.d,%{_mandir}/man8}
63
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
67
68 install contrib/port-forward/dnsmasq-portforward $RPM_BUILD_ROOT%{_sbindir}
69 install contrib/port-forward/portforward $RPM_BUILD_ROOT%{_sysconfdir}
70
71 %{__make} install-i18n \
72         DESTDIR=$RPM_BUILD_ROOT \
73         PREFIX=%{_prefix}
74
75 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{no,nb}
76
77 %find_lang %{name}
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %post
83 /sbin/chkconfig --add dnsmasq
84 %service dnsmasq restart
85
86 %preun
87 if [ "$1" = "0" ]; then
88         %service dnsmasq stop
89         /sbin/chkconfig --del dnsmasq
90 fi
91
92 %files -f %{name}.lang
93 %defattr(644,root,root,755)
94 %doc CHANGELOG FAQ *.html contrib/{dnslist,dynamic-dnsmasq}
95 %attr(754,root,root) /etc/rc.d/init.d/dnsmasq
96 %attr(755,root,root) %{_sbindir}/dnsmasq*
97 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dnsmasq
98 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnsmasq.conf
99 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/portforward
100 %{_mandir}/man8/*
101 %lang(es) %{_mandir}/es/man8/* 
102 %lang(fr) %{_mandir}/fr/man8/* 
This page took 0.06647 seconds and 4 git commands to generate.