From: Arun Isaac <arunisaac@systemreboot.net>
To: guix-devel@gnu.org
Subject: [PATCH] gnu: Add nethogs.
Date: Sun, 30 Oct 2016 12:46:45 +0530 [thread overview]
Message-ID: <20161030071645.5634-1-arunisaac@systemreboot.net> (raw)
* gnu/packages/networking.scm (nethogs): New variable.
---
gnu/packages/networking.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index ac88673..89641fa 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -991,3 +991,39 @@ the bandwidth, loss, and other parameters.")
license:ncsa ; src/{units,iperf_locale,tcp_window_size}.c
license:expat ; src/{cjson,net}.[ch]
license:public-domain)))) ; src/portable_endian.h
+
+(define-public nethogs
+ (package
+ (name "nethogs")
+ (version "0.8.5")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/raboof/nethogs/archive/v"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "1k4x8r7s4dgcb6n2rjn28h2yyij92mwm69phncl3597cdxr954va"))
+ (file-name (string-append name "-" version ".tar.gz"))))
+ (build-system gnu-build-system)
+ (inputs
+ `(("libpcap" ,libpcap)
+ ("ncurses" ,ncurses)))
+ (arguments
+ `(#:make-flags `("CC=gcc"
+ ,(string-append "PREFIX=" %output))
+ #:phases
+ (modify-phases %standard-phases
+ (delete 'configure))))
+ (home-page "https://github.com/raboof/nethogs")
+ (synopsis "Linux 'net top' tool")
+ (description "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.
+
+NetHogs does not rely on a special kernel module to be loaded. If
+there's suddenly a lot of network traffic, you can fire up NetHogs and
+immediately see which PID is causing this. This makes it easy to
+identify programs that have gone wild and are suddenly taking up your
+bandwidth.")
+ (license license:gpl2+)))
--
2.10.1
next reply other threads:[~2016-10-30 7:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-30 7:16 Arun Isaac [this message]
2016-10-30 7:26 ` [PATCH] gnu: Add nethogs Arun Isaac
2016-10-30 12:18 ` Marius Bakke
2016-10-30 13:40 ` Alex Kost
2016-10-30 16:44 ` Arun Isaac
2016-10-30 17:04 ` Arun Isaac
2016-10-30 17:09 ` Leo Famulari
2016-10-30 17:46 ` Arun Isaac
2016-10-30 19:41 ` Leo Famulari
2016-10-31 6:00 ` Arun Isaac
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161030071645.5634-1-arunisaac@systemreboot.net \
--to=arunisaac@systemreboot.net \
--cc=guix-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.