From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YDTQEwFX7mAxvQAAgWs5BA (envelope-from ) for ; Wed, 14 Jul 2021 05:16:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id aEOLDwFX7mCuYAAAB5/wlQ (envelope-from ) for ; Wed, 14 Jul 2021 03:16:17 +0000 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 B47F5A5A5 for ; Wed, 14 Jul 2021 05:16:16 +0200 (CEST) Received: from localhost ([::1]:34388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3VNf-0006PC-MY for larch@yhetil.org; Tue, 13 Jul 2021 23:16:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3VNS-0006Ol-AA for guix-patches@gnu.org; Tue, 13 Jul 2021 23:16:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59207) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3VNS-0001QK-1W for guix-patches@gnu.org; Tue, 13 Jul 2021 23:16:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m3VNR-0007rI-R5 for guix-patches@gnu.org; Tue, 13 Jul 2021 23:16:01 -0400 Subject: bug#39961: [PATCH] gnu: Add traceroute. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Wed, 14 Jul 2021 03:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 39961 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Vincent Legoll Cc: 39961-done@debbugs.gnu.org, Christopher Baines Mail-Followup-To: 39961@debbugs.gnu.org, maxim.cournoyer@gmail.com, vincent.legoll@gmail.com Received: via spool by 39961-done@debbugs.gnu.org id=D39961.162623251730151 (code D ref 39961); Wed, 14 Jul 2021 03:16:01 +0000 Received: (at 39961-done) by debbugs.gnu.org; 14 Jul 2021 03:15:17 +0000 Received: from localhost ([127.0.0.1]:42518 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3VMi-0007qF-KW for submit@debbugs.gnu.org; Tue, 13 Jul 2021 23:15:17 -0400 Received: from mail-qk1-f174.google.com ([209.85.222.174]:37710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3VMd-0007pt-Ce for 39961-done@debbugs.gnu.org; Tue, 13 Jul 2021 23:15:14 -0400 Received: by mail-qk1-f174.google.com with SMTP id s193so263670qke.4 for <39961-done@debbugs.gnu.org>; Tue, 13 Jul 2021 20:15:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=diCTuw4OzwgGtvIPsO80xLwR4mJbTmH6WfS+5YDNj/Q=; b=JT9lgxsASFBKDFeUHuz09Mc9X2Ux6hMoK9/aYrRKrZglp1n/ZM0B0i9ngwxeDAG6oy K3zDmzmqfY7y+rQ1Jn0FvOdDvGuO1xVuy5b77XMYre6mZ9DUTBqj766ji+6lUiqI/SSH RRV/ZvH+T0udCZdYA3g4BOgKcxy8H7mnGc+ie+2EH0JpRXqHaWgOXBgTNQT76U/ORzmm nNdErYKeF1LNF+dZlHTD8Ou6arqd2v5zHhLMCWzLRQw0NrWXffMeBh9/4CC857Z8jnm2 NFWs7+TYt3pnJS76eRjTHbRGaE//2sGvmVmlzd329rUB4BYuJyXQuffeN2Aoj0s0ivbE r6Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=diCTuw4OzwgGtvIPsO80xLwR4mJbTmH6WfS+5YDNj/Q=; b=Z8TYkvR6ewlMvm22sg6/7Jf6dCdUiofRZ+85ED0fb5/R5oZTt7vavm89BNCKzq49Vz R2CFx/a2Y35T/JyHND7yBvhKpFNFLtYoe+dhxyWgIISb30xLovncO501czFJPMBy+Xgq ZK+yTfUBdd1+GUZ99NZsdoJfVB1VIpfa+0V9AKEEfFrN8vqI161DDWFpWeFHJOjN7ORT 5Y6Icje8I7Wpep2tSFtkCEd0lXozsCO1FhOFUGUtCKGW0IMN5B1ajWnX/ZZZFkiyDBmH id/594VV7SHa4KwBnqwhKEFR6i+vpaFQB86Q+RsabX1Rn1pmI0T3WVVd0YjeZjhTFoZb dx4A== X-Gm-Message-State: AOAM530MY/a05VhfjoMQ4AHvsRi8p3ipOpJpiPs+F8f5U1hmObnjpueH lzujzy+ytp/n0ipJnuMVWl8= X-Google-Smtp-Source: ABdhPJztfawJIzBcAdqrq3G+x7lQWvARw9tKEo1DTbfZuV6OrHD7lVEcC21xA7MR/IEBAqb9eYObnQ== X-Received: by 2002:a37:7bc1:: with SMTP id w184mr7818323qkc.176.1626232505806; Tue, 13 Jul 2021 20:15:05 -0700 (PDT) Received: from hurd (dsl-10-136-19.b2b2c.ca. [72.10.136.19]) by smtp.gmail.com with ESMTPSA id y6sm440657qke.1.2021.07.13.20.15.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jul 2021 20:15:05 -0700 (PDT) From: Maxim Cournoyer References: <20210111163240.20986-1-vincent.legoll@gmail.com> Date: Tue, 13 Jul 2021 23:15:04 -0400 In-Reply-To: <20210111163240.20986-1-vincent.legoll@gmail.com> (Vincent Legoll's message of "Mon, 11 Jan 2021 17:32:40 +0100") Message-ID: <87wnptpow7.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626232576; 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:resent-to:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=diCTuw4OzwgGtvIPsO80xLwR4mJbTmH6WfS+5YDNj/Q=; b=AmJWH31Bkwc6gUr0d33+265KEn++jJ2ojp2Nf4UjYY/Iss00NndI2r5dftwgV+2LbhN2wo xl7/0mCF2y24u47nO1sVVly+cZuqAXOIzhswDPPcUQZ8nsupT/9quRDYLmjXo4/oW8/dqJ kgwT/MeKOgLKoC4LnXc87Ks/h6je7Hjc4Slx1OSG+E2i5v6D1r4tWE1vG1XQC0U4+PcSpr dzaA4EU3v9oznZ2revrwrwtcRNepm6mXs2ZGki978DL8GvrkDmmn3n1pDVUwb3a9GRNi1O yStkn4pDMkfNdNzbZstzhkeh+ZpgXAw9X+YI5S5hq+dvN9NdfOaZrAWpwPILwA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626232576; a=rsa-sha256; cv=none; b=pgzbhU4LepEXjPMXcVjIV+CU4PRRRI9/Mt9Opp4aRBaRKkJNBrAyvZcv3ArPzFjrug47zR uft6iiQJevgGMVvw5l6hNj6ESTKYW75diETnPDH7+TO1jk3Hfpv8VeFMO2hfhGefyKXAik F6Zrf1P1FhoMz7WODe6fOTBlwiBEIMV/Q6jtwhHZBNhv2jMYNifzc757XeoEUctw6poAA1 Az3w0vqvvrm+kbNy5Tkg6FNhaJ7wt6YinXpSqVFFMqX4LMc/22hwtHF1q+iXxX/kupJiW7 drLRAgvmGGVgtxnQIUJUgIkXZ8urUnVnzR61fYzi2+bXpGQ4AdEDbng5ql473w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=JT9lgxsA; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=JT9lgxsA; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: B47F5A5A5 X-Spam-Score: -1.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: HyY/i/PXZfCG Hello, Vincent Legoll writes: > * gnu/packages/networking.scm (traceroute): New variable. > --- > gnu/packages/networking.scm | 39 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > > diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm > index 83a99ded72..4c3faaa578 100644 > --- a/gnu/packages/networking.scm > +++ b/gnu/packages/networking.scm > @@ -3680,6 +3680,45 @@ simulation, and a number of other applications.") > network. This must be enabled on the target host, usually in the BIOS.") > (license license:gpl2))) > > +(define-public traceroute > + (package > + (name "traceroute") > + (version "2.1.0") > + (source > + (origin > + (method url-fetch) > + (uri (string-append "mirror://sourceforge/traceroute/traceroute/" > + "traceroute-" version "/traceroute-" version ".tar.gz")) > + (sha256 > + (base32 "1dh32vcfawkl1p9g4ral1p0camds4paqr8db1kaqxwyk6hmd4s9n")))) > + (build-system gnu-build-system) > + (arguments > + `(#:tests? #f ; No tests. > + #:make-flags > + (list (string-append "LIBRARY_PATH=" > + (assoc-ref %build-inputs "libc") "/lib") > + (string-append "CFLAGS=-I" > + (assoc-ref %build-inputs "kernel-headers") "/include") > + "LDFLAGS=-lm -L../libsupp" > + (string-append "prefix=" (assoc-ref %outputs "out"))) > + #:phases > + (modify-phases %standard-phases > + (add-after 'unpack 'patch-make > + (lambda _ > + (substitute* "default.rules" > + ((" \\$\\(LIBDEPS\\)") "$(filter-out -l%,$(LIBDEPS))")) > + #t)) > + (delete 'bootstrap) ; there is no configure.ac file > + (delete 'configure)))) ; there is no configure script > + (home-page "http://traceroute.sourceforge.net/") > + (synopsis "Tracks the route taken by packets over an IP network") > + (description "Traceroute tracks the route packets taken from an IP network > +on their way to a given host. It utilizes the IP protocol's time to live (TTL) > +field and attempts to elicit an ICMP TIME_EXCEEDED response from each gateway > +along the path to the host.") > + (license '(license:gpl2+ > + license:lgpl2.1+)))) ; for the libsupp subdirectory > + > (define-public vde2 > (package > (name "vde2") I edited it to expound the description someone and for cosmetic reasons (fitting in the 80 chars limit for example), like so: --8<---------------cut here---------------start------------->8--- 1 file changed, 18 insertions(+), 14 deletions(-) gnu/packages/networking.scm | 32 ++++++++++++++++++-------------- modified gnu/packages/networking.scm @@ -3796,17 +3796,19 @@ network. This must be enabled on the target host, usually in the BIOS.") (origin (method url-fetch) (uri (string-append "mirror://sourceforge/traceroute/traceroute/" - "traceroute-" version "/traceroute-" version ".tar.gz")) + "traceroute-" version "/traceroute-" + version ".tar.gz")) (sha256 (base32 "1dh32vcfawkl1p9g4ral1p0camds4paqr8db1kaqxwyk6hmd4s9n")))) (build-system gnu-build-system) (arguments - `(#:tests? #f ; No tests. + `(#:tests? #f ;no test suite #:make-flags (list (string-append "LIBRARY_PATH=" - (assoc-ref %build-inputs "libc") "/lib") + (assoc-ref %build-inputs "libc") "/lib") (string-append "CFLAGS=-I" - (assoc-ref %build-inputs "kernel-headers") "/include") + (assoc-ref %build-inputs "kernel-headers") + "/include") "LDFLAGS=-lm -L../libsupp" (string-append "prefix=" (assoc-ref %outputs "out"))) #:phases @@ -3814,18 +3816,20 @@ network. This must be enabled on the target host, usually in the BIOS.") (add-after 'unpack 'patch-make (lambda _ (substitute* "default.rules" - ((" \\$\\(LIBDEPS\\)") "$(filter-out -l%,$(LIBDEPS))")) - #t)) - (delete 'bootstrap) ; there is no configure.ac file - (delete 'configure)))) ; there is no configure script + ((" \\$\\(LIBDEPS\\)") "$(filter-out -l%,$(LIBDEPS))")))) + (delete 'bootstrap) ;no configure.ac file + (delete 'configure)))) ;no configure script (home-page "http://traceroute.sourceforge.net/") (synopsis "Tracks the route taken by packets over an IP network") - (description "Traceroute tracks the route packets taken from an IP network -on their way to a given host. It utilizes the IP protocol's time to live (TTL) -field and attempts to elicit an ICMP TIME_EXCEEDED response from each gateway -along the path to the host.") - (license '(license:gpl2+ - license:lgpl2.1+)))) ; for the libsupp subdirectory + (description "This package provides a modern, but Linux-specific +implementation of the @command{traceroute} command that can be used to follow +the route taken by packets on an IP network on their way to a given host. It +utilizes the IP protocol's time to live (TTL) field and attempts to elicit an +ICMP TIME_EXCEEDED response from each gateway along the path to the host. +Compared to other implementations, this @command{traceroute} command allows +some traces for unprivileged users.") + (license (list license:gpl2+ + license:lgpl2.1+)))) ;for the libsupp subdirectory (define-public vde2 (package --8<---------------cut here---------------end--------------->8--- And pushed as 59e97a67ba. Thank you! Closing. Maxim