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