emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58943: closed ([PATCH] gnu: Add vnstat.)


From: GNU bug Tracking System
Subject: bug#58943: closed ([PATCH] gnu: Add vnstat.)
Date: Wed, 09 Nov 2022 22:50:02 +0000

Your message dated Wed, 09 Nov 2022 23:49:13 +0100
with message-id <87r0ybn3py.fsf@gnu.org>
and subject line Re: bug#58943: [PATCH] gnu: Add vnstat.
has caused the debbugs.gnu.org bug report #58943,
regarding [PATCH] gnu: Add vnstat.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
58943: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58943
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: Add vnstat. Date: Tue, 1 Nov 2022 12:43:56 +0100
* gnu/packages/networking.scm (vnstat): New variable.
---
 gnu/packages/networking.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index c22e97955c..a70dd4edc5 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -54,6 +54,7 @@
 ;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com>
 ;;; Copyright © 2022 Manolis Fragkiskos Ragkousis <manolis837@gmail.com>
 ;;; Copyright © 2022 Reza Alizadeh Majd <r.majd@pantherx.org>
+;;; Copyright © 2022 Nicolas Graves <ngraves@ngraves.fr>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -4476,3 +4477,37 @@ (define-public putty
 implementations.")
     (home-page "https://www.chiark.greenend.org.uk/~sgtatham/putty/";)
     (license license:expat)))
+
+(define-public vnstat
+  (package
+   (name "vnstat")
+   (version "2.9")
+   (source
+    (origin
+      (method url-fetch)
+      (uri (string-append "https://humdi.net/vnstat/vnstat-";
+                          version ".tar.gz"))
+      (sha256
+       (base32
+        "1iwxmnpabfljvyng7c8k3z83yw1687i66z5s1980c5x9vrsi98hi"))))
+   (build-system gnu-build-system)
+   (inputs (list sqlite))
+   (native-inputs (list pkg-config check))
+   (arguments
+    `(#:phases
+      (modify-phases %standard-phases
+        (add-before 'check 'disable-id-tests
+          (lambda _
+            (substitute*
+                '("Makefile" "tests/vnstat_tests.c")
+              (("tests/id_tests.c \\$") "\\")
+              (("tests/id_tests.h h") "h")
+              (("^.*id_tests.*$") "")))))))
+   (home-page "https://humdi.net/vnstat/";)
+   (synopsis "a network traffic monitor for Linux and BSD")
+   (description "vnStat is a console-based network traffic monitor for Linux
+and BSD that keeps a log of network traffic for the selected interface(s). It
+uses the network interface statistics provided by the kernel as information
+source. This means that vnStat won't actually be sniffing any traffic and also
+ensures light use of system resources regardless of network traffic rate.")
+   (license license:gpl2)))
-- 
2.38.0




--- End Message ---
--- Begin Message --- Subject: Re: bug#58943: [PATCH] gnu: Add vnstat. Date: Wed, 09 Nov 2022 23:49:13 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Hi,

Nicolas Graves <ngraves@ngraves.fr> skribis:

> * gnu/packages/networking.scm (vnstat): New variable.

Applied with the changes below.

Thanks,
Ludo’.

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index aac15a5f36..082e7c7313 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -4516,10 +4516,10 @@ (define-public vnstat
               (("tests/id_tests.h h") "h")
               (("^.*id_tests.*$") "")))))))
    (home-page "https://humdi.net/vnstat/";)
-   (synopsis "a network traffic monitor for Linux and BSD")
-   (description "vnStat is a console-based network traffic monitor for Linux
-and BSD that keeps a log of network traffic for the selected interface(s). It
-uses the network interface statistics provided by the kernel as information
-source. This means that vnStat won't actually be sniffing any traffic and also
-ensures light use of system resources regardless of network traffic rate.")
-   (license license:gpl2)))
+   (synopsis "Network traffic monitoring tool")
+   (description "vnStat is a console-based network traffic monitor that keeps
+a log of network traffic for the selected interface(s).  It uses the network
+interface statistics provided by the kernel as information source.  This means
+that vnStat won't actually be sniffing any traffic and also ensures light use
+of system resources regardless of network traffic rate.")
+   (license license:gpl2+)))

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]