From 61c556d2b8c26c6b08ec13f30c908caa546558d1 Mon Sep 17 00:00:00 2001 From: Patrick McLean Date: Fri, 3 Dec 2021 11:16:38 -0800 Subject: net-firewall/arptables: Revbump, update esel-ipt dep (bug #828064) Closes: https://bugs.gentoo.org/828064 Copyright: Sony Interactive Entertainment Inc. Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Patrick McLean --- net-firewall/arptables/arptables-0.0.5-r1.ebuild | 55 ------------------------ net-firewall/arptables/arptables-0.0.5-r2.ebuild | 55 ++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 55 deletions(-) delete mode 100644 net-firewall/arptables/arptables-0.0.5-r1.ebuild create mode 100644 net-firewall/arptables/arptables-0.0.5-r2.ebuild (limited to 'net-firewall/arptables') diff --git a/net-firewall/arptables/arptables-0.0.5-r1.ebuild b/net-firewall/arptables/arptables-0.0.5-r1.ebuild deleted file mode 100644 index 42dcb668a2df..000000000000 --- a/net-firewall/arptables/arptables-0.0.5-r1.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 1999-2021 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 [[ -z ${REPLACED_BY_VERSION} ]] && 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 -} diff --git a/net-firewall/arptables/arptables-0.0.5-r2.ebuild b/net-firewall/arptables/arptables-0.0.5-r2.ebuild new file mode 100644 index 000000000000..fee032c21db6 --- /dev/null +++ b/net-firewall/arptables/arptables-0.0.5-r2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 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-20211203" +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 arptables-legacy" + eselect arptables set arptables-legacy + fi + + eselect arptables show +} + +pkg_prerm() { + if [[ -z ${REPLACED_BY_VERSION} ]] && 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 +} -- cgit v1.2.3-65-gdbad