|
|
2070a3 |
Summary: User space tool to set up tables of ARP rules in kernel
|
|
|
2070a3 |
Name: arptables
|
|
|
2070a3 |
Version: 0.0.4
|
|
|
2070a3 |
Release: 8%{?dist}
|
|
|
2070a3 |
License: GPLv2+
|
|
|
2070a3 |
Group: System Environment/Base
|
|
|
2070a3 |
|
|
|
2070a3 |
URL: http://ebtables.sourceforge.net/
|
|
|
2070a3 |
Source0: http://downloads.sourceforge.net/ebtables/arptables/arptables-v%{version}.tar.gz
|
|
|
2070a3 |
Source1: arptables.service
|
|
|
2070a3 |
Source2: arptables-helper
|
|
|
2070a3 |
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
|
|
|
2070a3 |
# http://marc.info/?l=netfilter-devel&m=137908241011194&w=2
|
|
|
2070a3 |
Source3: COPYING
|
|
|
2070a3 |
Source4: arptables-save.8
|
|
|
2070a3 |
Source5: arptables-restore.8
|
|
|
2070a3 |
|
|
|
2070a3 |
Patch1: arptables-0.0.4-covscan_fix01_simple.patch
|
|
|
2070a3 |
Patch2: arptables-0.0.4-covscan_fix02_buf_overflow.patch
|
|
|
2070a3 |
Patch3: arptables-0.0.4-man-install.patch
|
|
|
2070a3 |
Patch4: arptables-0.0.4-set-counters-option.patch
|
|
|
2070a3 |
|
|
|
2070a3 |
BuildRequires: systemd
|
|
|
2070a3 |
Requires(post): systemd
|
|
|
2070a3 |
Requires(preun): systemd
|
|
|
2070a3 |
Requires(postun): systemd
|
|
|
2070a3 |
|
|
|
2070a3 |
Obsoletes: arptables_jf < 0.0.8-37
|
|
|
2070a3 |
Provides: arptables_jf = 0.0.8-37
|
|
|
2070a3 |
|
|
|
2070a3 |
%description
|
|
|
2070a3 |
The arptables is a user space tool used to set up and maintain
|
|
|
2070a3 |
the tables of ARP rules in the Linux kernel. These rules inspect
|
|
|
2070a3 |
the ARP frames which they see. arptables is analogous to the iptables
|
|
|
2070a3 |
user space tool, but is less complicated.
|
|
|
2070a3 |
|
|
|
2070a3 |
%prep
|
|
|
2070a3 |
%setup -q -n arptables-v%{version}
|
|
|
2070a3 |
%patch1 -p3 -b .covscan_fix01_simple
|
|
|
2070a3 |
%patch2 -p3 -b .covscan_fix02_buf_overflow
|
|
|
2070a3 |
%patch3 -p3 -b .man-install
|
|
|
2070a3 |
%patch4 -p3 -b .set-counters-option
|
|
|
2070a3 |
|
|
|
2070a3 |
cp %{SOURCE3} COPYING
|
|
|
2070a3 |
cp %{SOURCE4} .
|
|
|
2070a3 |
cp %{SOURCE5} .
|
|
|
2070a3 |
|
|
|
2070a3 |
%build
|
|
|
2070a3 |
# Makefile uses $(KERNEL_DIR) to redefine where to look for header files.
|
|
|
2070a3 |
# But when it's set to standard system include directory gcc ignores it
|
|
|
2070a3 |
# (see gcc(1)). It however looks that the code is not ready for using
|
|
|
2070a3 |
# system headers (instead included ones) so we don't use this option.
|
|
|
2070a3 |
make all 'COPT_FLAGS=%{optflags}' %{_smp_mflags}
|
|
|
2070a3 |
|
|
|
2070a3 |
%install
|
|
|
2070a3 |
make install DESTDIR=%{buildroot} BINDIR=%{_sbindir} MANDIR=%{_mandir}
|
|
|
2070a3 |
|
|
|
2070a3 |
install -p -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/arptables.service
|
|
|
2070a3 |
mkdir -p %{buildroot}%{_libexecdir}/
|
|
|
2070a3 |
install -p -D -m 755 %{SOURCE2} %{buildroot}%{_libexecdir}/
|
|
|
2070a3 |
rm -rf %{buildroot}%{_initrddir}
|
|
|
2070a3 |
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
|
|
|
2070a3 |
echo '# Configure prior to use' > %{buildroot}%{_sysconfdir}/sysconfig/arptables
|
|
|
2070a3 |
|
|
|
2070a3 |
%post
|
|
|
2070a3 |
%systemd_post arptables.service
|
|
|
2070a3 |
|
|
|
2070a3 |
%preun
|
|
|
2070a3 |
%systemd_preun arptables.service
|
|
|
2070a3 |
|
|
|
2070a3 |
%postun
|
|
|
2070a3 |
%systemd_postun_with_restart arptables.service
|
|
|
2070a3 |
|
|
|
2070a3 |
|
|
|
2070a3 |
%files
|
|
|
2070a3 |
%doc COPYING
|
|
|
2070a3 |
%{_sbindir}/arptables*
|
|
|
2070a3 |
%{_libexecdir}/arptables-helper
|
|
|
2070a3 |
%{_mandir}/*/arptables*
|
|
|
2070a3 |
%{_unitdir}/arptables.service
|
|
|
2070a3 |
%config(noreplace) %{_sysconfdir}/sysconfig/arptables
|
|
|
2070a3 |
|
|
|
2070a3 |
%changelog
|
|
|
2070a3 |
* Wed Jun 8 2016 Jesper Dangaard Brouer <brouer@redhat.com> - 0.0.4-8
|
|
|
2070a3 |
- Add missing long option --set-counters and update documentation
|
|
|
2070a3 |
Corrosponding short option -c was implemented, but undocumented.
|
|
|
2070a3 |
Resolves: rhbz#1050854
|
|
|
2070a3 |
|
|
|
2070a3 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.0.4-7
|
|
|
2070a3 |
- Mass rebuild 2014-01-24
|
|
|
2070a3 |
|
|
|
2070a3 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.0.4-6
|
|
|
2070a3 |
- Mass rebuild 2013-12-27
|
|
|
2070a3 |
|
|
|
2070a3 |
* Thu Nov 14 2013 Jesper Dangaard Brouer <brouer@redhat.com> - 0.0.4-5
|
|
|
2070a3 |
- fix issues reported by static analysis tools
|
|
|
2070a3 |
Resolves: rhbz#1027762
|
|
|
2070a3 |
- add man-pages for arptables-{save,restore}
|
|
|
2070a3 |
Resolves: rhbz#1025726
|
|
|
2070a3 |
|
|
|
2070a3 |
* Mon Sep 16 2013 Jiri Popelka <jpopelka@redhat.com> - 0.0.4-4
|
|
|
2070a3 |
- revert previous change, the code is not ready for this
|
|
|
2070a3 |
|
|
|
2070a3 |
* Mon Sep 16 2013 Jiri Popelka <jpopelka@redhat.com> - 0.0.4-3
|
|
|
2070a3 |
- use system kernel headers
|
|
|
2070a3 |
|
|
|
2070a3 |
* Fri Sep 13 2013 Jiri Popelka <jpopelka@redhat.com> - 0.0.4-2
|
|
|
2070a3 |
- install with '-p' (#1007964)
|
|
|
2070a3 |
|
|
|
2070a3 |
* Fri Sep 13 2013 Jiri Popelka <jpopelka@redhat.com> - 0.0.4-1
|
|
|
2070a3 |
- renamed arptables_jf to arptables
|