From: Mike Frysinger Date: Tue, 29 Sep 2015 19:52:00 +0000 (-0400) Subject: net-firewall/ebtables: add USE=perl to control perl dep X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=bc4edfef3fc8ab8ec8b7f63cef5ba4f6a7cbc5be;p=gentoo.git net-firewall/ebtables: add USE=perl to control perl dep The ebtables-save script is written in perl, so make sure we RDEPEND on it. Since that's a big dep for little gain, make it optional. Some systems (like Chromium OS) have no use for it. --- diff --git a/net-firewall/ebtables/ebtables-2.0.10.4-r1.ebuild b/net-firewall/ebtables/ebtables-2.0.10.4-r1.ebuild index 9913e2ca7525..10a58f51d832 100644 --- a/net-firewall/ebtables/ebtables-2.0.10.4-r1.ebuild +++ b/net-firewall/ebtables/ebtables-2.0.10.4-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -16,7 +16,10 @@ SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" -IUSE="static" +IUSE="+perl static" + +# The ebtables-save script is written in perl. +RDEPEND="perl? ( dev-lang/perl )" S=${WORKDIR}/${MY_P} @@ -54,6 +57,9 @@ src_install() { keepdir /var/lib/ebtables/ newinitd "${FILESDIR}"/ebtables.initd-r1 ebtables newconfd "${FILESDIR}"/ebtables.confd-r1 ebtables + if ! use perl; then + rm "${ED}"/sbin/ebtables-save || die + fi else into / newsbin static ebtables diff --git a/net-firewall/ebtables/metadata.xml b/net-firewall/ebtables/metadata.xml index 23b2d799bbe8..046421287239 100644 --- a/net-firewall/ebtables/metadata.xml +++ b/net-firewall/ebtables/metadata.xml @@ -2,6 +2,9 @@ base-system + + Install the ebtables-save script which uses perl + ebtables