[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/07: gnu: Add iptables-nft.
From: |
guix-commits |
Subject: |
01/07: gnu: Add iptables-nft. |
Date: |
Tue, 19 Dec 2023 08:50:54 -0500 (EST) |
hako pushed a commit to branch master
in repository guix.
commit 6884770464bd9ba95c1a5ccf10bf50d186a220d5
Author: Hilton Chain <hako@ultrarare.space>
AuthorDate: Tue Sep 12 13:47:02 2023 +0800
gnu: Add iptables-nft.
* gnu/packages/linux.scm (iptables-nft): New variable.
Change-Id: I281514fcf05e70b4d62f374269c50c76bb676f78
---
gnu/packages/linux.scm | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index c4da631089..2df711aab2 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -3101,6 +3101,40 @@ Both commands are targeted at system administrators.")
'((release-monitoring-url . "https://www.netfilter.org/pub/iptables/")))
(license license:gpl2+)))
+(define-public iptables-nft
+ (package
+ (inherit iptables)
+ (name "iptables-nft")
+ (source #f)
+ (build-system copy-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (delete 'unpack)
+ (replace 'install
+ (lambda* (#:key inputs #:allow-other-keys)
+ (for-each
+ (lambda (command-path)
+ (let ((link-path (string-append #$output command-path)))
+ (mkdir-p (dirname link-path))
+ (symlink (search-input-file inputs "sbin/xtables-nft-multi")
+ link-path)))
+ (apply append
+ '("/bin/iptables-xml")
+ (map (lambda (xtables)
+ (list (string-append "/sbin/" xtables)
+ (string-append "/sbin/" xtables "-restore")
+ (string-append "/sbin/" xtables "-save")))
+ '("arptables"
+ "ebtables"
+ "iptables"
+ "ip6tables")))))))))
+ (inputs (list iptables))
+ (native-inputs '())
+ (synopsis
+ "Programs to configure Linux IP packet filtering rules (nftables API)")))
+
(define-public bolt
(package
(name "bolt")
- branch master updated (521247658f -> fa92a7c2fe), guix-commits, 2023/12/19
- 07/07: gnu: font-jetbrains-mono: Use the correct license., guix-commits, 2023/12/19
- 03/07: gnu: hyfetch: Update to 1.4.11., guix-commits, 2023/12/19
- 02/07: gnu: emacs-mbsync: Update to 0.1.2-5.d3c81da., guix-commits, 2023/12/19
- 01/07: gnu: Add iptables-nft.,
guix-commits <=
- 04/07: gnu: wireplumber: Update to 0.4.17., guix-commits, 2023/12/19
- 05/07: gnu: traceroute: Update to 2.1.5., guix-commits, 2023/12/19
- 06/07: gnu: font-jetbrains-mono: Update to 2.304, guix-commits, 2023/12/19