Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
914e763e4e
!14 [sync] PR-13: add the compilation dependency of make
From: @openeuler-sync-bot 
Reviewed-by: @seuzw 
Signed-off-by: @seuzw
2022-11-28 11:17:38 +00:00
yangl777
1cc1005632 add the compilation dependency of make
(cherry picked from commit 75ef8f6cbea47a9ac9fc09a8931ee530113bd324)
2022-11-28 17:42:29 +08:00
openeuler-ci-bot
38d03e9007
!10 fix post error when update versions
From: @eaglegai 
Reviewed-by: @seuzw 
Signed-off-by: @seuzw
2022-06-25 06:29:45 +00:00
eaglegai
9b53ab709d fix post error when update versions 2022-06-25 11:55:34 +08:00
openeuler-ci-bot
f210bcd7f4 !8 fix arptables service failed
From: @eaglegai
Reviewed-by: @zengwefeng
Signed-off-by: @zengwefeng
2021-08-28 08:40:21 +00:00
eaglegai
0a81691c66 fix arptables service failed 2021-08-28 16:13:58 +08:00
openeuler-ci-bot
e86f94e5d3 !7 Modify the changelog description.
From: @liuzy518
Reviewed-by: @zengwefeng
Signed-off-by: @zengwefeng
2021-03-25 15:32:12 +08:00
liuzy518
c8549748af arptables:modify the changelog description.
Signed-off-by: liuzy518 <570407222@qq.com>
2021-03-25 10:49:07 +08:00
openeuler-ci-bot
288693ea73 !5 Remove the fedora29 keyword
From: @haochenstar
Reviewed-by: @zengwefeng
Signed-off-by: @zengwefeng
2020-12-15 11:43:02 +08:00
haochenstar
ca6d47607e remove fedora29 keywords 2020-12-15 11:24:12 +08:00

View File

@ -1,20 +1,18 @@
Name: arptables
Version: 0.0.5
Release: 1
Release: 6
Summary: Administration tool for arp packet filtering
License: GPLv2+
URL: https://git.netfilter.org/arptables/
Source0: http://ftp.netfilter.org/pub/arptables/%{name}-%{version}.tar.gz
# Source1 and Source2 from fedora 29 are used for
# automates a packet filtering firewall with arptables
Source1: arptables-helper
Source2: arptables.service
# GNU GENERAL PUBLIC LICENSE is from :
# https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
Source3: COPYING
BuildRequires: gcc perl-generators systemd
BuildRequires: gcc perl-generators systemd make
%systemd_requires
Obsoletes: arptables_jf < 0.0.8-37
@ -42,6 +40,7 @@ install -p -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_libexecdir}/
install -p -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}/arptables.service
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
echo '# Configure prior to use' > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}
ln -s arptables-legacy $RPM_BUILD_ROOT/%{_sbindir}/arptables
%post
%systemd_post %{name}.service
@ -50,8 +49,16 @@ echo '# Configure prior to use' > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name
%systemd_preun %{name}.service
%postun
if [ $1 -eq 1 ] && [ -x /usr/sbin/arptables-legacy ] && [ ! -h /usr/sbin/arptables ];then
ln -s /usr/sbin/arptables-legacy /usr/sbin/arptables
fi
%systemd_postun_with_restart %{name}.service
%posttrans
if [ -x /usr/sbin/arptables-legacy ] && [ ! -h /usr/sbin/arptables ];then
ln -s /usr/sbin/arptables-legacy /usr/sbin/arptables
fi
%files
%license COPYING
%{_libexecdir}/%{name}-helper
@ -64,6 +71,36 @@ echo '# Configure prior to use' > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name
%{_mandir}/man8/*.gz
%changelog
* Mon Nov 28 2022 yanglu <yanglu72@h-partners.com> - 0.0.5-6
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:add the compilation dependency of make
* Sat Jun 25 2022 gaihuiying <eaglegai@163.com> - 0.0.5-5
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:fix post error when update versions
* 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
- SUG:NA
- DESC:modify the changelog description.
* Tue Dec 15 2020 xihaochen <xihaochen@huawei.com> - 0.0.5-2
- Type:requirements
- Id:NA
- SUG:NA
- DESC:remove sensitive keywords
* Thu Sep 10 2020 hanzhijun <hanzhijun1@huawei.com> - 0.0.5-1
- fix source url problem