edfed46f4f
Story: 2003389 Task: 24494 Change-Id: Ib2bf11d1d797f81c988c4bee598657f32e65f6d5 Signed-off-by: chenyan <yan.chen@intel.com>
49 lines
1.6 KiB
Diff
49 lines
1.6 KiB
Diff
From ecbe3b4e138cb5076b8cbbedf86fea3044449132 Mon Sep 17 00:00:00 2001
|
|
From: Scott Little <scott.little@windriver.com>
|
|
Date: Mon, 2 Oct 2017 17:27:13 -0400
|
|
Subject: [PATCH 1/5] WRS: spec-include-TiS-patch.patch
|
|
|
|
---
|
|
SPECS/dnsmasq.spec | 11 +++++++++--
|
|
1 file changed, 9 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/SPECS/dnsmasq.spec b/SPECS/dnsmasq.spec
|
|
index b312ef3..7f370d1 100644
|
|
--- a/SPECS/dnsmasq.spec
|
|
+++ b/SPECS/dnsmasq.spec
|
|
@@ -55,6 +55,10 @@ Patch17: dnsmasq-2.76-gita3303e196.patch
|
|
Patch18: dnsmasq-2.76-underflow.patch
|
|
Patch19: dnsmasq-2.76-misc-cleanups.patch
|
|
|
|
+# WRS patches
|
|
+Patch30: dnsmasq-update-ipv6-leases-from-config.patch
|
|
+
|
|
+
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: dbus-devel
|
|
@@ -109,6 +113,9 @@ query/remove a DHCP server's leases.
|
|
%patch18 -p1 -b .underflow
|
|
%patch19 -p1 -b .misc
|
|
|
|
+# WRS patches
|
|
+%patch30 -p1
|
|
+
|
|
# use /var/lib/dnsmasq instead of /var/lib/misc
|
|
for file in dnsmasq.conf.example man/dnsmasq.8 man/es/dnsmasq.8 src/config.h; do
|
|
sed -i 's|/var/lib/misc/dnsmasq.leases|/var/lib/dnsmasq/dnsmasq.leases|g' "$file"
|
|
@@ -181,8 +188,8 @@ rm -rf $RPM_BUILD_ROOT
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc CHANGELOG COPYING COPYING-v3 FAQ doc.html setup.html dbus/DBus-interface
|
|
-%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dnsmasq.conf
|
|
-%dir /etc/dnsmasq.d
|
|
+%config(noreplace) %attr(640,root,root) %{_sysconfdir}/dnsmasq.conf
|
|
+%dir %attr(750,root,root) /etc/dnsmasq.d
|
|
%dir %{_var}/lib/dnsmasq
|
|
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/dnsmasq.conf
|
|
%{_unitdir}/%{name}.service
|
|
--
|
|
2.7.4
|
|
|