summaryrefslogtreecommitdiff
blob: 951a50fa3a49592f9be16d8c7966db6a4652afbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2018 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? ( !<sys-apps/sandbox-2.13 )"

src_configure() {
	local myconf=(
		$(use_enable debug)
		$(use_enable seccomp)
	)

	econf "${myconf[@]}"
}

src_test() {
	# unload the Gentoo sandbox
	local -x SANDBOX_ON=0
	local -x LD_PRELOAD=

	emake check
}