* [bug#58943] [PATCH] gnu: Add vnstat.
@ 2022-11-01 11:43 Nicolas Graves via Guix-patches via
2022-11-09 22:49 ` bug#58943: " Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Graves via Guix-patches via @ 2022-11-01 11:43 UTC (permalink / raw)
To: 58943; +Cc: ngraves
* 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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#58943: [PATCH] gnu: Add vnstat.
2022-11-01 11:43 [bug#58943] [PATCH] gnu: Add vnstat Nicolas Graves via Guix-patches via
@ 2022-11-09 22:49 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-11-09 22:49 UTC (permalink / raw)
To: Nicolas Graves; +Cc: 58943-done
[-- Attachment #1: Type: text/plain, Size: 170 bytes --]
Hi,
Nicolas Graves <ngraves@ngraves.fr> skribis:
> * gnu/packages/networking.scm (vnstat): New variable.
Applied with the changes below.
Thanks,
Ludo’.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1289 bytes --]
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+)))
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-09 22:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-01 11:43 [bug#58943] [PATCH] gnu: Add vnstat Nicolas Graves via Guix-patches via
2022-11-09 22:49 ` bug#58943: " Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).