commit: bd2061f5fbd1f1f5490201fe04d965396750ca24
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 30 22:56:32 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jul 30 23:30:02 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd2061f5
net-dns/pdnsd: [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-dns/pdnsd/pdnsd-1.2.9a-r2.ebuild | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/net-dns/pdnsd/pdnsd-1.2.9a-r2.ebuild
b/net-dns/pdnsd/pdnsd-1.2.9a-r2.ebuild
index 8769b15cfd5..209fff4708a 100644
--- a/net-dns/pdnsd/pdnsd-1.2.9a-r2.ebuild
+++ b/net-dns/pdnsd/pdnsd-1.2.9a-r2.ebuild
@@ -94,14 +94,5 @@ pkg_postinst() {
elog ""
elog "Sample config file in /etc/pdnsd/pdnsd.conf.sample"
- # The tmpfiles.d configuration does not come into effect before the
- # next reboot so create the cachedir now.
- local cachedir="${EPREFIX}/var/cache/pdnsd"
- if [[ ! -d "${cachedir}" ]] ; then
- mkdir "${cachedir}" || eerror "Failed to create cache"
- fi
- chown pdnsd:pdnsd "${cachedir}" \
- || eerror "Failed to set ownership for cachedir"
- chmod 0750 "${cachedir}" \
- || eerror "Failed to set permissions for cachedir"
+ tmpfiles_process pdnsd.conf
}