From patchwork Sat Feb 25 20:55:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bruno Victal X-Patchwork-Id: 47357 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2E9A216BBA; Sat, 25 Feb 2023 20:56:25 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id D48EF1684B for ; Sat, 25 Feb 2023 20:56:22 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pW1aP-0002Lx-9v; Sat, 25 Feb 2023 15:56:05 -0500 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 1pW1aM-0002La-Tr for guix-patches@gnu.org; Sat, 25 Feb 2023 15:56:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pW1aM-0000FE-BL for guix-patches@gnu.org; Sat, 25 Feb 2023 15:56:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pW1aL-0005A1-QH for guix-patches@gnu.org; Sat, 25 Feb 2023 15:56:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61686] [PATCH v2] gnu: Add dropwatch. References: <43b683614e136e70894ba395a6759dc714fe2faf.1677006911.git.mirai@makinata.eu> In-Reply-To: <43b683614e136e70894ba395a6759dc714fe2faf.1677006911.git.mirai@makinata.eu> Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 25 Feb 2023 20:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61686 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61686@debbugs.gnu.org Cc: Bruno Victal Received: via spool by 61686-submit@debbugs.gnu.org id=B61686.167735851519757 (code B ref 61686); Sat, 25 Feb 2023 20:56:01 +0000 Received: (at 61686) by debbugs.gnu.org; 25 Feb 2023 20:55:15 +0000 Received: from localhost ([127.0.0.1]:41710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pW1Zb-00058b-GE for submit@debbugs.gnu.org; Sat, 25 Feb 2023 15:55:15 -0500 Received: from smtpm1.myservices.hosting ([185.26.105.232]:37632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pW1ZW-00058N-DN for 61686@debbugs.gnu.org; Sat, 25 Feb 2023 15:55:14 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm1.myservices.hosting (Postfix) with ESMTP id F0B7C208FC for <61686@debbugs.gnu.org>; Sat, 25 Feb 2023 21:55:05 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 8455E80098; Sat, 25 Feb 2023 21:55:05 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id vGPufwExGd3R; Sat, 25 Feb 2023 21:55:05 +0100 (CET) Received: from guix-nuc.home.arpa (bl9-119-177.dsl.telepac.pt [85.242.119.177]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id CAF9580097; Sat, 25 Feb 2023 21:55:04 +0100 (CET) From: Bruno Victal Date: Sat, 25 Feb 2023 20:55:02 +0000 Message-Id: X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/networking.scm (dropwatch): New variable. --- gnu/packages/networking.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index b5e8afc728..ede0b37bec 100644 --- a/gnu/packages/networking.scm +++ b/gnu/packages/networking.scm @@ -56,6 +56,7 @@ ;;; Copyright © 2022 Reza Alizadeh Majd ;;; Copyright © 2022 Nicolas Graves ;;; Copyright © 2023 Andreas Enge +;;; Copyright © 2023 Bruno Victal ;;; ;;; This file is part of GNU Guix. ;;; @@ -4619,3 +4620,31 @@ (define-public vnstat 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+))) + +(define-public dropwatch + (package + (name "dropwatch") + (version "1.5.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nhorman/dropwatch.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1r653y7bx763fpxl1vrflx8bzcrbds98zk4z7yhfikjngrqn1f2d")))) + (build-system gnu-build-system) + ;; XXX: bfd support isn't finished. + ;; https://github.com/nhorman/dropwatch/issues/76#issuecomment-1328345444 + (arguments + (list #:configure-flags #~(list "--without-bfd"))) + (native-inputs (list autoconf automake pkg-config)) + (inputs (list libnl libpcap readline)) + (home-page "https://github.com/nhorman/dropwatch") + (synopsis "Monitor for network packets dropped by the kernel") + (description + "Dropwatch is an interactive utility for monitoring and +recording packets that are dropped by the kernel. It provides the commands +@command{dropwatch} and @command{dwdump}.") + (license license:gpl2+)))