summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-09-29 15:52:00 -0400
committerMike Frysinger <vapier@gentoo.org>2015-09-29 15:53:33 -0400
commitbc4edfef3fc8ab8ec8b7f63cef5ba4f6a7cbc5be (patch)
tree651f09216c6cef5d096a7e0004948e447f1ceb60 /net-firewall/ebtables
parentnet-misc/connman-ui: initial import (diff)
downloadgentoo-bc4edfef3fc8ab8ec8b7f63cef5ba4f6a7cbc5be.tar.gz
gentoo-bc4edfef3fc8ab8ec8b7f63cef5ba4f6a7cbc5be.tar.bz2
gentoo-bc4edfef3fc8ab8ec8b7f63cef5ba4f6a7cbc5be.zip
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.
Diffstat (limited to 'net-firewall/ebtables')
-rw-r--r--net-firewall/ebtables/ebtables-2.0.10.4-r1.ebuild10
-rw-r--r--net-firewall/ebtables/metadata.xml3
2 files changed, 11 insertions, 2 deletions
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 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>base-system</herd>
+ <use>
+ <flag name='perl'>Install the ebtables-save script which uses perl</flag>
+ </use>
<upstream>
<remote-id type="sourceforge">ebtables</remote-id>
</upstream>