iptables-1.8.7-6
- Restore alternatives configuration after upgrade - Fix license location
This commit is contained in:
parent
3fe153906e
commit
ad1732dc5d
@ -11,7 +11,7 @@ Name: iptables
|
||||
Summary: Tools for managing Linux kernel packet filtering capabilities
|
||||
URL: https://www.netfilter.org/projects/iptables
|
||||
Version: 1.8.7
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Source: %{url}/files/%{name}-%{version}.tar.bz2
|
||||
Source1: iptables.init
|
||||
Source2: iptables-config
|
||||
@ -255,6 +255,12 @@ fi
|
||||
# iptables-1.8.0-1 introduced the use of alternatives
|
||||
# when upgrading, its %postun script runs due to the package renaming
|
||||
# fix this by repeating the install into alternatives
|
||||
# also keep the old alternatives configuration to not change the system
|
||||
%triggerun legacy -- iptables > 1.8.0
|
||||
alternatives --list | awk '/^iptables/{print $3; exit}' \
|
||||
>/var/tmp/alternatives.iptables.current
|
||||
cp /var/lib/alternatives/iptables /var/tmp/alternatives.iptables.setup
|
||||
|
||||
%triggerpostun legacy -- iptables > 1.8.0
|
||||
pfx=%{_sbindir}/iptables
|
||||
pfx6=%{_sbindir}/ip6tables
|
||||
@ -265,6 +271,9 @@ pfx6=%{_sbindir}/ip6tables
|
||||
--slave $pfx-save iptables-save $pfx-legacy-save \
|
||||
--slave $pfx6-restore ip6tables-restore $pfx6-legacy-restore \
|
||||
--slave $pfx6-save ip6tables-save $pfx6-legacy-save
|
||||
alternatives --set iptables $(</var/tmp/alternatives.iptables.current)
|
||||
rm /var/tmp/alternatives.iptables.current
|
||||
mv /var/tmp/alternatives.iptables.setup /var/lib/alternatives/iptables
|
||||
|
||||
%post services
|
||||
%systemd_post iptables.service ip6tables.service
|
||||
@ -337,7 +346,6 @@ fi
|
||||
%files compat
|
||||
|
||||
%files legacy
|
||||
%license COPYING
|
||||
%doc INCOMPATIBILITIES
|
||||
%{_sbindir}/ip{,6}tables-legacy*
|
||||
%{_sbindir}/xtables-legacy-multi
|
||||
@ -347,6 +355,7 @@ fi
|
||||
%ghost %{_sbindir}/ip{,6}tables{,-save,-restore}
|
||||
|
||||
%files libs
|
||||
%license COPYING
|
||||
%{_libdir}/libxtables.so.12*
|
||||
%dir %{_libdir}/xtables
|
||||
%{_libdir}/xtables/lib{ip,ip6,x}t*
|
||||
@ -354,6 +363,7 @@ fi
|
||||
%{_mandir}/man8/ip{,6}tables-{extensions,save,restore}.8.gz
|
||||
|
||||
%files legacy-libs
|
||||
%license COPYING
|
||||
%{_libdir}/libip{4,6}tc.so.%{ipXtc_so_ver}*
|
||||
|
||||
%files devel
|
||||
@ -376,6 +386,7 @@ fi
|
||||
%{legacy_actions}/ip{,6}tables/{save,panic}
|
||||
|
||||
%files utils
|
||||
%license COPYING
|
||||
%{_sbindir}/nfnl_osf
|
||||
%{_sbindir}/nfbpf_compile
|
||||
%{_sbindir}/ip{,6}tables-apply
|
||||
@ -406,6 +417,10 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Mar 23 2021 Phil Sutter <psutter@redhat.com> - 1.8.7-6
|
||||
- Restore alternatives configuration after upgrade
|
||||
- Fix license location
|
||||
|
||||
* Tue Mar 23 2021 Phil Sutter <psutter@redhat.com> - 1.8.7-5
|
||||
- Fix upgrade path with package rename
|
||||
- Add missing dependencies to iptables-nft package
|
||||
|
Loading…
Reference in New Issue
Block a user