integ/base/dnsmasq/centos/meta_patches/spec-include-TiS-patch.patch
Long Li ebbb8c6b9c CentOS 8: Upgrade dnsmasq to version 2.79
(1)Release Version Upgrade
(2)Matching code changes with el7 to el8

Change-Id: Ieb451bbfd498d93c3c2f3995b8785807c099499b
Story: 2006729
Task: 37683
Depends-On: https://review.opendev.org/#/c/696481/
Depends-On: https://review.opendev.org/#/c/696050/
Signed-off-by: Long Li <lilong-neu@neusoft.com>
2019-12-18 07:34:36 +00:00

65 lines
2.1 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/2]: spec-include-TiS-patch.patch
Signed-off-by: zhipengl <zhipengs.liu@intel.com>
Signed-off-by: Long Li <lilong-neu@neusoft.com>
---
SPECS/dnsmasq.spec | 21 ++++++++-------------
1 file changed, 8 insertions(+), 13 deletions(-)
diff --git a/SPECS/dnsmasq.spec b/SPECS/dnsmasq.spec
index b312ef3..4d30b0a 100644
--- a/SPECS/dnsmasq.spec
+++ b/SPECS/dnsmasq.spec
@@ -27,6 +27,9 @@ Patch1: dnsmasq-2.77-underflow.patch
Patch3: dnsmasq-2.78-fips.patch
Patch4: dnsmasq-2.80-dnssec.patch
+Patch30: dnsmasq-update-ipv6-leases-from-config.patch
+Patch31: close-tftp-sockets-immediately.patch
+
# This is workaround to nettle bug #1549190
# https://bugzilla.redhat.com/show_bug.cgi?id=1549190
Requires: nettle >= 3.4
@@ -64,6 +67,9 @@ server's leases.
%patch3 -p1 -b .fips
%patch4 -p1 -b .dnssec
+%patch30 -p1
+%patch31 -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"
@@ -130,23 +136,12 @@ install -Dpm 644 %{SOURCE2} %{buildroot}%{_sysusersdir}/dnsmasq.conf
#precreate users so that rpm can install files owned by that user
%sysusers_create_inline %(cat %{SOURCE2})
-%post
-#https://fedoraproject.org/wiki/Changes/SystemdSysusers
-%sysusers_create
-%systemd_post dnsmasq.service
-
-%preun
-%systemd_preun dnsmasq.service
-
-%postun
-%systemd_postun_with_restart dnsmasq.service
-
%files
%doc CHANGELOG FAQ doc.html setup.html dbus/DBus-interface
%license COPYING COPYING-v3
%defattr(0644,root,dnsmasq,0755)
-%config(noreplace) %{_sysconfdir}/dnsmasq.conf
-%dir %{_sysconfdir}/dnsmasq.d
+%config(noreplace) %attr(640,root,root) %{_sysconfdir}/dnsmasq.conf
+%dir %attr(750,root,root) %{_sysconfdir}/dnsmasq.d
%dir %{_var}/lib/dnsmasq
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/dnsmasq.conf
--
2.7.4