From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXk7B-0007cD-6J for guix-patches@gnu.org; Sat, 06 Jan 2018 03:46:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eXk78-0002f1-3l for guix-patches@gnu.org; Sat, 06 Jan 2018 03:46:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:57096) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eXk78-0002ev-0E for guix-patches@gnu.org; Sat, 06 Jan 2018 03:46:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eXk77-00012Q-NN for guix-patches@gnu.org; Sat, 06 Jan 2018 03:46:01 -0500 Subject: [bug#30002] [PATCH 1/2] gnu: Add darkstat. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eXk6h-0007XN-AK for guix-patches@gnu.org; Sat, 06 Jan 2018 03:45:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eXk6e-0002Sf-79 for guix-patches@gnu.org; Sat, 06 Jan 2018 03:45:35 -0500 Received: from rezeros.cc ([2001:19f0:7001:2f3e:5400:ff:fe84:e55d]:38626) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eXk6d-0002S1-Nj for guix-patches@gnu.org; Sat, 06 Jan 2018 03:45:32 -0500 From: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Sat, 6 Jan 2018 16:45:22 +0800 Message-Id: <20180106084523.29095-1-iyzsong@member.fsf.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30002@debbugs.gnu.org * gnu/packages/monitoring.scm (darkstat): New variable. --- gnu/packages/monitoring.scm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm index c136265c5..f178232cc 100644 --- a/gnu/packages/monitoring.scm +++ b/gnu/packages/monitoring.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2016 Ludovic Courtès +;;; Copyright © 2018 Sou Bunnbu ;;; ;;; This file is part of GNU Guix. ;;; @@ -22,6 +23,7 @@ #:use-module ((guix licenses) #:prefix license:) #:use-module (guix build-system perl) #:use-module (guix build-system gnu) + #:use-module (gnu packages admin) #:use-module (gnu packages base) #:use-module (gnu packages compression) #:use-module (gnu packages gd) @@ -122,3 +124,35 @@ etc. via a Web interface. Features include: notification and problem history, log file, etc. @end itemize\n") (license license:gpl2))) + +(define-public darkstat + (package + (name "darkstat") + (version "3.0.719") + (source (origin + (method url-fetch) + (uri (string-append "https://unix4lyfe.org/darkstat/darkstat-" + version ".tar.bz2")) + (sha256 + (base32 + "1mzddlim6dhd7jhr4smh0n2fa511nvyjhlx76b03vx7phnar1bxf")))) + (build-system gnu-build-system) + (arguments '(#:tests? #f)) ; no tests + (inputs + `(("libpcap" ,libpcap) + ("zlib" ,zlib))) + (home-page "https://unix4lyfe.org/darkstat/") + (synopsis "Network statistics gatherer") + (description + "@command{darkstat} is a packet sniffer that runs as a background process, +gathers all sorts of statistics about network usage, and serves them over +HTTP. Features: + +@itemize +@item Traffic graphs, reports per host, shows ports for each host. +@item Embedded web-server with deflate compression. +@item Asynchronous reverse DNS resolution using a child process. +@item Small. Portable. Single-threaded. Efficient. +@item Supports IPv6. +@end itemize") + (license license:gpl2))) -- 2.13.3