Gentoo Archives: gentoo-commits

From: Piotr Karbowski <slashbeast@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/bubblewrap/
Date: Wed, 01 Mar 2023 22:49:42
Message-Id: 1677710975.89b2967787393404baf33efaed9c7483bc1e0672.slashbeast@gentoo
1 commit: 89b2967787393404baf33efaed9c7483bc1e0672
2 Author: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 1 22:49:11 2023 +0000
4 Commit: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 1 22:49:35 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89b29677
7
8 sys-apps/bubblewrap: 0.8.0 version bump.
9
10 Signed-off-by: Piotr Karbowski <slashbeast <AT> gentoo.org>
11
12 sys-apps/bubblewrap/Manifest | 1 +
13 sys-apps/bubblewrap/bubblewrap-0.8.0.ebuild | 58 +++++++++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/sys-apps/bubblewrap/Manifest b/sys-apps/bubblewrap/Manifest
17 index 2734051b198c..a40e824b70fd 100644
18 --- a/sys-apps/bubblewrap/Manifest
19 +++ b/sys-apps/bubblewrap/Manifest
20 @@ -1 +1,2 @@
21 DIST bubblewrap-0.7.0.tar.xz 147700 BLAKE2B 379feff513a509e6e00c933ca6bafdeef43827e406fbf31e56c1d16feb099a887f88125fb52d038e78b1604c504bdba771aeaeb3274e8d11163492f00fe9633c SHA512 3d163eecd79774e02d082141d027b7ac13f7d3a29c22f6513203e1088f53d53d8dde50e36fc4c8a34e8cde2f3e2a692e00b741f4bee2cc2bb21b9deb600271b5
22 +DIST bubblewrap-0.8.0.tar.xz 149088 BLAKE2B 5853cf42a7ab653540ec5134866c6f2459aa101e9eea724a4f283405cbcae2beb3551b7c1a7aa93d82016d4eb0d12f9c97c47df53a6d9b589db40483696253de SHA512 1cbc33f3c834ff83f4c1808d3ec2555921277d495f903ad152cbd5065a6e100c5420b4b5c62386bb2d303eb1734e074b09625013e55e3bd8631cfb3582d70e1c
23
24 diff --git a/sys-apps/bubblewrap/bubblewrap-0.8.0.ebuild b/sys-apps/bubblewrap/bubblewrap-0.8.0.ebuild
25 new file mode 100644
26 index 000000000000..fa95d51552b8
27 --- /dev/null
28 +++ b/sys-apps/bubblewrap/bubblewrap-0.8.0.ebuild
29 @@ -0,0 +1,58 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit linux-info meson
36 +
37 +DESCRIPTION="Unprivileged sandboxing tool, namespaces-powered chroot-like solution"
38 +HOMEPAGE="https://github.com/containers/bubblewrap/"
39 +SRC_URI="https://github.com/containers/${PN}/releases/download/v${PV}/${P}.tar.xz"
40 +
41 +LICENSE="LGPL-2+"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
44 +IUSE="selinux suid"
45 +
46 +RDEPEND="
47 + sys-libs/libseccomp
48 + sys-libs/libcap
49 + selinux? ( >=sys-libs/libselinux-2.1.9 )
50 +"
51 +DEPEND="${RDEPEND}"
52 +BDEPEND="
53 + app-text/docbook-xml-dtd:4.3
54 + app-text/docbook-xsl-stylesheets
55 + dev-libs/libxslt
56 + virtual/pkgconfig
57 +"
58 +
59 +# tests require root privileges
60 +RESTRICT="test"
61 +
62 +pkg_setup() {
63 + if [[ ${MERGE_TYPE} != buildonly ]]; then
64 + CONFIG_CHECK="~UTS_NS ~IPC_NS ~USER_NS ~PID_NS ~NET_NS"
65 + linux-info_pkg_setup
66 + fi
67 +}
68 +
69 +src_configure() {
70 + local emesonargs=(
71 + -Dbash_completion=enabled
72 + -Dman=enabled
73 + -Dtests=false
74 + -Dzsh_completion=enabled
75 + $(meson_feature selinux)
76 + )
77 +
78 + meson_src_configure
79 +}
80 +
81 +src_install() {
82 + meson_src_install
83 +
84 + if use suid; then
85 + chmod u+s "${ED}"/usr/bin/bwrap
86 + fi
87 +}