commit:     4547e3b4b5a864259720ace1fecb2e7581d150a0
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 21 13:09:35 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sat Dec 21 13:30:21 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4547e3b4

sys-fs/lxcfs: add 6.0.3

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 sys-fs/lxcfs/Manifest           |  2 ++
 sys-fs/lxcfs/lxcfs-6.0.3.ebuild | 80 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 82 insertions(+)

diff --git a/sys-fs/lxcfs/Manifest b/sys-fs/lxcfs/Manifest
index a3f15d173fec..61044852786d 100644
--- a/sys-fs/lxcfs/Manifest
+++ b/sys-fs/lxcfs/Manifest
@@ -2,3 +2,5 @@ DIST lxcfs-5.0.4.tar.gz 104249 BLAKE2B 
83a7b861136c34da8a24dd525fd0767193f2bbd92
 DIST lxcfs-5.0.4.tar.gz.asc 833 BLAKE2B 
aff883d24b374b296ea3678670e5e82c723fd0e35cfd7fed555aabbd811a104becc0b741331b4aa4a5129c9fff4dc88c6a86e7d64a89fe86aea81718f5d432dd
 SHA512 
56b639597dbaf3008fe030147ea37192bd465c467a79e11ce139bcaa6bca1625b4bb9c4eda6ea1877446769f0fad9b4c5a3513d4f4415b841db96d5da8325ddc
 DIST lxcfs-6.0.2.tar.gz 105748 BLAKE2B 
d6f5d74db46346a0c9fd365652990a79aec209910a698af40a6b30f2c28618f5a618e9dfb1ff6c11bc2b93b2da001dc110400cd121f71446a7184d7b617774de
 SHA512 
4f01793495889f129dc97e140df7649ed1809bf52ad2f6e2786721b389a9a748e75987ea704529c40d76623b90030d9c0ee1e66338e7e1c24330e96118db5aa3
 DIST lxcfs-6.0.2.tar.gz.asc 833 BLAKE2B 
47db49320a530c649174410c63a07214d003e68c1980274a6c08dcaf6c8ec3ab59a1e34fddfc78d881b5fbb1ea6720f807be1c6eec73822f878b79fd4a1a45c3
 SHA512 
564f47dbbc1ee8e718c2c740ae3c0a5574040509a0463434aa236ba2e945a23cf18014ac1d4668c7f3bd6ce656ca4120d464c130f6ceeb1e0fb22996675d8c5c
+DIST lxcfs-6.0.3.tar.gz 106684 BLAKE2B 
358033df95b52c6b04f5f622eb89e1f62f4f86098d9478b2643c83c3b62c5a6d1429c34b37b7d6241b522ec1d0ec8f8922c01a990cfb75b0b022b00720ded1d3
 SHA512 
c32941ccdba5906f5542b393077ea6cad9d5cd83eab38692c22614c19fec4f0fe95d3428ae7a49f6e9e9e1879db3479a2a09f37755d2c45c8230b099986eec2d
+DIST lxcfs-6.0.3.tar.gz.asc 833 BLAKE2B 
202b5539f5d4621e0d2071aaa861976af801a6c5c49bf921acd9015923bf8201178273aa79d7b69b51d7fa1abb0112a4960452e86d7d340b752b2f8d4bb2c559
 SHA512 
dd27747d56cddb6e0057232a9a451f5d08d812aa73fe70633d31ce38d650dcbdda3e6f195aad3d591dd4ba3ad7cdf658b0bb1ce55b660d26d315ad598d44a74e

diff --git a/sys-fs/lxcfs/lxcfs-6.0.3.ebuild b/sys-fs/lxcfs/lxcfs-6.0.3.ebuild
new file mode 100644
index 000000000000..51159a0a3ef4
--- /dev/null
+++ b/sys-fs/lxcfs/lxcfs-6.0.3.ebuild
@@ -0,0 +1,80 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+
+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=""
+               -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
+       systemd_newunit "${FILESDIR}"/lxcfs-5.0.2.service lxcfs.service
+}

Reply via email to