Message ID | d5f78454-ef21-2a33-b592-95a7a55abdb5@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1FE7027BBE9; Sat, 19 Mar 2022 00:48:15 +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.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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 BEA1927BBEA for <patchwork@mira.cbaines.net>; Sat, 19 Mar 2022 00:48:14 +0000 (GMT) Received: from localhost ([::1]:57528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org>) id 1nVNGP-00077l-Sq for patchwork@mira.cbaines.net; Fri, 18 Mar 2022 20:48:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nVNGF-00072n-C3 for guix-patches@gnu.org; Fri, 18 Mar 2022 20:48:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36606) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nVNGF-0000jo-27 for guix-patches@gnu.org; Fri, 18 Mar 2022 20:48:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nVNGE-00038E-VX for guix-patches@gnu.org; Fri, 18 Mar 2022 20:48:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54457] [PATCH 4/9] gnu: Add libnetfilter-queue References: <871b5ef4-87f1-bd27-0d24-0725064b2894@gmail.com> In-Reply-To: <871b5ef4-87f1-bd27-0d24-0725064b2894@gmail.com> Resent-From: fesoj000 <fesoj000@gmail.com> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 19 Mar 2022 00:48:02 +0000 Resent-Message-ID: <handler.54457.B54457.164765086511869@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54457 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54457@debbugs.gnu.org Received: via spool by 54457-submit@debbugs.gnu.org id=B54457.164765086511869 (code B ref 54457); Sat, 19 Mar 2022 00:48:02 +0000 Received: (at 54457) by debbugs.gnu.org; 19 Mar 2022 00:47:45 +0000 Received: from localhost ([127.0.0.1]:58718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1nVNFw-00035I-Mb for submit@debbugs.gnu.org; Fri, 18 Mar 2022 20:47:44 -0400 Received: from mail-ed1-f43.google.com ([209.85.208.43]:45573) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <fesoj000@gmail.com>) id 1nVNFu-00034F-VH for 54457@debbugs.gnu.org; Fri, 18 Mar 2022 20:47:43 -0400 Received: by mail-ed1-f43.google.com with SMTP id m12so11996770edc.12 for <54457@debbugs.gnu.org>; Fri, 18 Mar 2022 17:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:from:subject :content-language:to:content-transfer-encoding; bh=u+/nZ/kjgJEQdmVZlYtCpvsh0qZ/FGtjQALNpIK4eqA=; b=QCekASDzXplZe/pwt65B+7atk2od45EJRH0//auV/IrkRh/K74it29zxn8ZErP3apP 1xiUhnhPooncXDxGnALlNoJC6z5eIGT+LaINizT0WPr1OiOHDbLXrUbqeL29OcvCOY5c DjMWXmIxN7An6pRrEari5pQB4piNQtPZIaF/crOzEDGfdETIntE01W8/3gCfurzdeO9t fcyLPpNLTNucQ134sGetY28kRBkG5eFeW3n6Pt4r1WgLMLpZdSpVo/gBprS4ito6XZq0 QdbJhHSc5AJ5BL8c7f/aPljstnDY8Evd1u0xNO6oyEFBnd8RrBUAzNea1P1yHJjhnqgv ItYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:content-language:to:content-transfer-encoding; bh=u+/nZ/kjgJEQdmVZlYtCpvsh0qZ/FGtjQALNpIK4eqA=; b=LrUfF2qYFjmIJFAcOxCifmOsuexFAF+kLpbME0url4wIZW+ideo+w8DA4NnKQhIJ5q lIS5bu1LTsT/0qbzf/xOE9bhWxLfyOWfPKim6rBDpaLDW75JoTIoiqPoynY1iuChDTOZ 5SzNIHMYHXdsBt8+IQatq9nb2A2P9R51XKcoILHSMACfpvYdG4fHIEpwu7ZcHJqOGAiX 9JCMWiQRsyUE3akD8BgKnKz9pvvUha1IGiE8in8qih5xgbzxfr3PwoxBs84qkiVvwt+L cGIalOB580rVMZNoizJ1qzd2AcswglmB0l/F52rFmaJ7k2JeOToxH/hH82H+ww5FxixN H6dQ== X-Gm-Message-State: AOAM530TxE0O3jbi7ugUFMels+hbuAdZ1Wl9IbzBJE/ysz/tGi9pHWfI xvI0JbhcLS4THKypwGapf0xIfXIRX7c= X-Google-Smtp-Source: ABdhPJxMiDsQoG2lXfynfTlqr1XfkpB8Fy1soaS2Bdk76RdKhkuDxn0GUEyy9taCdtpKYgfo4pDTMg== X-Received: by 2002:a05:6402:34cc:b0:416:63d6:1891 with SMTP id w12-20020a05640234cc00b0041663d61891mr11955803edc.308.1647650857362; Fri, 18 Mar 2022 17:47:37 -0700 (PDT) Received: from ?IPV6:2003:ee:af2f:e00:c2f9:c2bb:bf95:1fc5? (p200300eeaf2f0e00c2f9c2bbbf951fc5.dip0.t-ipconnect.de. [2003:ee:af2f:e00:c2f9:c2bb:bf95:1fc5]) by smtp.gmail.com with ESMTPSA id eg6-20020a056402288600b0041919c78082sm855619edb.87.2022.03.18.17.47.36 for <54457@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Mar 2022 17:47:37 -0700 (PDT) Message-ID: <d5f78454-ef21-2a33-b592-95a7a55abdb5@gmail.com> Date: Sat, 19 Mar 2022 01:47:36 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 From: fesoj000 <fesoj000@gmail.com> Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-getmail-retrieved-from-mailbox: Patches |
Series |
Add netfilter tools and libraries
|
|
Commit Message
fesoj000
March 19, 2022, 12:47 a.m. UTC
* gnu/packages/linux.scm (libnetfilter-queue): New variable. --- gnu/packages/linux.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)
Comments
fesoj000 schreef op za 19-03-2022 om 01:47 [+0100]: > +(define-public libnetfilter-queue > + (package > + (name "libnetfilter_queue") Why the underscore?
fesoj000 schreef op za 19-03-2022 om 01:47 [+0100]: > + (description "libnetfilter_queue is a userspace library providing an API to > +packets that have been queued by the kernel packet filter. It is is part of a > +system that deprecates the old ip_queue / libipq mechanism.") > + (home-page "https://netfilter.org/projects/libnetfilter_queue/index.html") > + (license license:gpl1))) IIRC, glibc is LGPL2+. Would that make libnetfilter-queue license- incompatible with glibc?
fesoj000 schreef op za 19-03-2022 om 01:47 [+0100]: > + (description "libnetfilter_queue is a userspace library providing an API to > +packets that have been queued by the kernel packet filter. It is is part of a > +system that deprecates the old ip_queue / libipq mechanism.") > + (home-page "https://netfilter.org/projects/libnetfilter_queue/index.html") > + (license license:gpl1))) This looks rather Linux-specific, so I'd set (supported-systems ...) appropriately. Maybe: (supported-systems (filter target-linux? %supported-systems))
On 3/20/22 12:23 AM, Maxime Devos wrote: > fesoj000 schreef op za 19-03-2022 om 01:47 [+0100]: >> + (description "libnetfilter_queue is a userspace library providing an API to >> +packets that have been queued by the kernel packet filter. It is is part of a >> +system that deprecates the old ip_queue / libipq mechanism.") >> + (home-page "https://netfilter.org/projects/libnetfilter_queue/index.html") >> + (license license:gpl1))) > > IIRC, glibc is LGPL2+. Would that make libnetfilter-queue license- > incompatible with glibc? I have only very limited knowledge of the interoperability of licenses. But to tackle this specific problem, the library actually is GPLv2 [0]. I will check all the libraries again to make sure the licenses are up-to-date. [0] https://git.netfilter.org/libnetfilter_queue/tree/COPYING
On 3/20/22 12:22 AM, Maxime Devos wrote: > fesoj000 schreef op za 19-03-2022 om 01:47 [+0100]: >> +(define-public libnetfilter-queue >> + (package >> + (name "libnetfilter_queue") > > Why the underscore? The upstream name of the library is 'libnetfilter_queue', i used '-' for the variable definition because this felt more lispy. But for the string i thought it makes more sense to use the upstream name. My thought process could be wrong though.
fesoj000 schreef op ma 21-03-2022 om 20:49 [+0100]: > The upstream name of the library is 'libnetfilter_queue', i used > '-' for the variable definition because this felt more lispy. But for > the string i thought it makes more sense to use the upstream name. My > thought process could be wrong though. Guix turns #\_ characters into #\- characters as a naming convention. From (guix)Package Naming: A package actually has two names associated with it. [...] Both are usually the same and correspond to the lowercase conversion of the project name chosen upstream, with underscores replaced with hyphens. For instance, GNUnet is available as ‘gnunet’, and SDL_net as ‘sdl-net’.
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 8ddd495441..900f76063c 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -7323,6 +7323,29 @@ (define-public libnetfilter-cthelper "libnetfilter_cthelper/index.html")) (license license:gpl2))) +(define-public libnetfilter-queue + (package + (name "libnetfilter_queue") + (version "1.0.5") + (source + (origin + (method url-fetch) + (uri (string-append "https://netfilter.org/projects/" + "libnetfilter_queue/files/" + "libnetfilter_queue-" + version ".tar.bz2")) + (sha256 + (base32 + "1xdra6i4p8jkv943ygjw646qx8df27f7p5852kc06vjx608krzzr")))) + (build-system gnu-build-system) + (native-inputs (list libmnl libnfnetlink pkg-config)) + (synopsis "Userspace library for kernel netfilter infrastructure and state") + (description "libnetfilter_queue is a userspace library providing an API to +packets that have been queued by the kernel packet filter. It is is part of a +system that deprecates the old ip_queue / libipq mechanism.") + (home-page "https://netfilter.org/projects/libnetfilter_queue/index.html") + (license license:gpl1))) + (define-public proot (package (name "proot")