summaryrefslogtreecommitdiff
blob: dde2efecc483ccde2df7535f8525d5270cff8b72 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="7"

inherit autotools bash-completion-r1 linux-info

DESCRIPTION="Unprivileged sandboxing tool, namespaces-powered chroot-like solution"
HOMEPAGE="https://github.com/projectatomic/bubblewrap"
SRC_URI="https://github.com/projectatomic/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="LGPL-2+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="selinux"

DEPEND="
        dev-libs/libxslt
        sys-libs/libseccomp
        sys-libs/libcap
        selinux? ( >=sys-libs/libselinux-2.1.9 )
"
# FIXME: we don't need bashcomp righ??
RDEPEND="${DEPEND}"
# FIXME: bash comp is not working
# FIXME: test is not working
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_prepare() {
    default
    eautoreconf
}

src_configure() {

    econf \
      $(use_enable selinux) \
      "--enable-man" \
      "--with-bash-completion-dir=${get_bashcompdir}" \
      "--with-priv-mode=none"
}

pkg_postinst() {
    einfo "bashcomp can be used with >=app-shells/bash-completion-2.0"
    einfo "probably needs namespaces"
}