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: Sun, 27 Feb 2022 17:59:28
Message-Id: 1645984762.12b516b46793e5eee544a90e98476a201615ed97.slashbeast@gentoo
1 commit: 12b516b46793e5eee544a90e98476a201615ed97
2 Author: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 27 17:58:21 2022 +0000
4 Commit: Piotr Karbowski <slashbeast <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 27 17:59:22 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12b516b4
7
8 sys-apps/bubblewrap: 0.6.1 version bump; switch to meson.
9
10 Signed-off-by: Piotr Karbowski <slashbeast <AT> gentoo.org>
11
12 sys-apps/bubblewrap/Manifest | 1 +
13 sys-apps/bubblewrap/bubblewrap-0.6.1.ebuild | 57 +++++++++++++++++++++++++++++
14 2 files changed, 58 insertions(+)
15
16 diff --git a/sys-apps/bubblewrap/Manifest b/sys-apps/bubblewrap/Manifest
17 index 558902c44023..4711dbc8c871 100644
18 --- a/sys-apps/bubblewrap/Manifest
19 +++ b/sys-apps/bubblewrap/Manifest
20 @@ -1 +1,2 @@
21 DIST bubblewrap-0.5.0.tar.xz 137796 BLAKE2B 36aef94335d61ae55076a0a94cd6f2c335a87f8df9900c0c603c7ee870cf84c617a0c2ad99a5979cc1dd22740d652155fa6049e717eb210c9a83afe516daa107 SHA512 b1f5bde9562bf3176c51fdc22304b901e00e1de5189d9b5479aed7b651b84bed5539fc5bb3b1db58a05da4a57d69c9f41c40e15aa5a575746630e015674a02b7
22 +DIST bubblewrap-0.6.1.tar.xz 145500 BLAKE2B 8f8f69c5314843be1ac8c52d462ce2b17fc88760274b71837793a3e8dbf87623b80b7ae094131cee896644b53f4761388638d21b1575d1887eb755880bb05845 SHA512 68e07812ff5e01de2b7a0ce66e8386ca3662fd071d4e9b4c4afa611c1589c0ed116e0ebb4c03eae3f707f908d86945e157f8b26ff872c2814889dde92df9c60b
23
24 diff --git a/sys-apps/bubblewrap/bubblewrap-0.6.1.ebuild b/sys-apps/bubblewrap/bubblewrap-0.6.1.ebuild
25 new file mode 100644
26 index 000000000000..cc06208a257a
27 --- /dev/null
28 +++ b/sys-apps/bubblewrap/bubblewrap-0.6.1.ebuild
29 @@ -0,0 +1,57 @@
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 bash-completion-r1 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 ~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 priviledge
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 + '-Dzsh_completion=enabled'
74 + "$(meson_feature selinux)"
75 + )
76 +
77 + meson_src_configure
78 +}
79 +
80 +src_install() {
81 + meson_src_install
82 +
83 + if use suid; then
84 + chmod u+s "${ED}"/usr/bin/bwrap
85 + fi
86 +}