From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac Subject: [PATCH] gnu: Add nethogs. Date: Sun, 30 Oct 2016 12:46:45 +0530 Message-ID: <20161030071645.5634-1-arunisaac@systemreboot.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c0kMf-0003lW-0I for guix-devel@gnu.org; Sun, 30 Oct 2016 03:17:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c0kMb-0005Of-PG for guix-devel@gnu.org; Sun, 30 Oct 2016 03:17:08 -0400 Received: from [117.218.232.8] (port=35616 helo=systemreboot.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c0kMb-0005Nt-6D for guix-devel@gnu.org; Sun, 30 Oct 2016 03:17:05 -0400 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * 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