diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2023-03-12 18:36:14 +0100 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2023-03-12 18:36:52 +0100 |
commit | a28d72e1da1ed7c8f73df467f230b93d7871261b (patch) | |
tree | c5c4dff6143b52c5ab7f96b3f359143073af573f /dev-util/catalyst | |
parent | dev-util/jenkins-bin: add 2.387.1 (diff) | |
download | gentoo-a28d72e1da1ed7c8f73df467f230b93d7871261b.tar.gz gentoo-a28d72e1da1ed7c8f73df467f230b93d7871261b.tar.bz2 gentoo-a28d72e1da1ed7c8f73df467f230b93d7871261b.zip |
dev-util/catalyst: protect /var/tmp/catalyst via tmpfiles.d
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'dev-util/catalyst')
-rw-r--r-- | dev-util/catalyst/catalyst-9999.ebuild | 11 |
1 files 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 |