summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Lamm <expeditioneer@gentoo.org>2019-08-07 07:06:37 +0200
committerDennis Lamm <expeditioneer@gentoo.org>2019-08-07 07:07:13 +0200
commit165b3c9ba75e2ba3390a33466654431358567af0 (patch)
tree0ed24d28253a13e0573e6be27161e3d5989a78c9 /sys-apps
parentnet-analyzer/scapy: Old (diff)
downloadgentoo-165b3c9ba75e2ba3390a33466654431358567af0.tar.gz
gentoo-165b3c9ba75e2ba3390a33466654431358567af0.tar.bz2
gentoo-165b3c9ba75e2ba3390a33466654431358567af0.zip
sys-apps/firejail-lts: [QA] fix compressed man pages
Signed-off-by: Dennis Lamm <expeditioneer@gentoo.org> Package-Manager: Portage-2.3.69, Repoman-2.3.16
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/firejail-lts/files/firejail-lts-fix-compressed-manpages.patch17
-rw-r--r--sys-apps/firejail-lts/firejail-lts-0.9.56.2-r1.ebuild49
2 files changed, 66 insertions, 0 deletions
diff --git a/sys-apps/firejail-lts/files/firejail-lts-fix-compressed-manpages.patch b/sys-apps/firejail-lts/files/firejail-lts-fix-compressed-manpages.patch
new file mode 100644
index 000000000000..313c1c2a9dd3
--- /dev/null
+++ b/sys-apps/firejail-lts/files/firejail-lts-fix-compressed-manpages.patch
@@ -0,0 +1,17 @@
+diff --git a/Makefile.in b/Makefile.in
+index 9dafb56..4117468 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -127,10 +127,9 @@ endif
+ install -m 0755 -d $(DESTDIR)/$(mandir)/man5
+ for man in $(MANPAGES); do \
+ rm -f $$man.gz; \
+- gzip -9n $$man; \
+ case "$$man" in \
+- *.1) install -c -m 0644 $$man.gz $(DESTDIR)/$(mandir)/man1/; ;; \
+- *.5) install -c -m 0644 $$man.gz $(DESTDIR)/$(mandir)/man5/; ;; \
++ *.1) install -c -m 0644 $$man $(DESTDIR)/$(mandir)/man1/; ;; \
++ *.5) install -c -m 0644 $$man $(DESTDIR)/$(mandir)/man5/; ;; \
+ esac; \
+ done
+ rm -f $(MANPAGES) $(MANPAGES:%=%.gz)
diff --git a/sys-apps/firejail-lts/firejail-lts-0.9.56.2-r1.ebuild b/sys-apps/firejail-lts/firejail-lts-0.9.56.2-r1.ebuild
new file mode 100644
index 000000000000..831a680daa5e
--- /dev/null
+++ b/sys-apps/firejail-lts/firejail-lts-0.9.56.2-r1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Security sandbox for any type of processes; LTS version"
+HOMEPAGE="https://firejail.wordpress.com/"
+
+MY_PN=firejail
+
+SRC_URI="https://github.com/netblue30/${MY_PN}/archive/${PV}-LTS.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="apparmor +globalcfg +network +seccomp +suid +userns test +whitelist"
+
+DEPEND="!sys-apps/firejail
+ apparmor? ( sys-libs/libapparmor )
+ test? ( dev-tcltk/expect )"
+
+RDEPEND="apparmor? ( sys-libs/libapparmor )"
+
+PATCHES=( "${FILESDIR}/${PN}-fix-compressed-manpages.patch" )
+
+S="${WORKDIR}/${MY_PN}-${PV}-LTS"
+
+src_prepare() {
+ default
+
+ find -type f -name Makefile.in | xargs sed --in-place --regexp-extended \
+ --expression='/^\tinstall .*COPYING /d' \
+ --expression='/CFLAGS/s: (-O2|-ggdb) : :g' || die
+
+ sed --in-place --regexp-extended '/CFLAGS/s: (-O2|-ggdb) : :g' ./src/common.mk.in || die
+}
+
+src_configure() {
+ econf \
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \
+ $(use_enable apparmor) \
+ $(use_enable globalcfg) \
+ $(use_enable network) \
+ $(use_enable seccomp) \
+ $(use_enable suid) \
+ $(use_enable userns) \
+ $(use_enable whitelist)
+
+}