1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="Security sandbox for any type of processes; LTS version"
7 HOMEPAGE="https://firejail.wordpress.com/"
11 SRC_URI="https://github.com/netblue30/${MY_PN}/archive/${PV}-LTS.tar.gz -> ${P}.tar.gz"
16 IUSE="apparmor +globalcfg +network +seccomp +suid +userns test +whitelist"
17 RESTRICT="!test? ( test )"
19 DEPEND="!sys-apps/firejail
20 apparmor? ( sys-libs/libapparmor )
21 test? ( dev-tcltk/expect )"
23 RDEPEND="apparmor? ( sys-libs/libapparmor )"
25 S="${WORKDIR}/${MY_PN}-${PV}-LTS"
30 find -type f -name Makefile.in | xargs sed --in-place --regexp-extended \
31 --expression='/^\tinstall .*COPYING /d' \
32 --expression='/CFLAGS/s: (-O2|-ggdb) : :g' || die
34 sed --in-place --regexp-extended '/CFLAGS/s: (-O2|-ggdb) : :g' ./src/common.mk.in || die
39 $(use_enable apparmor) \
40 $(use_enable globalcfg) \
41 $(use_enable network) \
42 $(use_enable seccomp) \
44 $(use_enable userns) \
45 $(use_enable whitelist)