From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6Iv/LLgZ9WNZgQAAbAwnHQ (envelope-from ) for ; Tue, 21 Feb 2023 20:21:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OK0gLLgZ9WNRfwAAG6o9tA (envelope-from ) for ; Tue, 21 Feb 2023 20:21:28 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 59DFC82D7 for ; Tue, 21 Feb 2023 20:21:28 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677007288; a=rsa-sha256; cv=none; b=b//OAARfvp9uLHfTSPzBdbog14wSYsqoYC/wuOJmRpHP4k4GQIi0Az6ZayMji54jcoI6kn SdZmVP8eVE8KYtKAXodxYuCbq/JMFSW2FZJhQTd+M39H0+u2VX0kPin44fieM/6av2yXJ3 NsRrHAgcA9Ocyq1uxdsPreNasFt0rRLnQU11+HWOr4Ms0ftPyrxltrShil/6W44Ud/qvxi 5Yp6BqfnbsYZNrS03u5Y9jL1DOkhQNT2UzxDSS9i1yH9INOd9tGZsa6GfaUYVpgFyJ4IkW xE5kqTM7//uZPSQTKzMuUnFf9SY0ElGDyKVqCnZbr/ePqcJ5GigY8jAQAh04tA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677007288; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=ZSg3zDtYfYDAX5KxJxzhYQi5AKDN67Mt6zH1H5ASXRg=; b=ODLftOoQ7dhKEcIcKwOifahotRVYEIBwSdAfrTOspWVdTckRcUst3HsDt/zG9xxCAPC5ro Rid4Uu7wUAkr+/LEppoRiIHEm9C9YaL8VWd0f4A3k73I6FG4MwtD4bq9Mepi91914lsISh qvxX5cykeEVo7Nj9RST71xUPZWtHjK/IGzjqIxcxVIoCoQpZIWXIrJ4nrA/VmRfqIsGuL2 FwuTb7D2XSWT459QG/Y0nwZxd35GQ6kIknjGACA2Xu30wlZBVNJ0GvqahkX5MsgtPyLWPv +bF8No9mRN3+fyz6g0wymiYAfRo+cv0jL2fS6ilX0nAYpU1mn8wAD9jd8Ywghw== 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: X-Migadu-Queue-Id: 59DFC82D7 X-Spam-Score: -3.95 X-Migadu-Spam-Score: -3.95 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-TUID: us5Depj0V531 * 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+))) -- 2.39.1