Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/lxcfs/
Date: Fri, 30 Apr 2021 07:01:42
Message-Id: 1619766091.f5fcea4f68f98dbc5cd67b508128291190a4b05d.juippis@gentoo
1 commit: f5fcea4f68f98dbc5cd67b508128291190a4b05d
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 30 06:59:45 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 30 07:01:31 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5fcea4f
7
8 sys-fs/lxcfs: bump to 4.0.8
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 sys-fs/lxcfs/Manifest | 2 ++
13 sys-fs/lxcfs/lxcfs-4.0.8.ebuild | 56 +++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 58 insertions(+)
15
16 diff --git a/sys-fs/lxcfs/Manifest b/sys-fs/lxcfs/Manifest
17 index 3dda92556ab..cc9fef66a24 100644
18 --- a/sys-fs/lxcfs/Manifest
19 +++ b/sys-fs/lxcfs/Manifest
20 @@ -1,2 +1,4 @@
21 DIST lxcfs-4.0.7.tar.gz 454108 BLAKE2B 8af5a9177089d0629ef05b6f28b9945dcf6f1102bbc3c5458fd71959912201d24b9ea31fc4b4dc51dca388d59ba1ad2a4494561108632abe8b90f1bef4a2e85f SHA512 ab66d4278f8a5e0bb0e7495badcd587ef5fa48fb6271d8682cdca8b0f7c5c4b5f889ca43a86520e6aa28d6824be20f050707169bbed5921e3e4f7eaa0be7a1d5
22 DIST lxcfs-4.0.7.tar.gz.asc 833 BLAKE2B 26cb25e41471257925600fcab5a01933076c1ab304e14f71defc21c5b7563e2c0acd832051def79f277322e47a0efe76eb41121293a9b796e486e8a7747f5e2f SHA512 3e9ff48197caca2776665171167805627a421741c02ee4a30e22b3c4ff8e9e58d71997302f45772c58de831ba5315fd335e8856553cfbfcbae1909ad8625f505
23 +DIST lxcfs-4.0.8.tar.gz 458975 BLAKE2B 19ac81c36c3aad0ee3301eda73aa29399304dff1c827041678be73c4134181667a4d92b3efa37a44b2853b825031fef2e07e7cbfcaf552676a01f5f9faedf9c3 SHA512 830a4a25583a645b59c75327701af24c239323bfe822180c2cb7cb7cc284f50e8bb7c38e771ea869b4449370af1ab1a4fed9611c6495883d193f5a0f6f71380e
24 +DIST lxcfs-4.0.8.tar.gz.asc 833 BLAKE2B da4ef0f8d6dea59d83f708b6aa7c1835773537e3111d8e9aaf4a7c111d21a0b57486cc9828919bea55ea06ee6bf3e03eeae89eb26199e287066b309d6d798c8d SHA512 f8fc10e52472fff599df7e008d34346489754d64347d005794a4b280949130bb0370ade0d65c9eb182914cae3a6c55f9872bc38481b0b64ea1218c8d1640a74f
25
26 diff --git a/sys-fs/lxcfs/lxcfs-4.0.8.ebuild b/sys-fs/lxcfs/lxcfs-4.0.8.ebuild
27 new file mode 100644
28 index 00000000000..61b57c9974a
29 --- /dev/null
30 +++ b/sys-fs/lxcfs/lxcfs-4.0.8.ebuild
31 @@ -0,0 +1,56 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit autotools systemd verify-sig
38 +
39 +DESCRIPTION="FUSE filesystem for LXC"
40 +HOMEPAGE="https://linuxcontainers.org/lxcfs/introduction/ https://github.com/lxc/lxcfs/"
41 +SRC_URI="https://linuxcontainers.org/downloads/lxcfs/${P}.tar.gz
42 + verify-sig? ( https://linuxcontainers.org/downloads/lxcfs/${P}.tar.gz.asc )"
43 +
44 +LICENSE="Apache-2.0"
45 +SLOT="0"
46 +KEYWORDS="~amd64"
47 +
48 +RDEPEND="dev-libs/glib:2
49 + sys-fs/fuse:3"
50 +DEPEND="${RDEPEND}"
51 +BDEPEND="sys-apps/help2man
52 + verify-sig? ( app-crypt/openpgp-keys-linuxcontainers )"
53 +
54 +# Test files need to be updated to fuse:3, #764620
55 +RESTRICT="test"
56 +
57 +VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/linuxcontainers.asc
58 +
59 +src_prepare() {
60 + default
61 + eautoreconf
62 +}
63 +
64 +src_configure() {
65 + # Without the localstatedir the filesystem isn't mounted correctly
66 + # Without with-distro ./configure will fail when cross-compiling
67 + econf --localstatedir=/var --with-distro=gentoo --disable-static
68 +}
69 +
70 +src_test() {
71 + cd tests/ || die
72 + emake tests
73 + ./main.sh || die "Tests failed"
74 +}
75 +
76 +src_install() {
77 + default
78 +
79 + newconfd "${FILESDIR}"/lxcfs-4.0.0.confd lxcfs
80 + newinitd "${FILESDIR}"/lxcfs-4.0.0.initd lxcfs
81 +
82 + # Provide our own service file (copy of upstream) due to paths being different from upstream,
83 + # #728470
84 + systemd_newunit "${FILESDIR}"/lxcfs-4.0.0.service lxcfs.service
85 +
86 + find "${ED}" -name '*.la' -delete || die
87 +}