From ed856330833ce2bb8e0615d435472e50165848db Mon Sep 17 00:00:00 2001 From: sherlock2010 <15151851377@163.com> Date: Mon, 30 Sep 2024 07:35:50 +0000 Subject: [PATCH] fix broken symbolic link (cherry picked from commit 179f221b24f8cbf5ddcae24154661c93750c4daf) --- iptables.spec | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/iptables.spec b/iptables.spec index 07f7cc3..9252b00 100644 --- a/iptables.spec +++ b/iptables.spec @@ -2,7 +2,7 @@ %global legacy_actions %{_libexecdir}/initscripts/legacy-actions Name: iptables Version: 1.8.9 -Release: 6 +Release: 7 Summary: IP packet filter administration utilities License: GPL-2.0-only and Artistic-2.0 URL: https://www.netfilter.org/ @@ -74,6 +74,7 @@ Header files for iproute. %package nft Summary: nft package for iproute Requires: %{name} = %{version}-%{release} +Requires: %{name}-help Obsoletes: iptables-compat < 1.6.2-4 %description nft @@ -153,8 +154,6 @@ install -m 0755 iptables/iptables-apply.8 %{buildroot}%{_mandir}/man8 # Remove /etc/ethertypes (now part of setup) rm -f %{buildroot}%{_sysconfdir}/ethertypes -touch %{buildroot}%{_libexecdir}/arptables-helper - touch %{buildroot}%{_mandir}/man8/arptables.8 touch %{buildroot}%{_mandir}/man8/arptables-save.8 touch %{buildroot}%{_mandir}/man8/arptables-restore.8 @@ -231,17 +230,13 @@ for sfx in "" "-restore" "-save"; do rm -f $manpfx$sfx.8.gz fi done -if [ "$(readlink -e $lepfx-helper)" == $lepfx-helper ]; then - rm -f $lepfx-helper -fi %{_sbindir}/update-alternatives --install \ $pfx arptables $pfx-nft 10 \ --slave $pfx-save arptables-save $pfx-nft-save \ --slave $pfx-restore arptables-restore $pfx-nft-restore \ --slave $manpfx.8.gz arptables-man $manpfx-nft.8.gz \ --slave $manpfx-save.8.gz arptables-save-man $manpfx-nft-save.8.gz \ - --slave $manpfx-restore.8.gz arptables-restore-man $manpfx-nft-restore.8.gz \ - --slave $lepfx-helper arptables-helper $lepfx-nft-helper + --slave $manpfx-restore.8.gz arptables-restore-man $manpfx-nft-restore.8.gz if [ x`rpm -qa firewalld` != x ]; then firews=`systemctl status firewalld | grep Active | awk '{print $3}'` @@ -325,7 +320,6 @@ fi %ghost %{_sbindir}/arptables %ghost %{_sbindir}/arptables-save %ghost %{_sbindir}/arptables-restore -%ghost %{_libexecdir}/arptables-helper %files help %defattr(-,root,root) @@ -346,6 +340,12 @@ fi %{_datadir}/xtables/iptables.xslt %changelog +* Mon Sep 30 2024 zhouyihang - 1.8.9-7 +- Type: bugfix +- ID: NA +- SUG: NA +- DESC: fix broken symbolic link + * Mon Aug 19 2024 yanglu - 1.8.9-6 - Type: enhancement - ID: NA -- Gitee