]> git.pld-linux.org Git - packages/dnsmasq.git/blob - dnsmasq.spec
- added Obsoletes, Provides
[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 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 Provides:       caching-nameserver
15 Obsoletes:      caching-nameserver
16 Obsoletes:      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 do konfiguracji forwarderem DNS
30 zaprojektowanym do serwowania us³ugi DNS dla ma³ych sieci, gdzie u¿ywanie
31 BIND by³o by przesad±. Zewnêtrzne serwery DNS mog± byæ automatycznie
32 konfigurowane przez PPP lub DHCP. Mo¿e on serwowaæ tak¿e nazwy dla lokalnych
33 maszyn nie znajduj±cych siê w globalnym DNS. Jest idealny dla sieci za NAT
34 i po³±czonych przez modem, ISDL, ADSL lub po³±czenia kablowe.
35
36 %prep
37 %setup -q
38 %patch0 -p1
39
40 %build
41 %{__make} CC=%{__cc} OPT="%{rpmcflags}"
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/sysconfig,/etc/rc.d/init.d,%{_mandir}/man8}
46
47 install %SOURCE1 $RPM_BUILD_ROOT/etc/rc.d/init.d/dnsmasq
48 install %SOURCE2 $RPM_BUILD_ROOT/etc/sysconfig/dnsmasq
49 install dnsmasq $RPM_BUILD_ROOT%{_sbindir}
50 install dnsmasq.8 $RPM_BUILD_ROOT%{_mandir}/man8
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %post
56 /sbin/chkconfig --add dnsmasq
57 if [ -f %{_localstatedir}/lock/subsys/dnsmasq ]; then
58         /etc/rc.d/init.d/dnsmasq restart >&2
59 else
60         echo "Run \"/etc/rc.d/init.d/dnsmasq start\" to start dnsmasq." >&2
61 fi
62
63 %preun
64 if [ "$1" = "0" ]; then
65         if [ -f %{_localstatedir}/lock/subsys/dnsmasq ]; then
66                 /etc/rc.d/init.d/dnsmasq stop
67         fi
68         /sbin/chkconfig --del dnsmasq
69 fi
70
71 %files
72 %defattr(644,root,root,755)
73 %doc CHANGELOG FAQ *.html
74 %attr(755,root,root) /etc/rc.d/init.d/dnsmasq
75 %attr(755,root,root) %{_sbindir}/dnsmasq
76 %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/dnsmasq
77 %{_mandir}/man8/*
This page took 0.08228 seconds and 4 git commands to generate.