]> git.pld-linux.org Git - packages/dnsmasq.git/blame - dnsmasq.spec
- 2.53test19 - fixes problem with IP with name on interface
[packages/dnsmasq.git] / dnsmasq.spec
CommitLineData
9b0ebfda
PG
1# TODO:
2# - subpackage DNSmasq webmin module (contrib/webmin)
3
b3dc8096 4Summary: A lightweight caching server (DNS, DHCP)
919f5da6 5Summary(pl.UTF-8): Lekki buforujący serwer nazw (DNS) i DHCP
bf36b0e9 6Name: dnsmasq
b77214bc
PG
7Version: 2.53
8%define _rc test19
9Release: 0.%{_rc}.1
f624c799 10License: GPL v2
bf36b0e9 11Group: Networking/Daemons
b77214bc
PG
12#Source0: http://thekelleys.org.uk/dnsmasq/%{name}-%{version}%{_rc}.tar.gz
13Source0: http://thekelleys.org.uk/dnsmasq/test-releases/%{name}-%{version}%{_rc}.tar.gz
14# Source0-md5: 84b50571a7a2963fb2572643f9a41717
bf36b0e9 15Source1: %{name}.init
16Source2: %{name}.config
f624c799 17URL: http://www.thekelleys.org.uk/dnsmasq/doc.html
6c28ce70 18BuildRequires: gettext-devel
f438ee6b 19BuildRequires: libidn-devel
20BuildRequires: pkgconfig
632e9725 21BuildRequires: rpmbuild(macros) >= 1.268
8243d602 22Requires(post,preun): /sbin/chkconfig
632e9725 23Requires: rc-scripts
e94c4cf2 24Provides: caching-nameserver
bf36b0e9 25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
9c2b9b9a 28Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP
f438ee6b 29server. It is designed to provide DNS and, optionally, DHCP, to a
9c2b9b9a
JB
30small network. It can serve the names of local machines which are not
31in the global DNS. The DHCP server integrates with the DNS server and
32allows machines with DHCP-allocated addresses to appear in the DNS
33with names configured either in each host or in a central
34configuration file. Dnsmasq supports static and dynamic DHCP leases
35and BOOTP for network booting of diskless machines.
f624c799 36
9c2b9b9a
JB
37Dnsmasq is targeted at home networks using NAT and connected to the
38Internet via a modem, cable-modem or ADSL connection but would be a
39good choice for any small network where low resource use and ease of
f438ee6b 40configuration are important.
bf36b0e9 41
0475eba7
JR
42%description -l pl.UTF-8
43dnsmasq jest lekkim, łatwym w konfiguracji forwarderem DNS i serwerem
44DHCP zaprojektowanym do serwowania usługi DNS i opcjonalnie DHCP dla
45małych sieci. Może on serwować także nazwy dla lokalnych maszyn nie
46znajdujących się w globalnym DNS-ie. Serwer DHCP integruje się z
47serwerem DNS, umożliwiając maszynom o adresach przydzielonych przez
48DHCP pojawienie się w DNS-ie z nazwami konfigurowanymi dla każdego
49hosta lub w centralnym pliku konfiguracyjnym. dnsmasq obsługuje
50statyczne i dynamiczne dzierżawy DHCP oraz BOOTP do uruchamiania z
9c2b9b9a
JB
51sieci maszyn bezdyskowych.
52
0475eba7
JR
53dnsmasq jest przeznaczony głównie dla sieci domowych używających NAT-u
54i podłączonych do Internetu przez modem, modem kablowy lub łącze ADSL,
55ale jest dobrym wyborem dla dowolnej małej sieci, gdzie ważne jest
56małe wykorzystanie zasobów i łatwa konfiguracja.
bf36b0e9 57
58%prep
b77214bc 59%setup -q -n %{name}-%{version}%{_rc}
bf36b0e9 60
61%build
6c28ce70 62%{__make} all-i18n \
b2c6a46f 63 CC="%{__cc}" \
079ebf99 64 CFLAGS="%{rpmcflags} -DHAVE_ISC_READER -D_GNU_SOURCE" \
6c28ce70 65 PREFIX=%{_prefix}
bf36b0e9 66
67%install
68rm -rf $RPM_BUILD_ROOT
bf36b0e9 69install -d $RPM_BUILD_ROOT{%{_sbindir},/etc/sysconfig,/etc/rc.d/init.d,%{_mandir}/man8}
70
58f543fd 71install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dnsmasq
72install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/dnsmasq
b2c6a46f 73install dnsmasq.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/dnsmasq.conf
bf36b0e9 74
05a995a0
KK
75install contrib/port-forward/dnsmasq-portforward $RPM_BUILD_ROOT%{_sbindir}
76install contrib/port-forward/portforward $RPM_BUILD_ROOT%{_sysconfdir}
77
6c28ce70 78%{__make} install-i18n \
79 DESTDIR=$RPM_BUILD_ROOT \
80 PREFIX=%{_prefix}
81
1bd1311c
MB
82mv -f $RPM_BUILD_ROOT%{_datadir}/locale/{no,nb}
83
6c28ce70 84%find_lang %{name}
85
bf36b0e9 86%clean
87rm -rf $RPM_BUILD_ROOT
88
89%post
90/sbin/chkconfig --add dnsmasq
632e9725 91%service dnsmasq restart
bf36b0e9 92
93%preun
94if [ "$1" = "0" ]; then
632e9725 95 %service dnsmasq stop
bf36b0e9 96 /sbin/chkconfig --del dnsmasq
97fi
98
6c28ce70 99%files -f %{name}.lang
bf36b0e9 100%defattr(644,root,root,755)
05a995a0 101%doc CHANGELOG FAQ *.html contrib/{dnslist,dynamic-dnsmasq}
0184473f 102%attr(754,root,root) /etc/rc.d/init.d/dnsmasq
05a995a0 103%attr(755,root,root) %{_sbindir}/dnsmasq*
b2c6a46f 104%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dnsmasq
105%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dnsmasq.conf
05a995a0 106%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/portforward
bf36b0e9 107%{_mandir}/man8/*
f438ee6b 108%lang(es) %{_mandir}/es/man8/*
109%lang(fr) %{_mandir}/fr/man8/*
This page took 0.096207 seconds and 4 git commands to generate.