1 |
commit: bca5d4fb45ce222ce38ec21941d7af4ebe687a79 |
2 |
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 2 06:33:16 2022 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 2 08:53:06 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bca5d4fb |
7 |
|
8 |
sys-fs/lxcfs: add 4.0.12 |
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.12.ebuild | 59 ++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 61 insertions(+) |
15 |
|
16 |
diff --git a/sys-fs/lxcfs/Manifest b/sys-fs/lxcfs/Manifest |
17 |
index 00de6fa22034..4e0149e0c420 100644 |
18 |
--- a/sys-fs/lxcfs/Manifest |
19 |
+++ b/sys-fs/lxcfs/Manifest |
20 |
@@ -1,2 +1,4 @@ |
21 |
DIST lxcfs-4.0.11.tar.gz 451424 BLAKE2B 8cb1f16ec8f2f5dbcaea9897553c21f2894ce75713c4de7fd9412254ef4e74cef93fbd9c79e259e0caf2426520d9454858bc0f09b652b00305699d52b4240cbf SHA512 60a76b8d3ab8a164ead8424cf2a20cdb616919318881348016299d2b5bff9d221c12b9208b46e6f72a84695632a762292313e0b51579d590ce505cf5b6fec6de |
22 |
DIST lxcfs-4.0.11.tar.gz.asc 833 BLAKE2B f70bcf119588c1e667111fe0e820c1bbd53c912027a94b600ce69713eb824f0b495cee4ab0107cf92bd5f10c0a17e9e5e85833f15f7ff570931c9df454f16bf9 SHA512 a9190c5913d0879c0034b1ff1f06b7755f8b78094270d64c89a371b56737e32c2a14681a58643e8ebde9d654ff2c66959ee9a4f6d5f6a6002f52da1362017d9f |
23 |
+DIST lxcfs-4.0.12.tar.gz 461251 BLAKE2B c0d1cc699461eed2e29ddb1937e8f4719be78a8f17c20b9dd682a617bc0423b22b4491399b934aa7f4be8f5ca292ab4c9e97e7bf149700c0c3760c8b3804ae11 SHA512 da8415599bb08e4e15a7e4044edbcad217e4034d96366d508e06cceb2a75d459e24aeb7efd5716e2f41449ec653ecd9916f0d934f738e1df8e9576738cc1ac18 |
24 |
+DIST lxcfs-4.0.12.tar.gz.asc 833 BLAKE2B af8bf08039e7bc1f405c468de0dd628175cef3ea6087c5fa1c0d95f9153df939a84f9a5d9d895fb471c0262616eb88f03532ac789b0c6198ad1349cff9a6c5de SHA512 20f1919ff216f5459e8e387c78b1430b5122e662adec27bdd9c6fd4565645b73ed5bce5e7e843da05d8cfdc17f1a3e964c20c6ad47d4dbd5df68c3f9359fb362 |
25 |
|
26 |
diff --git a/sys-fs/lxcfs/lxcfs-4.0.12.ebuild b/sys-fs/lxcfs/lxcfs-4.0.12.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..8b6377221315 |
29 |
--- /dev/null |
30 |
+++ b/sys-fs/lxcfs/lxcfs-4.0.12.ebuild |
31 |
@@ -0,0 +1,59 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+inherit autotools flag-o-matic 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 LGPL-2+" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~riscv ~x86" |
47 |
+ |
48 |
+RDEPEND="sys-fs/fuse:3" |
49 |
+DEPEND="${RDEPEND}" |
50 |
+BDEPEND="sys-apps/help2man |
51 |
+ verify-sig? ( sec-keys/openpgp-keys-linuxcontainers )" |
52 |
+ |
53 |
+# Looks like these won't ever work in a container/chroot environment. #764620 |
54 |
+RESTRICT="test" |
55 |
+ |
56 |
+VERIFY_SIG_OPENPGP_KEY_PATH=${BROOT}/usr/share/openpgp-keys/linuxcontainers.asc |
57 |
+ |
58 |
+src_prepare() { |
59 |
+ default |
60 |
+ eautoreconf |
61 |
+} |
62 |
+ |
63 |
+src_configure() { |
64 |
+ # Needed for x86 support, bug #819762 |
65 |
+ # May be able to drop when/if ported to meson, but re-test w/ x86 chroot |
66 |
+ append-lfs-flags |
67 |
+ |
68 |
+ # Without the localstatedir the filesystem isn't mounted correctly |
69 |
+ # Without with-distro ./configure will fail when cross-compiling |
70 |
+ econf --localstatedir=/var --with-distro=gentoo --disable-static |
71 |
+} |
72 |
+ |
73 |
+src_test() { |
74 |
+ cd tests/ || die |
75 |
+ emake -j1 tests |
76 |
+ ./main.sh || die "Tests failed" |
77 |
+} |
78 |
+ |
79 |
+src_install() { |
80 |
+ default |
81 |
+ |
82 |
+ newconfd "${FILESDIR}"/lxcfs-4.0.0.confd lxcfs |
83 |
+ newinitd "${FILESDIR}"/lxcfs-4.0.0.initd lxcfs |
84 |
+ |
85 |
+ # Provide our own service file (copy of upstream) due to paths being different from upstream, |
86 |
+ # #728470 |
87 |
+ systemd_newunit "${FILESDIR}"/lxcfs-4.0.0.service lxcfs.service |
88 |
+ |
89 |
+ find "${ED}" -name '*.la' -delete || die |
90 |
+} |