sys-apps/firejail-lts: [QA] fix compressed man pages
authorDennis Lamm <expeditioneer@gentoo.org>
Wed, 7 Aug 2019 05:06:37 +0000 (07:06 +0200)
committerDennis Lamm <expeditioneer@gentoo.org>
Wed, 7 Aug 2019 05:07:13 +0000 (07:07 +0200)
Signed-off-by: Dennis Lamm <expeditioneer@gentoo.org>
Package-Manager: Portage-2.3.69, Repoman-2.3.16

sys-apps/firejail-lts/files/firejail-lts-fix-compressed-manpages.patch [new file with mode: 0644]
sys-apps/firejail-lts/firejail-lts-0.9.56.2-r1.ebuild [new file with mode: 0644]

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 (file)
index 0000000..313c1c2
--- /dev/null
@@ -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 (file)
index 0000000..831a680
--- /dev/null
@@ -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)
+
+}