]> git.pld-linux.org Git - packages/dnsmasq.git/blob - dnsmasq.spec
- 2.24
[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.24
5 Release:        1
6 License:        GPL
7 Group:          Networking/Daemons
8 Source0:        http://thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.gz
9 # Source0-md5:  d269531be1f130ab642c71c593138d31
10 Source1:        %{name}.init
11 Source2:        %{name}.config
12 URL:            http://www.thekelleys.org.uk/dnsmasq/
13 PreReq:         rc-scripts
14 Requires(post,postun):  /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 w konfiguracji forwarderem DNS
29 zaprojektowanym do serwowania us³ugi DNS dla ma³ych sieci, gdzie
30 u¿ywanie BIND by³oby przesad±. Zewnêtrzne serwery DNS mog± byæ
31 automatycznie konfigurowane przez PPP lub DHCP. Mo¿e on serwowaæ tak¿e
32 nazwy dla lokalnych maszyn nie znajduj±cych siê w globalnym DNS. Jest
33 idealny dla sieci za NAT i po³±czonych przez modem, ISDL, ADSL lub
34 po³±czenia kablowe.
35
36 %prep
37 %setup -q
38
39 %build
40 %{__make} \
41         CC="%{__cc}" \
42         CFLAGS="%{rpmcflags}"
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/sysconfig,/etc/rc.d/init.d,%{_mandir}/man8}
47
48 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dnsmasq
49 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/dnsmasq
50 install src/dnsmasq $RPM_BUILD_ROOT%{_sbindir}
51 install man/dnsmasq.8 $RPM_BUILD_ROOT%{_mandir}/man8
52 install dnsmasq.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/dnsmasq.conf
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %post
58 /sbin/chkconfig --add dnsmasq
59 if [ -f %{_localstatedir}/lock/subsys/dnsmasq ]; then
60         /etc/rc.d/init.d/dnsmasq restart >&2
61 else
62         echo "Run \"/etc/rc.d/init.d/dnsmasq start\" to start dnsmasq." >&2
63 fi
64
65 %preun
66 if [ "$1" = "0" ]; then
67         if [ -f %{_localstatedir}/lock/subsys/dnsmasq ]; then
68                 /etc/rc.d/init.d/dnsmasq stop
69         fi
70         /sbin/chkconfig --del dnsmasq
71 fi
72
73 %files
74 %defattr(644,root,root,755)
75 %doc CHANGELOG FAQ *.html
76 %attr(754,root,root) /etc/rc.d/init.d/dnsmasq
77 %attr(755,root,root) %{_sbindir}/dnsmasq
78 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dnsmasq
79 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnsmasq.conf
80 %{_mandir}/man8/*
This page took 0.053233 seconds and 3 git commands to generate.