net-firewall/iptables: restore compatibility with EAPI 7
Convert eselect-iptables dependency from EAPI's IDEPEND to
the old logic. This way iptables module correctly installed to
the SDK.
BUG=b/278627330,b/278136734,b/278627283,b/278802165
TEST=presubmit
RELEASE_NOTE=None
Change-Id: Iba61a33210c5a60adf9029cb638cc8b1f69039cb
Reviewed-on: https://cos-review.googlesource.com/c/third_party/overlays/portage-stable/+/47869
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
Reviewed-by: Robert Kolchmeyer <rkolchmeyer@google.com>
diff --git a/net-firewall/iptables/iptables-1.8.9-r2.ebuild b/net-firewall/iptables/iptables-1.8.9-r2.ebuild
new file mode 120000
index 0000000..034ced6
--- /dev/null
+++ b/net-firewall/iptables/iptables-1.8.9-r2.ebuild
@@ -0,0 +1 @@
+iptables-1.8.9.ebuild
\ No newline at end of file
diff --git a/net-firewall/iptables/iptables-1.8.9.ebuild b/net-firewall/iptables/iptables-1.8.9.ebuild
index e6799db..c1a12ca 100644
--- a/net-firewall/iptables/iptables-1.8.9.ebuild
+++ b/net-firewall/iptables/iptables-1.8.9.ebuild
@@ -16,6 +16,9 @@
KEYWORDS="*"
IUSE="conntrack ipv6 netlink nftables pcap static-libs"
+BUILD_DEPEND="
+ >=app-eselect/eselect-iptables-20200508
+"
COMMON_DEPEND="
conntrack? ( >=net-libs/libnetfilter_conntrack-1.0.6 )
netlink? ( net-libs/libnfnetlink )
@@ -30,7 +33,8 @@
virtual/os-headers
>=sys-kernel/linux-headers-4.4:0
"
-BDEPEND="
+BDEPEND="${BUILD_DEPEND}
+ app-eselect/eselect-iptables
virtual/pkgconfig
nftables? (
sys-devel/flex
@@ -39,11 +43,11 @@
"
RDEPEND="
${COMMON_DEPEND}
+ ${BUILD_DEPEND}
nftables? ( net-misc/ethertypes )
!<net-firewall/ebtables-2.0.11-r1
!<net-firewall/arptables-0.0.5-r1
"
-IDEPEND=">=app-eselect/eselect-iptables-20220320"
PATCHES=(
"${FILESDIR}"/${PN}-1.8.4-no-symlinks.patch