From patchwork Tue Feb 21 19:19:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bruno Victal X-Patchwork-Id: 47200 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 80DB416B4C; Tue, 21 Feb 2023 19:21:32 +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=-3.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 9868F16A55 for ; Tue, 21 Feb 2023 19:21:28 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUYCK-0003b5-Ny; Tue, 21 Feb 2023 14:21:08 -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 1pUYCH-0003av-9u for guix-patches@gnu.org; Tue, 21 Feb 2023 14:21:05 -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 1pUYCE-0004sb-Hk for guix-patches@gnu.org; Tue, 21 Feb 2023 14:21:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pUYCD-0002s2-QM; Tue, 21 Feb 2023 14:21:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61686] [PATCH] gnu: Add dropwatch. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: me@tobias.gr, guix-patches@gnu.org Resent-Date: Tue, 21 Feb 2023 19:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61686 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61686@debbugs.gnu.org Cc: Bruno Victal , me@tobias.gr X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: me@tobias.gr Received: via spool by submit@debbugs.gnu.org id=B.167700721910974 (code B ref -1); Tue, 21 Feb 2023 19:21:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Feb 2023 19:20:19 +0000 Received: from localhost ([127.0.0.1]:57272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUYBV-0002qu-7U for submit@debbugs.gnu.org; Tue, 21 Feb 2023 14:20:18 -0500 Received: from lists.gnu.org ([209.51.188.17]:60550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUYBR-0002qh-35 for submit@debbugs.gnu.org; Tue, 21 Feb 2023 14:20:16 -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 1pUYBQ-0003UT-N7 for guix-patches@gnu.org; Tue, 21 Feb 2023 14:20:12 -0500 Received: from smtpm1.myservices.hosting ([185.26.105.232]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUYBO-0004aw-AA for guix-patches@gnu.org; Tue, 21 Feb 2023 14:20:12 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm1.myservices.hosting (Postfix) with ESMTP id ED6CA20283 for ; Tue, 21 Feb 2023 20:20:06 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 9F1BE8009E; Tue, 21 Feb 2023 20:20:06 +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 IFwg5dyl_sOt; Tue, 21 Feb 2023 20:20:04 +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 2D7CC8009D; Tue, 21 Feb 2023 20:20:04 +0100 (CET) From: Bruno Victal Date: Tue, 21 Feb 2023 19:19:55 +0000 Message-Id: <43b683614e136e70894ba395a6759dc714fe2faf.1677006911.git.mirai@makinata.eu> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 tags: patch Received-SPF: pass client-ip=185.26.105.232; envelope-from=mirai@makinata.eu; helo=smtpm1.myservices.hosting 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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. --- Note: the kernel option NET_DROP_MONITOR must be set for this package to work. The upstream sources use SPDX (though they're not completely REUSE compliant) $ reuse lint # MISSING LICENSES 'GPL-2.0-or-later' found in: * Makefile.am * autogen.sh * configure.ac * doc/Makefile.am * src/Makefile.am * src/dwdump.c * src/lookup.c * src/lookup.h * src/lookup_bfd.c * src/lookup_kas.c * src/main.c * src/net_dropmon.h # MISSING COPYRIGHT AND LICENSING INFORMATION The following files have no copyright and licensing information: * .travis.yml * README.md * doc/dropwatch.1 * doc/dwdump.1 * spec/dropwatch.spec * tests/Makefile.am * tests/rundropwatch.sh The following files have no copyright information: * autogen.sh * configure.ac * doc/Makefile.am * src/Makefile.am * src/dwdump.c * src/net_dropmon.h # SUMMARY * Bad licenses: * Deprecated licenses: * Licenses without file extension: * Missing licenses: GPL-2.0-or-later * Unused licenses: * Used licenses: GPL-2.0-or-later * Read errors: 0 * Files with copyright information: 6 / 19 * Files with license information: 12 / 19 Unfortunately, your project is not compliant with version 3.0 of the REUSE Specification :-( gnu/packages/networking.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm index 44e2de5f08..daac734535 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,30 @@ (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)))) + (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 "Kernel dropped packet monitor") + (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+)))