Sophie

Sophie

distrib > Mandriva > cs4.0 > x86_64 > by-pkgid > 57e991da4db4e679ded41284deb4270c > files > 3

ebtables-2.0.6-3mdk.src.rpm

%define	name	ebtables
%define version 2.0.6
%define release 3mdk

Summary:	A filtering tool for a bridging firewall
Name:		%{name}
Version:	%{version}
Release:	%{release}
Source:		%{name}-v%{version}.tar.bz2
Patch0:		ebtables-v2.0.6-gcc3_4.patch.bz2
Group:		System/Kernel and hardware
URL:		http://ebtables.sourceforge.net/
License:	GPL
#BuildRequires:  kernel-source >= 2.6.0
Requires:	kernel >= 2.6.0
BuildRoot:	%{_tmppath}/%{name}-v%{version}-root

%description
The ebtables program is a filtering tool for a bridging firewall.
The filtering is focussed on the Link Layer Ethernet frame fields.
Apart from filtering, it also gives the ability to alter the
Ethernet MAC addresses and implement a brouter. 

%prep

%setup -q -n %{name}-v%{version}
%patch0 -p1 -b .gcc3_4

%build

%make CFLAGS="%{optflags}"

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_mandir}/man8
install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}/sbin

install -m644 ebtables.8 %{buildroot}%{_mandir}/man8/
install -m644 ethertypes %{buildroot}%{_sysconfdir}/
install -m755 ebtables %{buildroot}/sbin/

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root,0755)
%doc ChangeLog INSTALL THANKS
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ethertypes
%attr(0755,root,root) /sbin/ebtables
%attr(0644,root,root) %{_mandir}/man8/ebtables.8*

%changelog
* Fri Dec 24 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 2.0.6-3mdk
- x-mas rebuild :)

* Tue Nov 02 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 2.0.6-2mdk
- patch0: fix build with gcc 3.4

* Tue Dec 09 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.0.6-1mdk
- initial cooker contrib