|
|
|
@ -1,16 +1,19 @@
|
|
|
|
|
%global ebminor 4
|
|
|
|
|
|
|
|
|
|
Name: ebtables
|
|
|
|
|
Version: 2.0.10
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Summary: Ethernet Bridge frame table administration tool
|
|
|
|
|
License: GPLv2+
|
|
|
|
|
Group: System Environment/Base
|
|
|
|
|
URL: http://ebtables.sourceforge.net/
|
|
|
|
|
Source0: http://downloads.sourceforge.net/ebtables/ebtables-v%{version}-2.tar.gz
|
|
|
|
|
Source0: http://downloads.sourceforge.net/ebtables/ebtables-v%{version}-%{ebminor}.tar.gz
|
|
|
|
|
Source1: ebtables-save
|
|
|
|
|
Requires(pre): /sbin/chkconfig
|
|
|
|
|
Requires(postun): /sbin/service
|
|
|
|
|
Patch0: ebtables-2.0.10-norootinst.patch
|
|
|
|
|
Patch3: ebtables-2.0.9-lsb.patch
|
|
|
|
|
Patch4: ebtables-2.0.10-linkfix.patch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Ethernet bridge tables is a firewalling tool to transparently filter network
|
|
|
|
@ -24,9 +27,11 @@ The ebtables tool can be used together with the other Linux filtering tools,
|
|
|
|
|
like iptables. There are no known incompatibility issues.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n ebtables-v%{version}-2
|
|
|
|
|
%setup -q -n ebtables-v%{version}-%{ebminor}
|
|
|
|
|
%patch0 -p1 -b .norootinst
|
|
|
|
|
%patch3 -p1 -b .lsb
|
|
|
|
|
# extension modules need to link to libebtc.so for ebt_errormsg
|
|
|
|
|
%patch4 -p1 -b .linkfix
|
|
|
|
|
|
|
|
|
|
# Convert to UTF-8
|
|
|
|
|
f=THANKS; iconv -f iso-8859-1 -t utf-8 $f -o $f.utf8 ; mv $f.utf8 $f
|
|
|
|
@ -47,6 +52,9 @@ touch $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/ebtables.broute
|
|
|
|
|
rm -f $RPM_BUILD_ROOT/sbin/ebtables-save
|
|
|
|
|
install %{SOURCE1} $RPM_BUILD_ROOT/sbin/ebtables-save
|
|
|
|
|
|
|
|
|
|
# move libebtc.so into the ldpath
|
|
|
|
|
mv %{buildroot}/%{_lib}/ebtables/libebtc.so %{buildroot}/%{_lib}/
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
/sbin/chkconfig --add ebtables
|
|
|
|
|
/sbin/ldconfig
|
|
|
|
@ -70,6 +78,7 @@ fi
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/ethertypes
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/ebtables-config
|
|
|
|
|
%{_initrddir}/ebtables
|
|
|
|
|
/%{_lib}/libebtc.so
|
|
|
|
|
/%{_lib}/ebtables/
|
|
|
|
|
/sbin/ebtables*
|
|
|
|
|
%ghost %{_sysconfdir}/sysconfig/ebtables.filter
|
|
|
|
@ -77,6 +86,10 @@ fi
|
|
|
|
|
%ghost %{_sysconfdir}/sysconfig/ebtables.broute
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Apr 5 2012 Tom Callaway <spot@fedoraproject.org> - 2.0.10-5
|
|
|
|
|
- update to 2.0.10-4 (upstream numbering is goofy)
|
|
|
|
|
- fix missing symbol issue with extension modules (bz810006)
|
|
|
|
|
|
|
|
|
|
* Thu Feb 16 2012 Thomas Woerner <twoerner@redhat.com> - 2.0.10-4
|
|
|
|
|
- replaced ebtables-save perl script by bash script to get rid of the perl
|
|
|
|
|
requirement
|
|
|
|
|