summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadeusz Żołnowski <aidecoe@gentoo.org>2016-12-18 10:57:48 +0000
committerAmadeusz Żołnowski <aidecoe@gentoo.org>2016-12-18 11:14:31 +0000
commit4f4ba7ccdb2bccd1835237c9ffba27e2bafe45c5 (patch)
tree4cdab6933910063bb7fb95870850568c10286168 /sys-apps/firejail-lts
parentsys-apps/firejail: Remove older LTS version (diff)
downloadgentoo-4f4ba7ccdb2bccd1835237c9ffba27e2bafe45c5.tar.gz
gentoo-4f4ba7ccdb2bccd1835237c9ffba27e2bafe45c5.tar.bz2
gentoo-4f4ba7ccdb2bccd1835237c9ffba27e2bafe45c5.zip
sys-apps/firejail-lts: Move LTS version to separate package
Having it in a separate package makes it easier for users to follow LTS branch of firejail. Before that users had to mask older versions to test LTS. It's better than having it slotted because portage by default picks up latest version from any slot and user would have to explicitly install particular slot. Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'sys-apps/firejail-lts')
-rw-r--r--sys-apps/firejail-lts/Manifest1
-rw-r--r--sys-apps/firejail-lts/files/firejail-lts-0.9.38.6-sysmacros.patch27
-rw-r--r--sys-apps/firejail-lts/firejail-lts-0.9.38.6.ebuild35
-rw-r--r--sys-apps/firejail-lts/metadata.xml25
4 files changed, 88 insertions, 0 deletions
diff --git a/sys-apps/firejail-lts/Manifest b/sys-apps/firejail-lts/Manifest
new file mode 100644
index 000000000000..adccb37bb4c1
--- /dev/null
+++ b/sys-apps/firejail-lts/Manifest
@@ -0,0 +1 @@
+DIST firejail-0.9.38.6.tar.bz2 158685 SHA256 76a25da5d2c3e2b50d0f3ff750614a43742f7115b0c65b92ba5c71a226006b70 SHA512 ba65ba77faa5f278a632f01cabc7ce963cd9a6c665a531ab4b5abfb076e670b52b1326c097a7e180aa717085aace4ecc4b9922c28066752f1afc77e123dfad26 WHIRLPOOL fcafc4155bdf2fc914eebc45bad7ce0c1ebc042705f57334f820453b3095aec444f7b49dbd84284e308d0f63185163be3f6089025df8815eca4983a007a853c0
diff --git a/sys-apps/firejail-lts/files/firejail-lts-0.9.38.6-sysmacros.patch b/sys-apps/firejail-lts/files/firejail-lts-0.9.38.6-sysmacros.patch
new file mode 100644
index 000000000000..85830a40cacf
--- /dev/null
+++ b/sys-apps/firejail-lts/files/firejail-lts-0.9.38.6-sysmacros.patch
@@ -0,0 +1,27 @@
+From c15fc4754a05cc2b2aec4ca75f87bf3d61578843 Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <vapier@gentoo.org>
+Date: Wed, 20 Apr 2016 00:14:21 -0400
+Subject: [PATCH] include sys/sysmacros.h for major/minor/makedev
+
+These funcs have been defined in sys/sysmacros.h forever, and Linux C
+libs are moving away from implicitly including it. Update the files
+to include it explicitly.
+---
+ src/firejail/fs_dev.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/firejail/fs_dev.c b/src/firejail/fs_dev.c
+index 97ee9de..2f66980 100644
+--- 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>
+
+ static void create_char_dev(const char *path, mode_t mode, int major, int minor) {
+--
+2.7.4
+
diff --git a/sys-apps/firejail-lts/firejail-lts-0.9.38.6.ebuild b/sys-apps/firejail-lts/firejail-lts-0.9.38.6.ebuild
new file mode 100644
index 000000000000..575d1664531d
--- /dev/null
+++ b/sys-apps/firejail-lts/firejail-lts-0.9.38.6.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+MY_PN=firejail
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="Security sandbox for any type of processes; LTS branch"
+HOMEPAGE="https://firejail.wordpress.com/"
+SRC_URI="mirror://sourceforge/${MY_PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+seccomp"
+
+DEPEND="!sys-apps/firejail"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-sysmacros.patch
+ find -name Makefile.in -exec sed -i -r \
+ -e '/CFLAGS/s: (-O2|-ggdb) : :g' \
+ -e '1iCC=@CC@' {} + || die
+}
+
+src_configure() {
+ econf $(use_enable seccomp)
+}
diff --git a/sys-apps/firejail-lts/metadata.xml b/sys-apps/firejail-lts/metadata.xml
new file mode 100644
index 000000000000..942b4a06eabc
--- /dev/null
+++ b/sys-apps/firejail-lts/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>aidecoe@gentoo.org</email>
+ <name>Amadeusz Żołnowski</name>
+ </maintainer>
+ <longdescription lang="en">
+ Firejail is a SUID program that reduces the risk of security breaches
+ by restricting the running environment of untrusted applications using
+ Linux namespaces and seccomp-bpf. It allows a process and all its
+ descendants to have their own private view of the globally shared
+ kernel resources, such as the network stack, process table, mount
+ table.
+
+ This is long term support branch of firejail. For bleeding edge version
+ see sys-apps/firejail.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">firejail</remote-id>
+ </upstream>
+ <use>
+ <flag name="seccomp">Enable system call filtering</flag>
+ </use>
+</pkgmetadata>