blob: 51fb21b3a6dc649b18a911880e5d11961fcadf0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
Name: dnsmasq
Summary: dnsmasq, DNS forwarder.
Version: 2.79
Release: 1
Group: System/Network
License: GPL-2.0+
Source0: %{name}-%{version}.tar.gz
Source1001: packaging/dnsmasq.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(libtzplatform-config)
%description
Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server.
It is designed to provide DNS and, optionally, DHCP, to a small network.
It can serve the names of local machines that are not in the global DNS.
The DHCP server integrates with the DNS server and allows machines with
DHCP-allocated addresses to appear in DNS with names configured either
in each host or in a central configuration file. Dnsmasq supports static
and dynamic DHCP leases and BOOTP for network booting of diskless machines.
%prep
%setup -q
cp %{SOURCE1001} .
%build
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
make %{?jobs:-j%jobs}
%post
mkdir -p %{TZ_SYS_VAR}/lib/misc
%install
%make_install
mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
cp dbus/dnsmasq.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/dnsmasq.conf
%files
%manifest %{name}.manifest
%{_bindir}/dnsmasq
%license COPYING
%attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/*
|