commit:     d20566c2bfb09c05e8c0eda90b74469736cacf82
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Sep  9 21:02:27 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Sep  9 21:11:23 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d20566c2

sys-apps/sydbox: ptrace()-based sandbox from Exherbo

 sys-apps/sydbox/Manifest            |  1 +
 sys-apps/sydbox/metadata.xml        |  8 ++++++++
 sys-apps/sydbox/sydbox-1.0.7.ebuild | 32 ++++++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+)

diff --git a/sys-apps/sydbox/Manifest b/sys-apps/sydbox/Manifest
new file mode 100644
index 00000000000..83cb14f0bca
--- /dev/null
+++ b/sys-apps/sydbox/Manifest
@@ -0,0 +1 @@
+DIST sydbox-1.0.7.tar.bz2 480350 SHA256 
d8869d15f9631e16691f355667eee128bb041db4088fd6588c4f0e09685b2a92 SHA512 
b14d0cc6929aa705380dc2710e772054e07ca52c2990a71cac42d1111c90baf22253e168e1fe20eaf94ccde4d1ea1a3c1c26e4b9dd292f20a1028dc78a4e80d5
 WHIRLPOOL 
eca7f45e72494bb8fa81c49af0758ab7e97d19d07d870507adaf50088fe7998f37e6e8974fd6592f7f7a6b0262b09f5cdaa9e09f43b9d7b314e233ed765028cf

diff --git a/sys-apps/sydbox/metadata.xml b/sys-apps/sydbox/metadata.xml
new file mode 100644
index 00000000000..0319eec4c8b
--- /dev/null
+++ b/sys-apps/sydbox/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>mgo...@gentoo.org</email>
+               <name>Michał Górny</name>
+       </maintainer>
+</pkgmetadata>

diff --git a/sys-apps/sydbox/sydbox-1.0.7.ebuild 
b/sys-apps/sydbox/sydbox-1.0.7.ebuild
new file mode 100644
index 00000000000..660422f3a51
--- /dev/null
+++ b/sys-apps/sydbox/sydbox-1.0.7.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="ptrace-based sandbox"
+HOMEPAGE="https://git.exherbo.org/sydbox-1.git";
+SRC_URI="http://distfiles.exherbo.org/distfiles/${P}.tar.bz2";
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="debug seccomp test"
+
+RDEPEND="sys-libs/pinktrace:=
+       debug? ( sys-libs/libunwind:= )"
+DEPEND="${RDEPEND}
+       test? ( app-portage/unsandbox )"
+
+src_configure() {
+       local myconf=(
+               $(use_enable debug)
+               $(use_enable seccomp)
+       )
+
+       econf "${myconf[@]}"
+}
+
+src_test() {
+       # two sandboxes are never a good idea ;-)
+       unsandbox emake check
+}

Reply via email to