/[packages]/updates/1/dnsmasq/current/SPECS/dnsmasq.spec
ViewVC logotype

Contents of /updates/1/dnsmasq/current/SPECS/dnsmasq.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 394724 - (show annotations) (download)
Tue Feb 5 19:44:40 2013 UTC (7 years, 6 months ago) by luigiwalser
File size: 2715 byte(s)
add patch0 from redhat to fix CVE-2013-0198 (completes fix for CVE-2012-3411) (MGA#8795)
1 Summary: A lightweight dhcp and caching nameserver
2 Name: dnsmasq
3 Version: 2.63
4 %define subrel 1
5 Release: %mkrel 1
6 License: GPLv2 or GPLv3
7 Group: System/Servers
8 URL: http://www.thekelleys.org.uk/dnsmasq
9 Conflicts: bind
10
11 Source0: http://www.thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.xz
12 Source1: dnsmasq.sysconfig
13 Source2: dnsmasq.init
14 Patch0: dnsmasq-2.65-redhat-real-fix-CVE-2013-0198.patch
15
16 BuildRequires: dbus-devel
17
18 Requires: %{name}-base = %{version}-%{release}
19 Requires(preun): rpm-helper
20 Requires(post): rpm-helper
21
22
23
24 %description
25 Dnsmasq is lightweight, easy to configure DNS forwarder and DHCP server. It
26 is designed to provide DNS and, optionally, DHCP, to a small network. It can
27 serve the names of local machines which are not in the global DNS. The DHCP
28 server integrates with the DNS server and allows machines with DHCP-allocated
29 addresses to appear in the DNS with names configured either in each host or
30 in a central configuration file. Dnsmasq supports static and dynamic DHCP
31 leases and BOOTP for network booting of diskless machines.
32
33 %package base
34 Summary: A lightweight dhcp and caching nameserver - base files without init scripts
35 Group: Networking/Remote access
36
37 %description base
38 Dnsmasq is lightweight, easy to configure DNS forwarder and DHCP server. It
39 is designed to provide DNS and, optionally, DHCP, to a small network. It can
40 serve the names of local machines which are not in the global DNS. The DHCP
41 server integrates with the DNS server and allows machines with DHCP-allocated
42 addresses to appear in the DNS with names configured either in each host or
43 in a central configuration file. Dnsmasq supports static and dynamic DHCP
44 leases and BOOTP for network booting of diskless machines.
45
46 This package contains the base files of the Dnsmasq server, without the init
47 scripts and global configuration files.
48
49 %prep
50 %setup -q
51 %patch0 -p1
52
53 %build
54 #(tpg) enable dbus support
55 sed -i 's|/\* #define HAVE_DBUS \*/|#define HAVE_DBUS|g' src/config.h
56
57 %serverbuild
58 %make
59
60 %install
61 rm -rf %{buildroot}
62 install -m755 %{SOURCE2} -D %{buildroot}%{_initrddir}/%{name}
63 install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/sysconfig/%{name}
64 install -m644 dnsmasq.conf.example -D %{buildroot}%{_sysconfdir}/dnsmasq.conf
65 install -m755 -D src/dnsmasq %{buildroot}%{_sbindir}/dnsmasq
66 install -m644 man/dnsmasq.8 -D %{buildroot}%{_mandir}/man8/dnsmasq.8
67
68
69 %post
70 %_post_service %{name}
71
72 %preun
73 %_preun_service %{name}
74
75 %files
76 %defattr(-,root,root)
77 %{_initrddir}/%{name}
78 %config(noreplace) %{_sysconfdir}/dnsmasq.conf
79 %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
80
81 %files base
82 %doc CHANGELOG FAQ COPYING COPYING-v3 doc.html setup.html
83 %{_sbindir}/%{name}
84 %doc %{_mandir}/man8/%{name}*
85
86

  ViewVC Help
Powered by ViewVC 1.1.28