app-portage/unsandbox: Introduce the sandbox escape tool
authorMichał Górny <mgorny@gentoo.org>
Sat, 1 Oct 2016 17:43:48 +0000 (19:43 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sat, 1 Oct 2016 19:05:56 +0000 (21:05 +0200)
app-portage/unsandbox/Manifest [new file with mode: 0644]
app-portage/unsandbox/metadata.xml [new file with mode: 0644]
app-portage/unsandbox/unsandbox-1.ebuild [new file with mode: 0644]

diff --git a/app-portage/unsandbox/Manifest b/app-portage/unsandbox/Manifest
new file mode 100644 (file)
index 0000000..5b8f98d
--- /dev/null
@@ -0,0 +1 @@
+DIST unsandbox.c 678 SHA256 806422d7cc96de98a6283ed11efcfe37d6597236d861313849fbd7a6e24e7cfa SHA512 380bb1c59442c1637de0b95450a58be7249b7943e061b3ec18464f5fa04629e27453aaefa85d48f84c4f3a0affaa9302a81d36b33a860d027280e4e9a396fd04 WHIRLPOOL b7dfe56418ec6970cf053454aebd70cf0fcc9bb7eb1f8f0583d1c6b01d6c500327407b4f9e8db118d0552546f4ea0c60ce38f8bd27bdfaeabd8804f958c59262
diff --git a/app-portage/unsandbox/metadata.xml b/app-portage/unsandbox/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/app-portage/unsandbox/unsandbox-1.ebuild b/app-portage/unsandbox/unsandbox-1.ebuild
new file mode 100644 (file)
index 0000000..d474616
--- /dev/null
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="The Sandbox escapist tool"
+HOMEPAGE="http://dev.gentoo.org/~mgorny/unsandbox.c"
+SRC_URI="http://dev.gentoo.org/~mgorny/unsandbox.c"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S=${WORKDIR}
+
+src_unpack() {
+       cp "${DISTDIR}"/unsandbox.c "${WORKDIR}"/ || die
+}
+
+src_compile() {
+       emake LDLIBS=-ldl unsandbox
+}
+
+src_install() {
+       dobin unsandbox
+}