From patchwork Sat Feb 1 21:36:44 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ashish SHUKLA X-Patchwork-Id: 38157 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 2CE4827BBE9; Sat, 1 Feb 2025 21:39:35 +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=-6.3 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED,URIBL_SBL_A 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 C607E27BBE2 for ; Sat, 1 Feb 2025 21:39:31 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1teLCl-00045d-02; Sat, 01 Feb 2025 16:39:07 -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 1teLCi-00045K-8X for guix-patches@gnu.org; Sat, 01 Feb 2025 16:39:04 -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 1teLCi-0007Hq-0C for guix-patches@gnu.org; Sat, 01 Feb 2025 16:39:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=5BWwd/0hChHE9tni+mIWj378i67uoam52FRrcnR85YI=; b=EM79VXJ8+4LEXfXQdNQHMYIglaKVpvkKSNDq0DtA8nvLKRA6m0pV5AW7dYf5f0++Jkusu+JU/B/73aAnG47A9rIGHPdgCrcVKiWTj7SBNMm0WxaFykzRK2nxRqBSq4qAzmzgTXLKXhItQ/DlJszbM1rpp6d6R8x/NqPoQq7gY+2y+yTuZ/ASS3doVN+D+VquNxCjTd9LAUu3GvMAcCqPhaLB4HDu04u0zZ6LCKN/nJ9VFljDl9jzWx3XMzIuPnM2g0sGsSjaGdWvY66ZLL1yxNDxkpPGEqbvlNQJzg0rVU6CXPDZEGmXxxl/e6eX8MsLEOAwqsyx4owOzoXziJpcsg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1teLCg-0003DM-SF for guix-patches@gnu.org; Sat, 01 Feb 2025 16:39:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#76001] [PATCH] gnu: Add jool. Resent-From: Ashish SHUKLA Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 01 Feb 2025 21:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 76001 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 76001@debbugs.gnu.org Cc: Ashish SHUKLA X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@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 ) id 1teLCE-0003Cb-Ky for submit@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 ) id 1teLCB-0003CL-LT for submit@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 ) id 1teLC2-00041v-K8 for guix-patches@gnu.org; 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 ) id 1teLC0-0007Fb-Fs for guix-patches@gnu.org; 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= Date: Sat, 1 Feb 2025 22:36:44 +0100 Message-ID: X-Mailer: git-send-email 2.48.1 MIME-Version: 1.0 Received-SPF: pass client-ip=65.21.75.227; envelope-from=ashish.is@lostca.se; 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-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: Ashish SHUKLA X-ACL-Warn: , Ashish SHUKLA via Guix-patches X-Patchwork-Original-From: Ashish SHUKLA via Guix-patches via From: Ashish SHUKLA 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/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(+) base-commit: aba3e48ae1ce70deba8e6ad63e2ac9b102abfd4d 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 ;;; Copyright © 2024 James Smith ;;; Copyright © 2025 Sughosha +;;; Copyright © 2025 Ashish SHUKLA ;;; ;;; 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")