net-firewall/ebtables: Sync with Gentoo

It's from Gentoo commit 92c570a45fd1bd66377736bdb155746a7737c71c.
This commit is contained in:
Krzesimir Nowak 2025-04-02 18:30:20 +02:00
parent 9409f66b3b
commit 0858dfce6a
2 changed files with 5 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors # Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI="7" EAPI="7"
@ -15,7 +15,7 @@ S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2" LICENSE="GPL-2"
SLOT="0" SLOT="0"
KEYWORDS="amd64 ~arm arm64 ppc ~ppc64 ~riscv x86" KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv x86"
IUSE="+perl static" IUSE="+perl static"
BDEPEND=">=app-eselect/eselect-iptables-20200508" BDEPEND=">=app-eselect/eselect-iptables-20200508"
@ -87,10 +87,9 @@ src_install() {
} }
pkg_postinst() { pkg_postinst() {
# Flatcar: Use the xtables-nft-multi to use the nft_backend instead of the legacy
if ! eselect ebtables show &>/dev/null; then if ! eselect ebtables show &>/dev/null; then
elog "Current ebtables implementation is unset, setting to xtables-nft-multi" elog "Current ebtables implementation is unset, setting to ebtables-legacy"
eselect ebtables set xtables-nft-multi eselect ebtables set ebtables-legacy
fi fi
eselect ebtables show eselect ebtables show

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata> <pkgmetadata>
<maintainer type="project"> <maintainer type="project">
<email>base-system@gentoo.org</email> <email>base-system@gentoo.org</email>