Gentoo Archives: gentoo-commits

From: "Vadim A. Misbakh-Soloviov" <mva@×××.name>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/virtualization:master commit in: sys-apps/firejail/
Date: Tue, 07 Mar 2017 15:15:35
Message-Id: 1488899723.616fb06479a19d24c10742cba4589109a53acacd.mva@gentoo
1 commit: 616fb06479a19d24c10742cba4589109a53acacd
2 Author: Vadim A. Misbakh-Soloviov <git <AT> mva <DOT> name>
3 AuthorDate: Tue Mar 7 15:15:23 2017 +0000
4 Commit: Vadim A. Misbakh-Soloviov <mva <AT> mva <DOT> name>
5 CommitDate: Tue Mar 7 15:15:23 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/virtualization.git/commit/?id=616fb064
7
8 firejail: bump
9
10 sys-apps/firejail/firejail-9999.ebuild | 49 +++++++++++++++++++++-------------
11 1 file changed, 30 insertions(+), 19 deletions(-)
12
13 diff --git a/sys-apps/firejail/firejail-9999.ebuild b/sys-apps/firejail/firejail-9999.ebuild
14 index 7c5c9cb..ba563c1 100644
15 --- a/sys-apps/firejail/firejail-9999.ebuild
16 +++ b/sys-apps/firejail/firejail-9999.ebuild
17 @@ -1,8 +1,7 @@
18 -# Copyright 1999-2015 Gentoo Foundation
19 +# Copyright 1999-2017 Gentoo Foundation
20 # Distributed under the terms of the GNU General Public License v2
21 -# $Header: $
22
23 -EAPI=5
24 +EAPI=6
25
26 inherit git-r3
27
28 @@ -15,32 +14,44 @@ EGIT_REPO_URI="https://github.com/netblue30/${PN}"
29 LICENSE="GPL-2"
30 SLOT="0"
31 KEYWORDS=""
32 -IUSE="+bind +chroot +seccomp"
33 -
34 -DEPEND=""
35 -RDEPEND="${DEPEND}"
36 -
37 -S="${WORKDIR}/${PN}-${PV/_/-}"
38 +IUSE="apparmor +bind +chroot +file-transfer +network
39 + network-restricted +seccomp +userns x11"
40 +
41 +DEPEND="
42 + !sys-apps/firejail-lts
43 + apparmor? ( sys-libs/libapparmor )
44 +"
45 +RDEPEND="
46 + ${DEPEND}
47 + x11? ( x11-wm/xpra[client,server] )
48 +"
49
50 src_prepare() {
51 - local -a EXTRA_ECONF;
52 - sed \
53 - -e '/\tstrip/d' \
54 - -i Makefile.in
55 + default
56 sed \
57 -e 's#/usr/bin/zsh#/bin/zsh#g' \
58 -i \
59 src/man/${PN}.txt \
60 src/${PN}/usage.c \
61 - src/${PN}/sandbox.c \
62 src/${PN}/main.c
63 + find -name Makefile.in -exec sed -i -r \
64 + -e '/^\tinstall .*COPYING /d' \
65 + -e '/CFLAGS/s: (-O2|-ggdb) : :g' \
66 + -e '1iCC=@CC@' {} + || die
67 }
68
69 src_configure() {
70 - for flag in ${IUSE}; do
71 - EXTRA_ECONF+=( $(use_enable "${flag/+}") )
72 - done
73 - EXTRA_ECONF="${EXTRA_ECONF[@]}"
74 - default
75 + local myeconfargs=(
76 + $(use_enable apparmor)
77 + $(use_enable bind)
78 + $(use_enable chroot)
79 + $(use_enable file-transfer)
80 + $(use_enable network)
81 + $(use_enable seccomp)
82 + $(use_enable userns)
83 + $(use_enable x11)
84 + )
85 + use network-restricted && myeconfargs+=( --enable-network=restricted )
86 + econf "${myeconfargs[@]}"
87 }