diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-01 03:03:44 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-01 03:03:44 +0000 |
commit | 7414e061f0ef8e77eaa6de051a83181cddbef1dc (patch) | |
tree | 6e846750aa9822865c8d3a2ddff888c916f91653 /net-firewall/nftlb | |
parent | d36c5f9e59f92a021c987989cd79d44460e0da42 (diff) |
gentoo auto-resync : 01:02:2023 - 03:03:44
Diffstat (limited to 'net-firewall/nftlb')
-rw-r--r-- | net-firewall/nftlb/Manifest | 8 | ||||
-rw-r--r-- | net-firewall/nftlb/files/nftlb-1.0.8-musl.patch | 73 | ||||
-rw-r--r-- | net-firewall/nftlb/files/nftlb-1.0.8-tests.patch | 45 | ||||
-rw-r--r-- | net-firewall/nftlb/nftlb-1.0.6.ebuild | 61 | ||||
-rw-r--r-- | net-firewall/nftlb/nftlb-1.0.8.ebuild (renamed from net-firewall/nftlb/nftlb-1.0.4.ebuild) | 11 |
5 files changed, 129 insertions, 69 deletions
diff --git a/net-firewall/nftlb/Manifest b/net-firewall/nftlb/Manifest index 66596013812e..a23a8c28d739 100644 --- a/net-firewall/nftlb/Manifest +++ b/net-firewall/nftlb/Manifest @@ -1,9 +1,9 @@ AUX nftlb-1.0-musl.patch 1899 BLAKE2B 6c2c51ba355473754ac1aa59e423b367c9eba8c0aef6cc0756533f08e22aa423e397a2216449b25360d625d62ef64173701e0cec40be6bb342094ad81a2ca463 SHA512 e73efbaffa03c9bf762b9335561ae3f905434cd15351e843063c8aeac5cd80db6bbb3916fe0eca04a7699c3bebfb8910e52a2f1f07b068ee1c9951d645bf3e28 AUX nftlb-1.0-tests.patch 1025 BLAKE2B 1c1a3b363d5896799dbc9c789684bcb407cafeee6b7d7d061f28142a718a77b9a7fc11a59ff40f178047d37a8452c66cab904661d36874efc343677ec4a043a4 SHA512 a013fd84528620e61b93b11218edb5fbf4096d0367d802f697048f544751a0a4c9d64ecfa5198b28d8dc732b195db7d7ed5028423aa26c855f116d11665f096b -DIST nftlb-1.0.4.tar.gz 199236 BLAKE2B 457fc617af75513330b7c6730a3ee67061d5df4d1faf74a0d57ffaa7ef003e882136a9e0300fe61f1f0235ef752a5d695cfdf9a5e1cecf9b57553d4c9151bfd6 SHA512 89b0dba85029236f55289818c7b7ec6fe6e2e1f33003fc7fb9fa3ae763b96395827ba9d8134aa4ac80f8be0da6e17be132e9293b46c9264d9c49062e4db6688a -DIST nftlb-1.0.6.tar.gz 201767 BLAKE2B d81607ad88c88f3cf97124bf2db6ad8b210fe8f60d72661094dfbbbfc66c4b911985944f08b5483ceec420850b18cb0fe3a8fd6fa7fb76fa4da456870367cecd SHA512 63fa1e9b5fbd18e5c852adb2415dcd6e24bad899fe647641ea6e8dbca4b7c2808c939bdf5f7700a586304f3126088bb74a0fce79c72e8bc92df1e7a9c111feca +AUX nftlb-1.0.8-musl.patch 1924 BLAKE2B a5a46af3f5f000afa09b3e2d8413385a792b35aea2a8017c8c5b8abfb8cb02dbbccd8ec4da330a5f197dec108b0451a65f81b319fb24d77d9cd3fc1408d60902 SHA512 cbd78b062d2ffa69b0e6d63af11ef5159a01fa7e67caf00f2ca597beb0064767748448ca1e45626e9f326c34eb7e1c34f59bc08a035866a1f0be603decf5d3cc +AUX nftlb-1.0.8-tests.patch 1073 BLAKE2B e15195c9e67dde666f6450d38c45dee9fcbb499ef66ec5ba7e08a1b4c92a3fd10f5332ccc8f1cf5f9ff48589108ada1fd1b8e9a7a766e7e41eb3acc230b7708e SHA512 cc2b6caa0fb300a524e28d0602fcb287a18244ef98832115dcd6cecab623240ec86f5e95c6f8e74d56b064553723d85bc4cfb97defdbbc4d76e001809dbd5483 DIST nftlb-1.0.7.tar.gz 201988 BLAKE2B 794778523b3a60a351fd071e6ff129197203ddfb1b80823dd6b05c30cb530040da465a10d2ffbf11cad063c2a453bb9baebd6e689b9166d4fcb0fe9fd17760e8 SHA512 eb1e9847f340e57b75a5b8680774d8208b282faccdef48e316b2bd52b10349eeda70643386e0e899d0f6a2f506964cf1b7a7ec2d86279f83ca87a9afa8f047bc -EBUILD nftlb-1.0.4.ebuild 1037 BLAKE2B 61b6a5e568945cb063f205b39dc43e36aa4ed1001bdadd592e513f813c376f41eab26309f4a2df4827741fa4eacfa88a8b57c5dfcffae53674fe0a824baf62ff SHA512 43a81b0c731563e4d1cf8a3880b722d9c171d7930b1998cb4251d38f756fcd02bc6860e923db776aca3ca24aff3fd8590c195a009d41399bbe3331c8e7ffed1d -EBUILD nftlb-1.0.6.ebuild 1037 BLAKE2B 61b6a5e568945cb063f205b39dc43e36aa4ed1001bdadd592e513f813c376f41eab26309f4a2df4827741fa4eacfa88a8b57c5dfcffae53674fe0a824baf62ff SHA512 43a81b0c731563e4d1cf8a3880b722d9c171d7930b1998cb4251d38f756fcd02bc6860e923db776aca3ca24aff3fd8590c195a009d41399bbe3331c8e7ffed1d +DIST nftlb-1.0.8.gh.tar.gz 256936 BLAKE2B 1ab9fb508c8613304ebde7185a8ad8ddabb483d17c8b872cfb7da8a0b0e5a8d40f74a74361d1d5b8304d45c00357eea1f88f2cc39e5afe537791278277462407 SHA512 f612b7065fb5011f1af34cabe0945b7b0c1479241b4673d86e2e97d06bffdfefcc5ca4ec3ad3752faa92862306ed8ad28754838236476fe9db88099bc389cf7c EBUILD nftlb-1.0.7.ebuild 1037 BLAKE2B 61b6a5e568945cb063f205b39dc43e36aa4ed1001bdadd592e513f813c376f41eab26309f4a2df4827741fa4eacfa88a8b57c5dfcffae53674fe0a824baf62ff SHA512 43a81b0c731563e4d1cf8a3880b722d9c171d7930b1998cb4251d38f756fcd02bc6860e923db776aca3ca24aff3fd8590c195a009d41399bbe3331c8e7ffed1d +EBUILD nftlb-1.0.8.ebuild 1137 BLAKE2B 4d1c49b12953a30033462fdfcb38dc63d084faaf67b0c9a79774fc619ad1611d3c670bd4adb11d629039c2e9662bb0c20e91436d6e5386d4d6e36b9ab88bf443 SHA512 46a5c47e0d2e46fb43b21f1b3bb405a5b6e6a977e10ee3187ae9506ddc1f2bc43a2ac82cc3a2b5bc3ee533a7277f48676a546117cd35707e799908273f376bae MISC metadata.xml 338 BLAKE2B 7ac9c5781a06889e69bbde8ed9ccdc15f5a587eb71c0d8835d365c5856fd9d96b492a8ce1090b5b9a3bf282719ac8f5b7001b7c712daeef656f0b09d0019c903 SHA512 87dea1537335a8012ae31a59f9346039896c407b35ec818bcb245d899a75fa60f2e72713c612f8eb94010fba8869ff7814096d63280cc0e642f5f41d59241c8c diff --git a/net-firewall/nftlb/files/nftlb-1.0.8-musl.patch b/net-firewall/nftlb/files/nftlb-1.0.8-musl.patch new file mode 100644 index 000000000000..75e84b14629b --- /dev/null +++ b/net-firewall/nftlb/files/nftlb-1.0.8-musl.patch @@ -0,0 +1,73 @@ +diff --git a/configure.ac b/configure.ac +index 8ec1711..1de7be7 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -2,6 +2,7 @@ AC_INIT([nftlb], [1.0.8], [netfilter-devel@vger.kernel.org]) + + AC_CONFIG_AUX_DIR([build-aux]) + AC_CONFIG_MACRO_DIR([m4]) ++AC_CONFIG_HEADERS([config.h]) + AM_INIT_AUTOMAKE([-Wall foreign subdir-objects + tar-pax no-dist-gzip dist-bzip2 1.6]) + +@@ -25,5 +26,7 @@ AC_CHECK_HEADER([ev.h], [EVENTINC="-include ev.h"], + [EVENTINC="-include libev/ev.h"], + [AC_MSG_ERROR([ev.h not found])])]) + ++AC_CHECK_HEADERS([execinfo.h]) ++ + AC_CONFIG_FILES([Makefile src/Makefile]) + AC_OUTPUT +diff --git a/src/main.c b/src/main.c +index 2149e34..9ff3f7b 100644 +--- a/src/main.c ++++ b/src/main.c +@@ -18,6 +18,7 @@ + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ ++#include "config.h" + + #include <stdio.h> + #include <stdlib.h> +@@ -25,6 +26,10 @@ + #include <errno.h> + #include <unistd.h> + ++#ifdef HAVE_EXECINFO_H ++ #include <execinfo.h> ++#endif /* HAVE_EXECINFO_H */ ++ + #include "config.h" + #include "objects.h" + #include "server.h" +@@ -88,6 +93,7 @@ static void nftlb_sighandler(int signo) + exit(EXIT_SUCCESS); + } + ++#ifdef HAVE_EXECINFO_H + static void nftlb_trace() { + int level; + +@@ -100,6 +106,7 @@ static void nftlb_trace() { + if (!obj_recovery()) + exit(EXIT_FAILURE); + } ++#endif /* HAVE_EXECINFO_H */ + + static int main_process(const char *config, int mode) + { +@@ -189,9 +196,13 @@ int main(int argc, char *argv[]) + + if (signal(SIGINT, nftlb_sighandler) == SIG_ERR || + signal(SIGTERM, nftlb_sighandler) == SIG_ERR || ++#ifdef HAVE_EXECINFO_H + signal(SIGPIPE, SIG_IGN) == SIG_ERR || + signal(SIGABRT, nftlb_trace) == SIG_ERR || + signal(SIGSEGV, nftlb_trace) == SIG_ERR) { ++#else ++ signal(SIGPIPE, SIG_IGN) == SIG_ERR) { ++#endif /* HAVE_EXECINFO_H */ + zcu_log_print(LOG_ERR, "Error assigning signals"); + return EXIT_FAILURE; + } diff --git a/net-firewall/nftlb/files/nftlb-1.0.8-tests.patch b/net-firewall/nftlb/files/nftlb-1.0.8-tests.patch new file mode 100644 index 000000000000..2eed096cad15 --- /dev/null +++ b/net-firewall/nftlb/files/nftlb-1.0.8-tests.patch @@ -0,0 +1,45 @@ +diff --git a/tests/config_exec/exec_tests.sh b/tests/config_exec/exec_tests.sh +index f63950e..a55b467 100755 +--- a/tests/config_exec/exec_tests.sh ++++ b/tests/config_exec/exec_tests.sh +@@ -36,6 +36,8 @@ fi + + echo "-- Executing configuration tests" + ++retval=0 ++ + for test in `ls -d ${TESTS}`; do + if [[ ! ${test} =~ ^..._ ]]; then + continue; +@@ -58,6 +60,7 @@ for test in `ls -d ${TESTS}`; do + + if [ $statusexec -ne 0 ]; then + echo -e "\e[31mNFT EXEC ERROR\e[0m" ++ retval=1 + continue; + fi + +@@ -65,6 +68,7 @@ for test in `ls -d ${TESTS}`; do + + if [ ! -f ${outputfile} ]; then + echo "Dump file doesn't exist" ++ retval=1 + continue; + fi + +@@ -76,6 +80,7 @@ for test in `ls -d ${TESTS}`; do + rm -f ${reportfile} + else + echo -e "\e[31mNFT DUMP ERROR\e[0m" ++ retval=1 + if [ $APPLY_REPORTS -eq 1 ]; then + cat ${reportfile} > ${outputfile} + echo -e "APPLIED" +@@ -89,4 +94,7 @@ fi + + if [ "`grep 'nft command error' /var/log/syslog`" != "" ]; then + echo -e "\e[33m* command errors found, please check syslog\e[0m" ++ retval=1 + fi ++ ++exit ${retval} diff --git a/net-firewall/nftlb/nftlb-1.0.6.ebuild b/net-firewall/nftlb/nftlb-1.0.6.ebuild deleted file mode 100644 index f1e9170bcbc4..000000000000 --- a/net-firewall/nftlb/nftlb-1.0.6.ebuild +++ /dev/null @@ -1,61 +0,0 @@ -# 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 -} diff --git a/net-firewall/nftlb/nftlb-1.0.4.ebuild b/net-firewall/nftlb/nftlb-1.0.8.ebuild index f1e9170bcbc4..d95684584df6 100644 --- a/net-firewall/nftlb/nftlb-1.0.4.ebuild +++ b/net-firewall/nftlb/nftlb-1.0.8.ebuild @@ -1,4 +1,4 @@ -# Copyright 2020-2022 Gentoo Authors +# Copyright 2020-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -7,7 +7,7 @@ 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" +SRC_URI="https://github.com/zevenet/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" LICENSE="AGPL-3" SLOT="0" @@ -24,8 +24,8 @@ RDEPEND="${DEPEND}" RESTRICT="test" PATCHES=( - "${FILESDIR}/nftlb-1.0-tests.patch" - "${FILESDIR}/nftlb-1.0-musl.patch" + "${FILESDIR}/nftlb-1.0.8-tests.patch" + "${FILESDIR}/nftlb-1.0.8-musl.patch" ) pkg_setup() { @@ -45,6 +45,9 @@ pkg_setup() { } src_prepare() { + # there are some compiler artifacts in the tarball + find "${S}" -name '*.o' -delete || die + default eautoreconf } |