Permalink
Browse files

bubblewrap-0.1.8.ebuild added for real.

  • Loading branch information...
1 parent 0ab5997 commit d0d3d2faf1e3a02e7f3d7402fc823c18f45fe7fe KARBOWSKI Piotr committed Jul 8, 2017
Showing with 41 additions and 0 deletions.
  1. +41 −0 sys-apps/bubblewrap/bubblewrap-0.1.8.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="5"
+
+inherit eutils autotools
+
+DESCRIPTION="Unprivileged sandboxing tool, namespaces-powered chroot-like solution"
+HOMEPAGE="https://github.com/projectatomic/bubblewrap"
+SRC_URI="https://github.com/projectatomic/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2+"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="caps selinux"
+
+DEPEND="
+ sys-libs/libseccomp
+"
+
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+ if ! use selinux; then myconf+=" --disable-selinux"; fi
+ if use caps; then
+ myconf+=" -with-priv-mode=caps"
+ else
+ myconf+=" -with-priv-mode=none"
+ fi
+ econf ${myconf}
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die
+}

0 comments on commit d0d3d2f

Please sign in to comment.