From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id HT2yBNNx0mUbqQAAqHPOHw:P1 (envelope-from ) for ; Sun, 18 Feb 2024 22:08:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id HT2yBNNx0mUbqQAAqHPOHw (envelope-from ) for ; Sun, 18 Feb 2024 22:08:35 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rimm.ee header.s=herman header.b=USmD0JbC; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708290515; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: 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=Em0gsl8znWHPVZbwy6IZuIlaUjyaSJssKR6dBtDejGs=; b=iDsvPgBgcnd3SPlkpi/3PeTEDKrKBIm8cZu9ZyCRCVktqCu3U+ifxaAJx/K88WYS6CkeeX NIEJfLhcn6sOvn0uS3KrvZO+BZjlOaj5uazpU5vVzZybSoh3Say+/nPiLu2qD4Q8c8AdkE 3tr5a5zs2uAoGB4pCobtQa5p/oM6V7OdbyCUH0xgwIxHy147k87I3oiyUbslWz+fqKnhiU 2GPl+RzsiIxvNQPIT1vX/Bx1gaH9PcejmXyRDiLvuMMmyfLXziGUA8UxRVkx0HsXLlYqCv /oQ4BY7F4Lku/QUQGNzdx4O4cuaetUFHxqDscv+CaKgn2ZQ9wc7jLSjjJ1KrpQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=rimm.ee header.s=herman header.b=USmD0JbC; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708290515; a=rsa-sha256; cv=none; b=MuegatlsK90nsy3WeOgUvXCxFflYAwZBIWtz/5yyzzuQVelVxXvfPufnkaph7LbpXBqN6i OqBKtK5YC4JkHF7Cwc91uh10vScppAKvLU4dLgAis5026ywxWQEicSq+vlSG1nIID3/6rO rKT1KMsNk2eaukD9H5XrJdW3rsNzrTmU+qOk6doSR7Z/WqXa85+lP5I4AzimLJFM7Xq+MD n+uRJMSZfz7gRJncCBbzo6kZWZB4BmIsn/h2j1thVnW16DQSu7QY5gsRQ/fEZrazu7wWks +9JL2vCtrJbUzcu64j0otiPp+6BnNP7YVuFfudOcoRsGMrr4axlty22Qpag+aA== 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 F12313F614 for ; Sun, 18 Feb 2024 22:08:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rboOW-00035M-SP; Sun, 18 Feb 2024 16:08: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 1rboOL-0002yc-Cu for guix-patches@gnu.org; Sun, 18 Feb 2024 16:08:07 -0500 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 1rboOK-00061O-QH for guix-patches@gnu.org; Sun, 18 Feb 2024 16:08:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rboOf-00039Q-Es; Sun, 18 Feb 2024 16:08:25 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69257] [PATCH 049/228] gnu: Add rust-pcap-1. Resent-From: Herman Rimm Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Sun, 18 Feb 2024 21:08:25 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69257 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69257@debbugs.gnu.org Cc: Herman Rimm , Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 69257-submit@debbugs.gnu.org id=B69257.170829049711919 (code B ref 69257); Sun, 18 Feb 2024 21:08:25 +0000 Received: (at 69257) by debbugs.gnu.org; 18 Feb 2024 21:08:17 +0000 Received: from localhost ([127.0.0.1]:38837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rboOW-00035y-Il for submit@debbugs.gnu.org; Sun, 18 Feb 2024 16:08:17 -0500 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:55415 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rboNz-0002vV-Qn for 69257@debbugs.gnu.org; Sun, 18 Feb 2024 16:07:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1708290434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Em0gsl8znWHPVZbwy6IZuIlaUjyaSJssKR6dBtDejGs=; b=USmD0JbCcHG7f1jX4j3wYewnzEA+6RAZnonGvQUfWiV4VaKSz+EKOJwR8ahqaciUeuqjxm DMXU39YizmgIfjpXoHZFpNo9x2yExcXzeDPrcNOpgdnlmUY52Eujd57nNjxpY/hg2DHTTl Ll/9B3+IsiKPVACyQc66sKkqjNUMtzf6E2Mz4LhISbaRsIPnMU1YeN2Ob48oth8tunLsXz GAvug6UoDYVHyAV61bo3X6FPr8mKLqhECQf5tIHSQkJePS4Q2b+rOUT5/o6B9CMzAbmpT8 aXHiMV4BqWGE+RiBWr+HCqHGdUoqqt8RLHHWssvyM6C8gpB0MjucAy/y3mvNJw== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 791dbc13 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sun, 18 Feb 2024 21:07:14 +0000 (UTC) Date: Sun, 18 Feb 2024 22:02:47 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , Reply-to: Herman Rimm X-ACL-Warn: , Herman Rimm via Guix-patches From: Herman Rimm via Guix-patches via 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-Migadu-Spam-Score: -6.48 X-Spam-Score: -6.48 X-Migadu-Queue-Id: F12313F614 X-Migadu-Scanner: mx13.migadu.com X-TUID: 4+Q2fJ2KitQS * gnu/packages/crates-io.scm (rust-pcap-1): Add variable. (rust-pcap-0.7): Inherit rust-pcap-1. Change-Id: I00cfe081f4414616c7524af5093ebd639c8cd37f --- gnu/packages/crates-io.scm | 41 ++++++++++++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 604bc2f752..24469da2e7 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -46310,8 +46310,42 @@ (define-public rust-pathdiff-0.2 path.") (license (list license:asl2.0 license:expat)))) +(define-public rust-pcap-1 + (package + (name "rust-pcap") + (version "1.2.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "pcap" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1hrpgjxy53rvi9xbizr9nm70qgsb9pzfwah9bnirq791kpgjyibp")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-bitflags" ,rust-bitflags-1) + ("rust-errno" ,rust-errno-0.2) + ("rust-etherparse" ,rust-etherparse-0.13) + ("rust-futures" ,rust-futures-0.3) + ("rust-gat-std" ,rust-gat-std-0.1) + ("rust-libc" ,rust-libc-0.2) + ("rust-libloading" ,rust-libloading-0.6) + ("rust-pkg-config" ,rust-pkg-config-0.3) + ("rust-regex" ,rust-regex-1) + ("rust-tokio" ,rust-tokio-1) + ("rust-tun-tap" ,rust-tun-tap-0.1) + ("rust-windows-sys" ,rust-windows-sys-0.36)) + #:cargo-development-inputs (("rust-eui48" ,rust-eui48-1) + ("rust-tempdir" ,rust-tempdir-0.3)))) + (home-page "https://github.com/rust-pcap/pcap") + (synopsis "Packet capture API around (w)pcap") + (description + "This package provides a packet capture API around pcap/wpcap.") + (license (list license:expat license:asl2.0)))) + (define-public rust-pcap-0.7 (package + (inherit rust-pcap-1) (name "rust-pcap") (version "0.7.0") (source @@ -46322,7 +46356,6 @@ (define-public rust-pcap-0.7 (sha256 (base32 "14blflnbj87z3ajlj1hszsl6k7rwa338y4aw2yjm2j0xdpjvj4pr")))) (native-inputs (list libpcap)) - (build-system cargo-build-system) (arguments `(#:tests? #f ; can't find crate for `futures` #:cargo-inputs @@ -46332,11 +46365,7 @@ (define-public rust-pcap-0.7 ("rust-mio" ,rust-mio-0.6) ("rust-tokio-core" ,rust-tokio-core-0.1)) #:cargo-development-inputs - (("rust-tempdir" ,rust-tempdir-0.3)))) - (home-page "https://github.com/rust-pcap/pcap") - (synopsis "Packet capture API around pcap/wpcap") - (description "This package provides a packet capture API around pcap/wpcap.") - (license (list license:expat license:asl2.0)))) + (("rust-tempdir" ,rust-tempdir-0.3)))))) (define-public rust-pcap-sys-0.1 (package -- 2.41.0