diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-15 16:40:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-15 16:40:41 +0100 |
commit | 35d4e80ab08982deb97a95d1b47156c67b268492 (patch) | |
tree | 52930de679b53a2d0e6881a4b18305fa1b9c5466 /net-firewall/nftables/nftables-9999.ebuild | |
parent | 9b6120d8af003bb775da6737dfe42f8f580f59f6 (diff) |
gentoo auto-resync : 15:07:2023 - 16:40:40
Diffstat (limited to 'net-firewall/nftables/nftables-9999.ebuild')
-rw-r--r-- | net-firewall/nftables/nftables-9999.ebuild | 31 |
1 files changed, 8 insertions, 23 deletions
diff --git a/net-firewall/nftables/nftables-9999.ebuild b/net-firewall/nftables/nftables-9999.ebuild index bee5c7fd77bd..6acc2d710064 100644 --- a/net-firewall/nftables/nftables-9999.ebuild +++ b/net-firewall/nftables/nftables-9999.ebuild @@ -4,7 +4,8 @@ EAPI=8 DISTUTILS_OPTIONAL=1 -PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}"/usr/share/openpgp-keys/netfilter.org.asc inherit edo linux-info distutils-r1 systemd verify-sig @@ -25,21 +26,19 @@ fi # See COPYING: new code is GPL-2+, existing code is GPL-2 LICENSE="GPL-2 GPL-2+" SLOT="0/1" -IUSE="debug doc +gmp json libedit +modern-kernel python +readline static-libs test xtables" +IUSE="debug doc +gmp json libedit python +readline static-libs test xtables" RESTRICT="!test? ( test )" RDEPEND=" >=net-libs/libmnl-1.0.4:= - >=net-libs/libnftnl-1.2.5:= + >=net-libs/libnftnl-1.2.6:= gmp? ( dev-libs/gmp:= ) json? ( dev-libs/jansson:= ) python? ( ${PYTHON_DEPS} ) readline? ( sys-libs/readline:= ) xtables? ( >=net-firewall/iptables-1.6.1:= ) " - DEPEND="${RDEPEND}" - BDEPEND+=" sys-devel/flex virtual/pkgconfig @@ -47,7 +46,7 @@ BDEPEND+=" app-text/asciidoc >=app-text/docbook2X-0.8.8-r4 ) - python? ( ${PYTHON_DEPS} ) + python? ( ${DISTUTILS_DEPS} ) " REQUIRED_USE=" @@ -55,18 +54,6 @@ REQUIRED_USE=" libedit? ( !readline ) " -pkg_setup() { - if kernel_is ge 3 13; then - if use modern-kernel && kernel_is lt 3 18; then - eerror "The modern-kernel USE flag requires kernel version 3.18 or newer to work properly." - fi - CONFIG_CHECK="~NF_TABLES" - linux-info_pkg_setup - else - eerror "This package requires kernel version 3.13 or newer to work properly." - fi -} - src_prepare() { default @@ -145,12 +132,10 @@ src_install() { mv "${ED}"/etc/nftables/osf "${ED}"/usr/share/doc/${PF}/skels/osf || die rmdir "${ED}"/etc/nftables || die - local mksuffix="$(usex modern-kernel '-mk' '')" - exeinto /usr/libexec/${PN} - newexe "${FILESDIR}"/libexec/${PN}${mksuffix}.sh ${PN}.sh - newconfd "${FILESDIR}"/${PN}${mksuffix}.confd ${PN} - newinitd "${FILESDIR}"/${PN}${mksuffix}.init-r1 ${PN} + newexe "${FILESDIR}"/libexec/${PN}-mk.sh ${PN}.sh + newconfd "${FILESDIR}"/${PN}-mk.confd ${PN} + newinitd "${FILESDIR}"/${PN}-mk.init-r1 ${PN} keepdir /var/lib/nftables systemd_dounit "${FILESDIR}"/systemd/${PN}-restore.service |