public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Patrick McLean" <chutzpah@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-firewall/arptables/
Date: Sat,  9 May 2020 02:55:02 +0000 (UTC)	[thread overview]
Message-ID: <1588992891.166b01ff87eef4866daeede41629a619e8605d02.chutzpah@gentoo> (raw)

commit:     166b01ff87eef4866daeede41629a619e8605d02
Author:     Patrick McLean <patrick.mclean <AT> sony <DOT> com>
AuthorDate: Sat May  9 02:50:50 2020 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Sat May  9 02:54:51 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=166b01ff

net-firewall/arptables-0.0.5-r1: Revbump, support eselect-arptables

Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 net-firewall/arptables/arptables-0.0.5-r1.ebuild | 55 ++++++++++++++++++++++++
 1 file changed, 55 insertions(+)

diff --git a/net-firewall/arptables/arptables-0.0.5-r1.ebuild b/net-firewall/arptables/arptables-0.0.5-r1.ebuild
new file mode 100644
index 00000000000..6dc0f8f781c
--- /dev/null
+++ b/net-firewall/arptables/arptables-0.0.5-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="set up, maintain, and inspect the tables of ARP rules in the Linux kernel"
+HOMEPAGE="http://ebtables.sourceforge.net/"
+SRC_URI="ftp://ftp.netfilter.org/pub/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+BDEPEND=">=app-eselect/eselect-iptables-20200508"
+RDEPEND="${BDEPEND}"
+
+src_compile() {
+	# -O0 does not work and at least -O2 is required, bug #240752
+	emake CC="$(tc-getCC)" COPT_FLAGS="-O2 ${CFLAGS//-O0/-O2}"
+	sed -e 's:__EXEC_PATH__:/sbin:g' \
+		-i arptables-save arptables-restore || die "sed failed"
+}
+
+src_install() {
+	emake \
+		PREFIX="${ED}"/ \
+		LIBDIR="${ED}/$(get_libdir)" \
+		SYSCONFIGDIR="${ED}"/etc \
+		MANDIR="${ED}"/usr/share/man \
+		install
+
+	newman arptables-legacy.8 arptables.8
+}
+
+pkg_postinst() {
+	if ! eselect arptables show &>/dev/null; then
+		elog "Current arptables implementation is unset, setting to ebtables-legacy"
+		eselect arptables set arptables-legacy
+	fi
+
+	eselect arptables show
+}
+
+pkg_prerm() {
+	if has_version 'net-firewall/iptables[nftables]'; then
+		elog "Resetting arptables symlinks to xtables-nft-multi before removal"
+		eselect arptables set xtables-nft-multi
+	else
+		elog "Unsetting arptables symlinks before removal"
+		eselect arptables unset
+	fi
+}


             reply	other threads:[~2020-05-09  2:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-09  2:55 Patrick McLean [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-11-20 20:37 [gentoo-commits] repo/gentoo:master commit in: net-firewall/arptables/ Ulrich Müller
2021-12-03 19:16 Patrick McLean
2021-05-08 19:11 David Seifert
2021-05-08 18:55 Sam James
2021-05-08 18:44 Sam James
2021-05-08 18:41 Sam James
2020-05-10 20:49 Patrick McLean
2019-12-10 18:56 Patrick McLean
2018-05-09 11:04 Mikle Kolyada
2017-08-02 11:58 Lars Wendler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1588992891.166b01ff87eef4866daeede41629a619e8605d02.chutzpah@gentoo \
    --to=chutzpah@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox