commit: 0c7e9e6c25a71d9162d54f9f7b66ef38d8b5fc92 Author: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org> AuthorDate: Sun Jul 26 09:08:46 2020 +0000 Commit: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org> CommitDate: Sat Aug 22 10:17:48 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c7e9e6c
sys-apps/firejail: general ebuild improvement Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org> .../firejail-lts/firejail-lts-0.9.56.2-r2.ebuild | 22 +++++++++++-------- ...l-0.9.62-1.ebuild => firejail-0.9.62-r1.ebuild} | 25 +++++++++++----------- 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/sys-apps/firejail-lts/firejail-lts-0.9.56.2-r2.ebuild b/sys-apps/firejail-lts/firejail-lts-0.9.56.2-r2.ebuild index 162766f95cd..85c060bc970 100644 --- a/sys-apps/firejail-lts/firejail-lts-0.9.56.2-r2.ebuild +++ b/sys-apps/firejail-lts/firejail-lts-0.9.56.2-r2.ebuild @@ -18,24 +18,28 @@ KEYWORDS="amd64" IUSE="apparmor +globalcfg +network +seccomp +suid +userns test +whitelist" RESTRICT="!test? ( test )" -DEPEND="!sys-apps/firejail - apparmor? ( sys-libs/libapparmor ) - test? ( dev-tcltk/expect )" - RDEPEND="apparmor? ( sys-libs/libapparmor )" -PATCHES=( "${FILESDIR}/${PN}-fix-compressed-manpages.patch" ) +DEPEND="${RDEPEND} + !sys-apps/firejail + test? ( dev-tcltk/expect )" + 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 + find -type f -name Makefile.in | xargs sed -i -r \ + -e '/^\tinstall .*COPYING /d' \ + -e '/CFLAGS/s: (-O2|-ggdb) : :g' || die + + sed -i -r -e '/CFLAGS/s: (-O2|-ggdb) : :g' ./src/common.mk.in || die - sed --in-place --regexp-extended '/CFLAGS/s: (-O2|-ggdb) : :g' ./src/common.mk.in || die + # remove compression of man pages + sed -i -e '/gzip -9n $$man; \\/d' Makefile.in || die + sed -i -e '/rm -f $$man.gz; \\/d' Makefile.in || die + sed -i -r -e 's|\*\.([[:digit:]])\) install -c -m 0644 \$\$man\.gz|\*\.\1\) install -c -m 0644 \$\$man|g' Makefile.in || die } src_configure() { diff --git a/sys-apps/firejail/firejail-0.9.62-1.ebuild b/sys-apps/firejail/firejail-0.9.62-r1.ebuild similarity index 71% rename from sys-apps/firejail/firejail-0.9.62-1.ebuild rename to sys-apps/firejail/firejail-0.9.62-r1.ebuild index 73255223e87..57071c6bd57 100644 --- a/sys-apps/firejail/firejail-0.9.62-1.ebuild +++ b/sys-apps/firejail/firejail-0.9.62-r1.ebuild @@ -20,31 +20,30 @@ HOMEPAGE="https://firejail.wordpress.com/" LICENSE="GPL-2" SLOT="0" IUSE="apparmor +chroot contrib debug +file-transfer +globalcfg +network +overlayfs +private-home +seccomp +suid test +userns vim-syntax +whitelist x11" - -DEPEND="!sys-apps/firejail-lts - apparmor? ( sys-libs/libapparmor ) - test? ( dev-tcltk/expect )" +RESTRICT="!test? ( test )" RDEPEND="apparmor? ( sys-libs/libapparmor )" -# TODO: enable tests -RESTRICT="test" +DEPEND="${RDEPEND} + !sys-apps/firejail-lts + test? ( dev-tcltk/expect )" + src_prepare() { default find ./contrib -type f -name '*.py' | xargs sed --in-place 's-#!/usr/bin/python3-#!/usr/bin/env python3-g' || die - find -type f -name Makefile.in | xargs sed --in-place --regexp-extended \ - --expression='/^\tinstall .*COPYING /d' \ - --expression='/CFLAGS/s: (-O2|-ggdb) : :g' || die + find -type f -name Makefile.in | xargs sed -i -r \ + -e '/^\tinstall .*COPYING /d' \ + -e '/CFLAGS/s: (-O2|-ggdb) : :g' || die - sed --in-place --regexp-extended '/CFLAGS/s: (-O2|-ggdb) : :g' ./src/common.mk.in || die + sed -i -r -e '/CFLAGS/s: (-O2|-ggdb) : :g' ./src/common.mk.in || die # remove compression of man pages - sed --in-place '/gzip -9n $$man; \\/d' Makefile.in || die - sed --in-place '/rm -f $$man.gz; \\/d' Makefile.in || die - sed --in-place --regexp-extended 's|\*\.([[:digit:]])\) install -c -m 0644 \$\$man\.gz|\*\.\1\) install -c -m 0644 \$\$man|g' Makefile.in || die + sed -i -e '/gzip -9n $$man; \\/d' Makefile.in || die + sed -i -e '/rm -f $$man.gz; \\/d' Makefile.in || die + sed -i -r -e 's|\*\.([[:digit:]])\) install -c -m 0644 \$\$man\.gz|\*\.\1\) install -c -m 0644 \$\$man|g' Makefile.in || die } src_configure() {