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