Compare commits
8 Commits
Author | SHA256 | Date | |
---|---|---|---|
79d271cfa8 | |||
fe92e4e32e | |||
d09e49ee1e | |||
e00d28626a | |||
c718fa2a4a | |||
5f074bda5a | |||
82708d933d | |||
afadf7cc4c |
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package iptables
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -66,8 +66,8 @@ Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
%endif
|
||||
%else
|
||||
Provides: %{name}-backend-nft = %version-%release
|
||||
Obsoletes: %{name}-backend-nft < %version-%release
|
||||
Provides: %name-backend-nft = %version-%release
|
||||
Obsoletes: %name-backend-nft < %version-%release
|
||||
Provides: ebtables
|
||||
%endif
|
||||
# During the update to iptables 1.8, ip6tables-restore-translate, ip6tables-translate,
|
||||
@@ -80,14 +80,12 @@ Conflicts: iptables-nft = 1.6.2
|
||||
iptables is used to set up, maintain, and inspect the rule tables of
|
||||
the various Netfilter packet filter engines inside the Linux kernel.
|
||||
|
||||
%if %{with legacy_backend}
|
||||
%package backend-nft
|
||||
Summary: Metapackage to make nft the default backend for iptables/arptables/ebtables
|
||||
Group: Productivity/Networking/Security
|
||||
Requires: iptables >= 1.8.0
|
||||
%if %{with libalternatives}
|
||||
Requires: alts
|
||||
BuildRequires: alts
|
||||
%else
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
@@ -100,7 +98,6 @@ Installation of this package adds higher priority alternatives (cf.
|
||||
update-alternatives) that makes the iptables, ip6tables, arptables
|
||||
and ebtables commands point to a program variant that uses the
|
||||
nftables kernel interface.
|
||||
%endif
|
||||
|
||||
%package -n xtables-plugins
|
||||
Summary: Match and target extension plugins for iptables
|
||||
@@ -215,7 +212,7 @@ for i in iptables iptables-restore iptables-save ip6tables ip6tables-restore \
|
||||
ip6tables-save arptables arptables-restore arptables-save ebtables \
|
||||
ebtables-restore ebtables-save; do
|
||||
%if %{with legacy_backend}
|
||||
%if ! %{with libalternatives}
|
||||
%if !%{with libalternatives}
|
||||
ln -fsv "%_sysconfdir/alternatives/$i" "$b/%_sbindir/$i"
|
||||
%else
|
||||
ln -fsv %_bindir/alts "$b/%_sbindir/$i"
|
||||
@@ -366,7 +363,7 @@ fi
|
||||
%_sbindir/ip6tables-legacy*
|
||||
%_sbindir/xtables-legacy-multi
|
||||
# backend-legacy (implicit)
|
||||
%if ! %{with libalternatives}
|
||||
%if !%{with libalternatives}
|
||||
%ghost %_sysconfdir/alternatives/iptables
|
||||
%ghost %_sysconfdir/alternatives/iptables-restore
|
||||
%ghost %_sysconfdir/alternatives/iptables-save
|
||||
@@ -405,7 +402,7 @@ fi
|
||||
|
||||
%if %{with legacy_backend}
|
||||
%files backend-nft
|
||||
%if ! %{with libalternatives}
|
||||
%if !%{with libalternatives}
|
||||
%ghost %_sysconfdir/alternatives/iptables
|
||||
%ghost %_sysconfdir/alternatives/iptables-restore
|
||||
%ghost %_sysconfdir/alternatives/iptables-save
|
||||
|
Reference in New Issue
Block a user