diff mbox

gnu: dstat: Add new package for dstat 0.7.3

Message ID 87inxhe4fi.fsf@nexoid.at
State New
Headers show

Commit Message

Peter June 10, 2016, 10:11 a.m. UTC
* gnu/packages/admin.scm (dstat): Add package
 gnu/packages/admin.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)


Ludovic Courtès June 10, 2016, 1:24 p.m. UTC | #1

Peter <peter.feigl@nexoid.at> skribis:

>   * gnu/packages/admin.scm (dstat): Add package

Applied, with minor indentation and commit log changes.  I also changed
the license to ‘gpl2+’ because the source file headers do not specify
any particular version.

Thank you!

diff mbox


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)))