%define pkgver %(echo %version | tr _ -) %define pkgdirver %(echo %pkgver | tr . -) Name: ebtables Version: 2.0.10_4 Release: 2mamba Summary: A filtering tool for a Linux-based bridging firewall Group: Network/Security Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://ebtables.sourceforge.net/ Source: http://downloads.sourceforge.net/project/ebtables/ebtables/ebtables-%{pkgdirver}/ebtables-v%{pkgver}.tar.gz Patch0: ebtables-2.0.10-gcc-4.8.patch Patch1: ebtables-2.0.10-install-noroot.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: perl-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The ebtables program is a filtering tool for a Linux-based bridging firewall. It enables transparent filtering of network traffic passing through a Linux bridge. The filtering possibilities are limited to link layer filtering and some basic filtering on higher network layers. Advanced logging, MAC DNAT/SNAT and brouter facilities are also included. The ebtables tool can be combined with the other Linux filtering tools (iptables, ip6tables and arptables) to make a bridging firewall that is also capable of filtering these higher network layers. This is enabled through the bridge-netfilter architecture which is a part of the standard Linux kernel. %debug_package %prep %setup -q -n %{name}-v%{pkgver} %patch0 -p1 %patch1 -p1 %build %make LIBDIR=%{_libdir}/ebtables MANDIR=%{_mandir} BINDIR=%{_sbindir} %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall LIBDIR=%{_libdir}/ebtables MANDIR=%{_mandir} BINDIR=%{_sbindir} rm -rf %{buildroot}%{_sysconfdir}/ethertypes %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) #%{_sysconfdir}/ethertypes %{_initrddir}/ebtables %{_sbindir}/ebtables %{_sbindir}/ebtables-restore %{_sbindir}/ebtables-save %config(noreplace) %{_sysconfdir}/sysconfig/ebtables-config %dir %{_libdir}/ebtables %{_libdir}/ebtables/libebt_*.so %{_libdir}/ebtables/libebtable_broute.so %{_libdir}/ebtables/libebtable_filter.so %{_libdir}/ebtables/libebtable_nat.so %{_libdir}/ebtables/libebtc.so %{_mandir}/man8/ebtables.8* %doc COPYING THANKS %changelog * Tue Feb 09 2016 Silvan Calarco 2.0.10_4-2mamba - remove %{_sysconfdir}/ethertypes provided by iptables 1.6.0 * Wed Jun 11 2014 Silvan Calarco 2.0.10_4-1mamba - update to 2.0.10_4 * Sat May 03 2014 Silvan Calarco 2.0.10-1mamba - package created using the webbuild interface