summaryrefslogtreecommitdiff
path: root/sys-cluster/ipvsadm
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-09-17 23:18:13 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-09-17 23:18:13 +0100
commita0d1bdbd841fa761e38f468e1009cd058af305fd (patch)
tree7e025c4f7b68d5b31d24058f9e029c18da4db031 /sys-cluster/ipvsadm
parent5b9522db2ae57aa61163fb9aff331742e9e22330 (diff)
gentoo auto-resync : 17:09:2022 - 23:18:12
Diffstat (limited to 'sys-cluster/ipvsadm')
-rw-r--r--sys-cluster/ipvsadm/Manifest3
-rw-r--r--sys-cluster/ipvsadm/files/ipvsadm-1.27-fix-daemon-state.patch56
-rw-r--r--sys-cluster/ipvsadm/ipvsadm-1.27-r1.ebuild73
3 files changed, 0 insertions, 132 deletions
diff --git a/sys-cluster/ipvsadm/Manifest b/sys-cluster/ipvsadm/Manifest
index 80797fee9a39..d9f798435653 100644
--- a/sys-cluster/ipvsadm/Manifest
+++ b/sys-cluster/ipvsadm/Manifest
@@ -1,8 +1,5 @@
AUX ipvsadm-1.27-buildsystem.patch 3624 BLAKE2B d7a1f68a505d8c64fdbcdb5589a9b6b1e7afd5a4e7dfc131a741f1644433484efa795f51cee2fa6d5f6ca77e6a7312e75276d0a4e40f38f9aefc0f532dd0ce31 SHA512 e6e94a84f3a59a2ddb73c924f28e7e6799530aa5187d499c1b002ea1caa379c728dc96493e481d9e351e14209d5424de73c7deeb4f1e1d9846eb088fb160535d
-AUX ipvsadm-1.27-fix-daemon-state.patch 2001 BLAKE2B efc15ede85aae2c069399c0137c6ec5142bbcc35054b2de32e20cbbdc216e32c3628e4821d1da93f0d14580c67714cbd310147cbca776652301fbc5a275490dc SHA512 4898672423f2b53776bedde1b5d7a7dce27d8d66aeec6b749149209c6acabcfa8cc53b4f3342107f9a783c5a4afe88f4e8b10d25771c49d86b0def8777834c22
AUX ipvsadm-init 649 BLAKE2B 9414395d1093c1bff940982f90e7416fef6d74e9972b5416d571fe8a41363c03c9a4ff819cd2be578911a7c6c021cc7f52910371030a479a58800b8eb4f3d2ff SHA512 3fb2467fc157599fbf308e27f39f0cb4164e3d36423500d89c7fbedec3ba6f5c7b3cbe52b077811011fc0faef73072a0bf3b204d728841773ef2a520c03130f7
-DIST ipvsadm-1.27.tar.xz 38196 BLAKE2B 1b8a72b11c14a909b8b7459c459195d32bb7944ed4a01d963e2b85e8279c5d7d2fd095d9c23473c64dc15881a2b22b439b39c10b2019b3183f54e22535a258a9 SHA512 cf982b7981674c91d1b7516de7b55cf378b306ce4a53e13976b8eeb8610015c4fa4aa9d251bc4d329db8e05c1862863160af2d3c63b76263f290087cffdf1b80
DIST ipvsadm-1.31.tar.xz 42396 BLAKE2B a42ceea834fb16e25ea34417227f6b632fe3b94c8a7ce5d3daff4375884fd47f14999551eab3bf7226d5eb02f25aef4c77a8287592b642946683bc5ddc6783da SHA512 1c7187405771e702eff0009d688fa697375b833a486ff88b41a4a0dcfaa3e9884c7e3bc34375efea5f6a2d025847c9fac9fd6ba694ec3bf2fc9d357eef2cb631
-EBUILD ipvsadm-1.27-r1.ebuild 1753 BLAKE2B ae0e5cf73746f8324022a54593e8476d91b149fe0e2a59f2b91cead73b0225c2b31cf633a39bc62c63b763622d05bfddaf219f2185a4f834b2da9edda5a2399c SHA512 66314acc9ed60feb84bd28bdda6dffb8e2805ffbeccc8fb3f727088173625a7b5e6494fe5d11e98475ca11ae313692c4ae8084cd446f2ae0032b4ec3ff248d9b
EBUILD ipvsadm-1.31-r1.ebuild 1610 BLAKE2B 55e78a566b393e1412b021519e649ff05275536aa67b57a7314b1c0e078fdab5d2def11b257fca918f03076ce8e96fcac744d4cc079b37c9803041780a3233b2 SHA512 e9ebe1192376bef1e2252a1204d239ddfd2746e74063a45e0bcb0cd02f40f06026cd3f72f48876c2c18f5948b7f49bd46ab0923977195c10eadba21c380bf4ac
MISC metadata.xml 264 BLAKE2B 72a8181e4235f4fb310c8d9db3d21082b028cd147a04382ae60a1db2d622fcf13bc56fd944c85684c233673d8705e85690f8e6fa116f177758a83504cc2beb0a SHA512 b560647d04f40bd98c6d95744f963455d52138ca4eed3209a0c7ff6314ed8e297a4784a2462bb1f7a8a4dc9af2addd13a0be3a6f7e9109dfe00f95b5935c40af
diff --git a/sys-cluster/ipvsadm/files/ipvsadm-1.27-fix-daemon-state.patch b/sys-cluster/ipvsadm/files/ipvsadm-1.27-fix-daemon-state.patch
deleted file mode 100644
index e3e5ebec72c6..000000000000
--- a/sys-cluster/ipvsadm/files/ipvsadm-1.27-fix-daemon-state.patch
+++ /dev/null
@@ -1,56 +0,0 @@
-From 8c34d5a0d4c763db9b8f1e54be0c6c3ded6c54e0 Mon Sep 17 00:00:00 2001
-From: Alexander Holler <alexander.holler@1und1.de>
-Date: Mon, 9 Jan 2012 13:16:55 +0100
-Subject: [PATCH] libipvs: Fix reporting of the state of the backup-daemon.
-
-ipvsadm -l --daemon didn't report a running ipvs-backup-daemon
-(if no master-daemon was run).
-
-It seems there was some misunderstanding of
-how the daemons got reported (without using netlink). The state of
-the backup-daemon is always reported (by the kernel) in the second
-element of type ip_vs_daemon_user which is returned by the kernel
-through IP_VS_SO_GET_DAEMON or IPVS_CMD_GET_DAEMON.
-
-Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-
----
- libipvs/libipvs.c | 11 ++++++-----
- 1 files changed, 6 insertions(+), 5 deletions(-)
-
-Note: patch adjusted slightly to apply against ipvsadm (was spun for keepalived) - robbat2
-
-diff --git a/libipvs/libipvs.c b/libipvs/libipvs.c
-index ea5e851..6bee837 100644
---- a/libipvs/libipvs.c
-+++ b/libipvs/libipvs.c
-@@ -1003,12 +1003,9 @@ static int ipvs_daemon_parse_cb(struct nl_msg *msg, void *arg)
- struct nlattr *attrs[IPVS_CMD_ATTR_MAX + 1];
- struct nlattr *daemon_attrs[IPVS_DAEMON_ATTR_MAX + 1];
- ipvs_daemon_t *u = (ipvs_daemon_t *)arg;
-+ __u32 state;
- int i = 0;
-
-- /* We may get two daemons. If we've already got one, this is the second */
-- if (u[0].state)
-- i = 1;
--
- if (genlmsg_parse(nlh, 0, attrs, IPVS_CMD_ATTR_MAX, ipvs_cmd_policy) != 0)
- return -1;
-
-@@ -1021,7 +1018,11 @@ static int ipvs_daemon_parse_cb(struct nl_msg *msg, void *arg)
- daemon_attrs[IPVS_DAEMON_ATTR_SYNC_ID]))
- return -1;
-
-- u[i].state = nla_get_u32(daemon_attrs[IPVS_DAEMON_ATTR_STATE]);
-+ state = nla_get_u32(daemon_attrs[IPVS_DAEMON_ATTR_STATE]);
-+ /* The second element is used for the state of the backup daemon. */
-+ if (state == IP_VS_STATE_BACKUP)
-+ i = 1;
-+ u[i].state = state;
- strncpy(u[i].mcast_ifn,
- nla_get_string(daemon_attrs[IPVS_DAEMON_ATTR_MCAST_IFN]),
- IP_VS_IFNAME_MAXLEN);
---
-1.7.6.5
-
diff --git a/sys-cluster/ipvsadm/ipvsadm-1.27-r1.ebuild b/sys-cluster/ipvsadm/ipvsadm-1.27-r1.ebuild
deleted file mode 100644
index 6cdcb9bf7853..000000000000
--- a/sys-cluster/ipvsadm/ipvsadm-1.27-r1.ebuild
+++ /dev/null
@@ -1,73 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit epatch linux-info toolchain-funcs
-
-DESCRIPTION="utility to administer the IP virtual server services"
-HOMEPAGE="http://linuxvirtualserver.org/"
-SRC_URI="https://kernel.org/pub/linux/utils/kernel/ipvsadm/ipvsadm-${PV}.tar.xz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ~ia64 ~ppc ppc64 ~s390 sparc x86"
-IUSE="static-libs"
-
-RDEPEND=">=sys-libs/ncurses-5.2:*
- dev-libs/libnl:=
- >=dev-libs/popt-1.16"
-DEPEND="${RDEPEND}
- virtual/pkgconfig"
-
-pkg_pretend() {
- if kernel_is 2 4; then
- eerror "${P} supports only 2.6 series and later kernels, please try ${PN}-1.21 for 2.4 kernels"
- die "wrong kernel version"
- fi
-}
-
-src_prepare() {
- default
- epatch "${FILESDIR}"/${PN}-1.27-buildsystem.patch
- # Merged upstream in 1.27
- #epatch "${FILESDIR}"/${PN}-1.26-stack_smashing.patch # bug 371903
- epatch "${FILESDIR}"/${PN}-1.27-fix-daemon-state.patch
- use static-libs && export STATIC=1
-}
-
-src_compile() {
- local libnl_include
- if has_version ">=dev-libs/libnl-3.0"; then
- libnl_include=$($(tc-getPKG_CONFIG) --cflags libnl-3.0)
- else
- libnl_include=""
- fi
- emake -e \
- INCLUDE="-I.. -I. ${libnl_include}" \
- CC="$(tc-getCC)" \
- HAVE_NL=1 \
- STATIC=${STATIC} \
- POPT_LIB="$($(tc-getPKG_CONFIG) --libs popt)"
-}
-
-src_install() {
- into /
- dosbin ipvsadm ipvsadm-save ipvsadm-restore
-
- into /usr
- doman ipvsadm.8 ipvsadm-save.8 ipvsadm-restore.8
-
- newinitd "${FILESDIR}"/ipvsadm-init ipvsadm
- keepdir /var/lib/ipvsadm
-
- use static-libs && dolib.a libipvs/libipvs.a
- dolib.so libipvs/libipvs.so
-
- insinto /usr/include/ipvs
- newins libipvs/libipvs.h ipvs.h
-}
-
-pkg_postinst() {
- einfo "You will need a kernel that has ipvs patches to use LVS."
-}