1 |
commit: a17cc07893b943215811c965b28ed672f1a69d91 |
2 |
Author: Sobhan Mohammadpour <sobhan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 9 19:31:02 2018 +0000 |
4 |
Commit: Sobhan Mohammadpour <sobhan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 9 19:31:02 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gnome.git/commit/?id=a17cc078 |
7 |
|
8 |
sys-apps/bubblewrap: new ebuild |
9 |
|
10 |
imported from "foo-overlay" /var/lib/layman/foo-overlay. test don't work |
11 |
but the package seems to work |
12 |
|
13 |
sys-apps/bubblewrap/bubblewrap-0.3.1.ebuild | 51 +++++++++++++++++++++++++++++ |
14 |
sys-apps/bubblewrap/metadata.xml | 8 +++++ |
15 |
2 files changed, 59 insertions(+) |
16 |
|
17 |
diff --git a/sys-apps/bubblewrap/bubblewrap-0.3.1.ebuild b/sys-apps/bubblewrap/bubblewrap-0.3.1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000..dde2efec |
20 |
--- /dev/null |
21 |
+++ b/sys-apps/bubblewrap/bubblewrap-0.3.1.ebuild |
22 |
@@ -0,0 +1,51 @@ |
23 |
+# Copyright 1999-2010 Gentoo Foundation |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+# $Header: $ |
26 |
+ |
27 |
+EAPI="7" |
28 |
+ |
29 |
+inherit autotools bash-completion-r1 linux-info |
30 |
+ |
31 |
+DESCRIPTION="Unprivileged sandboxing tool, namespaces-powered chroot-like solution" |
32 |
+HOMEPAGE="https://github.com/projectatomic/bubblewrap" |
33 |
+SRC_URI="https://github.com/projectatomic/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
34 |
+ |
35 |
+LICENSE="LGPL-2+" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="~amd64" |
38 |
+IUSE="selinux" |
39 |
+ |
40 |
+DEPEND=" |
41 |
+ dev-libs/libxslt |
42 |
+ sys-libs/libseccomp |
43 |
+ sys-libs/libcap |
44 |
+ selinux? ( >=sys-libs/libselinux-2.1.9 ) |
45 |
+" |
46 |
+# FIXME: we don't need bashcomp righ?? |
47 |
+RDEPEND="${DEPEND}" |
48 |
+# FIXME: bash comp is not working |
49 |
+# FIXME: test is not working |
50 |
+pkg_setup() { |
51 |
+ if [[ ${MERGE_TYPE} != buildonly ]]; then |
52 |
+ CONFIG_CHECK="~UTS_NS ~IPC_NS ~USER_NS ~PID_NS ~NET_NS" |
53 |
+ linux-info_pkg_setup |
54 |
+ fi |
55 |
+} |
56 |
+src_prepare() { |
57 |
+ default |
58 |
+ eautoreconf |
59 |
+} |
60 |
+ |
61 |
+src_configure() { |
62 |
+ |
63 |
+ econf \ |
64 |
+ $(use_enable selinux) \ |
65 |
+ "--enable-man" \ |
66 |
+ "--with-bash-completion-dir=${get_bashcompdir}" \ |
67 |
+ "--with-priv-mode=none" |
68 |
+} |
69 |
+ |
70 |
+pkg_postinst() { |
71 |
+ einfo "bashcomp can be used with >=app-shells/bash-completion-2.0" |
72 |
+ einfo "probably needs namespaces" |
73 |
+} |
74 |
|
75 |
diff --git a/sys-apps/bubblewrap/metadata.xml b/sys-apps/bubblewrap/metadata.xml |
76 |
new file mode 100644 |
77 |
index 00000000..39980802 |
78 |
--- /dev/null |
79 |
+++ b/sys-apps/bubblewrap/metadata.xml |
80 |
@@ -0,0 +1,8 @@ |
81 |
+<?xml version="1.0" encoding="UTF-8"?> |
82 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
83 |
+<pkgmetadata> |
84 |
+<maintainer type="project"> |
85 |
+ <email>gnome@g.o</email> |
86 |
+ <name>Gentoo GNOME Desktop</name> |
87 |
+</maintainer> |
88 |
+</pkgmetadata> |