From e2493ffb0033c126a37c9b8b49a90e7eb798f13d Mon Sep 17 00:00:00 2001 From: sherlock2010 <15151851377@163.com> Date: Mon, 31 Aug 2020 22:29:58 +0800 Subject: [PATCH] fix install and uninstall scripts failure --- dnsmasq.spec | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/dnsmasq.spec b/dnsmasq.spec index 2dd55e0..0541691 100644 --- a/dnsmasq.spec +++ b/dnsmasq.spec @@ -1,6 +1,6 @@ Name: dnsmasq Version: 2.82 -Release: 1 +Release: 2 Summary: Dnsmasq provides network infrastructure for small networks License: GPLv2 or GPLv3 URL: http://www.thekelleys.org.uk/dnsmasq/ @@ -71,17 +71,16 @@ install -m644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir} install -Dpm644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysusersdir}/dnsmasq.conf %pre -%sysusers_create_inline %(cat %{SOURCE2}) +%sysusers_create_package %{name} %{SOURCE2} %post -%sysusers_create %(cat %{SOURCE2}) -%systemd_post dnsmasq +%systemd_post dnsmasq.service %preun -%systemd_preun dnsmasq +%systemd_preun dnsmasq.service %postun -%systemd_postun_with_restart dnsmasq +%systemd_postun_with_restart dnsmasq.service %files %doc dbus/DBus-interface @@ -106,6 +105,12 @@ install -Dpm644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysusersdir}/dnsmasq.conf %{_mandir}/man8/dnsmasq* %changelog +* Mon Aug 31 2020 zhouyihang - 2.82-2 +- Type:bugfix +- Id:NA +- SUG:NA +- DESC:fix install and uninstall scripts failure + * Tue Aug 25 2020 lunankun - 2.82-1 - Type:requirement - Id:NA -- Gitee