Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
885cc03c57
!70 fix ebtables-restore --noflush failed when ebtables is uninstall
From: @xinghe_1 
Reviewed-by: @sunsuwan 
Signed-off-by: @sunsuwan
2024-07-31 01:44:40 +00:00
xh
b84bcf899b fix ebtables-restore --noflush failed when ebtables is uninstall 2024-07-31 01:02:51 +00:00
openeuler-ci-bot
cad4990dda
!56 [sync] PR-55: 安装libvirt*,ping操作提示“sendmsg: Operation not permitted”
From: @openeuler-sync-bot 
Reviewed-by: @robertxw 
Signed-off-by: @robertxw
2023-09-20 01:13:57 +00:00
liff
303dc1974f update ebtables.spec.
Signed-off-by: liff <lifeifei@kylinos.cn>
(cherry picked from commit 01b5718538c008778d9962a49f927c8bf5bd7342)
2023-09-19 14:47:08 +08:00
openeuler-ci-bot
6181011e5d
!48 [sync] PR-47: fix post error "No such file or directory"
From: @openeuler-sync-bot 
Reviewed-by: @gebidelidaye 
Signed-off-by: @gebidelidaye
2023-08-08 09:36:56 +00:00
eaglegai
799f919750 fix post error: No such file or directory
(cherry picked from commit fc58f9b8dba300f2d12fac8d17dd838560722425)
2023-08-07 15:37:18 +08:00
openeuler-ci-bot
9cde1a2c47
!42 fix install error
From: @xinghe_1 
Reviewed-by: @kircher 
Signed-off-by: @kircher
2023-06-30 11:00:41 +00:00
xinghe
c738145a76 fix install error 2023-06-30 08:01:09 +00:00
openeuler-ci-bot
5d3b1170d8
!35 replace with tar from source0
From: @yangl777 
Reviewed-by: @seuzw 
Signed-off-by: @seuzw
2022-12-10 06:40:03 +00:00
yangl777
be9508acea replace with tar from source0 2022-12-09 09:32:06 +00:00
2 changed files with 67 additions and 16 deletions

Binary file not shown.

View File

@ -1,7 +1,7 @@
Name: ebtables
Version: 2.0.11
Release: 4
Release: 9
Summary: A filtering tool for a Linux-based bridging firewall
License: GPLv2+
URL: http://ebtables.sourceforge.net/
@ -56,28 +56,49 @@ echo "%{_libdir}/ebtables" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
%post
%systemd_post ebtables.service
%?ldconfig
if [ "$(readlink -e %{_sbindir}/ebtables)" == %{_sbindir}/ebtables ] ; then
rm -f %{_sbindir}/ebtables
/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
fi
%{_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
%{_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
%preun
%systemd_preun ebtables.service
%postun
%systemd_postun_with_restart ebtables.service
%?ldconfig
/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
%files
%license COPYING
@ -100,6 +121,36 @@ fi
%doc %{_mandir}/man8/ebtables-legacy.8*
%changelog
* Tue Jul 30 2024 xinghe <xinghe2@h-partners.com> - 2.0.11-9
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix ebtables-restore --noflush failed when ebtables is uninstall
* Thu Aug 31 2023 lifeifei<lifeifei@kylinos.cn> - 2.0.11-8
- 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-7
- 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-6
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix install error
* Fri 09 Dec 2022 yanglu <yanglu72@h-partners.com> - 2.0.11-5
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:replace with tar from source0
* Thu Mar 24 2022 wangxiaopeng <wangxiaopeng7@huawei.com> - 2.0.11-4
- Type:bugfix
- ID:NA