!48 /etc/ethertypes has been moved into the setup package

From: @XWwalker 
Reviewed-by: @zengwefeng 
Signed-off-by: @zengwefeng
This commit is contained in:
openeuler-ci-bot 2022-06-30 09:07:05 +00:00 committed by Gitee
commit 09c43126ff
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2,7 +2,7 @@
%global legacy_actions %{_libexecdir}/initscripts/legacy-actions %global legacy_actions %{_libexecdir}/initscripts/legacy-actions
Name: iptables Name: iptables
Version: 1.8.7 Version: 1.8.7
Release: 5 Release: 6
Summary: IP packet filter administration utilities Summary: IP packet filter administration utilities
License: GPLv2 and Artistic Licence 2.0 and ISC License: GPLv2 and Artistic Licence 2.0 and ISC
URL: https://www.netfilter.org/ URL: https://www.netfilter.org/
@ -18,6 +18,7 @@ BuildRequires: libmnl-devel libnetfilter_conntrack-devel libnfnetlink-devel l
BuildRequires: autogen autoconf automake libtool BuildRequires: autogen autoconf automake libtool
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
Conflicts: setup < 2.10.4-1
Requires(post): %{_sbindir}/update-alternatives Requires(post): %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives Requires(postun): %{_sbindir}/update-alternatives
@ -129,6 +130,9 @@ install -m 0755 -c ip6tabes.panic-legacy %{buildroot}/%{legacy_actions}/ip6table
install -m 0755 iptables/iptables-apply %{buildroot}%{_sbindir} install -m 0755 iptables/iptables-apply %{buildroot}%{_sbindir}
install -m 0755 iptables/iptables-apply.8 %{buildroot}%{_mandir}/man8 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}%{_libexecdir}/arptables-helper
touch %{buildroot}%{_mandir}/man8/arptables.8 touch %{buildroot}%{_mandir}/man8/arptables.8
@ -231,7 +235,6 @@ fi
%defattr(-,root,root) %defattr(-,root,root)
%license COPYING %license COPYING
%{script_path}/ip*tables.init %{script_path}/ip*tables.init
%{_sysconfdir}/ethertypes
%config(noreplace) %{_sysconfdir}/sysconfig/* %config(noreplace) %{_sysconfdir}/sysconfig/*
%{_sbindir}/nfnl_osf %{_sbindir}/nfnl_osf
%{_sbindir}/nfbpf_* %{_sbindir}/nfbpf_*
@ -314,6 +317,12 @@ fi
%{_mandir}/man8/xtables-legacy* %{_mandir}/man8/xtables-legacy*
%changelog %changelog
* Thu Jun 30 2022 xingwei <xingwei14@h-partners.com> - 1.8.7-6
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:/etc/ethertypes has been moved into the setup package
* Sat Mar 26 2022 yanglu <yanglu72@h-partners.com> - 1.8.7-5 * Sat Mar 26 2022 yanglu <yanglu72@h-partners.com> - 1.8.7-5
- Type:bugfix - Type:bugfix
- ID:NA - ID:NA