]> git.pld-linux.org Git - packages/dnsmasq.git/blob - dnsmasq.spec
- updated to 2.30
[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.30
5 Release:        1
6 License:        GPL
7 Group:          Networking/Daemons
8 Source0:        http://thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.gz
9 # Source0-md5:  91db9ef2c63269debf7794783074b751
10 Source1:        %{name}.init
11 Source2:        %{name}.config
12 URL:            http://www.thekelleys.org.uk/dnsmasq/
13 BuildRequires:  rpmbuild(macros) >= 1.268
14 Requires(post,preun):   /sbin/chkconfig
15 Requires:       rc-scripts
16 Provides:       caching-nameserver
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Dnsmasq is lightweight, easy to configure DNS forwarder designed to
21 provide DNS (domain name) services to a small network where using BIND
22 would be overkill. It can be have its DNS servers automatically
23 configured by PPP or DHCP, and it can serve the names of local
24 machines which are not in the global DNS. It is ideal for networks
25 behind NAT routers and connected via modem, ISDN, ADSL, or cable-modem
26 connections.
27
28 %description -l pl
29 Dnsmasq jest lekkim, ³atwym w konfiguracji forwarderem DNS
30 zaprojektowanym do serwowania us³ugi DNS dla ma³ych sieci, gdzie
31 u¿ywanie BIND by³oby przesad±. Zewnêtrzne serwery DNS mog± byæ
32 automatycznie konfigurowane przez PPP lub DHCP. Mo¿e on serwowaæ tak¿e
33 nazwy dla lokalnych maszyn nie znajduj±cych siê w globalnym DNS. Jest
34 idealny dla sieci za NAT i po³±czonych przez modem, ISDL, ADSL lub
35 po³±czenia kablowe.
36
37 %prep
38 %setup -q
39
40 %build
41 %{__make} \
42         CC="%{__cc}" \
43         CFLAGS="%{rpmcflags}"
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/sysconfig,/etc/rc.d/init.d,%{_mandir}/man8}
48
49 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dnsmasq
50 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/dnsmasq
51 install src/dnsmasq $RPM_BUILD_ROOT%{_sbindir}
52 install man/dnsmasq.8 $RPM_BUILD_ROOT%{_mandir}/man8
53 install dnsmasq.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/dnsmasq.conf
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %post
59 /sbin/chkconfig --add dnsmasq
60 %service dnsmasq restart
61
62 %preun
63 if [ "$1" = "0" ]; then
64         %service dnsmasq stop
65         /sbin/chkconfig --del dnsmasq
66 fi
67
68 %files
69 %defattr(644,root,root,755)
70 %doc CHANGELOG FAQ *.html
71 %attr(754,root,root) /etc/rc.d/init.d/dnsmasq
72 %attr(755,root,root) %{_sbindir}/dnsmasq
73 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dnsmasq
74 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnsmasq.conf
75 %{_mandir}/man8/*
This page took 0.037072 seconds and 4 git commands to generate.