Use more recent user creation macro
Old macro changed signature a bit, requires argument now. Should fix build on Rawhide.
This commit is contained in:
parent
9dcc5a251f
commit
447db348ef
11
dnsmasq.spec
11
dnsmasq.spec
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
Name: dnsmasq
|
Name: dnsmasq
|
||||||
Version: 2.80
|
Version: 2.80
|
||||||
Release: 3%{?extraversion:.%{extraversion}}%{?dist}
|
Release: 4%{?extraversion:.%{extraversion}}%{?dist}
|
||||||
Summary: A lightweight DHCP/caching DNS server
|
Summary: A lightweight DHCP/caching DNS server
|
||||||
|
|
||||||
License: GPLv2 or GPLv3
|
License: GPLv2 or GPLv3
|
||||||
@ -121,15 +121,13 @@ install -m644 %{SOURCE1} %{buildroot}%{_unitdir}
|
|||||||
rm -rf %{buildroot}%{_initrddir}
|
rm -rf %{buildroot}%{_initrddir}
|
||||||
|
|
||||||
#install systemd sysuser file
|
#install systemd sysuser file
|
||||||
install -Dpm 644 %{SOURCE2} %{buildroot}%{_sysusersdir}/dnsmasq.conf
|
install -Dpm 644 %{SOURCE2} %{buildroot}%{_sysusersdir}/%{name}.conf
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
#precreate users so that rpm can install files owned by that user
|
#precreate users so that rpm can install files owned by that user
|
||||||
%sysusers_create_inline %(cat %{SOURCE2})
|
%sysusers_create_package %{name} %{SOURCE2}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
#https://fedoraproject.org/wiki/Changes/SystemdSysusers
|
|
||||||
%sysusers_create
|
|
||||||
%systemd_post dnsmasq.service
|
%systemd_post dnsmasq.service
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
@ -160,6 +158,9 @@ install -Dpm 644 %{SOURCE2} %{buildroot}%{_sysusersdir}/dnsmasq.conf
|
|||||||
%{_mandir}/man1/dhcp_*
|
%{_mandir}/man1/dhcp_*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 08 2019 Petr Menšík <pemensik@redhat.com> - 2.80-4
|
||||||
|
- Use more recent macro to create dnsmasq user
|
||||||
|
|
||||||
* Fri Feb 15 2019 Petr Menšík <pemensik@redhat.com> - 2.80-3
|
* Fri Feb 15 2019 Petr Menšík <pemensik@redhat.com> - 2.80-3
|
||||||
- Apply patches by autosetup
|
- Apply patches by autosetup
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user