!8 fix arptables service failed

From: @eaglegai
Reviewed-by: @zengwefeng
Signed-off-by: @zengwefeng
This commit is contained in:
openeuler-ci-bot 2021-08-28 08:40:21 +00:00 committed by Gitee
commit f210bcd7f4

View File

@ -1,6 +1,6 @@
Name: arptables
Version: 0.0.5
Release: 3
Release: 4
Summary: Administration tool for arp packet filtering
License: GPLv2+
@ -43,12 +43,14 @@ echo '# Configure prior to use' > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name
%post
%systemd_post %{name}.service
update-alternatives --install /usr/sbin/arptables arptables /usr/sbin/arptables-legacy 10
%preun
%systemd_preun %{name}.service
%postun
%systemd_postun_with_restart %{name}.service
update-alternatives --remove arptables /usr/sbin/arptables-legacy
%files
%license COPYING
@ -62,6 +64,12 @@ echo '# Configure prior to use' > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name
%{_mandir}/man8/*.gz
%changelog
* Sat Aug 28 2021 gaihuiying <gaihuiying1@huawei.com> - 0.0.5-4
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:fix arptables service failed
* Thu Mar 25 2021 liulong <liulong20@huawei.com> - 0.0.5-3
- Type:bugfix
- Id:NA