Compare commits

..

No commits in common. "6e7b433e9f53979a6f4028673b51586d6ae61ef1" and "00be52764c1472ba9ee87d809f380a2afa3e0d14" have entirely different histories.

2 changed files with 17 additions and 55 deletions

Binary file not shown.

View File

@ -1,7 +1,7 @@
Name: ebtables Name: ebtables
Version: 2.0.11 Version: 2.0.11
Release: 11 Release: 6
Summary: A filtering tool for a Linux-based bridging firewall Summary: A filtering tool for a Linux-based bridging firewall
License: GPLv2+ License: GPLv2+
URL: http://ebtables.sourceforge.net/ URL: http://ebtables.sourceforge.net/
@ -61,36 +61,28 @@ echo "%{_libdir}/ebtables" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
%post %post
%systemd_post ebtables.service %systemd_post ebtables.service
/usr/sbin/ldconfig %?ldconfig
pfx=%{_sbindir}/ebtables if [ "$(readlink -e %{_sbindir}/ebtables)" == %{_sbindir}/ebtables ] ; then
manpfx=%{_mandir}/man8/ebtables rm -f %{_sbindir}/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
fi fi
%{_sbindir}/update-alternatives --install \ %{_sbindir}/update-alternatives --install %{_sbindir}/ebtables ebtables %{_sbindir}/ebtables-legacy 10
$pfx ebtables $pfx-legacy 10 \
--slave $pfx-save ebtables-save $pfx-legacy-save \ if [ "$(readlink -e %{_sbindir}/ebtables-restore)" == %{_sbindir}/ebtables-restore ] ; then
--slave $pfx-restore ebtables-restore $pfx-legacy-restore \ rm -f %{_sbindir}/ebtables-restore
--slave $manpfx.8.gz ebtables-man $manpfx-legacy.8.gz 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 %preun
%systemd_preun ebtables.service %systemd_preun ebtables.service
%postun %postun
%systemd_postun_with_restart ebtables.service %systemd_postun_with_restart ebtables.service
/usr/sbin/ldconfig %?ldconfig
if [ $1 -eq 0 ]; then
%{_sbindir}/update-alternatives --remove \
ebtables %{_sbindir}/ebtables-legacy
fi
%files %files
%license COPYING %license COPYING
@ -113,37 +105,7 @@ fi
%doc %{_mandir}/man8/ebtables-legacy.8* %doc %{_mandir}/man8/ebtables-legacy.8*
%changelog %changelog
* Mon Nov 27 2023 yanglu <yanglu72@h-partners.com> - 2.0.11-11 * Thu Nov 3 wuzx<wuzx1226@qq.com> - 2.0.11-6
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:rebuild package to ensure that the upgrade between branches is normal
* Wed Sep 20 2023 xinghe <xinghe2@h-partners.com> - 2.0.11-10
- Type:bugfix
- CVE: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
- SUG:NA
- DESC:replace with tar from source0
* Thu Nov 3 2022 wuzx<wuzx1226@qq.com> - 2.0.11-6
- Type:feature - Type:feature
- CVE:NA - CVE:NA
- SUG:NA - SUG:NA