From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B9A16158086 for ; Sat, 1 Jan 2022 10:48:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4AC392BC24A; Sat, 1 Jan 2022 10:48:21 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4DE712BC24A for ; Sat, 1 Jan 2022 10:48:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BFE5834319D for ; Sat, 1 Jan 2022 10:48:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0FADE282 for ; Sat, 1 Jan 2022 10:48:15 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1641034083.b86927a6cece78844f9612ef55f874d2ac00edf5.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/ipvsadm/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/ipvsadm/ipvsadm-1.31-r1.ebuild X-VCS-Directories: sys-cluster/ipvsadm/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: b86927a6cece78844f9612ef55f874d2ac00edf5 X-VCS-Branch: master Date: Sat, 1 Jan 2022 10:48:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 03eba178-834d-487c-9b03-a243a24f06d2 X-Archives-Hash: 1dce57440e187e2715d9d7fe4d9c77a3 commit: b86927a6cece78844f9612ef55f874d2ac00edf5 Author: Marco Scardovi scardovi com> AuthorDate: Tue Dec 14 22:10:33 2021 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sat Jan 1 10:48:03 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b86927a6 sys-cluster/ipvsadm: bump to EAPI 8 and drop epatch Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Marco Scardovi scardovi.com> Signed-off-by: Ulrich Müller gentoo.org> sys-cluster/ipvsadm/ipvsadm-1.31-r1.ebuild | 76 ++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/sys-cluster/ipvsadm/ipvsadm-1.31-r1.ebuild b/sys-cluster/ipvsadm/ipvsadm-1.31-r1.ebuild new file mode 100644 index 000000000000..22b2dc5d4897 --- /dev/null +++ b/sys-cluster/ipvsadm/ipvsadm-1.31-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit 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 +" + +BDEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +PATCHES=( "${FILESDIR}/${PN}"-1.27-buildsystem.patch ) + +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 + 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." +}