Replace the use of systemd.eclass with more generic tmpfiles.eclass to install the tmpfiles.d file. Use tmpfiles_process to ensure that the directory is created and correctly owned instead of keepdir-ing it (which triggers QA warnings from Portage) and chown-ing it in pkg_postinst() (which is a hack to workaround Portage design issues). --- app-portage/eix/{eix-0.32.5-r1.ebuild => eix-0.32.5-r2.ebuild} | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) rename app-portage/eix/{eix-0.32.5-r1.ebuild => eix-0.32.5-r2.ebuild} (93%)
diff --git a/app-portage/eix/eix-0.32.5-r1.ebuild b/app-portage/eix/eix-0.32.5-r2.ebuild similarity index 93% rename from app-portage/eix/eix-0.32.5-r1.ebuild rename to app-portage/eix/eix-0.32.5-r2.ebuild index 2026b44a4b15..1d6fa3801834 100644 --- a/app-portage/eix/eix-0.32.5-r1.ebuild +++ b/app-portage/eix/eix-0.32.5-r2.ebuild @@ -4,7 +4,7 @@ EAPI=6 PLOCALES="de ru" -inherit autotools bash-completion-r1 l10n systemd flag-o-matic +inherit autotools bash-completion-r1 l10n flag-o-matic tmpfiles DESCRIPTION="Search and query ebuilds" HOMEPAGE="https://github.com/vaeth/eix/" @@ -83,20 +83,18 @@ src_configure() { src_install() { default dobashcomp bash/eix - systemd_dotmpfilesd tmpfiles.d/eix.conf + dotmpfiles tmpfiles.d/eix.conf insinto /usr/share/${PN} doins "${ED}"/usr/bin/eix-functions.sh rm -r "${ED}"/usr/bin/eix-functions.sh || die - - keepdir /var/cache/eix } pkg_postinst() { if ! use prefix; then # note: if this is done in src_install(), portage:portage # ownership may be reset to root - chown portage:portage "${EROOT%/}"/var/cache/eix || die + tmpfiles_process eix.conf fi local obs=${EROOT%/}/var/cache/eix.previous -- 2.13.0.rc1