diff --git a/dhcp.spec b/dhcp.spec index f35b98b..226d1c1 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -51,8 +51,7 @@ Source5: 56dhclient Source6: dhcpd.service Source7: dhcpd6.service Source8: dhcrelay.service -Source11: systemd-sysusers.conf -Source12: systemd-tmpfiles.conf +Source11: dhcp.sysusers Patch1: 0001-change-bug-url.patch Patch2: 0002-additional-dhclient-options.patch @@ -339,9 +338,8 @@ install -m 644 %{SOURCE7} %{buildroot}%{_unitdir} %endif install -m 644 %{SOURCE8} %{buildroot}%{_unitdir} -# Install systemd sysusers and tmpfiles configs +# systemd-sysusers install -p -D -m 0644 %{SOURCE11} %{buildroot}%{_sysusersdir}/dhcp.conf -install -p -D -m 0644 %{SOURCE12} %{buildroot}%{_tmpfilesdir}/dhcp.conf %if %{with dhcpd} # Start empty lease databases @@ -433,7 +431,6 @@ find %{buildroot} -type f -name "*.la" -delete -print %if %{without dhcpd} rm -frv \ %{buildroot}%{_sysusersdir}/dhcp.conf \ - %{buildroot}%{_tmpfilesdir}/dhcp.conf \ %{buildroot}%{_sbindir}/dhcpd \ %{buildroot}%{_bindir}/omshell \ %{buildroot}%{_mandir}/man1/omshell.1 \ @@ -558,7 +555,6 @@ done %attr(0644,root,root) %{_unitdir}/dhcpd.service %attr(0644,root,root) %{_unitdir}/dhcpd6.service %{_sysusersdir}/dhcp.conf -%{_tmpfilesdir}/dhcp.conf %{_sbindir}/dhcpd %{_bindir}/omshell %attr(0644,root,root) %{_mandir}/man1/omshell.1.gz diff --git a/systemd-sysusers.conf b/dhcp.sysusers similarity index 100% rename from systemd-sysusers.conf rename to dhcp.sysusers diff --git a/systemd-tmpfiles.conf b/systemd-tmpfiles.conf deleted file mode 100644 index 14fae32..0000000 --- a/systemd-tmpfiles.conf +++ /dev/null @@ -1 +0,0 @@ -d /var/lib/dhcpd 0755 dhcpd dhcpd -