commit:     8cd2b4c8c0afc62d40af8e0d220ec9408698bd7f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 30 22:57:17 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jul 30 23:30:08 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8cd2b4c8

net-misc/dhcp: [QA] call tmpfiles_process in pkg_postinst

This is needed to actually apply the tmpfiles configuration
we've installed in the ebuild. See tmpfiles.eclass documentation.

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/dhcp/dhcp-4.4.2_p1-r1.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/net-misc/dhcp/dhcp-4.4.2_p1-r1.ebuild 
b/net-misc/dhcp/dhcp-4.4.2_p1-r1.ebuild
index 57fd8dd47f4..7ae208514c6 100644
--- a/net-misc/dhcp/dhcp-4.4.2_p1-r1.ebuild
+++ b/net-misc/dhcp/dhcp-4.4.2_p1-r1.ebuild
@@ -271,6 +271,10 @@ pkg_preinst() {
 }
 
 pkg_postinst() {
+       if use server ; then
+               tmpfiles_process dhcpd.conf
+       fi
+
        if [[ -e "${ROOT}"/etc/init.d/dhcp ]] ; then
                ewarn
                ewarn "WARNING: The dhcp init script has been renamed to dhcpd"

Reply via email to