summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-09-09 23:02:27 +0200
committerMichał Górny <mgorny@gentoo.org>2017-09-09 23:11:23 +0200
commitd20566c2bfb09c05e8c0eda90b74469736cacf82 (patch)
tree1a5826faa6bf1b93ff4b2e173e91ba42505f5a8b /sys-apps/sydbox
parentsys-libs/pinktrace: Easy tracing lib, dep of sydbox (diff)
downloadgentoo-d20566c2bfb09c05e8c0eda90b74469736cacf82.tar.gz
gentoo-d20566c2bfb09c05e8c0eda90b74469736cacf82.tar.bz2
gentoo-d20566c2bfb09c05e8c0eda90b74469736cacf82.zip
sys-apps/sydbox: ptrace()-based sandbox from Exherbo
Diffstat (limited to 'sys-apps/sydbox')
-rw-r--r--sys-apps/sydbox/Manifest1
-rw-r--r--sys-apps/sydbox/metadata.xml8
-rw-r--r--sys-apps/sydbox/sydbox-1.0.7.ebuild32
3 files changed, 41 insertions, 0 deletions
diff --git a/sys-apps/sydbox/Manifest b/sys-apps/sydbox/Manifest
new file mode 100644
index 000000000000..83cb14f0bca9
--- /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 000000000000..0319eec4c8be
--- /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>mgorny@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 000000000000..660422f3a516
--- /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
+}