mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-18 23:39:00 -04:00
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@justinkidd.ca>
This commit is contained in:
parent
b16186eb31
commit
2521fb5458
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user