mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
dev-util/xdp-tools: Bump to v1.2.0
Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
This commit is contained in:
70
dev-util/xdp-tools/xdp-tools-1.2.0.ebuild
Normal file
70
dev-util/xdp-tools/xdp-tools-1.2.0.ebuild
Normal file
@@ -0,0 +1,70 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit linux-info llvm multilib toolchain-funcs
|
||||
|
||||
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}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
# skip strip for eBPF object files
|
||||
# tests have to be run as root
|
||||
RESTRICT="strip test"
|
||||
|
||||
# skip QA check(s) for eBPF samples
|
||||
QA_EXECSTACK="usr/lib*/bpf/*.o usr/share/xdp-tools/*.o"
|
||||
QA_PREBUILT="usr/lib*/bpf/*.o usr/share/xdp-tools/*.o"
|
||||
|
||||
# XDP should be enabled
|
||||
CONFIG_CHECK="~XDP_SOCKETS"
|
||||
|
||||
LLVM_MAX_SLOT=12
|
||||
|
||||
BDEPEND="
|
||||
virtual/pkgconfig
|
||||
"
|
||||
RDEPEND="
|
||||
>=dev-libs/libbpf-0.0.7
|
||||
net-libs/libpcap
|
||||
sys-libs/zlib
|
||||
virtual/libelf
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
sys-devel/clang
|
||||
sys-devel/llvm
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-install.patch"
|
||||
"${FILESDIR}/${P}-readelf.patch"
|
||||
)
|
||||
|
||||
pkg_setup() {
|
||||
llvm_pkg_setup
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
./configure || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake \
|
||||
CC="$(tc-getCC)" \
|
||||
AR="$(tc-getAR)" \
|
||||
READELF=$(tc-getREADELF) \
|
||||
PRODUCTION=1 \
|
||||
DYNAMIC_LIBXDP=1 \
|
||||
FORCE_SYSTEM_LIBBPF=1 \
|
||||
PREFIX=/usr \
|
||||
LIBDIR="/usr/$(get_libdir)" all
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake PREFIX=/usr LIBDIR="/usr/$(get_libdir)" DESTDIR="${D}" install
|
||||
}
|
||||
Reference in New Issue
Block a user