!9 fix install and uninstall scripts failure
Merge pull request !9 from sherlock2010/master
This commit is contained in:
commit
47af71b758
17
dnsmasq.spec
17
dnsmasq.spec
@ -1,6 +1,6 @@
|
|||||||
Name: dnsmasq
|
Name: dnsmasq
|
||||||
Version: 2.82
|
Version: 2.82
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Dnsmasq provides network infrastructure for small networks
|
Summary: Dnsmasq provides network infrastructure for small networks
|
||||||
License: GPLv2 or GPLv3
|
License: GPLv2 or GPLv3
|
||||||
URL: http://www.thekelleys.org.uk/dnsmasq/
|
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
|
install -Dpm644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysusersdir}/dnsmasq.conf
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
%sysusers_create_inline %(cat %{SOURCE2})
|
%sysusers_create_package %{name} %{SOURCE2}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%sysusers_create %(cat %{SOURCE2})
|
%systemd_post dnsmasq.service
|
||||||
%systemd_post dnsmasq
|
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun dnsmasq
|
%systemd_preun dnsmasq.service
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%systemd_postun_with_restart dnsmasq
|
%systemd_postun_with_restart dnsmasq.service
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc dbus/DBus-interface
|
%doc dbus/DBus-interface
|
||||||
@ -106,6 +105,12 @@ install -Dpm644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysusersdir}/dnsmasq.conf
|
|||||||
%{_mandir}/man8/dnsmasq*
|
%{_mandir}/man8/dnsmasq*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 1 2020 zhouyihang <zhouyihang3@huawei.com> - 2.82-2
|
||||||
|
- Type:bugfix
|
||||||
|
- Id:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:fix install and uninstall scripts failure
|
||||||
|
|
||||||
* Tue Jul 28 2020 xiaoweiwei <xiaoweiwei5@huawei.com> - 2.82-1
|
* Tue Jul 28 2020 xiaoweiwei <xiaoweiwei5@huawei.com> - 2.82-1
|
||||||
- Type:upgrade
|
- Type:upgrade
|
||||||
- Id:NA
|
- Id:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user