Skip to contentSkip to conversation

nethogs: add recipe

PATCH Superseded [email protected] 2 participants 4 messages Nov 8, 2025

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 nethogs: add recipe

From: Wen Yang <[email protected]>

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.

---
 .../recipes-connectivity/nethogs/nethogs_git.bb | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 meta-oe/recipes-connectivity/nethogs/nethogs_git.bb
meta-oe/recipes-connectivity/nethogs/nethogs_git.bb new file +17 -0
new file mode 100644
index 0000000000..29af14961c
@@ -0,0 +1,17 @@
+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"
+
+inherit meson pkgconfig
+
+SRCREV = "08daf76d8123943392c84a07108beea3e23ea39b"
+
+FILES:${PN} = "${bindir}"
+FILES:${PN}-dev = "${includedir} ${libdir}/lib*.so ${libdir}/lib*.so* ${libdir}/*.la ${libdir}/pkgconfig/*.pc"
+
Signature · 1 line
2.25.1
#1 lore raw

meta-oe/recipes-connectivity/nethogs/nethogs_git.bb

Quoted 24 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of wenyang.linux via lists.openembedded.org
Sent: den 7 november 2025 18:02
To: [email protected]; [email protected]; Khem Raj <[email protected]>
Cc: Wen Yang <[email protected]>
Subject: [oe] [meta-oe][PATCH v2] nethogs: add recipe

From: Wen Yang <[email protected]>

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.

---
 .../recipes-connectivity/nethogs/nethogs_git.bb | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 meta-oe/recipes-connectivity/nethogs/nethogs_git.bb
meta-oe/recipes-connectivity/nethogs/nethogs_git.bb new file +0 -0
new file mode 100644
index 0000000000..29af14961c

Change the version to "0.8.8".

meta-oe/recipes-connectivity/nethogs/nethogs_git.bb line 12

Quoted 13 lines
meta-oe/recipes-connectivity/nethogs/nethogs_git.bb new file +12 -0
@@ -0,0 +1,17 @@
+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"
+
+inherit meson pkgconfig
+

Add:

PV .= "+git"

meta-oe/recipes-connectivity/nethogs/nethogs_git.bb line 16

Quoted 4 lines
meta-oe/recipes-connectivity/nethogs/nethogs_git.bb new file +4 -0
+SRCREV = "08daf76d8123943392c84a07108beea3e23ea39b"
+
+FILES:${PN} = "${bindir}"
+FILES:${PN}-dev = "${includedir} ${libdir}/lib*.so ${libdir}/lib*.so* ${libdir}/*.la ${libdir}/pkgconfig/*.pc"

Remove the two FILES variables. The defaults work just fine.

Quoted 3 lines
meta-oe/recipes-connectivity/nethogs/nethogs_git.bb new file +1 -1
+
--

2.25.1

//Peter

author
#2 lore raw
Quoted 19 lines · Peter Kjellerstedt
Quoted 19 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of wenyang.linux via lists.openembedded.org
Sent: den 7 november 2025 18:02
To: [email protected]; [email protected]; Khem Raj <[email protected]>
Cc: Wen Yang <[email protected]>
Subject: [oe] [meta-oe][PATCH v2] nethogs: add recipe

From: Wen Yang <[email protected]>

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.

---
  .../recipes-connectivity/nethogs/nethogs_git.bb | 17 +++++++++++++++++
  1 file changed, 17 insertions(+)

create mode 100644 meta-oe/recipes-connectivity/nethogs/nethogs_git.bb

Quoted 8 lines

meta-oe/recipes-connectivity/nethogs/nethogs_git.bb

Quoted 5 lines
meta-oe/recipes-connectivity/nethogs/nethogs_git.bb new file +0 -0
new file mode 100644
index 0000000000..29af14961c

Change the version to "0.8.8".

Thanks for your comment.
We will follow your suggestion to change it to 0.8.8.
There are also 6 patches that will be backported because 0.8.8 has issues with meson. We will send the v3 patch soon.

Quoted 30 lines

meta-oe/recipes-connectivity/nethogs/nethogs_git.bb line 12

