From: Michał Górny Date: Sat, 1 Oct 2016 17:43:48 +0000 (+0200) Subject: app-portage/unsandbox: Introduce the sandbox escape tool X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=2ec63c8f37bf941674ac4978f349de7f7dcf95f9;p=gentoo.git app-portage/unsandbox: Introduce the sandbox escape tool --- diff --git a/app-portage/unsandbox/Manifest b/app-portage/unsandbox/Manifest new file mode 100644 index 000000000000..5b8f98d5622f --- /dev/null +++ b/app-portage/unsandbox/Manifest @@ -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 index 000000000000..0319eec4c8be --- /dev/null +++ b/app-portage/unsandbox/metadata.xml @@ -0,0 +1,8 @@ + + + + + mgorny@gentoo.org + Michał Górny + + diff --git a/app-portage/unsandbox/unsandbox-1.ebuild b/app-portage/unsandbox/unsandbox-1.ebuild new file mode 100644 index 000000000000..d474616ed9bb --- /dev/null +++ b/app-portage/unsandbox/unsandbox-1.ebuild @@ -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 +}