|
|
ebcdb6 |
Summary: User space tool to set up tables of ARP rules in kernel
|
|
|
ebcdb6 |
Name: arptables
|
|
|
ebcdb6 |
Version: 0.0.4
|
|
|
ebcdb6 |
Release: 4%{?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
|
|
|
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}
|
|
|
ebcdb6 |
|
|
|
ebcdb6 |
cp %{SOURCE3} COPYING
|
|
|
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
|
|
|
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
|