| Message ID | tencent_5A2A52EA8E20CDC9A5F4546616BFFA67FC07@qq.com |
|---|---|
| State | New |
| Headers | show |
| Series | [meta-oe] nethogs: add recipe | expand |
On Tue, Nov 4, 2025 at 2:56 PM wenyang.linux via lists.openembedded.org <wenyang.linux=foxmail.com@lists.openembedded.org> wrote: > > 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 --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" Add tag=v${PV} to SRC_URI > +DEPENDS = "ncurses libpcap" > + > +do_compile() { > + oe_runmake nethogs > +} > + > +do_install() { > + oe_runmake install PREFIX=${prefix} DESTDIR=${D} > +} Looking at the project it seems to support meson, why are we not using it ? > + > +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" Please merge .inc file in the bb file, there seem to be no other users of it. > -- > 2.25.1 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#121311): https://lists.openembedded.org/g/openembedded-devel/message/121311 > Mute This Topic: https://lists.openembedded.org/mt/116126344/1997914 > Group Owner: openembedded-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
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"