mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
sys-fs/lxcfs: Sync with Gentoo
It's from Gentoo commit ff832c0d6ed2e0575a745daa59d46c34ff1a4732. Signed-off-by: Flatcar Buildbot <buildbot@flatcar-linux.org>
This commit is contained in:
parent
71d99f0109
commit
c7c0514146
@ -4,3 +4,5 @@ DIST lxcfs-6.0.4.tar.gz 106751 BLAKE2B 4f05cb5e31ed1f313eeb42ac7cc9e68031011af36
|
||||
DIST lxcfs-6.0.4.tar.gz.asc 833 BLAKE2B 71d552694273e6b3fbeaa4fd2a07ad783ca66824fa7fef69ba79a343b65e57295a702efe580c17e77c6fdb3f79364e98206a099ef3ac99b1d1238178cd343e20 SHA512 fecc002f39f841f3ffbfd7c543cdfed61b9276e962a75230b2962a36bbef04f5444481bb1409ba38ed8f619d0887313f1cc84389f64755d6168c017f68bbaeb2
|
||||
DIST lxcfs-6.0.5.tar.gz 106565 BLAKE2B 1a726165be6670c7da4cab3e401e81229ba34f0852885de7d96e3099715c67aa5f49b48f7cfead1659cce1d0b3e191b6206df0b214a2487cac35170ea0ba104e SHA512 729c75bca4da79af9c38c6a42dbebf876d861e0b2c4b825c46edc3a39d27bae1a6a4faeff000d8a1e1a887437184a0413f763512c789cf9ce3ddbaab02de4ece
|
||||
DIST lxcfs-6.0.5.tar.gz.asc 833 BLAKE2B 58a12c083bf4b1d5138aec172223eed1d79284c6d48cc7262f9e9dac479894f094d6a8f2051aee9352c99947a638bb891cd48690d194e3d4b4392231ff8ebaef SHA512 c50289168d1a6c970dcffe61dcf2ee5296420c91cd8638b0f285e53e07b0e0d3704a199c8eceee2d282b2906e430165e86315271a9bd9335a91252727c2c921c
|
||||
DIST lxcfs-6.0.6.tar.gz 107250 BLAKE2B 450c82293cc02477261e7b1b00e89e4ce293d2c991525b42ebf10de8ed88b221680ab05c1b41b763b02d7a53cbce7beb05e84d6218c8add46e564723c9b1004f SHA512 cf8801c3b990e0630983cb42e2093e8f66ef5ae185b206b1ba1429edf199cefe1cd36dc6024453ecf2917c16b83e4ea1516a58dcbf61a5df0a4afbecb0cfff82
|
||||
DIST lxcfs-6.0.6.tar.gz.asc 833 BLAKE2B 69d03a0089c2b9141816bf1b1c778cd8563afdac12f83546ee16ec8497ae17d16a2ae335dc3fa29bae3fe827b8ba7dd161568156cd6231cb85731dc9993bdccb SHA512 e5b76c82577689f26d4d44808d37af5530f7dfdeed8a104a0c7eddc541902bf4cfdabbdae681c7917418f8461a527baf2b70d07f03b396e808537bb327c7864c
|
||||
|
||||
82
sdk_container/src/third_party/portage-stable/sys-fs/lxcfs/lxcfs-6.0.6.ebuild
vendored
Normal file
82
sdk_container/src/third_party/portage-stable/sys-fs/lxcfs/lxcfs-6.0.6.ebuild
vendored
Normal file
@ -0,0 +1,82 @@
|
||||
# Copyright 2022-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{11..14} )
|
||||
|
||||
inherit cmake meson python-any-r1 systemd verify-sig
|
||||
|
||||
DESCRIPTION="FUSE filesystem for LXC"
|
||||
HOMEPAGE="https://linuxcontainers.org/lxcfs/introduction/ https://github.com/lxc/lxcfs/"
|
||||
SRC_URI="https://linuxcontainers.org/downloads/lxcfs/${P}.tar.gz
|
||||
verify-sig? ( https://linuxcontainers.org/downloads/lxcfs/${P}.tar.gz.asc )"
|
||||
|
||||
LICENSE="Apache-2.0 LGPL-2+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
|
||||
IUSE="doc test"
|
||||
|
||||
DEPEND="sys-fs/fuse:3="
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="${PYTHON_DEPS}
|
||||
virtual/pkgconfig
|
||||
$(python_gen_any_dep '
|
||||
dev-python/jinja2[${PYTHON_USEDEP}]
|
||||
')
|
||||
doc? ( sys-apps/help2man )
|
||||
verify-sig? ( sec-keys/openpgp-keys-linuxcontainers )"
|
||||
|
||||
# Needs some black magic to work inside container/chroot.
|
||||
RESTRICT="test"
|
||||
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/linuxcontainers.asc
|
||||
|
||||
python_check_deps() {
|
||||
python_has_version -b "dev-python/jinja2[${PYTHON_USEDEP}]"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
python-any-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Fix python shebangs for python-exec[-native-symlinks], #851480
|
||||
local shebangs=($(grep -rl "#!/usr/bin/env python3" || die))
|
||||
python_fix_shebang -q ${shebangs[*]}
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local emesonargs=(
|
||||
--localstatedir "${EPREFIX}/var"
|
||||
|
||||
$(meson_use doc docs)
|
||||
$(meson_use test tests)
|
||||
|
||||
-Dfuse-version=3
|
||||
-Dinit-script=""
|
||||
-Dmocks=false
|
||||
-Dwith-init-script=""
|
||||
)
|
||||
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_test() {
|
||||
cd "${BUILD_DIR}"/tests || die "failed to change into tests/ directory."
|
||||
./main.sh || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
|
||||
newconfd "${FILESDIR}"/lxcfs-5.0.2.confd lxcfs
|
||||
newinitd "${FILESDIR}"/lxcfs-5.0.2.initd lxcfs
|
||||
|
||||
# Provide our own service file (copy of upstream) due to paths being different from upstream,
|
||||
# #728470
|
||||
# https://github.com/lxc/lxcfs/tree/main/config/init
|
||||
systemd_newunit "${FILESDIR}"/lxcfs-5.0.2.service lxcfs.service
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user