Quoted 13 lines
meta-oe/recipes-connectivity/nethogs/nethogs_git.bb new file +12 -0
@@ -0,0 +1,17 @@
+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"
+
+inherit meson pkgconfig
+

Add:

PV .= "+git"

meta-oe/recipes-connectivity/nethogs/nethogs_git.bb line 16

Quoted 4 lines
meta-oe/recipes-connectivity/nethogs/nethogs_git.bb new file +4 -0
+SRCREV = "08daf76d8123943392c84a07108beea3e23ea39b"
+
+FILES:${PN} = "${bindir}"
+FILES:${PN}-dev = "${includedir} ${libdir}/lib*.so ${libdir}/lib*.so* ${libdir}/*.la ${libdir}/pkgconfig/*.pc"

Remove the two FILES variables. The defaults work just fine.

Quoted 3 lines
meta-oe/recipes-connectivity/nethogs/nethogs_git.bb new file +1 -1
+
--

2.25.1

//Peter

#3 lore raw
Quoted 35 lines

-----Original Message-----
From: Wen Yang <[email protected]>
Sent: den 8 november 2025 07:37
To: Peter Kjellerstedt <[email protected]>; [email protected]; Khem Raj <[email protected]>
Subject: Re: [oe] [meta-oe][PATCH v2] nethogs: add recipe

Quoted 19 lines · Peter Kjellerstedt
Quoted 19 lines

-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of wenyang.linux via lists.openembedded.org
Sent: den 7 november 2025 18:02
To: [email protected]; [email protected]; Khem Raj <[email protected]>
Cc: Wen Yang <[email protected]>
Subject: [oe] [meta-oe][PATCH v2] nethogs: add recipe

From: Wen Yang <[email protected]>

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.

---
  .../recipes-connectivity/nethogs/nethogs_git.bb | 17 +++++++++++++++++
  1 file changed, 17 insertions(+)

create mode 100644 meta-oe/recipes-connectivity/nethogs/nethogs_git.bb

Quoted 8 lines

meta-oe/recipes-connectivity/nethogs/nethogs_git.bb

Quoted 5 lines
meta-oe/recipes-connectivity/nethogs/nethogs_git.bb new file +0 -0
new file mode 100644
index 0000000000..29af14961c

Change the version to "0.8.8".

Quoted 5 lines

Thanks for your comment.
We will follow your suggestion to change it to 0.8.8. There are also 6 patches that will be backported because 0.8.8 has issues with meson.
We will send the v3 patch soon.

A slight misunderstanding. I did not mean that you should revert the SRCREV to match the v0.8.8 tag. Just that you should set PV to 0.8.8+git since that is what the SRCREV below is based on.

Quoted 26 lines
Quoted 26 lines
Quoted 4 lines
meta-oe/recipes-connectivity/nethogs/nethogs_git.bb new file +2 -0
@@ -0,0 +1,17 @@
+SUMMARY = "NetHogs is a small 'net top' tool that can group bandwidth by process"
+HOMEPAGE = "https://github.com/raboof/nethogs"

meta-oe/recipes-connectivity/nethogs/nethogs_git.bb line 12

Quoted 10 lines
meta-oe/recipes-connectivity/nethogs/nethogs_git.bb new file +10 -0
+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"
+
+inherit meson pkgconfig
+

Add:

PV .= "+git"

meta-oe/recipes-connectivity/nethogs/nethogs_git.bb line 16

Quoted 4 lines
meta-oe/recipes-connectivity/nethogs/nethogs_git.bb new file +4 -0
+SRCREV = "08daf76d8123943392c84a07108beea3e23ea39b"
+
+FILES:${PN} = "${bindir}"
+FILES:${PN}-dev = "${includedir} ${libdir}/lib*.so ${libdir}/lib*.so* ${libdir}/*.la ${libdir}/pkgconfig/*.pc"

Remove the two FILES variables. The defaults work just fine.

Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
meta-oe/recipes-connectivity/nethogs/nethogs_git.bb new file +1 -1
+
--

2.25.1

//Peter

//Peter