Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
bc31c6d2a8
!147 Revert fix correct the -n args show dismatch
From: @yangl777 
Reviewed-by: @sunsuwan 
Signed-off-by: @sunsuwan
2024-12-16 09:11:41 +00:00
yangl777
3ba9ce1195 Revert fix correct the -n args show dismatch 2024-12-16 08:32:44 +00:00
openeuler-ci-bot
47f505841c
!143 Fix:Correct the -n args show dismatch
From: @rw18717463710 
Reviewed-by: @sunsuwan 
Signed-off-by: @sunsuwan
2024-12-16 07:39:44 +00:00
renwang
53fbde578b first 2024-12-04 15:05:57 +08:00
openeuler-ci-bot
49be3c9325
!120 fix broken symbolic link
From: @sherlock2010 
Reviewed-by: @sunsuwan 
Signed-off-by: @sunsuwan
2024-10-08 02:52:47 +00:00
sherlock2010
7c2e523917 fix broken symbolic link 2024-09-30 07:37:01 +00:00
openeuler-ci-bot
749a946fdf
!101 fix license
From: @xinghe_1 
Reviewed-by: @jiangheng12 
Signed-off-by: @jiangheng12
2024-06-17 01:55:10 +00:00
xh
e85e21f67f fix license 2024-06-14 08:54:31 +00:00
openeuler-ci-bot
9dfba9945d
!79 sync: enabled DT test
From: @zhang-hao-jon 
Reviewed-by: @seuzw 
Signed-off-by: @seuzw
2023-03-22 07:31:12 +00:00
huangyu
8020d239b4 sync:enabled DT test 2023-03-22 14:44:19 +08:00
openeuler-ci-bot
d38221dcb8
!75 sync some patches from openEuler-20.03-LTS-SP1
From: @zhang-hao-jon 
Reviewed-by: @kircher 
Signed-off-by: @kircher
2023-03-09 14:22:13 +00:00
2 changed files with 73 additions and 11 deletions

View File

@ -0,0 +1,35 @@
From 54c670ada541aa61ab9ab7907ab245718137efb8 Mon Sep 17 00:00:00 2001
From: huangyu <huangyu106@huawei.com>
Date: Sat, 26 Nov 2022 18:08:31 +0800
Subject: [PATCH] enable makecheck in extensions
Signed-off-by: huangyu <huangyu106@huawei.com>
---
extensions/GNUmakefile.in | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in
index 0842a55..7d034af 100644
--- a/extensions/GNUmakefile.in
+++ b/extensions/GNUmakefile.in
@@ -79,7 +79,7 @@ targets_install :=
.SECONDARY:
-.PHONY: all install clean distclean FORCE
+.PHONY: all install check clean distclean FORCE
all: ${targets}
@@ -92,6 +92,8 @@ install: ${targets_install} ${symlinks_install}
cp -P ${symlinks_install} "${DESTDIR}${xtlibdir}/"; \
fi;
+check:
+
clean:
rm -f *.o *.oo *.so *.a {matches,targets}.man initext.c initext4.c initext6.c initextb.c initexta.c;
rm -f .*.d .*.dd;
--
2.23.0

View File

@ -2,9 +2,9 @@
%global legacy_actions %{_libexecdir}/initscripts/legacy-actions
Name: iptables
Version: 1.8.5
Release: 5
Release: 10
Summary: IP packet filter administration utilities
License: GPLv2 and Artistic Licence 2.0 and ISC
License: GPL-2.0-only and Artistic-2.0
URL: https://www.netfilter.org/
Source0: https://www.netfilter.org/projects/iptables/files/iptables-%{version}.tar.bz2
Source1: iptables.init
@ -20,7 +20,7 @@ Patch6004: backport-libxtables-Make-sure-extensions-register-in-revision-
Patch6005: backport-libxtables-Register-multiple-extensions-in-ascending-order.patch
Patch6006: backport-libxtables-Simplify-pending-extension-registration.patch
Patch6007: backport-libxtables-Register-only-the-highest-revision-extension.patch
Patch6008: enabled-makecheck-in-extensions.patch
BuildRequires: bison flex gcc kernel-headers libpcap-devel libselinux-devel systemd git
BuildRequires: libmnl-devel libnetfilter_conntrack-devel libnfnetlink-devel libnftnl-devel
@ -65,6 +65,7 @@ Header files for iproute.
%package nft
Summary: nft package for iproute
Requires: %{name} = %{version}-%{release}
Requires: %{name}-help
Obsoletes: iptables-compat < 1.6.2-4
%description nft
@ -85,6 +86,9 @@ rm -f include/linux/types.h
%make_build
%check
make check
%install
%make_install
@ -142,8 +146,6 @@ install -m 0755 iptables/iptables-apply.8 %{buildroot}%{_mandir}/man8
# Remove /etc/ethertypes (now part of setup)
rm -f %{buildroot}%{_sysconfdir}/ethertypes
touch %{buildroot}%{_libexecdir}/arptables-helper
touch %{buildroot}%{_mandir}/man8/arptables.8
touch %{buildroot}%{_mandir}/man8/arptables-save.8
touch %{buildroot}%{_mandir}/man8/arptables-restore.8
@ -213,17 +215,13 @@ for sfx in "" "-restore" "-save"; do
rm -f $manpfx$sfx.8.gz
fi
done
if [ "$(readlink -e $lepfx-helper)" == $lepfx-helper ]; then
rm -f $lepfx-helper
fi
%{_sbindir}/update-alternatives --install \
$pfx arptables $pfx-nft 10 \
--slave $pfx-save arptables-save $pfx-nft-save \
--slave $pfx-restore arptables-restore $pfx-nft-restore \
--slave $manpfx.8.gz arptables-man $manpfx-nft.8.gz \
--slave $manpfx-save.8.gz arptables-save-man $manpfx-nft-save.8.gz \
--slave $manpfx-restore.8.gz arptables-restore-man $manpfx-nft-restore.8.gz \
--slave $lepfx-helper arptables-helper $lepfx-nft-helper
--slave $manpfx-restore.8.gz arptables-restore-man $manpfx-nft-restore.8.gz
if [ x`rpm -qa firewalld` != x ]; then
firews=`systemctl status firewalld | grep Active | awk '{print $3}'`
@ -306,7 +304,6 @@ fi
%ghost %{_sbindir}/arptables
%ghost %{_sbindir}/arptables-save
%ghost %{_sbindir}/arptables-restore
%ghost %{_libexecdir}/arptables-helper
%files help
%defattr(-,root,root)
@ -326,6 +323,36 @@ fi
%{_mandir}/man8/xtables-legacy*
%changelog
* Mon Dec 16 2024 yanglu <yanglu72@h-partners.com> - 1.8.5-10
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:Revert fix correct the -n args show dismatch
* Wed Dec 04 2024 renwang <renwang@uniontech.com> - 1.8.5-9
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix correct the -n args show dismatch
* Mon Sep 30 2024 zhouyihang <zhouyihang3@h-partners.com> - 1.8.5-8
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix broken symbolic link
* Fri Jun 14 2024 xinghe <xinghe2@h-partners.com> - 1.8.5-7
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix license
* Wed Mar 22 2023 zhanghao <zhanghao383@huawei.com> - 1.8.5-6
- Type:feature
- ID:NA
- SUG:NA
- DESC:enabled DT test
* Thu Mar 09 2023 zhanghao <zhanghao383@huawei.com> - 1.8.5-5
- Type: bugfix
- ID: NA