dev-util/xdp-tools: Utilities and example programs for use with XDP (new package)

This package contains a collection of utilities and example code to be used with
the eXpress Data Path facility of the Linux kernel.

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
This commit is contained in:
Kurt Kanzenbach
2020-03-20 14:10:06 +01:00
parent 1ea95e7947
commit b84635ee1a
3 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST xdp-tools-0.0.2.tar.gz 288960 BLAKE2B 0ff03200b288819b5180f55129494534f5ca09be5bb9bd167a022501dd63104251047d514a42dca905cb6879c55a20ec40b6f8d6828ac7559066fc3867f6ade9 SHA512 00455d77e2354b48f342d795d2141ae38b39137981e4a232971b6755e9b1c397db65c498817bbdf76946cc0d825c01e9b866ed504395f76be02f65625adc1bb9

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>kurt@kmk-computers.de</email>
<name>Kurt Kanzenbach</name>
</maintainer>
<longdescription>
This package contains a collection of utilities and example code to be used
with the eXpress Data Path facility of the Linux kernel.
</longdescription>
</pkgmetadata>

View File

@@ -0,0 +1,48 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit linux-info
DESCRIPTION="Utilities and example programs for use with XDP"
HOMEPAGE="https://github.com/xdp-project/xdp-tools"
SRC_URI="https://github.com/xdp-project/${PN}/releases/download/v${PV}/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86"
# skip strip for eBPF object files
RESTRICT="strip"
# skip QA check(s) for eBPF samples
QA_EXECSTACK="usr/lib/bpf/*.o"
# XDP should be enabled
CONFIG_CHECK="~XDP_SOCKETS"
BDEPEND="
virtual/pkgconfig
"
RDEPEND="
>=dev-libs/libbpf-0.0.7
virtual/libelf
"
DEPEND="${RDEPEND}
>=sys-devel/clang-9.0.0
>=sys-devel/llvm-9.0.0
"
src_configure() {
./configure
}
src_compile() {
emake PRODUCTION=1 PREFIX=/usr all
}
src_install() {
emake PRODUCTION=1 PREFIX=/usr DESTDIR="${D}" install
doman xdp-filter/xdp-filter.8
}