commit:     ed73f41c299d750f7f07bad56014a3f1d138950c
Author:     Emily Mills <emily <AT> emlove <DOT> me>
AuthorDate: Wed Sep 23 18:56:30 2020 +0000
Commit:     Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Wed Sep 23 20:19:15 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed73f41c

net-dns/ddclient: Process tmpfiles after install

Previously, the ddclient cache directory was not created until a reboot.
Switching to the new tmpfiles eclass lets us process the tmpfile config
after installing to ensure the service can be started immediately.

Closes: https://github.com/gentoo/gentoo/pull/17647
Signed-off-by: Emily Mills <emily <AT> emlove.me>
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>

 net-dns/ddclient/ddclient-3.9.1.ebuild | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/net-dns/ddclient/ddclient-3.9.1.ebuild 
b/net-dns/ddclient/ddclient-3.9.1.ebuild
index cd30dfa85f2..8cdf7b8d9a9 100644
--- a/net-dns/ddclient/ddclient-3.9.1.ebuild
+++ b/net-dns/ddclient/ddclient-3.9.1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-inherit systemd
+inherit systemd tmpfiles
 
 DESCRIPTION="Perl client used to update dynamic DNS entries"
 HOMEPAGE="https://ddclient.net/";
@@ -51,7 +51,7 @@ src_install() {
 
        newinitd "${FILESDIR}"/ddclient.initd-r6 ddclient
        systemd_newunit "${FILESDIR}"/ddclient.service-r1 ddclient.service
-       systemd_newtmpfilesd "${FILESDIR}"/ddclient.tmpfiles ddclient.conf
+       newtmpfiles "${FILESDIR}"/ddclient.tmpfiles ddclient.conf
 
        dodoc Change* README* RELEASENOTE TODO UPGRADE
 
@@ -60,3 +60,7 @@ src_install() {
                dodoc sample-*
        fi
 }
+
+pkg_postinst() {
+       tmpfiles_process ddclient.conf
+}

Reply via email to