Compare commits

..

No commits in common. "e5b3be51843cc6384bcd5dbdeba1ec0399e3fce0" and "e79aa473ee5d5de7e960f57610bf604915f2fa56" have entirely different histories.

View File

@ -1,7 +1,7 @@
Name: ebtables
Version: 2.0.11
Release: 12
Release: 7
Summary: A filtering tool for a Linux-based bridging firewall
License: GPLv2+
URL: http://ebtables.sourceforge.net/
@ -61,49 +61,28 @@ echo "%{_libdir}/ebtables" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
%post
%systemd_post ebtables.service
/usr/sbin/ldconfig
pfx=%{_sbindir}/ebtables
manpfx=%{_mandir}/man8/ebtables
for sfx in "" "-restore" "-save"; do
if [ "$(readlink -e $pfx$sfx)" == $pfx$sfx ]; then
rm -f $pfx$sfx
fi
if [ -e /var/lib/alternatives/ebtables$sfx ]; then
rm -f /var/lib/alternatives/ebtables$sfx
fi
done
if [ "$(readlink -e $manpfx.8.gz)" == $manpfx.8.gz ]; then
rm -f $manpfx.8.gz
%?ldconfig
if [ "$(readlink -e %{_sbindir}/ebtables)" == %{_sbindir}/ebtables ] ; then
rm -f %{_sbindir}/ebtables
fi
%{_sbindir}/update-alternatives --install \
$pfx ebtables $pfx-legacy 10 \
--slave $pfx-save ebtables-save $pfx-legacy-save \
--slave $pfx-restore ebtables-restore $pfx-legacy-restore \
--slave $manpfx.8.gz ebtables-man $manpfx-legacy.8.gz
%{_sbindir}/update-alternatives --install %{_sbindir}/ebtables ebtables %{_sbindir}/ebtables-legacy 10
if [ "$(readlink -e %{_sbindir}/ebtables-restore)" == %{_sbindir}/ebtables-restore ] ; then
rm -f %{_sbindir}/ebtables-restore
fi
%{_sbindir}/update-alternatives --install %{_sbindir}/ebtables-restore ebtables-restore %{_sbindir}/ebtables-legacy-restore 10
if [ "$(readlink -e %{_sbindir}/ebtables-save)" == %{_sbindir}/ebtables-save ] ; then
rm -f %{_sbindir}/ebtables-save
fi
%{_sbindir}/update-alternatives --install %{_sbindir}/ebtables-save ebtables-save %{_sbindir}/ebtables-legacy-save 10
%preun
%systemd_preun ebtables.service
%postun
%systemd_postun_with_restart ebtables.service
/usr/sbin/ldconfig
if [ $1 -eq 0 ]; then
%{_sbindir}/update-alternatives --remove \
ebtables %{_sbindir}/ebtables-legacy
if [ -e /usr/sbin/iptables-nft ]; then
pfx=%{_sbindir}/ebtables
manpfx=%{_mandir}/man8/ebtables
%{_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.gz ebtables-man $manpfx-nft.8.gz
systemctl status firewalld 2>/dev/null | grep -w "running" > /dev/null
if [ $? -eq 0 ];then
systemctl restart firewalld || :
fi
fi
fi
%?ldconfig
%files
%license COPYING
@ -126,36 +105,6 @@ fi
%doc %{_mandir}/man8/ebtables-legacy.8*
%changelog
* Tue Jul 30 2024 xinghe <xinghe2@h-partners.com> - 2.0.11-12
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix ebtables-restore --noflush failed when ebtables is uninstall
* Wed Sep 20 2023 xinghe <xinghe2@h-partners.com> - 2.0.11-11
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add release
* Thu Aug 31 2023 lifeifei<lifeifei@kylinos.cn> - 2.0.11-10
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Fix: if libvirt and ebtables are installed at the same time, ping the operation prompts "sendmsg: Operation not permitted".
* Mon Aug 07 2023 gaihuiying <eaglegai@163.com> - 2.0.11-9
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:fix post error "No such file or directory"
* Fri Jun 30 2023 xinghe <xinghe2@h-partners.com> - 2.0.11-8
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:fix install error
* Mon Nov 28 2022 yanglu<yanglu72@h-partners.com> - 2.0.11-7
- Type:bugfix
- CVE:NA