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