public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alexys Jacob" <ultrabug@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/ipvsadm/
Date: Wed,  5 May 2021 13:32:23 +0000 (UTC)	[thread overview]
Message-ID: <1620221507.2d6eb756f0dc31bab81b1aadc1d308dc0efcad35.ultrabug@gentoo> (raw)

commit:     2d6eb756f0dc31bab81b1aadc1d308dc0efcad35
Author:     Ricardo Pchevuzinske Katz <ricardo.katz <AT> gmail <DOT> com>
AuthorDate: Mon Apr 12 19:30:22 2021 +0000
Commit:     Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
CommitDate: Wed May  5 13:31:47 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d6eb756

sys-cluster/ipvsadm: bump to v1.31 Update sys-cluster/ipvsadm to v1.31 Closes: https://bugs.gentoo.org/782550

Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/20354
Signed-off-by: Alexys Jacob <ultrabug <AT> gentoo.org>

 sys-cluster/ipvsadm/Manifest            |  1 +
 sys-cluster/ipvsadm/ipvsadm-1.31.ebuild | 70 +++++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+)

diff --git a/sys-cluster/ipvsadm/Manifest b/sys-cluster/ipvsadm/Manifest
index 4107ba63500..1c7b4e464d8 100644
--- a/sys-cluster/ipvsadm/Manifest
+++ b/sys-cluster/ipvsadm/Manifest
@@ -1,2 +1,3 @@
 DIST ipvsadm-1.27.tar.xz 38196 BLAKE2B 1b8a72b11c14a909b8b7459c459195d32bb7944ed4a01d963e2b85e8279c5d7d2fd095d9c23473c64dc15881a2b22b439b39c10b2019b3183f54e22535a258a9 SHA512 cf982b7981674c91d1b7516de7b55cf378b306ce4a53e13976b8eeb8610015c4fa4aa9d251bc4d329db8e05c1862863160af2d3c63b76263f290087cffdf1b80
 DIST ipvsadm-1.28.tar.xz 38600 BLAKE2B 2a892f858324788b425f7c5aa6ce6a1548c6cd166977d1d36a5236061d1a6ce7e31f6bc1e24a7d53a57406e468271ccebc01330de6be9784c1a955b60eb89d16 SHA512 a1e10ce30751d9439f832e221e5c41b338f87dcc94a0b21329d908a9164f8882049af9d9d918b764b36c30e353d5b8db49d7088e60c24e4748713c06cccf7035
+DIST ipvsadm-1.31.tar.xz 42396 BLAKE2B a42ceea834fb16e25ea34417227f6b632fe3b94c8a7ce5d3daff4375884fd47f14999551eab3bf7226d5eb02f25aef4c77a8287592b642946683bc5ddc6783da SHA512 1c7187405771e702eff0009d688fa697375b833a486ff88b41a4a0dcfaa3e9884c7e3bc34375efea5f6a2d025847c9fac9fd6ba694ec3bf2fc9d357eef2cb631

diff --git a/sys-cluster/ipvsadm/ipvsadm-1.31.ebuild b/sys-cluster/ipvsadm/ipvsadm-1.31.ebuild
new file mode 100644
index 00000000000..67b27b47b59
--- /dev/null
+++ b/sys-cluster/ipvsadm/ipvsadm-1.31.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2021 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
+	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."
+}


             reply	other threads:[~2021-05-05 13:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-05 13:32 Alexys Jacob [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-09-03  9:18 [gentoo-commits] repo/gentoo:master commit in: sys-cluster/ipvsadm/ Jakov Smolić
2022-09-01  8:47 Agostino Sarubbo
2022-09-01  8:45 Agostino Sarubbo
2022-09-01  7:52 Jakov Smolić
2022-01-01 10:48 Ulrich Müller
2022-01-01 10:48 Ulrich Müller
2021-04-15  8:02 Sam James
2021-04-13  0:26 Sam James
2016-10-15  9:31 Pacho Ramos
2016-02-13 16:46 Agostino Sarubbo
2016-01-27 12:49 Alexys Jacob

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1620221507.2d6eb756f0dc31bab81b1aadc1d308dc0efcad35.ultrabug@gentoo \
    --to=ultrabug@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox