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