mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -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:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
inherit git-r3 systemd
|
inherit git-r3 systemd linux-info autotools
|
||||||
|
|
||||||
DESCRIPTION="bpftune uses BPF to auto-tune Linux systems"
|
DESCRIPTION="bpftune uses BPF to auto-tune Linux systems"
|
||||||
HOMEPAGE="https://github.com/oracle/bpftune"
|
HOMEPAGE="https://github.com/oracle/bpftune"
|
||||||
@@ -11,35 +11,23 @@ EGIT_REPO_URI="https://github.com/oracle/bpftune.git"
|
|||||||
|
|
||||||
LICENSE="GPL-2"
|
LICENSE="GPL-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
BDEPEND="
|
||||||
RDEPEND="
|
dev-util/bpftool
|
||||||
|
dev-util/pahole
|
||||||
|
llvm-core/clang
|
||||||
|
"
|
||||||
|
DEPEND="
|
||||||
dev-libs/libbpf
|
dev-libs/libbpf
|
||||||
sys-libs/libcap
|
sys-libs/libcap
|
||||||
dev-libs/libnl
|
dev-libs/libnl
|
||||||
"
|
"
|
||||||
DEPEND="
|
|
||||||
${RDEPEND}
|
|
||||||
dev-util/bpftool
|
|
||||||
llvm-core/clang
|
|
||||||
"
|
|
||||||
|
|
||||||
src_compile() {
|
pkg_setup() {
|
||||||
emake libdir="$(get_libdir)" srcdir
|
CONFIG_CHECK="DEBUG_INFO_BTF"
|
||||||
|
check_extra_config
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
dobin src/bpftune
|
default
|
||||||
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
|
|
||||||
|
|
||||||
systemd_dounit src/bpftune.service
|
systemd_dounit src/bpftune.service
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user