1 |
commit: 71022330c7696ed94cbb6b5af48f36a56bf3a066 |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 13 15:17:34 2018 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 16 17:13:17 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71022330 |
7 |
|
8 |
sys-apps/bubblewrap: reviewed ebuild |
9 |
|
10 |
Fix R/DEPEND. Add support for setuid and make it default per |
11 |
bug #669210. Use release tarballs. Fix bash-completion eclass call. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/669210 |
14 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
15 |
Signed-off-by: Gilles Dartiguelongue <eva <AT> gentoo.org> |
16 |
|
17 |
sys-apps/bubblewrap/Manifest | 1 + |
18 |
sys-apps/bubblewrap/bubblewrap-0.3.1-r1.ebuild | 45 ++++++++++++++++++++++++++ |
19 |
2 files changed, 46 insertions(+) |
20 |
|
21 |
diff --git a/sys-apps/bubblewrap/Manifest b/sys-apps/bubblewrap/Manifest |
22 |
index dba0bcb214e..9abc9af835b 100644 |
23 |
--- a/sys-apps/bubblewrap/Manifest |
24 |
+++ b/sys-apps/bubblewrap/Manifest |
25 |
@@ -1 +1,2 @@ |
26 |
DIST bubblewrap-0.3.1.tar.gz 62768 BLAKE2B a8c29102f9b69bfbd6b6aebb9aa0878bd1e31b52a6cb6374b8341c1410526872d4063ff0524ab4f98d7cac7358dad3190144d12bb0b11cf26eeed2730c4ec475 SHA512 fbc44976f53fdf8913b94c57d1f26a3b87c773e86a289e58fd3d7b1c4ea7f33c862f1a38a4f791315358990928768a68334f0a171302c18a16c7e2e9f1a146dd |
27 |
+DIST bubblewrap-0.3.1.tar.xz 209924 BLAKE2B bacc4080106cd9876bf0e1ad866a7397d7d232e61a720b52b5a6b9b0d860e625511ed15ac630aa71003fb9fa145ffa9d08ae2e6ba6d1411fd75e7d9568312717 SHA512 74e36caa56540a956158445f5f38c7ac5f7ff3c733ecaf85893de4607900e1fe4050db86a4435cbe18d722e90c5b39c466c555ea8ea8d4944da6207ef1011d67 |
28 |
|
29 |
diff --git a/sys-apps/bubblewrap/bubblewrap-0.3.1-r1.ebuild b/sys-apps/bubblewrap/bubblewrap-0.3.1-r1.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..39a0a3e1e08 |
32 |
--- /dev/null |
33 |
+++ b/sys-apps/bubblewrap/bubblewrap-0.3.1-r1.ebuild |
34 |
@@ -0,0 +1,45 @@ |
35 |
+# Copyright 1999-2018 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+inherit bash-completion-r1 linux-info |
41 |
+ |
42 |
+DESCRIPTION="Unprivileged sandboxing tool, namespaces-powered chroot-like solution" |
43 |
+HOMEPAGE="https://github.com/projectatomic/bubblewrap" |
44 |
+SRC_URI="https://github.com/projectatomic/${PN}/releases/download/v${PV}/${P}.tar.xz" |
45 |
+ |
46 |
+LICENSE="LGPL-2+" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64" |
49 |
+IUSE="selinux +suid" |
50 |
+ |
51 |
+RDEPEND=" |
52 |
+ sys-libs/libseccomp |
53 |
+ sys-libs/libcap |
54 |
+ selinux? ( >=sys-libs/libselinux-2.1.9 ) |
55 |
+" |
56 |
+DEPEND="${DEPEND} |
57 |
+ app-text/docbook-xml-dtd:4.3 |
58 |
+ app-text/docbook-xsl-stylesheets |
59 |
+ dev-libs/libxslt |
60 |
+ virtual/pkgconfig |
61 |
+" |
62 |
+ |
63 |
+# tests require root priviledge |
64 |
+RESTRICT="test" |
65 |
+ |
66 |
+pkg_setup() { |
67 |
+ if [[ ${MERGE_TYPE} != buildonly ]]; then |
68 |
+ CONFIG_CHECK="~UTS_NS ~IPC_NS ~USER_NS ~PID_NS ~NET_NS" |
69 |
+ linux-info_pkg_setup |
70 |
+ fi |
71 |
+} |
72 |
+ |
73 |
+src_configure() { |
74 |
+ econf \ |
75 |
+ $(use_enable selinux) \ |
76 |
+ "--enable-man" \ |
77 |
+ "--with-bash-completion-dir=$(get_bashcompdir)" \ |
78 |
+ "--with-priv-mode=$(usex suid setuid none)" |
79 |
+} |