commit: a28d72e1da1ed7c8f73df467f230b93d7871261b
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 12 17:36:14 2023 +0000
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sun Mar 12 17:36:52 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a28d72e1
dev-util/catalyst: protect /var/tmp/catalyst via tmpfiles.d
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
dev-util/catalyst/catalyst-9999.ebuild | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/dev-util/catalyst/catalyst-9999.ebuild
b/dev-util/catalyst/catalyst-9999.ebuild
index 81289d3b60f3..537719e8622a 100644
--- a/dev-util/catalyst/catalyst-9999.ebuild
+++ b/dev-util/catalyst/catalyst-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -15,7 +15,7 @@ fi
PYTHON_COMPAT=( python3_{9..10} )
DISTUTILS_USE_SETUPTOOLS=no
-inherit distutils-r1 linux-info optfeature ${SRC_ECLASS}
+inherit distutils-r1 linux-info optfeature tmpfiles ${SRC_ECLASS}
DESCRIPTION="Release metatool used for creating releases based on Gentoo Linux"
HOMEPAGE="https://wiki.gentoo.org/wiki/Catalyst"
@@ -102,6 +102,13 @@ python_install_all() {
fi
}
+src_install() {
+ distutils-r1_src_install
+
+ echo 'd /var/tmp/catalyst 0755 root root' > "${T}"/catalyst-tmpdir.conf
+ dotmpfiles "${T}"/catalyst-tmpdir.conf
+}
+
pkg_postinst() {
if [[ -z ${REPLACING_VERSIONS} ]]; then
optfeature "ccache support" dev-util/ccache