From unknown Sun Jun 22 17:17:52 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#58943] [PATCH] gnu: Add vnstat. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 01 Nov 2022 11:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58943 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58943@debbugs.gnu.org Cc: ngraves@ngraves.fr X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166730305828765 (code B ref -1); Tue, 01 Nov 2022 11:45:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Nov 2022 11:44:18 +0000 Received: from localhost ([127.0.0.1]:42874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oppgn-0007Ts-VV for submit@debbugs.gnu.org; Tue, 01 Nov 2022 07:44:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:44578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oppgm-0007Tj-2Z for submit@debbugs.gnu.org; Tue, 01 Nov 2022 07:44:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oppgl-0003iu-UF for guix-patches@gnu.org; Tue, 01 Nov 2022 07:44:15 -0400 Received: from 17.mo583.mail-out.ovh.net ([46.105.56.132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oppgj-0003VS-IZ for guix-patches@gnu.org; Tue, 01 Nov 2022 07:44:15 -0400 Received: from player732.ha.ovh.net (unknown [10.108.4.136]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id 008FB24026 for ; Tue, 1 Nov 2022 11:44:00 +0000 (UTC) Received: from ngraves.fr (81-67-140-142.rev.numericable.fr [81.67.140.142]) (Authenticated sender: ngraves@ngraves.fr) by player732.ha.ovh.net (Postfix) with ESMTPSA id 5723C226DD422; Tue, 1 Nov 2022 11:43:58 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-95G0013557caab-b07a-46b4-bf92-1f0e0eaa1255, 29B2EE8263CEA996293D688C2320DBED0820F596) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 81.67.140.142 From: Nicolas Graves Date: Tue, 1 Nov 2022 12:43:56 +0100 Message-Id: <20221101114356.15071-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 468374362572514018 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvgedrudehgdefudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofggtgfgsehtkeertdertdejnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepffehtdeileeitedugfeghfeljedugfdvjefhheduiedtgfefgeehteeggfejjeeknecuffhomhgrihhnpehgrhgvvghnvghnugdrohhrghdruhhkpdhhuhhmughirdhnvghtnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugedtrddugedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopehguhhigidqphgrthgthhgvshesghhnuhdrohhrghdpoffvtefjohhsthepmhhoheekfedpmhhouggvpehsmhhtphhouhht Received-SPF: pass client-ip=46.105.56.132; envelope-from=ngraves@ngraves.fr; helo=17.mo583.mail-out.ovh.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * 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 ;;; Copyright © 2022 Manolis Fragkiskos Ragkousis ;;; Copyright © 2022 Reza Alizadeh Majd +;;; Copyright © 2022 Nicolas Graves ;;; ;;; 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 From unknown Sun Jun 22 17:17:52 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Nicolas Graves Subject: bug#58943: closed (Re: bug#58943: [PATCH] gnu: Add vnstat.) Message-ID: References: <87r0ybn3py.fsf@gnu.org> <20221101114356.15071-1-ngraves@ngraves.fr> X-Gnu-PR-Message: they-closed 58943 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 58943@debbugs.gnu.org Date: Wed, 09 Nov 2022 22:50:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1668034202-19411-1" This is a multi-part message in MIME format... ------------=_1668034202-19411-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #58943: [PATCH] gnu: Add vnstat. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 58943@debbugs.gnu.org. --=20 58943: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D58943 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1668034202-19411-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 58943-done) by debbugs.gnu.org; 9 Nov 2022 22:49:23 +0000 Received: from localhost ([127.0.0.1]:41262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ostsp-000525-51 for submit@debbugs.gnu.org; Wed, 09 Nov 2022 17:49:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ostso-00051t-4i for 58943-done@debbugs.gnu.org; Wed, 09 Nov 2022 17:49:22 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ostsh-0002vm-5A; Wed, 09 Nov 2022 17:49:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=Ydz0/JzYbCGkEwHAq5myrD9XYRgcFk7uWp9mPQfHA3g=; b=sBqJQunsejBQmcdBlrpy 0WANGV9QqEq4dF4UU2wxjawiYqNNFCT1e8nePkhqqf1bZlQGEhAdUpdMeHC48JauThKKNLT+9Jcbo MEuKDDRVA6zTeXPYxJdWjA9mycGrgQVvKUxGRsZNEbTItifn/x2coXbeEEooIl8DAEIp96n/nxY3Q Nm+g1IDWnq5GOuWncoJb6L3VTzPjifVy5PpjQP5kjgEeTdH3FssI3n2z3z+m55MLmQPYTZwQvs5P5 mmjTw2NkfLgarpCJYlrU2gzexj33jQifbNFeE0wUwqdGPGorWkpKxtDpMthBPajZP26CnEv6Uq9DP 4/+mEEof2Em7nw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ostsg-00067x-Ie; Wed, 09 Nov 2022 17:49:14 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Nicolas Graves Subject: Re: bug#58943: [PATCH] gnu: Add vnstat. References: <20221101114356.15071-1-ngraves@ngraves.fr> Date: Wed, 09 Nov 2022 23:49:13 +0100 In-Reply-To: <20221101114356.15071-1-ngraves@ngraves.fr> (Nicolas Graves's message of "Tue, 1 Nov 2022 12:43:56 +0100") Message-ID: <87r0ybn3py.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58943-done Cc: 58943-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Nicolas Graves skribis: > * gnu/packages/networking.scm (vnstat): New variable. Applied with the changes below. Thanks, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: 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+))) --=-=-=-- ------------=_1668034202-19411-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Nov 2022 11:44:18 +0000 Received: from localhost ([127.0.0.1]:42874 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oppgn-0007Ts-VV for submit@debbugs.gnu.org; Tue, 01 Nov 2022 07:44:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:44578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oppgm-0007Tj-2Z for submit@debbugs.gnu.org; Tue, 01 Nov 2022 07:44:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oppgl-0003iu-UF for guix-patches@gnu.org; Tue, 01 Nov 2022 07:44:15 -0400 Received: from 17.mo583.mail-out.ovh.net ([46.105.56.132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oppgj-0003VS-IZ for guix-patches@gnu.org; Tue, 01 Nov 2022 07:44:15 -0400 Received: from player732.ha.ovh.net (unknown [10.108.4.136]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id 008FB24026 for ; Tue, 1 Nov 2022 11:44:00 +0000 (UTC) Received: from ngraves.fr (81-67-140-142.rev.numericable.fr [81.67.140.142]) (Authenticated sender: ngraves@ngraves.fr) by player732.ha.ovh.net (Postfix) with ESMTPSA id 5723C226DD422; Tue, 1 Nov 2022 11:43:58 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-95G0013557caab-b07a-46b4-bf92-1f0e0eaa1255, 29B2EE8263CEA996293D688C2320DBED0820F596) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 81.67.140.142 From: Nicolas Graves To: guix-patches@gnu.org Subject: [PATCH] gnu: Add vnstat. Date: Tue, 1 Nov 2022 12:43:56 +0100 Message-Id: <20221101114356.15071-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 468374362572514018 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvgedrudehgdefudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofggtgfgsehtkeertdertdejnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepffehtdeileeitedugfeghfeljedugfdvjefhheduiedtgfefgeehteeggfejjeeknecuffhomhgrihhnpehgrhgvvghnvghnugdrohhrghdruhhkpdhhuhhmughirdhnvghtnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugedtrddugedvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopehguhhigidqphgrthgthhgvshesghhnuhdrohhrghdpoffvtefjohhsthepmhhoheekfedpmhhouggvpehsmhhtphhouhht Received-SPF: pass client-ip=46.105.56.132; envelope-from=ngraves@ngraves.fr; helo=17.mo583.mail-out.ovh.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: ngraves@ngraves.fr X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * 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 ;;; Copyright © 2022 Manolis Fragkiskos Ragkousis ;;; Copyright © 2022 Reza Alizadeh Majd +;;; Copyright © 2022 Nicolas Graves ;;; ;;; 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 ------------=_1668034202-19411-1--