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