2019-09-30 10:31:37 -04:00
|
|
|
Name: arptables
|
2020-06-02 06:02:54 +00:00
|
|
|
Version: 0.0.5
|
2021-08-28 16:13:58 +08:00
|
|
|
Release: 4
|
2019-09-30 10:31:37 -04:00
|
|
|
Summary: Administration tool for arp packet filtering
|
|
|
|
|
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
URL: https://git.netfilter.org/arptables/
|
2020-09-10 16:29:25 +08:00
|
|
|
Source0: http://ftp.netfilter.org/pub/arptables/%{name}-%{version}.tar.gz
|
2019-09-30 10:31:37 -04:00
|
|
|
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
|
|
|
|
|
%systemd_requires
|
|
|
|
|
|
|
|
|
|
Obsoletes: arptables_jf < 0.0.8-37
|
|
|
|
|
Provides: arptables_jf = 0.0.8-37
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Arptables is used to set up, maintain, and inspect the tables of
|
|
|
|
|
ARP packet filter rules in the Linux kernel. Several different
|
|
|
|
|
tables may be defined. Each table contains a number of built-in
|
|
|
|
|
chains and may also contain user-defined chains.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-06-02 06:02:54 +00:00
|
|
|
%autosetup -n %{name}-%{version} -p1
|
2019-09-30 10:31:37 -04:00
|
|
|
cp %{SOURCE3} COPYING
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
make all 'COPT_FLAGS=%{optflags}' 'LDFLAGS=%{build_ldflags}' %{_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT BINDIR=%{_sbindir} MANDIR=%{_mandir}
|
|
|
|
|
mkdir $RPM_BUILD_ROOT%{_libexecdir}/
|
|
|
|
|
install -p -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_libexecdir}/
|
|
|
|
|
install -p -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}/arptables.service
|
2020-06-02 06:02:54 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
|
2019-09-30 10:31:37 -04:00
|
|
|
echo '# Configure prior to use' > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post %{name}.service
|
2021-08-28 16:13:58 +08:00
|
|
|
update-alternatives --install /usr/sbin/arptables arptables /usr/sbin/arptables-legacy 10
|
2019-09-30 10:31:37 -04:00
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun %{name}.service
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%systemd_postun_with_restart %{name}.service
|
2021-08-28 16:13:58 +08:00
|
|
|
update-alternatives --remove arptables /usr/sbin/arptables-legacy
|
2019-09-30 10:31:37 -04:00
|
|
|
|
|
|
|
|
%files
|
2019-11-06 19:01:48 +08:00
|
|
|
%license COPYING
|
2019-09-30 10:31:37 -04:00
|
|
|
%{_libexecdir}/%{name}-helper
|
|
|
|
|
%{_unitdir}/%{name}.service
|
|
|
|
|
%{_sbindir}/%{name}*
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
|
|
|
|
%exclude %{_initrddir}/%{name}
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%{_mandir}/man8/*.gz
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-08-28 16:13:58 +08:00
|
|
|
* Sat Aug 28 2021 gaihuiying <gaihuiying1@huawei.com> - 0.0.5-4
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:fix arptables service failed
|
|
|
|
|
|
2021-03-25 10:49:07 +08:00
|
|
|
* Thu Mar 25 2021 liulong <liulong20@huawei.com> - 0.0.5-3
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:modify the changelog description.
|
|
|
|
|
|
2020-12-15 10:45:07 +08:00
|
|
|
* Tue Dec 15 2020 xihaochen <xihaochen@huawei.com> - 0.0.5-2
|
|
|
|
|
- Type:requirements
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
2021-03-25 10:49:07 +08:00
|
|
|
- DESC:remove sensitive keywords
|
2020-12-15 10:45:07 +08:00
|
|
|
|
2020-09-10 16:29:25 +08:00
|
|
|
* Thu Sep 10 2020 hanzhijun <hanzhijun1@huawei.com> - 0.0.5-1
|
|
|
|
|
- fix source url problem
|
|
|
|
|
|
2020-06-02 06:02:54 +00:00
|
|
|
* Tue Jun 02 2020 SimpleUpdate Robot <tc@openeuler.org>
|
|
|
|
|
- Update to version 0.0.5
|
|
|
|
|
|
2019-11-06 19:01:48 +08:00
|
|
|
* Sat Oct 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.0.4-16
|
|
|
|
|
- Type:bugfix
|
|
|
|
|
- Id:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:change the directory of the license files
|
|
|
|
|
|
2019-09-30 10:31:37 -04:00
|
|
|
* Thu Sep 5 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.0.4-15
|
|
|
|
|
- Package Init
|
|
|
|
|
|