diff --git a/dhcpcd.spec b/dhcpcd.spec index c1e1a6b..6cd9b14 100644 --- a/dhcpcd.spec +++ b/dhcpcd.spec @@ -29,6 +29,8 @@ BuildRequires: make BuildRequires: gnupg2 %endif %{?systemd_requires} +%{?sysusers_requires_compat} + %description The dhcpcd package provides a minimalistic network configuration daemon that supports IPv4 and IPv6 configuration including configuration discovery @@ -54,6 +56,7 @@ export BINMODE=755 find %{buildroot} -name '*.la' -delete -print install -D -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service install -D -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}@.service +install -D -m 644 %{SOURCE5} %{buildroot}%{_sysusersdir}/%{name}.conf install -d %{buildroot}%{_sharedstatedir}/%{_name} %pre @@ -84,6 +87,7 @@ install -d %{buildroot}%{_sharedstatedir}/%{_name} %{_mandir}/man8/%{name}-run-hooks.8.gz %{_mandir}/man8/%{name}.8.gz %{_sbindir}/%{name} +%{_sysusersdir}/%{name}.conf %{_unitdir}/%{name}.service %{_unitdir}/%{name}@.service %defattr(0644,root,dhcpcd,0755)