guru/sys-apps/bpftune/bpftune-9999.ebuild
Justin Matthew Kidd e8766e9d2e
sys-apps/bpftune: restrict tests
Signed-off-by: Justin Matthew Kidd <me@justinkidd.ca>
2025-03-02 14:59:09 -05:00

36 lines
639 B
Bash

# Copyright 2025 Gentoo Developers
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit git-r3 systemd linux-info autotools
DESCRIPTION="bpftune uses BPF to auto-tune Linux systems"
HOMEPAGE="https://github.com/oracle/bpftune"
EGIT_REPO_URI="https://github.com/oracle/bpftune.git"
LICENSE="GPL-2"
SLOT="0"
RESTRICT="test" # The tests require root.
BDEPEND="
dev-util/bpftool
dev-util/pahole
llvm-core/clang
"
DEPEND="
dev-libs/libbpf
sys-libs/libcap
dev-libs/libnl
"
pkg_setup() {
CONFIG_CHECK="DEBUG_INFO_BTF"
check_extra_config
}
src_install() {
default
systemd_dounit src/bpftune.service
}