Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/sydbox/
Date: Sat, 09 Sep 2017 21:11:28
Message-Id: 1504991483.d20566c2bfb09c05e8c0eda90b74469736cacf82.mgorny@gentoo
1 commit: d20566c2bfb09c05e8c0eda90b74469736cacf82
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Sep 9 21:02:27 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Sep 9 21:11:23 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d20566c2
7
8 sys-apps/sydbox: ptrace()-based sandbox from Exherbo
9
10 sys-apps/sydbox/Manifest | 1 +
11 sys-apps/sydbox/metadata.xml | 8 ++++++++
12 sys-apps/sydbox/sydbox-1.0.7.ebuild | 32 ++++++++++++++++++++++++++++++++
13 3 files changed, 41 insertions(+)
14
15 diff --git a/sys-apps/sydbox/Manifest b/sys-apps/sydbox/Manifest
16 new file mode 100644
17 index 00000000000..83cb14f0bca
18 --- /dev/null
19 +++ b/sys-apps/sydbox/Manifest
20 @@ -0,0 +1 @@
21 +DIST sydbox-1.0.7.tar.bz2 480350 SHA256 d8869d15f9631e16691f355667eee128bb041db4088fd6588c4f0e09685b2a92 SHA512 b14d0cc6929aa705380dc2710e772054e07ca52c2990a71cac42d1111c90baf22253e168e1fe20eaf94ccde4d1ea1a3c1c26e4b9dd292f20a1028dc78a4e80d5 WHIRLPOOL eca7f45e72494bb8fa81c49af0758ab7e97d19d07d870507adaf50088fe7998f37e6e8974fd6592f7f7a6b0262b09f5cdaa9e09f43b9d7b314e233ed765028cf
22
23 diff --git a/sys-apps/sydbox/metadata.xml b/sys-apps/sydbox/metadata.xml
24 new file mode 100644
25 index 00000000000..0319eec4c8b
26 --- /dev/null
27 +++ b/sys-apps/sydbox/metadata.xml
28 @@ -0,0 +1,8 @@
29 +<?xml version="1.0" encoding="UTF-8"?>
30 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
31 +<pkgmetadata>
32 + <maintainer type="person">
33 + <email>mgorny@g.o</email>
34 + <name>Michał Górny</name>
35 + </maintainer>
36 +</pkgmetadata>
37
38 diff --git a/sys-apps/sydbox/sydbox-1.0.7.ebuild b/sys-apps/sydbox/sydbox-1.0.7.ebuild
39 new file mode 100644
40 index 00000000000..660422f3a51
41 --- /dev/null
42 +++ b/sys-apps/sydbox/sydbox-1.0.7.ebuild
43 @@ -0,0 +1,32 @@
44 +# Copyright 1999-2017 Gentoo Foundation
45 +# Distributed under the terms of the GNU General Public License v2
46 +
47 +EAPI=6
48 +
49 +DESCRIPTION="ptrace-based sandbox"
50 +HOMEPAGE="https://git.exherbo.org/sydbox-1.git"
51 +SRC_URI="http://distfiles.exherbo.org/distfiles/${P}.tar.bz2"
52 +
53 +LICENSE="BSD"
54 +SLOT="0"
55 +KEYWORDS="~amd64"
56 +IUSE="debug seccomp test"
57 +
58 +RDEPEND="sys-libs/pinktrace:=
59 + debug? ( sys-libs/libunwind:= )"
60 +DEPEND="${RDEPEND}
61 + test? ( app-portage/unsandbox )"
62 +
63 +src_configure() {
64 + local myconf=(
65 + $(use_enable debug)
66 + $(use_enable seccomp)
67 + )
68 +
69 + econf "${myconf[@]}"
70 +}
71 +
72 +src_test() {
73 + # two sandboxes are never a good idea ;-)
74 + unsandbox emake check
75 +}