| Message ID | tencent_27FD029FC5AAAEA8AB837C276FD225996D09@qq.com |
|---|---|
| State | New |
| Headers | show |
| Series | [meta-oe,v2] nethogs: add recipe | expand |
> -----Original Message----- > From: openembedded-devel@lists.openembedded.org <openembedded-devel@lists.openembedded.org> On Behalf Of wenyang.linux via lists.openembedded.org > Sent: den 7 november 2025 18:02 > To: openembedded-core@lists.openembedded.org; openembedded-devel@lists.openembedded.org; Khem Raj <raj.khem@gmail.com> > Cc: Wen Yang <wenyang.linux@foxmail.com> > Subject: [oe] [meta-oe][PATCH v2] nethogs: add recipe > > 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_git.bb | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > create mode 100644 meta-oe/recipes-connectivity/nethogs/nethogs_git.bb > > diff --git a/meta-oe/recipes-connectivity/nethogs/nethogs_git.bb b/meta-oe/recipes-connectivity/nethogs/nethogs_git.bb > new file mode 100644 > index 0000000000..29af14961c > --- /dev/null > +++ b/meta-oe/recipes-connectivity/nethogs/nethogs_git.bb Change the version to "0.8.8". > @@ -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" > +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. > + > -- > 2.25.1 //Peter
> -----Original Message----- > From: Wen Yang <wenyang.linux@foxmail.com> > Sent: den 8 november 2025 07:37 > To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>; openembedded-devel@lists.openembedded.org; Khem Raj <raj.khem@gmail.com> > Subject: Re: [oe] [meta-oe][PATCH v2] nethogs: add recipe > > On 11/8/25 10:28, Peter Kjellerstedt wrote: > >> -----Original Message----- > >> From: openembedded-devel@lists.openembedded.org <openembedded-devel@lists.openembedded.org> On Behalf Of wenyang.linux via lists.openembedded.org > >> Sent: den 7 november 2025 18:02 > >> To: openembedded-core@lists.openembedded.org; openembedded-devel@lists.openembedded.org; Khem Raj <raj.khem@gmail.com> > >> Cc: Wen Yang <wenyang.linux@foxmail.com> > >> Subject: [oe] [meta-oe][PATCH v2] nethogs: add recipe > >> > >> 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_git.bb | 17 +++++++++++++++++ > >> 1 file changed, 17 insertions(+) > >> create mode 100644 meta-oe/recipes-connectivity/nethogs/nethogs_git.bb > >> > >> diff --git a/meta-oe/recipes-connectivity/nethogs/nethogs_git.bb b/meta-oe/recipes-connectivity/nethogs/nethogs_git.bb > >> new file mode 100644 > >> index 0000000000..29af14961c > >> --- /dev/null > >> +++ b/meta-oe/recipes-connectivity/nethogs/nethogs_git.bb > > > > 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. 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. > > >> @@ -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" > > > >> +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. > > > >> + > >> -- > >> 2.25.1 > > > > //Peter //Peter
diff --git a/meta-oe/recipes-connectivity/nethogs/nethogs_git.bb b/meta-oe/recipes-connectivity/nethogs/nethogs_git.bb new file mode 100644 index 0000000000..29af14961c --- /dev/null +++ b/meta-oe/recipes-connectivity/nethogs/nethogs_git.bb @@ -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" +