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