From patchwork Sun Aug 25 21:23:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Artyom V. Poptsov" X-Patchwork-Id: 67281 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 67BEB27BBE9; Sun, 25 Aug 2024 22:25:22 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS 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 B166B27BBE2 for ; Sun, 25 Aug 2024 22:25:20 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1siKja-0005Z5-Kc; Sun, 25 Aug 2024 17:25:14 -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 1siKjZ-0005Yf-FS for guix-patches@gnu.org; Sun, 25 Aug 2024 17:25:13 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1siKjZ-00089F-6n for guix-patches@gnu.org; Sun, 25 Aug 2024 17:25:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=Ut4Usr2uFaYKICXx+7l22qcsZ8845aO4s2AM+Ut/gf4=; b=tnQqhz2HlWLjIE/iveqJPjxiblJqtYY0t25BK9ou8WTG8lVdluGq79z6MypNzKU+GCVYoxHpwBHZ4BvKBRDrgzf0Y+r9VvnJ1oRoOvY4EBlGDU/0toYPJNNsM3Mk81LtqqoUiaEreevRnUSB0JvVUWE54CkKSlnp2lOSXw6VNB5qdDGvvJ8uGvq95Vzv82ykjVQcVsBQrIXhA9xPgvA1u4XXsYb3Rd5xqdixp1DLL3d2LKcwwg6bMivFp2n1YDBrr1arFG85tcNfpqgEGs3DkKMatxRZhC8O1v9SGG9W3PqsSCGGxeaoKc74Fpl84zw38Y26c8M71Gk8XQ/Cao3UrQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1siKkN-0003AY-DL for guix-patches@gnu.org; Sun, 25 Aug 2024 17:26:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72810] [PATCH 4/4] gnu: Add go-github-com-libp2p-go-cidranger. Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 25 Aug 2024 21:26:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72810 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72810@debbugs.gnu.org Cc: "Artyom V. Poptsov" Received: via spool by 72810-submit@debbugs.gnu.org id=B72810.172462114412129 (code B ref 72810); Sun, 25 Aug 2024 21:26:03 +0000 Received: (at 72810) by debbugs.gnu.org; 25 Aug 2024 21:25:44 +0000 Received: from localhost ([127.0.0.1]:43397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1siKk3-00039S-St for submit@debbugs.gnu.org; Sun, 25 Aug 2024 17:25:44 -0400 Received: from mail-lf1-f50.google.com ([209.85.167.50]:40160) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1siKk1-00038j-H0 for 72810@debbugs.gnu.org; Sun, 25 Aug 2024 17:25:42 -0400 Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-53345676179so725449e87.0 for <72810@debbugs.gnu.org>; Sun, 25 Aug 2024 14:24:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724621025; x=1725225825; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ut4Usr2uFaYKICXx+7l22qcsZ8845aO4s2AM+Ut/gf4=; b=Zhgy1jGOs/5Jn8F78b+j05VuCPFBe6U9xsLWkx/gObwGSENUNur60R804I5cKI385m A6upe7gM4Is7dwg5fj1K6NpGjRrub5WZorYIuIFMkUtEHZielf+BJL66FMtfHNFRCnVB /yh0VioZZ71Gr+pGiV8tPUYavcWLIChSF8Im7GY724RJ6KfEQckLruKK1kB8+a+Jq1q3 ls8d0VOizWFILNDIW5dsmhPNlhy2+xMOUCiPUeZfwl0EU9oL4cjQkWZ5cIh3jO+c7z4I OT9RsqvLE4wwbYPrsQxNMVM40IqM654LDlar1L9Cwda3BDsSJPi4X+PAmhrpjjK0fnMV 8VZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724621025; x=1725225825; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ut4Usr2uFaYKICXx+7l22qcsZ8845aO4s2AM+Ut/gf4=; b=FpEBNe/qVhZyWwt23EzfW935xhWzxlpNE14gTRQymnfF7y8gX1wX1QiZIFMtAGjncI 3rV61NYJ7aaT96KkqsFMyLh2QSc+Awa2jd2RqVOr2H7/jwFI4IxzFg8dsxO2lH6Jyu4z TtUSto3bVPn1VMBoC+/zxqGWG9u5Q8BXlOIIVi2WoftI51kzjFUw+qfW1+hy0zAJvL3D krkEtZY0yNeXP1lptH+mDdR7drOIpgETu1JgrqY8pB8KqlK9+zOWyCrj+sjPQlXyA7S7 ypAZaIk8ywEiJw+oAeUoQm4A3u36bnZ376UBSW04wevFj+Kbn4xxF80YZEqZYkN4pV27 Q0Vw== X-Gm-Message-State: AOJu0YzW3CSXa9pajgCddHAG0JXImmJgGvcEZ4T6xG4NhFjex7whFS8Y 75XXkgR9dIcepv//DjFtMZkkk8l2/FJKuG/7rdDqeCnFhY/vBeJ2Ktmb50Jq X-Google-Smtp-Source: AGHT+IE18nVkhQVIbL1SYQ7HmAU3toxR0jKr7Lt4DLBDptwdBeLXdovxkuNFEfb6ml1Q3ao8dN04gg== X-Received: by 2002:a05:6512:1089:b0:52f:c337:4c1f with SMTP id 2adb3069b0e04-5343870bfe1mr3368655e87.0.1724621024381; Sun, 25 Aug 2024 14:23:44 -0700 (PDT) Received: from elephant.. ([5.164.196.227]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5334ea29a87sm1272741e87.30.2024.08.25.14.23.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 25 Aug 2024 14:23:43 -0700 (PDT) From: "Artyom V. Poptsov" Date: Mon, 26 Aug 2024 00:23:37 +0300 Message-ID: X-Mailer: git-send-email 2.45.2 In-Reply-To: References: 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/golang-web.scm (go-github-com-libp2p-go-cidranger): New variable. Change-Id: I4e21f87c7b77ae8a5f7fa2e098330ec15bff079e --- gnu/packages/golang-web.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/golang-web.scm b/gnu/packages/golang-web.scm index 288d81b7dd..ab5333cf6e 100644 --- a/gnu/packages/golang-web.scm +++ b/gnu/packages/golang-web.scm @@ -2201,6 +2201,36 @@ (define-public go-github-com-koron-go-ssdp @acronym{Simple Service Discovery Protocol, SSDP}} library for Golang.") (license license:expat))) +(define-public go-github-com-libp2p-go-cidranger + (package + (name "go-github-com-libp2p-go-cidranger") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/libp2p/go-cidranger") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "05hzlk5hx7qna5znr3q1crr0qb7h8yrv1v96pj015dh0kbdkdaba")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/libp2p/go-cidranger")) + (native-inputs (list go-github-com-stretchr-testify)) + (propagated-inputs (list go-github-com-ipfs-go-detect-race)) + (home-page "https://github.com/libp2p/go-cidranger") + (synopsis "Fast IP to CIDR lookup in Golang") + (description + "Fast IP to @url{https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing, +CIDR} block(s) lookup using trie in Golang, inspired by +@url{https://vincent.bernat.im/en/blog/2017-ipv4-route-lookup-linux, IPv4 route +lookup Linux}. Possible use cases include detecting if a IP address is from +published cloud provider CIDR blocks (e.g. 52.95.110.1 is contained in published AWS +Route53 CIDR 52.95.110.0/24), IP routing rules, etc.") + (license license:expat))) + (define-public go-github-com-libp2p-go-libp2p-asn-util (package (name "go-github-com-libp2p-go-libp2p-asn-util")