From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac Subject: [PATCH] gnu: Add nethogs. Date: Sun, 30 Oct 2016 22:14:27 +0530 Message-ID: <20161030164427.1817-1-arunisaac@systemreboot.net> References: Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c0tEL-0008NR-Qt for guix-devel@gnu.org; Sun, 30 Oct 2016 12:45:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c0tEI-0005so-M2 for guix-devel@gnu.org; Sun, 30 Oct 2016 12:45:09 -0400 Received: from [117.218.232.8] (port=51992 helo=systemreboot.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c0tEI-0005sB-4V for guix-devel@gnu.org; Sun, 30 Oct 2016 12:45:06 -0400 In-Reply-To: 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..d0e0a79 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 "Per-process bandwidth monitor") + (description "NetHogs is a small 'net top' tool for Linux. +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