Compare commits
10 Commits
9577676ef5
...
914e763e4e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
914e763e4e | ||
|
|
1cc1005632 | ||
|
|
38d03e9007 | ||
|
|
9b53ab709d | ||
|
|
f210bcd7f4 | ||
|
|
0a81691c66 | ||
|
|
e86f94e5d3 | ||
|
|
c8549748af | ||
|
|
288693ea73 | ||
|
|
ca6d47607e |
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user