commit: 2521fb54585b40db423acdf78a35dcc1ee396f4e Author: Justin Matthew Kidd <me <AT> justinkidd <DOT> ca> AuthorDate: Fri Feb 28 14:36:31 2025 +0000 Commit: Justin Kidd <me <AT> justinkidd <DOT> ca> CommitDate: Fri Feb 28 14:43:10 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2521fb54
sys-apps/bpftune: simplify & fix dependencies * Simplify ebuild with autotools eclass. * Add pahole dependency. * Add check for Kernel BTF feature. * Move clang and bpftool to BDEPEND. Signed-off-by: Justin Matthew Kidd <me <AT> justinkidd.ca> sys-apps/bpftune/bpftune-9999.ebuild | 34 +++++++++++----------------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/sys-apps/bpftune/bpftune-9999.ebuild b/sys-apps/bpftune/bpftune-9999.ebuild index 29c725315..759b87e74 100644 --- a/sys-apps/bpftune/bpftune-9999.ebuild +++ b/sys-apps/bpftune/bpftune-9999.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit git-r3 systemd +inherit git-r3 systemd linux-info autotools DESCRIPTION="bpftune uses BPF to auto-tune Linux systems" HOMEPAGE="https://github.com/oracle/bpftune" @@ -11,35 +11,23 @@ EGIT_REPO_URI="https://github.com/oracle/bpftune.git" LICENSE="GPL-2" SLOT="0" - -RDEPEND=" +BDEPEND=" + dev-util/bpftool + dev-util/pahole + llvm-core/clang +" +DEPEND=" dev-libs/libbpf sys-libs/libcap dev-libs/libnl " -DEPEND=" - ${RDEPEND} - dev-util/bpftool - llvm-core/clang -" -src_compile() { - emake libdir="$(get_libdir)" srcdir +pkg_setup() { + CONFIG_CHECK="DEBUG_INFO_BTF" + check_extra_config } src_install() { - dobin src/bpftune - dolib.so src/libbpftune.so* - - exeinto "/usr/$(get_libdir)/bpftune" - doexe src/tcp_buffer_tuner.so - doexe src/route_table_tuner.so - doexe src/neigh_table_tuner.so - doexe src/sysctl_tuner.so - doexe src/tcp_conn_tuner.so - doexe src/netns_tuner.so - doexe src/net_buffer_tuner.so - doexe src/ip_frag_tuner.so - + default systemd_dounit src/bpftune.service }
