GNU bug report logs - #58943
[PATCH] gnu: Add vnstat.

Previous Next

Package: guix-patches;

Reported by: Nicolas Graves <ngraves <at> ngraves.fr>

Date: Tue, 1 Nov 2022 11:45:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58943 in the body.
You can then email your comments to 58943 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#58943; Package guix-patches. (Tue, 01 Nov 2022 11:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nicolas Graves <ngraves <at> ngraves.fr>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 01 Nov 2022 11:45:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: guix-patches <at> gnu.org
Cc: ngraves <at> ngraves.fr
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 <at> protonmail.com>
 ;;; Copyright © 2022 Manolis Fragkiskos Ragkousis <manolis837 <at> gmail.com>
 ;;; Copyright © 2022 Reza Alizadeh Majd <r.majd <at> pantherx.org>
+;;; Copyright © 2022 Nicolas Graves <ngraves <at> 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





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Wed, 09 Nov 2022 22:50:02 GMT) Full text and rfc822 format available.

Notification sent to Nicolas Graves <ngraves <at> ngraves.fr>:
bug acknowledged by developer. (Wed, 09 Nov 2022 22:50:02 GMT) Full text and rfc822 format available.

Message #10 received at 58943-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Nicolas Graves <ngraves <at> ngraves.fr>
Cc: 58943-done <at> debbugs.gnu.org
Subject: Re: bug#58943: [PATCH] gnu: Add vnstat.
Date: Wed, 09 Nov 2022 23:49:13 +0100
[Message part 1 (text/plain, inline)]
Hi,

Nicolas Graves <ngraves <at> ngraves.fr> skribis:

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

Applied with the changes below.

Thanks,
Ludo’.

[Message part 2 (text/x-patch, inline)]
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+)))

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 08 Dec 2022 12:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 197 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.