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 13DAB15802F for ; Sun, 5 Mar 2023 14:38:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1D990E07EE; Sun, 5 Mar 2023 14:38:41 +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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B8138E07EE for ; Sun, 5 Mar 2023 14:38:40 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8ABDE341357 for ; Sun, 5 Mar 2023 14:38:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E24E18C8 for ; Sun, 5 Mar 2023 14:38:37 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1678027095.fa369e7cae03f9e3668ae3e44cfaab8168784fee.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/xdp-tools/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-libs/xdp-tools/Manifest net-libs/xdp-tools/xdp-tools-1.2.8.ebuild X-VCS-Directories: net-libs/xdp-tools/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: fa369e7cae03f9e3668ae3e44cfaab8168784fee X-VCS-Branch: master Date: Sun, 5 Mar 2023 14:38:37 +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: 73f18125-f5c5-43fa-b38c-905d59c0edc3 X-Archives-Hash: 19afcce82324b343204ef6ef18c95ffb commit: fa369e7cae03f9e3668ae3e44cfaab8168784fee Author: Sam James gentoo org> AuthorDate: Sun Mar 5 14:37:50 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sun Mar 5 14:38:15 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa369e7c net-libs/xdp-tools: restore 1.2.8 Needed because bpftool isn't keyworded everywhere. Rescued from 8eea55ff639c63ce54f5feba1d3300e40d4814b9. Bug: https://bugs.gentoo.org/899684 Signed-off-by: Sam James gentoo.org> net-libs/xdp-tools/Manifest | 1 + net-libs/xdp-tools/xdp-tools-1.2.8.ebuild | 52 +++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) diff --git a/net-libs/xdp-tools/Manifest b/net-libs/xdp-tools/Manifest index 2fda18e4cc09..7cba3df6937e 100644 --- a/net-libs/xdp-tools/Manifest +++ b/net-libs/xdp-tools/Manifest @@ -1 +1,2 @@ +DIST xdp-tools-1.2.8.tar.gz 253786 BLAKE2B f745085b73da5193c3cdaf60c20dfa5de62f3d83487413c87b4c3d07b755dcf91cfbeb4ba970b4e04eef74b4cec4238057f4462074f49b7139d7652cb0f22998 SHA512 6ada9e433fcbefd13cebdffe93c3ce9159e9e09f1498d1615918ca6ecc4f11f03fcd9096980e8ceb7de126d4d8b953fa64917e777d54b5a3dfd1a9556de81626 DIST xdp-tools-1.3.1.tar.gz 330516 BLAKE2B 89a61f47ba26efe6d0630d971e913e034d111d05c896e5af1bb28e6cb4e94133e6ecd827a10ee12a935ae2e6856f04556ac564ded1bcc65182766d656f8d0c5f SHA512 9dd434095a043158d14fb6829fa632fc4a0714dc0b6e08c219dfb55cb9f34005300db750115e08bd54210e90142bd499904616da077b8aa827e4de28c31be637 diff --git a/net-libs/xdp-tools/xdp-tools-1.2.8.ebuild b/net-libs/xdp-tools/xdp-tools-1.2.8.ebuild new file mode 100644 index 000000000000..e881553d3eed --- /dev/null +++ b/net-libs/xdp-tools/xdp-tools-1.2.8.ebuild @@ -0,0 +1,52 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="The libxdp library and various tools for use with XDP" +HOMEPAGE="https://github.com/xdp-project/xdp-tools" +SRC_URI="https://github.com/xdp-project/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2.1 BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +IUSE="+tools" + +DEPEND="dev-libs/libbpf:= + sys-libs/zlib + net-libs/libpcap + virtual/libelf" +RDEPEND="${DEPEND}" +BDEPEND=">=sys-devel/clang-10.0.0" + +# Not prebuilt -- we build them -- but they're not ordinary ELF objects either. +QA_PREBUILT="usr/lib/bpf/*.o" + +MAKEOPTS+=" V=1" + +src_configure() { + export PRODUCTION=1 + export DYNAMIC_LIBXDP=1 + export FORCE_SYSTEM_LIBBPF=1 + default +} + +src_install() { + export PREFIX="${EPREFIX}/usr" + export LIBDIR="${PREFIX}/$(get_libdir)" + export BPF_OBJECT_DIR="${PREFIX}/lib/bpf" + default + + # To remove the scripts/testing files that are installed. + rm -r "${ED}/usr/share/xdp-tools" || die + # We can't control static archive generation yet. + rm "${ED}/usr/$(get_libdir)/libxdp.a" || die + + use tools || { rm "${ED}/usr/sbin"/* || die; } + + # These are ELF objects but BPF ones. + dostrip -x /usr/lib/bpf +} + +src_test() { :; }