]> git.pld-linux.org Git - packages/dnsmasq.git/blob - dnsmasq.spec
- 2.35 - new description - it's dhcp-server too; some small fixes
[packages/dnsmasq.git] / dnsmasq.spec
1 Summary:        A lightweight caching nameserver
2 Summary(pl):    Lekki buforuj±cy serwer nazw (DNS)
3 Name:           dnsmasq
4 Version:        2.35
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:  57b8643dc394cf2fbd1bced64536c6df
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 server.
22 It is designed to provide DNS and, optionally, DHCP, to a small network. It
23 can serve the names of local machines which are not in the global DNS. The
24 DHCP server integrates with the DNS server and allows machines with
25 DHCP-allocated addresses to appear in the DNS with names configured either
26 in each host or in a central configuration file. Dnsmasq supports static and
27 dynamic DHCP leases and BOOTP for network booting of diskless machines.
28
29 Dnsmasq is targeted at home networks using NAT and connected to the internet
30 via a modem, cable-modem or ADSL connection but would be a good choice for
31 any small network where low resource use and ease of configuration are
32 important. 
33
34 %description -l pl
35 Dnsmasq jest lekkim, ³atwym w konfiguracji forwarderem DNS
36 zaprojektowanym do serwowania us³ugi DNS dla ma³ych sieci, gdzie
37 u¿ywanie BIND by³oby przesad±. Zewnêtrzne serwery DNS mog± byæ
38 automatycznie konfigurowane przez PPP lub DHCP. Mo¿e on serwowaæ tak¿e
39 nazwy dla lokalnych maszyn nie znajduj±cych siê w globalnym DNS. Jest
40 idealny dla sieci za NAT i po³±czonych przez modem, ISDL, ADSL lub
41 po³±czenia kablowe.
42
43 %prep
44 %setup -q
45
46 %build
47 %{__make} all-i18n \
48         CC="%{__cc}" \
49         CFLAGS="%{rpmcflags} -DHAVE_ISC_READER" \
50         PREFIX=%{_prefix}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/sysconfig,/etc/rc.d/init.d,%{_mandir}/man8}
55
56 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dnsmasq
57 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/dnsmasq
58 install dnsmasq.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/dnsmasq.conf
59
60 %{__make} install-i18n \
61         DESTDIR=$RPM_BUILD_ROOT \
62         PREFIX=%{_prefix}
63
64 %find_lang %{name}
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %post
70 /sbin/chkconfig --add dnsmasq
71 %service dnsmasq restart
72
73 %preun
74 if [ "$1" = "0" ]; then
75         %service dnsmasq stop
76         /sbin/chkconfig --del dnsmasq
77 fi
78
79 %files -f %{name}.lang
80 %defattr(644,root,root,755)
81 %doc CHANGELOG FAQ *.html contrib/{dnslist,dynamic-dnsmasq,port-forward}
82 %attr(754,root,root) /etc/rc.d/init.d/dnsmasq
83 %attr(755,root,root) %{_sbindir}/dnsmasq
84 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dnsmasq
85 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnsmasq.conf
86 %{_mandir}/man8/*
87 %lang(es) %{_mandir}/es/man8/* 
This page took 0.062531 seconds and 3 git commands to generate.