You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
inherit bash-completion-r1 linux-info
|
|
|
|
|
|
|
|
DESCRIPTION="Unprivileged sandboxing tool, namespaces-powered chroot-like solution"
|
|
|
|
HOMEPAGE="https://github.com/containers/bubblewrap/"
|
|
|
|
SRC_URI="https://github.com/containers/${PN}/releases/download/v${PV}/${P}.tar.xz"
|
|
|
|
|
|
|
|
LICENSE="LGPL-2+"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv x86"
|
|
|
|
IUSE="selinux +suid"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
sys-libs/libseccomp
|
|
|
|
sys-libs/libcap
|
|
|
|
selinux? ( >=sys-libs/libselinux-2.1.9 )
|
|
|
|
"
|
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
BDEPEND="
|
|
|
|
app-text/docbook-xml-dtd:4.3
|
|
|
|
app-text/docbook-xsl-stylesheets
|
|
|
|
dev-libs/libxslt
|
|
|
|
virtual/pkgconfig
|
|
|
|
"
|
|
|
|
|
|
|
|
# tests require root priviledge
|
|
|
|
RESTRICT="test"
|
|
|
|
PATCHES=(
|
|
|
|
"${FILESDIR}/bubblewrap-0.3.1-selinux-configure.patch" # bug 674312
|
|
|
|
)
|
|
|
|
|
|
|
|
pkg_setup() {
|
|
|
|
if [[ ${MERGE_TYPE} != buildonly ]]; then
|
|
|
|
CONFIG_CHECK="~UTS_NS ~IPC_NS ~USER_NS ~PID_NS ~NET_NS"
|
|
|
|
linux-info_pkg_setup
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
econf \
|
|
|
|
$(use_enable selinux) \
|
|
|
|
"--enable-man" \
|
|
|
|
"--with-bash-completion-dir=$(get_bashcompdir)" \
|
|
|
|
"--with-priv-mode=$(usex suid setuid none)"
|
|
|
|
}
|