From patchwork Fri Jun 10 10:11:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter X-Patchwork-Id: 12943 Received: (qmail 120347 invoked by uid 89); 10 Jun 2016 11:16:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.1 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=H*UA:https, H*F:D*at, homemade, UD:rs X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 10 Jun 2016 11:16:30 +0000 Received: from localhost ([::1]:39859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBKQN-00086z-U8 for patchwork@sourceware.org; Fri, 10 Jun 2016 07:16:27 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBJSl-00067a-Ka for guix-devel@gnu.org; Fri, 10 Jun 2016 06:14:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBJSi-0002Ck-EF for guix-devel@gnu.org; Fri, 10 Jun 2016 06:14:51 -0400 Received: from www.nexoid.at ([178.79.130.240]:51780 helo=mail.nexoid.at) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBJSi-0002Ce-8H for guix-devel@gnu.org; Fri, 10 Jun 2016 06:14:48 -0400 Received: from nofanex (cm56-227-163.liwest.at [86.56.227.163]) by mail.nexoid.at (Postfix) with ESMTPSA id 52790C38A for ; Fri, 10 Jun 2016 12:14:42 +0200 (CEST) From: Peter To: guix-devel@gnu.org Subject: [PATCH] gnu: dstat: Add new package for dstat 0.7.3 Date: Fri, 10 Jun 2016 12:11:21 +0200 User-Agent: Notmuch/0.21 (https://notmuchmail.org) Emacs/24.5.1 (x86_64-unknown-linux-gnu) Message-ID: <87inxhe4fi.fsf@nexoid.at> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 178.79.130.240 X-Mailman-Approved-At: Fri, 10 Jun 2016 07:16:23 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list 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+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" * gnu/packages/admin.scm (dstat): Add package --- gnu/packages/admin.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm index abfef36..a1bc90e 100644 --- a/gnu/packages/admin.scm +++ b/gnu/packages/admin.scm @@ -58,6 +58,7 @@ #:use-module (gnu packages mcrypt) #:use-module (gnu packages pkg-config) #:use-module (gnu packages popt) + #:use-module (gnu packages python) #:use-module (gnu packages texinfo) #:use-module (gnu packages groff) #:use-module (gnu packages pciutils) @@ -1643,3 +1644,37 @@ results (ndiff), and a packet generation and response analysis tool (nping).") ;; This package uses nmap's bundled versions of libdnet and liblinear, which ;; both use a 3-clause BSD license. (license (list license:nmap license:bsd-3)))) + +(define-public dstat + (package + (name "dstat") + (version "0.7.3") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/dagwieers/dstat/archive/" version + ".tar.gz")) + (file-name (string-append "dstat-" version ".tar.gz")) + (sha256 + (base32 + "16286z3y2lc9nsq8njzjkv6k2vyxrj9xiixj1k3gnsbvhlhkirj6")))) + (build-system gnu-build-system) + (arguments `(#:tests? #f ;; no make check + #:make-flags (let ((out (assoc-ref %outputs "out"))) + (list (string-append "DESTDIR=" out) + "prefix=/")) + ;; no configure script + #:phases (alist-delete 'configure %standard-phases))) + (inputs `(("python-2" ,python-2))) + (synopsis "Versatile resource statistics tool") + (description "Dstat is a versatile replacement for vmstat, iostat, +netstat and ifstat. Dstat overcomes some of their limitations and +adds some extra features, more counters and flexibility. Dstat is +handy for monitoring systems during performance tuning tests, +benchmarks or troubleshooting. + +Dstat allows you to view all of your system resources in real-time, +you can eg. compare disk utilization in combination with interrupts +from your IDE controller, or compare the network bandwidth numbers +directly with the disk throughput (in the same interval).") + (home-page "http://dag.wiee.rs/home-made/dstat/") + (license license:gpl2)))