Gentoo Archives: gentoo-commits

From: Sobhan Mohammadpour <sobhan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/bubblewrap/
Date: Mon, 15 Oct 2018 17:19:37
Message-Id: 1539623961.bb45871fbc4b4377acab2571aba695eaef233e61.sobhan@gentoo
1 commit: bb45871fbc4b4377acab2571aba695eaef233e61
2 Author: Sobhan Mohammadpour <sobhan <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 15 17:17:38 2018 +0000
4 Commit: Sobhan Mohammadpour <sobhan <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 15 17:19:21 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb45871f
7
8 sys-apps/bubblewrap: new ebuild
9
10 bubblewrap is a lightweight setuid sandbox application
11 developed from Flatpak with a small installation footprint and
12 minimal resource requirements.
13
14 Package-Manager: Portage-2.3.51, Repoman-2.3.11
15 Signed-off-by: Sobhan Mohammadpour <sobhan <AT> gentoo.org>
16
17 sys-apps/bubblewrap/Manifest | 1 +
18 sys-apps/bubblewrap/bubblewrap-0.3.1.ebuild | 50 +++++++++++++++++++++++++++++
19 sys-apps/bubblewrap/metadata.xml | 8 +++++
20 3 files changed, 59 insertions(+)
21
22 diff --git a/sys-apps/bubblewrap/Manifest b/sys-apps/bubblewrap/Manifest
23 new file mode 100644
24 index 00000000000..dba0bcb214e
25 --- /dev/null
26 +++ b/sys-apps/bubblewrap/Manifest
27 @@ -0,0 +1 @@
28 +DIST bubblewrap-0.3.1.tar.gz 62768 BLAKE2B a8c29102f9b69bfbd6b6aebb9aa0878bd1e31b52a6cb6374b8341c1410526872d4063ff0524ab4f98d7cac7358dad3190144d12bb0b11cf26eeed2730c4ec475 SHA512 fbc44976f53fdf8913b94c57d1f26a3b87c773e86a289e58fd3d7b1c4ea7f33c862f1a38a4f791315358990928768a68334f0a171302c18a16c7e2e9f1a146dd
29
30 diff --git a/sys-apps/bubblewrap/bubblewrap-0.3.1.ebuild b/sys-apps/bubblewrap/bubblewrap-0.3.1.ebuild
31 new file mode 100644
32 index 00000000000..56d2c9cb2b0
33 --- /dev/null
34 +++ b/sys-apps/bubblewrap/bubblewrap-0.3.1.ebuild
35 @@ -0,0 +1,50 @@
36 +# Copyright 1999-2018 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI="7"
40 +
41 +inherit autotools bash-completion-r1 linux-info
42 +
43 +DESCRIPTION="Unprivileged sandboxing tool, namespaces-powered chroot-like solution"
44 +HOMEPAGE="https://github.com/projectatomic/bubblewrap"
45 +SRC_URI="https://github.com/projectatomic/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="LGPL-2+"
48 +SLOT="0"
49 +KEYWORDS="~amd64"
50 +IUSE="selinux"
51 +
52 +DEPEND="
53 + dev-libs/libxslt
54 + sys-libs/libseccomp
55 + sys-libs/libcap
56 + selinux? ( >=sys-libs/libselinux-2.1.9 )
57 +"
58 +# FIXME: we don't need bashcomp righ??
59 +RDEPEND="${DEPEND}"
60 +# FIXME: bash comp is not working
61 +# FIXME: test is not working
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 +src_prepare() {
69 + default
70 + eautoreconf
71 +}
72 +
73 +src_configure() {
74 +
75 + econf \
76 + $(use_enable selinux) \
77 + "--enable-man" \
78 + "--with-bash-completion-dir=${get_bashcompdir}" \
79 + "--with-priv-mode=none"
80 +}
81 +
82 +pkg_postinst() {
83 + einfo "bashcomp can be used with >=app-shells/bash-completion-2.0"
84 + einfo "probably needs namespaces"
85 +}
86
87 diff --git a/sys-apps/bubblewrap/metadata.xml b/sys-apps/bubblewrap/metadata.xml
88 new file mode 100644
89 index 00000000000..39980802b1d
90 --- /dev/null
91 +++ b/sys-apps/bubblewrap/metadata.xml
92 @@ -0,0 +1,8 @@
93 +<?xml version="1.0" encoding="UTF-8"?>
94 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
95 +<pkgmetadata>
96 +<maintainer type="project">
97 + <email>gnome@g.o</email>
98 + <name>Gentoo GNOME Desktop</name>
99 +</maintainer>
100 +</pkgmetadata>