GNU logs - #76001, boring messages


Message sent to guix-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#76001] [PATCH] gnu: Add jool.
Resent-From: Ashish SHUKLA <ashish.is@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Sat, 01 Feb 2025 21:39:02 +0000
Resent-Message-ID: <handler.76001.B.173844591512318 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 76001
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: 76001 <at> debbugs.gnu.org
Cc: Ashish SHUKLA <ashish.is@HIDDEN>
X-Debbugs-Original-To: guix-patches@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.173844591512318
          (code B ref -1); Sat, 01 Feb 2025 21:39:02 +0000
Received: (at submit) by debbugs.gnu.org; 1 Feb 2025 21:38:35 +0000
Received: from localhost ([127.0.0.1]:60283 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1teLCE-0003Cb-Ky
	for submit <at> debbugs.gnu.org; Sat, 01 Feb 2025 16:38:35 -0500
Received: from lists.gnu.org ([2001:470:142::17]:50756)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ashish.is@HIDDEN>)
 id 1teLCB-0003CL-LT
 for submit <at> debbugs.gnu.org; Sat, 01 Feb 2025 16:38:32 -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 <ashish.is@HIDDEN>)
 id 1teLC2-00041v-K8
 for guix-patches@HIDDEN; Sat, 01 Feb 2025 16:38:23 -0500
Received: from anamika.lostca.se ([65.21.75.227])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <ashish.is@HIDDEN>)
 id 1teLC0-0007Fb-Fs
 for guix-patches@HIDDEN; Sat, 01 Feb 2025 16:38:22 -0500
Received: from localhost.localdomain (unknown [91.183.211.42])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested) (Authenticated sender: abbe)
 by anamika.lostca.se (Postfix) with ESMTPSA id 543B44DB2;
 Sat,  1 Feb 2025 21:38:06 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lostca.se; s=anamika; 
 t=1738445886;
 h=from:from: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;
 bh=5BWwd/0hChHE9tni+mIWj378i67uoam52FRrcnR85YI=;
 b=iiBLTNMZhaDBAU9QI6aog2QRvIjyhhR46GtUbbXoxLnTIVhH5HniAir5xTCyOdT55B4BlJ
 RCKsCBkCrsJTgfHrY3+nDeGAlN2exwxbryKM1f1vzwAngjRL4uz+Kfwg6+6whaXNoiA5TG
 Gk73U2MvmzfrRFrQAtEO2GUQHC25gJE=
From: Ashish SHUKLA <ashish.is@HIDDEN>
Date: Sat,  1 Feb 2025 22:36:44 +0100
Message-ID: <c6ad754614c9876d79158dab9935f739085a4659.1738445803.git.ashish.is@HIDDEN>
X-Mailer: git-send-email 2.48.1
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=65.21.75.227; envelope-from=ashish.is@HIDDEN;
 helo=anamika.lostca.se
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.7 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  * gnu/packages/networking.scm (jool): Add jool. Change-Id:
 Ic517fc8c4afbb964363ec68b3d89ce9fcd00c7d8 --- Hi, This patch adds Jool software,
 which implements NAT64 support in Linux kernel, and is helpful in updating
 IPv6-only networks, e.g. FOSDEM network at FOSDEM. 
 Content analysis details:   (1.7 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.1 URIBL_SBL_A Contains URL's A record listed in the Spamhaus SBL
 blocklist [URIs: nicmx.github.io]
 0.6 URIBL_SBL Contains an URL's NS IP listed in the Spamhaus SBL
 blocklist [URIs: nicmx.github.io]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 0.9 SPF_FAIL               SPF: sender does not match SPF record (fail)
 [SPF failed: Please see http://www.openspf.org/Why?s=mfrom;
 id=ashish.is%40lostca.se; ip=2001%3A470%3A142%3A%3A17; r=debbugs.gnu.org]
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.7 (/)

* gnu/packages/networking.scm (jool): Add jool.

Change-Id: Ic517fc8c4afbb964363ec68b3d89ce9fcd00c7d8
---
Hi,

This patch adds Jool software, which implements NAT64 support in Linux kernel, and is helpful in updating IPv6-only networks, e.g. FOSDEM network at FOSDEM.

Thanks!

 gnu/packages/networking.scm | 73 +++++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 09e0359122..ec7279d38b 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -66,6 +66,7 @@
 ;;; Copyright © 2024 Alexey Abramov <levenson@HIDDEN>
 ;;; Copyright © 2024 James Smith <jsubuntuxp@HIDDEN>
 ;;; Copyright © 2025 Sughosha <sughosha@HIDDEN>
+;;; Copyright © 2025 Ashish SHUKLA <ashish.is@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -92,6 +93,7 @@ (define-module (gnu packages networking)
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system go)
+  #:use-module (guix build-system linux-module)
   #:use-module (guix build-system meson)
   #:use-module (guix build-system perl)
   #:use-module (guix build-system python)
@@ -5064,6 +5066,77 @@ (define-public dnstracer
 back to the servers which know the data.")
     (license license:bsd-2)))
 
