Summary: User space tool to set up tables of ARP rules in kernel Name: arptables Version: 0.0.4 Release: 3%{?dist} License: GPLv2+ Group: System Environment/Base URL: http://ebtables.sourceforge.net/ Source0: http://downloads.sourceforge.net/ebtables/arptables/arptables-v%{version}.tar.gz Source1: arptables.service Source2: arptables-helper # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt # http://marc.info/?l=netfilter-devel&m=137908241011194&w=2 Source3: COPYING BuildRequires: kernel-headers BuildRequires: systemd Requires(post): systemd Requires(preun): systemd Requires(postun): systemd Obsoletes: arptables_jf < 0.0.8-37 Provides: arptables_jf = 0.0.8-37 %description The arptables is a user space tool used to set up and maintain the tables of ARP rules in the Linux kernel. These rules inspect the ARP frames which they see. arptables is analogous to the iptables user space tool, but is less complicated. %prep %setup -q -n arptables-v%{version} cp %{SOURCE3} COPYING %build make all 'COPT_FLAGS=%{optflags}' KERNEL_DIR=%{_prefix} %{_smp_mflags} %install make install DESTDIR=%{buildroot} BINDIR=%{_sbindir} MANDIR=%{_mandir} install -p -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/arptables.service mkdir -p %{buildroot}%{_libexecdir}/ install -p -D -m 755 %{SOURCE2} %{buildroot}%{_libexecdir}/ rm -rf %{buildroot}%{_initrddir} mkdir -p %{buildroot}%{_sysconfdir}/sysconfig echo '# Configure prior to use' > %{buildroot}%{_sysconfdir}/sysconfig/arptables %post %systemd_post arptables.service %preun %systemd_preun arptables.service %postun %systemd_postun_with_restart arptables.service %files %doc COPYING %{_sbindir}/arptables* %{_libexecdir}/arptables-helper %{_mandir}/*/arptables* %{_unitdir}/arptables.service %config(noreplace) %{_sysconfdir}/sysconfig/arptables %changelog * Mon Sep 16 2013 Jiri Popelka - 0.0.4-3 - use system kernel headers * Fri Sep 13 2013 Jiri Popelka - 0.0.4-2 - install with '-p' (#1007964) * Fri Sep 13 2013 Jiri Popelka - 0.0.4-1 - renamed arptables_jf to arptables