Compare commits
No commits in common. "914e763e4e22f417d82f8ae5801102e523943d0d" and "9577676ef50ac9dfa0c383e454fd08d6e4ea2bda" have entirely different histories.
914e763e4e
...
9577676ef5
@ -1,18 +1,20 @@
|
||||
Name: arptables
|
||||
Version: 0.0.5
|
||||
Release: 6
|
||||
Release: 1
|
||||
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 make
|
||||
BuildRequires: gcc perl-generators systemd
|
||||
%systemd_requires
|
||||
|
||||
Obsoletes: arptables_jf < 0.0.8-37
|
||||
@ -40,7 +42,6 @@ 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
|
||||
@ -49,16 +50,8 @@ ln -s arptables-legacy $RPM_BUILD_ROOT/%{_sbindir}/arptables
|
||||
%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
|
||||
@ -71,36 +64,6 @@ fi
|
||||
%{_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