sys-apps/sydbox: ptrace()-based sandbox from Exherbo
authorMichał Górny <mgorny@gentoo.org>
Sat, 9 Sep 2017 21:02:27 +0000 (23:02 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sat, 9 Sep 2017 21:11:23 +0000 (23:11 +0200)
sys-apps/sydbox/Manifest [new file with mode: 0644]
sys-apps/sydbox/metadata.xml [new file with mode: 0644]
sys-apps/sydbox/sydbox-1.0.7.ebuild [new file with mode: 0644]

diff --git a/sys-apps/sydbox/Manifest b/sys-apps/sydbox/Manifest
new file mode 100644 (file)
index 0000000..83cb14f
--- /dev/null
@@ -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 (file)
index 0000000..0319eec
--- /dev/null
@@ -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 (file)
index 0000000..660422f
--- /dev/null
@@ -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
+}