diff mbox series

[meta-oe] nethogs: add recipe

Message ID tencent_5A2A52EA8E20CDC9A5F4546616BFFA67FC07@qq.com
State New
Headers show
Series [meta-oe] nethogs: add recipe | expand

Commit Message

wenyang.linux@foxmail.com Nov. 4, 2025, 5:14 p.m. UTC
From: Wen Yang <wenyang.linux@foxmail.com>

NetHogs is a small 'net top' tool. Instead of breaking the traffic
down per protocol or per subnet, like most tools do, it groups
bandwidth by process.

Signed-off-by: Wen Yang <wenyang.linux@foxmail.com>
---
 .../recipes-connectivity/nethogs/nethogs.inc   | 18 ++++++++++++++++++
 .../nethogs/nethogs_0.8.8.bb                   |  4 ++++
 2 files changed, 22 insertions(+)
 create mode 100644 meta-oe/recipes-connectivity/nethogs/nethogs.inc
 create mode 100644 meta-oe/recipes-connectivity/nethogs/nethogs_0.8.8.bb
diff mbox series

Patch

diff --git a/meta-oe/recipes-connectivity/nethogs/nethogs.inc b/meta-oe/recipes-connectivity/nethogs/nethogs.inc
new file mode 100644
index 0000000000..78c92915c9
--- /dev/null
+++ b/meta-oe/recipes-connectivity/nethogs/nethogs.inc
@@ -0,0 +1,18 @@ 
+SUMMARY = "NetHogs is a small 'net top' tool that can group bandwidth by process"
+HOMEPAGE = "https://github.com/raboof/nethogs"
+SECTION = "console/network"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+SRC_URI = "git://github.com/raboof/nethogs.git;branch=main;protocol=https"
+DEPENDS = "ncurses libpcap"
+
+do_compile() {
+    oe_runmake nethogs
+}
+
+do_install() {
+    oe_runmake install PREFIX=${prefix} DESTDIR=${D}
+}
+
+FILES:${PN} = "${sbindir}/nethogs"
diff --git a/meta-oe/recipes-connectivity/nethogs/nethogs_0.8.8.bb b/meta-oe/recipes-connectivity/nethogs/nethogs_0.8.8.bb
new file mode 100644
index 0000000000..cb0c4b68eb
--- /dev/null
+++ b/meta-oe/recipes-connectivity/nethogs/nethogs_0.8.8.bb
@@ -0,0 +1,4 @@ 
+require nethogs.inc
+
+# tag for v0.8.8
+SRCREV = "632a78846eb3cc3259dc45c59a47fa9c293a2831"