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