summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sping@gentoo.org>2017-01-11 20:49:46 +0100
committerSebastian Pipping <sping@gentoo.org>2017-01-11 20:50:31 +0100
commit8323924482277778d11fb699aa24303338fabdc8 (patch)
treeb676b8dc7f977f04be04ce5ed86255c64950c95e /sys-apps
parentdev-util/ctags: fix autotools conditionals so pkg-config is always found (diff)
downloadgentoo-8323924482277778d11fb699aa24303338fabdc8.tar.gz
gentoo-8323924482277778d11fb699aa24303338fabdc8.tar.bz2
gentoo-8323924482277778d11fb699aa24303338fabdc8.zip
sys-apps/firejail: 0.9.44.4 (bug #604758)
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/firejail/Manifest1
-rw-r--r--sys-apps/firejail/files/firejail-0.9.44.4-sysmacros.patch10
-rw-r--r--sys-apps/firejail/firejail-0.9.44.4.ebuild46
3 files changed, 57 insertions, 0 deletions
diff --git a/sys-apps/firejail/Manifest b/sys-apps/firejail/Manifest
index 18ec9fff21d..bc636c4d429 100644
--- a/sys-apps/firejail/Manifest
+++ b/sys-apps/firejail/Manifest
@@ -1 +1,2 @@
DIST firejail-0.9.44.2.tar.xz 213092 SHA256 c5adef1943daa33049c4c39e5a19a0d02b897f1b1581be094ec600490dde8851 SHA512 c7babda0fa2ca35113fcbebf213448e57889d4447a188f2ad2bc06f76fda1024f22b4f3569050330792b57d9f1026ecf11470bbd534a7bdd74320da1bc584f9e WHIRLPOOL 365bd20a946a8210c12d4981ec7057c3bd47af00fcd37f98e65164dd70482bc0461cd445bc24cb7cf04231111575f972e52accc8d08f23b0f0e26141918f2978
+DIST firejail-0.9.44.4.tar.xz 213648 SHA256 2d70a2cd554835db0e2eba201c0466e247fbaa2b60c86abd34b9170e0eebc10f SHA512 222567db00fd85f468fff380dbc875b10fe4eb94ff95669e15adc4db55b36208eaef5ceb65bd2d05d79f8f9230552fb0f597fb6b7bf06bb47537321c9c02a3be WHIRLPOOL 8f19f2bda316cca29057d547d9deb357a55db3ffe3ef0ef02f948bd975e2e66f34a91f121363c15b5f6012fb3bde08fa10d2bc90233a14662406effbaff9fe37
diff --git a/sys-apps/firejail/files/firejail-0.9.44.4-sysmacros.patch b/sys-apps/firejail/files/firejail-0.9.44.4-sysmacros.patch
new file mode 100644
index 00000000000..1c6612aa46f
--- /dev/null
+++ b/sys-apps/firejail/files/firejail-0.9.44.4-sysmacros.patch
@@ -0,0 +1,10 @@
+--- a/src/firejail/fs_dev.c
++++ b/src/firejail/fs_dev.c
+@@ -28,6 +28,7 @@
+ #ifndef _BSD_SOURCE
+ #define _BSD_SOURCE
+ #endif
++#include <sys/sysmacros.h>
+ #include <sys/types.h>
+
+ typedef struct {
diff --git a/sys-apps/firejail/firejail-0.9.44.4.ebuild b/sys-apps/firejail/firejail-0.9.44.4.ebuild
new file mode 100644
index 00000000000..f1b612f0a4c
--- /dev/null
+++ b/sys-apps/firejail/firejail-0.9.44.4.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="Security sandbox for any type of processes"
+HOMEPAGE="https://firejail.wordpress.com/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="apparmor +bind +chroot +file-transfer +network
+ network-restricted +seccomp +userns x11"
+
+DEPEND="!sys-apps/firejail-lts
+ apparmor? ( sys-libs/libapparmor )"
+RDEPEND="${DEPEND}
+ x11? ( x11-wm/xpra[client,server] )"
+
+PATCHES=( "${FILESDIR}"/${P}-sysmacros.patch )
+
+src_prepare() {
+ default
+ find -name Makefile.in -exec sed -i -r \
+ -e '/CFLAGS/s: (-O2|-ggdb) : :g' \
+ -e '1iCC=@CC@' {} + || die
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable apparmor)
+ $(use_enable bind)
+ $(use_enable chroot)
+ $(use_enable file-transfer)
+ $(use_enable network)
+ $(use_enable seccomp)
+ $(use_enable userns)
+ $(use_enable x11)
+ )
+ use network-restricted && myeconfargs+=( --enable-network=restricted )
+ econf "${myeconfargs[@]}"
+}