[packages/nftables] up to 1.1.6
atler
atler at pld-linux.org
Sun Dec 7 15:20:16 CET 2025
commit 2f8dd7be1728766ded113610afb554b542368315
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Dec 7 15:20:07 2025 +0100
up to 1.1.6
bashism.patch | 34 ++++++++++++++++++++++++++++++++++
nftables.spec | 15 ++++++---------
2 files changed, 40 insertions(+), 9 deletions(-)
---
diff --git a/nftables.spec b/nftables.spec
index 2534821..926e208 100644
--- a/nftables.spec
+++ b/nftables.spec
@@ -8,14 +8,15 @@
Summary: Administration tool for packet filtering and classification
Summary(pl.UTF-8): Narzędzie administracyjne do filtrowania i klasyfikacji pakietów
Name: nftables
-Version: 1.1.5
+Version: 1.1.6
Release: 1
License: GPL v2
Group: Applications/Networking
Source0: https://netfilter.org/projects/nftables/files/%{name}-%{version}.tar.xz
-# Source0-md5: 45fcdb9494181ef86bb71e9728845a0c
+# Source0-md5: 638ddff35ca429f68860a437d53237b4
Source1: %{name}.service
Source2: %{name}.conf
+Patch0: bashism.patch
URL: https://netfilter.org/projects/nftables/
BuildRequires: asciidoc
BuildRequires: autoconf >= 2.61
@@ -26,7 +27,7 @@ BuildRequires: gmp-devel
BuildRequires: iptables-devel >= 1.6.1
BuildRequires: jansson-devel
BuildRequires: libmnl-devel >= 1.0.4
-BuildRequires: libnftnl-devel >= 1.3.0
+BuildRequires: libnftnl-devel >= 1.3.1
BuildRequires: libtool >= 2:2
BuildRequires: pkgconfig
%if %{with python2}
@@ -47,7 +48,7 @@ BuildRequires: tar >= 1:1.22
BuildRequires: xz
Requires: iptables-libs >= 1.6.1
Requires: libmnl >= 1.0.4
-Requires: libnftnl >= 1.3.0
+Requires: libnftnl >= 1.3.1
%{?with_systemd:Requires: systemd-units >= 38}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -121,10 +122,7 @@ Wiązania Pythona 3 do biblioteki libnftables.
%prep
%setup -q
-
-%{__sed} -i -e \
- 's|/etc/nftables/rules/main.nft|/etc/sysconfig/nftables|' \
- tools/nftables.service.8
+%patch -P0 -p1
%build
%{__libtoolize}
@@ -229,7 +227,6 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man8/nft.8*
%if %{with systemd}
%{systemdunitdir}/nftables.service
-%{_mandir}/man8/nftables.service.8*
%endif
%files devel
diff --git a/bashism.patch b/bashism.patch
new file mode 100644
index 0000000..13ae00d
--- /dev/null
+++ b/bashism.patch
@@ -0,0 +1,34 @@
+From 2e3c68f26d5bd60c8ea7467fa9018c282a7d8c47 Mon Sep 17 00:00:00 2001
+From: Jan Palus <jpalus at fastmail.com>
+Date: Sat, 6 Dec 2025 00:43:58 +0100
+Subject: [PATCH] build: fix ./configure with non-bash shell
+
+ CONFIG_SHELL=/bin/dash ./configure
+
+breaks with:
+
+ ./config.status: 2044: Syntax error: Bad for loop variable
+
+Fixes: 64c07e38f049 ("table: Embed creating nft version into userdata")
+Signed-off-by: Jan Palus <jpalus at fastmail.com>
+Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 6825474b..dd172e88 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -157,7 +157,7 @@ AC_CONFIG_COMMANDS([nftversion.h], [
+ echo " ${STABLE_RELEASE}"
+ echo "};"
+ echo "static char nftbuildstamp[[]] = {"
+- for ((i = 56; i >= 0; i-= 8)); do
++ for i in `seq 56 -8 0`; do
+ echo " ((uint64_t)MAKE_STAMP >> $i) & 0xff,"
+ done
+ echo "};"
+--
+2.52.0
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nftables.git/commitdiff/2f8dd7be1728766ded113610afb554b542368315
More information about the pld-cvs-commit
mailing list