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 2BD52158087 for ; Thu, 23 Dec 2021 15:08:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E509C2BC01E; Thu, 23 Dec 2021 15:08:14 +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 8AE242BC01E for ; Thu, 23 Dec 2021 15:08:14 +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 877F2342FCF for ; Thu, 23 Dec 2021 15:08:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BE489262 for ; Thu, 23 Dec 2021 15:08:08 +0000 (UTC) From: "Aisha Tammy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Aisha Tammy" Message-ID: <1640272043.ffa14bb00c8728959db17bd60ca297189a83250b.epsilon-0@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-libs/dpdk/ X-VCS-Repository: repo/proj/guru X-VCS-Files: net-libs/dpdk/Manifest net-libs/dpdk/dpdk-21.11.ebuild net-libs/dpdk/metadata.xml X-VCS-Directories: net-libs/dpdk/ X-VCS-Committer: epsilon-0 X-VCS-Committer-Name: Aisha Tammy X-VCS-Revision: ffa14bb00c8728959db17bd60ca297189a83250b X-VCS-Branch: dev Date: Thu, 23 Dec 2021 15:08:08 +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: 5a5fce2c-f2e3-42cf-8997-d347fc052ca5 X-Archives-Hash: 1a0b17cae36ca152a95721e6fd3b9046 commit: ffa14bb00c8728959db17bd60ca297189a83250b Author: Aisha Tammy aisha cc> AuthorDate: Thu Dec 23 15:07:23 2021 +0000 Commit: Aisha Tammy aisha cc> CommitDate: Thu Dec 23 15:07:23 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ffa14bb0 net-libs/dpdk: fast userspace networking libraries Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Aisha Tammy aisha.cc> net-libs/dpdk/Manifest | 1 + net-libs/dpdk/dpdk-21.11.ebuild | 63 +++++++++++++++++++++++++++++++++++++++++ net-libs/dpdk/metadata.xml | 8 ++++++ 3 files changed, 72 insertions(+) diff --git a/net-libs/dpdk/Manifest b/net-libs/dpdk/Manifest new file mode 100644 index 000000000..cf0fb5cc1 --- /dev/null +++ b/net-libs/dpdk/Manifest @@ -0,0 +1 @@ +DIST dpdk-21.11.tar.xz 15102516 BLAKE2B e82fb03242b74e458810ee5e0d21feaf5d6d781b81b8dc5c2a2ab977bac202290dadc8734ea13993bb1cb1df4b5c4d770df574052a384b590ac798d19c370c59 SHA512 843282023c2f77a9b8af393d50c6dde54f09d490cd6f4a99f03d4df5df13a7d963aa86885fdf64e13f9da71e01c881d1f301dd093574a32cddd84f4b1fb58fd5 diff --git a/net-libs/dpdk/dpdk-21.11.ebuild b/net-libs/dpdk/dpdk-21.11.ebuild new file mode 100644 index 000000000..ba9c719e8 --- /dev/null +++ b/net-libs/dpdk/dpdk-21.11.ebuild @@ -0,0 +1,63 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit python-single-r1 meson + +DESCRIPTION="Data Plane Development Kit libraries for fast userspace networking" +HOMEPAGE="https://dpdk.org/" +SRC_URI="https://fast.dpdk.org/rel/${P}.tar.xz" + +LICENSE="BSD GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +# tests require rte_kni module to be loaded +# and also needs network and /dev access +# and need to be run as root +RESTRICT="test" + +DEPEND="${PYTHON_DEPS} + ~sys-kernel/rte_kni-kmod-${PV} + app-crypt/intel-ipsec-mb + dev-libs/elfutils + dev-libs/isa-l + dev-libs/jansson + dev-libs/libbpf + dev-libs/libbsd + dev-libs/openssl + net-libs/libmnl + net-libs/libpcap + sys-apps/dtc + sys-cluster/rdma-core + sys-process/numactl +" +RDEPEND="${DEPEND}" +BDEPEND=" + dev-lang/nasm + test? ( $(python_gen_cond_dep ' + dev-python/pyelftools[${PYTHON_USEDEP}] + ') ) +" + +src_configure() { + local emesonargs=( + -Denable_kmods=false + -Dmachine=default + -Dplatform=generic + $(meson_use test tests) + ) + meson_src_configure + python_setup +} + +src_install() { + meson_src_install + local pyfiles=( "${ED}/usr/bin/*.py" ) + for pyfile in "${pyfiles[@]}"; do + python_fix_shebang "${pyfile}" + done +} diff --git a/net-libs/dpdk/metadata.xml b/net-libs/dpdk/metadata.xml new file mode 100644 index 000000000..65ac1f205 --- /dev/null +++ b/net-libs/dpdk/metadata.xml @@ -0,0 +1,8 @@ + + + + + gentoo@aisha.cc + Aisha Tammy + +