+(define-public jool
+  (package
+    (name "jool")
+    (version "4.1.13")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/NICMx/Jool")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0rz8pqn692y61rv33hvr18ngjjyha0m14m4w4yr82xp3km5kfnsj"))))
+    (build-system linux-module-build-system)
+    (outputs '("out" "module"))
+    (native-inputs (list automake autoconf libtool pkg-config))
+    (inputs (list libnl iptables))
+    (arguments
+     (list
+      #:tests? #f
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'build
+            (lambda* (#:key inputs #:allow-other-keys)
+              (let ((modules-dir
+                     (string-append
+                      (assoc-ref inputs "linux-module-builder") "/lib/modules")))
+                (invoke "make" "-C" "src/mod"
+                        (string-append "MODULES_DIR=" modules-dir))
+                (invoke "make"))))
+
+          (add-after 'configure 'really-configure
+            (lambda* (#:key outputs #:allow-other-keys)
+              (setenv "CONFIG_SHELL" (which "sh"))
+              (setenv "CC" #$(cc-for-target))
+              (invoke "./configure"
+                      (string-append "--prefix=" (assoc-ref outputs "out")))))
+
+          (add-after 'unpack 'patch-Makefiles
+            (lambda* (#:key outputs #:allow-other-keys)
+              (let ((out (assoc-ref outputs "out")))
+                (substitute* "src/mod/Makefile"
+                  (("/sbin/depmod")
+                   "true"))
+                (substitute* "src/usr/iptables/Makefile"
+                  (("^XTABLES_SO_DIR =.*$")
+                   (string-append "XTABLES_SO_DIR = " out "/lib/xtables"))))))
+
+          (replace 'install
+            (lambda* (#:key inputs outputs parallel-build? make-flags
+                      #:allow-other-keys)
+              (let ((modules-dir
+                     (string-append (assoc-ref inputs "linux-module-builder")
+                                    "/lib/modules"))
+                    (out (assoc-ref outputs "out"))
+                    (module-dir (string-append
+                                 (assoc-ref outputs "module")
+                                 "/lib/modules")))
+                (invoke "make" "install")
+                (invoke "make" "-C" "src/mod" "modules_install"
+                        "DEPMOD=true"
+                        "INSTALL_MOD_STRIP=1"
+                        (string-append "MODULES_DIR=" modules-dir)
+                        (string-append "MODULE_DIR=" module-dir)
+                        (string-append "INSTALL_PATH=" module-dir)
+                        (string-append "INSTALL_MOD_PATH=" module-dir))))))))
+    (home-page "https://nicmx.github.io/Jool/")
+    (synopsis "SIIT and NAT64 implementation for Linux")
+    (description "Jool implements SIIT and NAT64 for Linux.")
+    (license license:gpl2+)))
+
 (define-public dropwatch
   (package
     (name "dropwatch")

base-commit: aba3e48ae1ce70deba8e6ad63e2ac9b102abfd4d
-- 
2.48.1





Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Ashish SHUKLA <ashish.is@HIDDEN>
Subject: bug#76001: Acknowledgement ([PATCH] gnu: Add jool.)
Message-ID: <handler.76001.B.173844591512318.ack <at> debbugs.gnu.org>
References: <c6ad754614c9876d79158dab9935f739085a4659.1738445803.git.ashish.is@HIDDEN>
X-Gnu-PR-Message: ack 76001
X-Gnu-PR-Package: guix-patches
X-Gnu-PR-Keywords: patch
Reply-To: 76001 <at> debbugs.gnu.org
Date: Sat, 01 Feb 2025 21:39:03 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 guix-patches@HIDDEN

If you wish to submit further information on this problem, please
send it to 76001 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
76001: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76001
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to guix-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#76001] [PATCH] gnu: Add jool.
Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Wed, 12 Feb 2025 09:55:01 +0000
Resent-Message-ID: <handler.76001.B76001.173935409313836 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 76001
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: Ashish SHUKLA <ashish.is@HIDDEN>
Cc: 76001 <at> debbugs.gnu.org
Received: via spool by 76001-submit <at> debbugs.gnu.org id=B76001.173935409313836
          (code B ref 76001); Wed, 12 Feb 2025 09:55:01 +0000
Received: (at 76001) by debbugs.gnu.org; 12 Feb 2025 09:54:53 +0000
Received: from localhost ([127.0.0.1]:60982 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ti9SH-0003b6-9T
	for submit <at> debbugs.gnu.org; Wed, 12 Feb 2025 04:54:53 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:54796)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ludo@HIDDEN>) id 1ti9SD-0003aq-L9
 for 76001 <at> debbugs.gnu.org; Wed, 12 Feb 2025 04:54:51 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1ti9S8-0007pF-BR; Wed, 12 Feb 2025 04:54:44 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=tpCObo2oSn5YTfTRrbnUrzf/Uycnl1+oOPECS5uVpIc=; b=of7oIUH4VIwczNcPqbxS
 VfXBwdpnPXQPJaOVf/N5/bkxrA09seIinXCojZ0LDlPGm3oo6qhKFlVYVpXsHtnnqzC8RrH2Qa83s
 tYTHYu4D5iLLzelyjZEBHGxwIUVkwJrAD8AjRPepoeOrgN0x6AJO6itmguNKxsbdPCoaAZpLzfwvp
 747MrwLrwv3iYkReIbQw1WukQRmU6n1ejkEFpJapHT6CANNlceBqCtrtMc0n7lAI//p5CjQOszm4W
 QTDF2xRZip5bijIN4X0/Ns45p6T3os9BaN9Mi4DV95q0DKJAJuq8n3Z28ObZBjXKG0pyxJUbemKdv
 TNM8EYbQBSprLQ==;
From: Ludovic =?UTF-8?Q?Court=C3=A8s?= <ludo@HIDDEN>
In-Reply-To: <c6ad754614c9876d79158dab9935f739085a4659.1738445803.git.ashish.is@HIDDEN>
 (Ashish SHUKLA's message of "Sat, 1 Feb 2025 22:36:44 +0100")
References: <c6ad754614c9876d79158dab9935f739085a4659.1738445803.git.ashish.is@HIDDEN>
Date: Wed, 12 Feb 2025 10:54:40 +0100
Message-ID: <87ikpf7ajj.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -1.6 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

Ashish SHUKLA <ashish.is@HIDDEN> skribis:

> * gnu/packages/networking.scm (jool): Add jool.
>
> Change-Id: Ic517fc8c4afbb964363ec68b3d89ce9fcd00c7d8

[...]

> +                    (out (assoc-ref outputs "out"))
> +                    (module-dir (string-append
> +                                 (assoc-ref outputs "module")
> +                                 "/lib/modules")))

I=E2=80=99d suggest using #$output and #$output:module throughout.

> +    (home-page "https://nicmx.github.io/Jool/")
> +    (synopsis "SIIT and NAT64 implementation for Linux")
> +    (description "Jool implements SIIT and NAT64 for Linux.")

Could you expand the description as per
<https://guix.gnu.org/manual/devel/en/html_node/Synopses-and-Descriptions.h=
tml>?
You should probably make it clear that the package provides a kernel
module.

Thanks in advance,
Ludo=E2=80=99.




Message sent to guix-patches@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: [bug#76001] [PATCH v2] gnu: Add jool.
Resent-From: Ashish SHUKLA <ashish.is@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: guix-patches@HIDDEN
Resent-Date: Thu, 13 Feb 2025 23:50:05 +0000
Resent-Message-ID: <handler.76001.B76001.173949059414618 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 76001
X-GNU-PR-Package: guix-patches
X-GNU-PR-Keywords: patch
To: ludo@HIDDEN
Cc: Ashish SHUKLA <ashish.is@HIDDEN>, 76001 <at> debbugs.gnu.org
Received: via spool by 76001-submit <at> debbugs.gnu.org id=B76001.173949059414618
          (code B ref 76001); Thu, 13 Feb 2025 23:50:05 +0000
Received: (at 76001) by debbugs.gnu.org; 13 Feb 2025 23:49:54 +0000
Received: from localhost ([127.0.0.1]:46169 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tiixu-0003nh-2F
	for submit <at> debbugs.gnu.org; Thu, 13 Feb 2025 18:49:54 -0500
Received: from anamika.lostca.se ([65.21.75.227]:55682)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <ashish.is@HIDDEN>)
 id 1tiixN-0003mt-QI
 for 76001 <at> debbugs.gnu.org; Thu, 13 Feb 2025 18:49:22 -0500
Received: from localhost.localdomain (unknown
 [IPv6:2a02:9140:3880:ee00:a4c9:8bd8:87a1:b732])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested) (Authenticated sender: abbe)
 by anamika.lostca.se (Postfix) with ESMTPSA id 5E37389F6;
 Thu, 13 Feb 2025 23:49:14 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lostca.se; s=anamika; 
 t=1739490554;
 h=from:from: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:
 in-reply-to:in-reply-to:references:references;
 bh=jSfyStaJKNfY2TV6UQM9vhEfgBhojj0KgwDaKIl/3D8=;
 b=lzfC+n33u6SzdUjRUJKyQlo6TROsmS++TcRaFk6rSGzaoHzn7RpPlVPFvpOXQld+5/Tmds
 HCFYVKyqEWoEcEMJCzqpUBq9qvoVgrcWJW3o/PeHGM2Z+qnaASBGew/49R/b/6gs/R1tzJ
 b8itWlWi/TR7i/+3Re8uTr2wh+Tyu6s=
From: Ashish SHUKLA <ashish.is@HIDDEN>
Date: Fri, 14 Feb 2025 00:49:00 +0100
Message-ID: <50a465c98b9a66cd3d6d2369e3c43f715c8d4382.1739490540.git.ashish.is@HIDDEN>
X-Mailer: git-send-email 2.48.1
In-Reply-To: <87ikpf7ajj.fsf@HIDDEN>
References: <87ikpf7ajj.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.7 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)

* gnu/packages/networking.scm (jool): Add jool.

Change-Id: Ic517fc8c4afbb964363ec68b3d89ce9fcd00c7d8
---
 gnu/packages/networking.scm | 72 +++++++++++++++++++++++++++++++++++++
 1 file changed, 72 insertions(+)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index 8ae7f84015..f51266c764 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -66,6 +66,7 @@
 ;;; Copyright © 2024 Alexey Abramov <levenson@HIDDEN>
 ;;; Copyright © 2024 James Smith <jsubuntuxp@HIDDEN>
 ;;; Copyright © 2025 Sughosha <sughosha@HIDDEN>
+;;; Copyright © 2025 Ashish SHUKLA <ashish.is@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -92,6 +93,7 @@ (define-module (gnu packages networking)
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system go)
+  #:use-module (guix build-system linux-module)
   #:use-module (guix build-system meson)
   #:use-module (guix build-system perl)
   #:use-module (guix build-system python)
@@ -5059,6 +5061,76 @@ (define-public dnstracer
 back to the servers which know the data.")
     (license license:bsd-2)))
 
+(define-public jool
+  (package
+    (name "jool")
+    (version "4.1.13")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/NICMx/Jool")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0rz8pqn692y61rv33hvr18ngjjyha0m14m4w4yr82xp3km5kfnsj"))))
+    (build-system linux-module-build-system)
+    (outputs '("out" "module"))
+    (native-inputs (list automake autoconf libtool pkg-config))
+    (inputs (list libnl iptables))
+    (arguments
+     (list
+      #:tests? #f
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'build
+            (lambda* (#:key inputs #:allow-other-keys)
+              (let ((modules-dir
+                     (string-append
+                      (assoc-ref inputs "linux-module-builder") "/lib/modules")))
+                (invoke "make" "-C" "src/mod"
+                        (string-append "MODULES_DIR=" modules-dir))
+                (invoke "make"))))
+
+          (add-after 'configure 'really-configure
+            (lambda _
+              (setenv "CONFIG_SHELL" (which "sh"))
+              (setenv "CC" #$(cc-for-target))
+              (invoke "./configure"
+                      (string-append "--prefix=" #$output))))
+
+          (add-after 'unpack 'patch-Makefiles
+            (lambda _
+              (substitute* "src/mod/Makefile"
+                (("/sbin/depmod")
+                 "true"))
+              (substitute* "src/usr/iptables/Makefile"
+                (("^XTABLES_SO_DIR =.*$")
+                 (string-append "XTABLES_SO_DIR = " #$output "/lib/xtables")))))
+
+          (replace 'install
+            (lambda* (#:key inputs parallel-build? make-flags
+                      #:allow-other-keys)
+              (let ((modules-dir
+                     (string-append (assoc-ref inputs "linux-module-builder")
+                                    "/lib/modules"))
+                    (module-dir (string-append
+                                 #$output:module
+                                 "/lib/modules")))
+                (invoke "make" "install")
+                (invoke "make" "-C" "src/mod" "modules_install"
+                        "DEPMOD=true"
+                        "INSTALL_MOD_STRIP=1"
+                        (string-append "MODULES_DIR=" modules-dir)
+                        (string-append "MODULE_DIR=" module-dir)
+                        (string-append "INSTALL_PATH=" module-dir)
+                        (string-append "INSTALL_MOD_PATH=" module-dir))))))))
+    (home-page "https://nicmx.github.io/Jool/")
+    (synopsis "SIIT and NAT64 implementation for Linux")
+    (description "Jool implements SIIT and NAT64 for Linux.  It provides a kernel module,
+iptables (and netfilter) extensions, and CLI utilities.")
+    (license license:gpl2+)))
+
 (define-public dropwatch
   (package
     (name "dropwatch")

base-commit: 87dd002575fb5090649e56a3a2d10b86b1773c74
-- 
2.48.1





Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 13 Feb 2025 23:50:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Feb 13 18:50:50 2025
Received: from localhost ([127.0.0.1]:46187 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tiiyo-0003w0-4K
	for submit <at> debbugs.gnu.org; Thu, 13 Feb 2025 18:50:50 -0500
Received: from anamika.lostca.se ([65.21.75.227]:47148)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <ashish.is@HIDDEN>)
 id 1tiiyl-0003vl-Fz
 for control <at> debbugs.gnu.org; Thu, 13 Feb 2025 18:50:48 -0500
Received: from localhost (unknown
 [IPv6:2a02:9140:3880:ee00:a4c9:8bd8:87a1:b732])
 (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested) (Authenticated sender: abbe)
 by anamika.lostca.se (Postfix) with ESMTPSA id 8494989FA
 for <control <at> debbugs.gnu.org>; Thu, 13 Feb 2025 23:50:41 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lostca.se; s=anamika; 
 t=1739490641;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding;
 bh=vKpf9B6OCzkyQ4/x3WinRFqZ3Jg9OASqs5xupVzDm8k=;
 b=Vwx+W9Terq1C07qRO+Ej2MRYsDf6Z3dnSpL5bwvKzCCrBTZd2AJ2xffSVVEPGwiHNXHa7w
 rb9C7HKEgP3C1H5IF5iSWCqu05RaBLWNxo4lxgLbbm1ouMIfsj3PpolljlQXpGxf2CqvVH
 Py9hfBPsBZx1jljbV1e76xqBm9E84so=
Mime-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=UTF-8; format=Flowed
Date: Thu, 13 Feb 2025 23:50:40 +0000
Message-Id: <D7RPYWKFG3KN.11JRFUE7N6LYC@HIDDEN>
Subject: retitle bug
From: "Ashish SHUKLA" <ashish.is@HIDDEN>
To: <control <at> debbugs.gnu.org>
X-Mailer: aerc 0.20.0
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

retitle 76001 [PATCH v2] gnu: Add jool.
quit
--=20
Ashish SHUKLA | GPG: F682 CDCC 39DC 0FEA E116  20B6 C746 CFA9 E74F A4B0

"If I destroy you, what business is it of yours ?" (Dark Forest, Liu Cixin)





Last modified: Fri, 14 Feb 2025 00:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.