diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2022-10-28 09:29:15 -0700 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2022-10-28 09:29:15 -0700 |
commit | 13bf666f05688d282e4e96b253429ad1cff8ec05 (patch) | |
tree | 22972c156f61bbb913eae1c6512406bb5102cf8e | |
parent | sys-kernel/gentoo-sources: drop 6.0.3 (diff) | |
download | gentoo-13bf666f05688d282e4e96b253429ad1cff8ec05.tar.gz gentoo-13bf666f05688d282e4e96b253429ad1cff8ec05.tar.bz2 gentoo-13bf666f05688d282e4e96b253429ad1cff8ec05.zip |
net-firewall/nftlb: add 1.0.7
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
-rw-r--r-- | net-firewall/nftlb/Manifest | 1 | ||||
-rw-r--r-- | net-firewall/nftlb/nftlb-1.0.7.ebuild | 61 |
2 files changed, 62 insertions, 0 deletions
diff --git a/net-firewall/nftlb/Manifest b/net-firewall/nftlb/Manifest index 4440ce50ef18..4f11c545f7eb 100644 --- a/net-firewall/nftlb/Manifest +++ b/net-firewall/nftlb/Manifest @@ -1,2 +1,3 @@ DIST nftlb-1.0.4.tar.gz 199236 BLAKE2B 457fc617af75513330b7c6730a3ee67061d5df4d1faf74a0d57ffaa7ef003e882136a9e0300fe61f1f0235ef752a5d695cfdf9a5e1cecf9b57553d4c9151bfd6 SHA512 89b0dba85029236f55289818c7b7ec6fe6e2e1f33003fc7fb9fa3ae763b96395827ba9d8134aa4ac80f8be0da6e17be132e9293b46c9264d9c49062e4db6688a DIST nftlb-1.0.6.tar.gz 201767 BLAKE2B d81607ad88c88f3cf97124bf2db6ad8b210fe8f60d72661094dfbbbfc66c4b911985944f08b5483ceec420850b18cb0fe3a8fd6fa7fb76fa4da456870367cecd SHA512 63fa1e9b5fbd18e5c852adb2415dcd6e24bad899fe647641ea6e8dbca4b7c2808c939bdf5f7700a586304f3126088bb74a0fce79c72e8bc92df1e7a9c111feca +DIST nftlb-1.0.7.tar.gz 201988 BLAKE2B 794778523b3a60a351fd071e6ff129197203ddfb1b80823dd6b05c30cb530040da465a10d2ffbf11cad063c2a453bb9baebd6e689b9166d4fcb0fe9fd17760e8 SHA512 eb1e9847f340e57b75a5b8680774d8208b282faccdef48e316b2bd52b10349eeda70643386e0e899d0f6a2f506964cf1b7a7ec2d86279f83ca87a9afa8f047bc diff --git a/net-firewall/nftlb/nftlb-1.0.7.ebuild b/net-firewall/nftlb/nftlb-1.0.7.ebuild new file mode 100644 index 000000000000..f1e9170bcbc4 --- /dev/null +++ b/net-firewall/nftlb/nftlb-1.0.7.ebuild @@ -0,0 +1,61 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-info autotools + +DESCRIPTION="nftables load balancer" +HOMEPAGE="https://github.com/zevenet/nftlb" +SRC_URI="https://github.com/zevenet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="AGPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND=" + net-firewall/nftables:=[modern-kernel] + dev-libs/jansson:= + dev-libs/libev:= +" +RDEPEND="${DEPEND}" + +# tests need root access +RESTRICT="test" + +PATCHES=( + "${FILESDIR}/nftlb-1.0-tests.patch" + "${FILESDIR}/nftlb-1.0-musl.patch" +) + +pkg_setup() { + local CONFIG_CHECK=" + ~NF_TABLES + ~NFT_NUMGEN + ~NFT_HASH + ~NF_NAT + ~IP_NF_NAT + " + + linux-info_pkg_setup + + if kernel_is lt 4 19; then + eerror "${PN} requires kernel version 4.19 or newer" + fi +} + +src_prepare() { + default + eautoreconf +} + +src_test() { + pushd tests >/dev/null || die + + sed -e "s:/var/log/syslog:\"${T}/tests.log\":" \ + -i exec_tests.sh || die + + ./exec_tests.sh || die "tests failed" + + popd >/dev/null || die +} |