From 2e109c6a03e4c59398ec97aff48aa0f8fdea5fc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=A3=E8=82=89=E9=85=B1?= Date: Wed, 11 Jan 2023 04:00:16 +0000 Subject: [PATCH] Fix post scriptlets --- iptables.spec | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/iptables.spec b/iptables.spec index bee7140..0f02255 100644 --- a/iptables.spec +++ b/iptables.spec @@ -1,5 +1,5 @@ # install init scripts to /usr/libexec with systemd -%define anolis_release 3 +%define anolis_release 4 %global script_path %{_libexecdir}/iptables %global legacy_actions %{_libexecdir}/initscripts/legacy-actions %global iptc_so_ver 0 @@ -286,14 +286,14 @@ for sfx in "" "-restore" "-save"; do rm -f $pfx$sfx fi done -if [ "$(readlink -e $manpfx.8.zstd" == $manpfx.8.zstd ]; then - rm -f $manpfx.8.zstd +if [ "$(readlink -e $manpfx.8.zst" == $manpfx.8.zst ]; then + rm -f $manpfx.8.zst fi %{_sbindir}/update-alternatives --install \ $pfx ebtables $pfx-nft 10 \ --slave $pfx-save ebtables-save $pfx-nft-save \ --slave $pfx-restore ebtables-restore $pfx-nft-restore \ - --slave $manpfx.8.zstd ebtables-man $manpfx-nft.8.zstd + --slave $manpfx.8.zst ebtables-man $manpfx-nft.8.zst pfx=%{_sbindir}/arptables manpfx=%{_mandir}/man8/arptables @@ -302,8 +302,8 @@ for sfx in "" "-restore" "-save"; do if [ "$(readlink -e $pfx$sfx)" == $pfx$sfx ]; then rm -f $pfx$sfx fi - if [ "$(readlink -e $manpfx$sfx.8.zstd)" == $manpfx$sfx.8.zstd ]; then - rm -f $manpfx$sfx.8.zstd + if [ "$(readlink -e $manpfx$sfx.8.zst)" == $manpfx$sfx.8.zst ]; then + rm -f $manpfx$sfx.8.zst fi done if [ "$(readlink -e $lepfx-helper)" == $lepfx-helper ]; then @@ -313,9 +313,9 @@ fi $pfx arptables $pfx-nft 10 \ --slave $pfx-save arptables-save $pfx-nft-save \ --slave $pfx-restore arptables-restore $pfx-nft-restore \ - --slave $manpfx.8.zstd arptables-man $manpfx-nft.8.zstd \ - --slave $manpfx-save.8.zstd arptables-save-man $manpfx-nft-save.8.zstd \ - --slave $manpfx-restore.8.zstd arptables-restore-man $manpfx-nft-restore.8.zstd \ + --slave $manpfx.8.zst arptables-man $manpfx-nft.8.zst \ + --slave $manpfx-save.8.zst arptables-save-man $manpfx-nft-save.8.zst \ + --slave $manpfx-restore.8.zst arptables-restore-man $manpfx-nft-restore.8.zst \ --slave $lepfx-helper arptables-helper $lepfx-nft-helper %postun nft @@ -406,6 +406,9 @@ fi %changelog +* Wed Jan 11 2023 Funda Wang - 1.8.8-4 +- Fix post scriptlets + * Tue Jan 3 2023 Funda Wang - 1.8.8-3 - Rebuild for new libnfnetlink -- Gitee