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