public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: sys-apps/bpftune/
@ 2025-02-26 15:44 Justin Kidd
  0 siblings, 0 replies; 3+ messages in thread
From: Justin Kidd @ 2025-02-26 15:44 UTC (permalink / raw
  To: gentoo-commits

commit:     033aed945399ce5e3ac8a98ecb1a37542511eb0c
Author:     Justin Matthew Kidd <me <AT> justinkidd <DOT> ca>
AuthorDate: Wed Feb 26 15:37:23 2025 +0000
Commit:     Justin Kidd <me <AT> justinkidd <DOT> ca>
CommitDate: Wed Feb 26 15:43:22 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=033aed94

sys-apps/bpftune: new package, add 9999

Signed-off-by: Justin Matthew Kidd <me <AT> justinkidd.ca>

 sys-apps/bpftune/bpftune-9999.ebuild | 45 ++++++++++++++++++++++++++++++++++++
 sys-apps/bpftune/metadata.xml        | 12 ++++++++++
 2 files changed, 57 insertions(+)

diff --git a/sys-apps/bpftune/bpftune-9999.ebuild b/sys-apps/bpftune/bpftune-9999.ebuild
new file mode 100644
index 000000000..29c725315
--- /dev/null
+++ b/sys-apps/bpftune/bpftune-9999.ebuild
@@ -0,0 +1,45 @@
+# Copyright 2025 Gentoo Developers
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit git-r3 systemd
+
+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"
+
+RDEPEND="
+	dev-libs/libbpf
+	sys-libs/libcap
+	dev-libs/libnl
+"
+DEPEND="
+	${RDEPEND}
+	dev-util/bpftool
+	llvm-core/clang
+"
+
+src_compile() {
+	emake libdir="$(get_libdir)" srcdir
+}
+
+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
+
+	systemd_dounit src/bpftune.service
+}

diff --git a/sys-apps/bpftune/metadata.xml b/sys-apps/bpftune/metadata.xml
new file mode 100644
index 000000000..3efc710ab
--- /dev/null
+++ b/sys-apps/bpftune/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>me@justinkidd.ca</email>
+		<name>Justin Kidd</name>
+	</maintainer>
+	<upstream>
+		<bugs-to>https://github.com/oracle/bpftune/issues</bugs-to>
+		<remote-id type="github">oracle/bpftune</remote-id>
+	</upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: sys-apps/bpftune/
@ 2025-02-28 14:43 Justin Kidd
  0 siblings, 0 replies; 3+ messages in thread
From: Justin Kidd @ 2025-02-28 14:43 UTC (permalink / raw
  To: gentoo-commits

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
 }


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: sys-apps/bpftune/
@ 2025-03-02 20:00 Justin Kidd
  0 siblings, 0 replies; 3+ messages in thread
From: Justin Kidd @ 2025-03-02 20:00 UTC (permalink / raw
  To: gentoo-commits

commit:     e8766e9d2e9c75e7976b56176ce3d8bb160959d1
Author:     Justin Matthew Kidd <me <AT> justinkidd <DOT> ca>
AuthorDate: Sun Mar  2 19:58:43 2025 +0000
Commit:     Justin Kidd <me <AT> justinkidd <DOT> ca>
CommitDate: Sun Mar  2 19:59:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e8766e9d

sys-apps/bpftune: restrict tests

Signed-off-by: Justin Matthew Kidd <me <AT> justinkidd.ca>

 sys-apps/bpftune/bpftune-9999.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys-apps/bpftune/bpftune-9999.ebuild b/sys-apps/bpftune/bpftune-9999.ebuild
index 759b87e74..5039f888a 100644
--- a/sys-apps/bpftune/bpftune-9999.ebuild
+++ b/sys-apps/bpftune/bpftune-9999.ebuild
@@ -11,6 +11,8 @@ 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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-03-02 20:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-02 20:00 [gentoo-commits] repo/proj/guru:dev commit in: sys-apps/bpftune/ Justin Kidd
  -- strict thread matches above, loose matches on Subject: below --
2025-02-28 14:43 Justin Kidd
2025-02-26 15:44 Justin Kidd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox