sys-apps/portage: use systemd eclass for tmpfiles support
authorZac Medico <zmedico@gentoo.org>
Fri, 5 Jan 2018 00:19:22 +0000 (16:19 -0800)
committerZac Medico <zmedico@gentoo.org>
Fri, 5 Jan 2018 00:20:10 +0000 (16:20 -0800)
Closes: https://bugs.gentoo.org/643386
Package-Manager: Portage-2.3.19, Repoman-2.3.6

sys-apps/portage/portage-2.3.19-r1.ebuild
sys-apps/portage/portage-9999.ebuild

index ad03ed45ed626392d6f63f1698cee2b8e196e7f8..b4d889b80920ccdf611a4b2a84c041a1083a68ce 100644 (file)
@@ -10,7 +10,7 @@ PYTHON_COMPAT=(
 )
 PYTHON_REQ_USE='bzip2(+),threads(+)'
 
-inherit distutils-r1
+inherit distutils-r1 systemd
 
 DESCRIPTION="Portage is the package management and distribution system for Gentoo"
 HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage"
@@ -203,8 +203,7 @@ python_install_all() {
                esetup.py "${targets[@]}"
        fi
 
-       insinto /usr/lib/tmpfiles.d
-       doins "${FILESDIR}"/portage-ccache.conf
+       systemd_dotmpfilesd "${FILESDIR}"/portage-ccache.conf
 
        # Due to distutils/python-exec limitations
        # these must be installed to /usr/bin.
index db45902de9a12a19788e239d964dd6009b3296a5..3464c42d718944eca7bc68a558fe576e35486eaa 100644 (file)
@@ -10,7 +10,7 @@ PYTHON_COMPAT=(
 )
 PYTHON_REQ_USE='bzip2(+),threads(+)'
 
-inherit distutils-r1 git-r3
+inherit distutils-r1 git-r3 systemd
 
 DESCRIPTION="Portage is the package management and distribution system for Gentoo"
 HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage"
@@ -202,8 +202,7 @@ python_install_all() {
                esetup.py "${targets[@]}"
        fi
 
-       insinto /usr/lib/tmpfiles.d
-       doins "${FILESDIR}"/portage-ccache.conf
+       systemd_dotmpfilesd "${FILESDIR}"/portage-ccache.conf
 
        # Due to distutils/python-exec limitations
        # they must be installed to /usr/bin.