Skip to content

Commit

Permalink
package/nethogs: new package
Browse files Browse the repository at this point in the history
Signed-off-by: Marcus Hoffmann <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
  • Loading branch information
Marcus Hoffmann authored and tpetazzoni committed Aug 5, 2024
1 parent 3273123 commit 9ef4735
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions DEVELOPERS
Original file line number Diff line number Diff line change
Expand Up @@ -2204,6 +2204,7 @@ F: utils/config
F: utils/diffconfig

N: Marcus Hoffmann <[email protected]>
F: package/nethogs/
F: package/pico-sdk/
F: package/picotool/
F: package/python-jc/
Expand Down
1 change: 1 addition & 0 deletions package/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -2527,6 +2527,7 @@ endif
source "package/netcalc/Config.in"
source "package/netcat/Config.in"
source "package/netcat-openbsd/Config.in"
source "package/nethogs/Config.in"
source "package/netplug/Config.in"
source "package/netsnmp/Config.in"
source "package/netstat-nat/Config.in"
Expand Down
10 changes: 10 additions & 0 deletions package/nethogs/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
config BR2_PACKAGE_NETHOGS
bool "nethogs"
select BR2_PACKAGE_LIBPCAP
select BR2_PACKAGE_NCURSES
help
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.

https://github.com/raboof/nethogs
3 changes: 3 additions & 0 deletions package/nethogs/nethogs.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Locally computed
sha256 957d6afcc220dfbba44c819162f44818051c5b4fb793c47ba98294393986617d nethogs-0.8.7.tar.gz
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
21 changes: 21 additions & 0 deletions package/nethogs/nethogs.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
################################################################################
#
# nethogs
#
################################################################################

NETHOGS_VERSION = 0.8.7
NETHOGS_SITE = $(call github,raboof,nethogs,v$(NETHOGS_VERSION))
NETHOGS_LICENSE = GPL-2.0+
NETHOGS_LICENSE_FILES = COPYING
NETHOGS_DEPENDENCIES = libpcap ncurses

define NETHOGS_BUILD_CMDS
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) nethogs
endef

define NETHOGS_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/src/nethogs $(TARGET_DIR)/usr/sbin/nethogs
endef

$(eval $(generic-package))

0 comments on commit 9ef4735

Please sign in to comment.