blob: 20a823ec718135e5ff7450cc34a4cbb2ee43a50c (
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
36
|
# Copyright 1999-2019 Gentoo Authors
# 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"
RESTRICT="!test? ( 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
}
|