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