Sophie

Sophie

distrib > Mageia > 5 > i586 > by-pkgid > e3aef7446683ee4a5f19d5243e76eb4e > files > 4

ebtables-2.0.10.4-6.mga5.src.rpm

%define realver 2.0.10-4

Summary:	A filtering tool for a bridging firewall
Name:		ebtables
Version:	2.0.10.4
Release:	%mkrel 6
Group:		System/Kernel and hardware
License:	GPLv2+
Source0:	%{name}-v%{realver}.tar.gz
# Add patch0 from fedora (fix permission install)
Patch0:		ebtables-2.0.8-norootinst.patch
Patch1:		ebtables-2.0.10-lsb.patch
URL:		http://ebtables.sourceforge.net/

%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%{realver}
%patch0 -p0 -b .nonroot-install
%patch1 -p1 -b .lsb

%build
%make \
    CFLAGS="%{optflags} -fPIC" \
    LIBDIR=/%_lib/ebtables BINDIR="/sbin" MANDIR="%{_mandir}"

%if %{?_with_static:1}%{?!_with_static:0}
%make \
    CFLAGS="%{optflags} -fPIC" \
    LIBDIR=/%_lib/ebtables \
    static
%endif

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

%makeinstall_std LIBDIR="/%{_lib}/ebtables" BINDIR="/sbin"  MANDIR="%{_mandir}"
%{__install} -D -m0644 ethertypes %{buildroot}%{_sysconfdir}/ethertypes 

%if %{?_with_static:1}%{?!_with_static:0}
%{__install} -D -m0755 static %{buildroot}/sbin/ebtables-static
%endif

sed -i "s|__EXEC_PATH__|/sbin|g" ebtables-save
%{__install} -m 0755 ebtables-save %{buildroot}/sbin/ebtables-save

sed -i "s|__EXEC_PATH__|/sbin/|g" ebtables.sysv; 
sed -i "s|__SYSCONFIG__|%_sysconfdir/sysconfig|g" ebtables.sysv
%{__install} -m 0755 ebtables.sysv %{buildroot}%{_initrddir}/ebtables

sed -i "s|__SYSCONFIG__|%_sysconfdir/sysconfig|g" ebtables-config
%{__install} -m 0600 ebtables-config %{buildroot}%{_sysconfdir}/sysconfig/ebtables-config



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




%changelog
* Wed Oct 15 2014 umeabot <umeabot> 2.0.10.4-6.mga5
+ Revision: 741536
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 2.0.10.4-5.mga5
+ Revision: 678916
- Mageia 5 Mass Rebuild

* Fri Oct 18 2013 umeabot <umeabot> 2.0.10.4-4.mga4
+ Revision: 503970
- Mageia 4 Mass Rebuild

* Fri Jan 11 2013 umeabot <umeabot> 2.0.10.4-3.mga3
+ Revision: 349299
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sat May 12 2012 colin <colin> 2.0.10.4-2.mga2
+ Revision: 235390
- Add LSB headers to initscripts (mga#5262)

* Mon Mar 05 2012 misc <misc> 2.0.10.4-1.mga2
+ Revision: 218640
- update patch 0 for new version of the software
- new version 2.0.10.4

* Sun May 15 2011 pterjan <pterjan> 2.0.9.2-3.mga1
+ Revision: 98977
- Rebuild for fixed find-requires

* Thu Apr 21 2011 cjw <cjw> 2.0.9.2-2.mga1
+ Revision: 89364
- simplify install
- imported package ebtables

  + misc <misc>
    - reenable stack protection, as this date back to 2.0.8-1, and the comment say
      'disable stack protector to allow build'. Since it built fine, the problem is gone.
    - clean old comments
    - add coment about stack protection disabled
    - do not use weird variable and use a better sed expression
    - fix license


* Fri Jul 23 2010 Erwan Velu <erwan@mandriva.org> 2.0.9.2-1mdv2011.0
+ Revision: 557117
- ebtables was missing making package useless

* Thu Mar 25 2010 Sandro Cazzaniga <kharec@mandriva.org> 2.0.9.2-1mdv2010.1
+ Revision: 527541
- update to 2.0.9.2

* Sun Nov 22 2009 Olivier Thauvin <nanardon@mandriva.org> 2.0.9.1-1mdv2010.1
+ Revision: 469086
- 2.0.9.1

* Tue Jul 28 2009 Frederik Himpe <fhimpe@mandriva.org> 2.0.9-1mdv2010.0
+ Revision: 402579
- update to new version 2.0.9

* Thu Aug 07 2008 Thierry Vignaud <tv@mandriva.org> 2.0.8_2-4mdv2009.0
+ Revision: 266598
- rebuild early 2009.0 package (before pixel changes)

* Fri May 16 2008 Oden Eriksson <oeriksson@mandriva.com> 2.0.8_2-3mdv2009.0
+ Revision: 208134
- rebuild

* Wed Jan 16 2008 Thierry Vignaud <tv@mandriva.org> 2.0.8_2-2mdv2008.1
+ Revision: 153721
- remove useless kernel require
- kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Sun Oct 28 2007 Olivier Thauvin <nanardon@mandriva.org> 2.0.8_2-1mdv2008.1
+ Revision: 102711
- 2.0.8-2

* Wed Jul 04 2007 Olivier Thauvin <nanardon@mandriva.org> 2.0.8_1-2mdv2008.0
+ Revision: 47832
- disable stack protector to allow build
- 2.0.8-1
- provide it with dyn lib instead static to have all binaries


* Fri Nov 03 2006 Christiaan Welvaart <cjw@daneel.dyndns.org>
+ 2006-11-03 16:42:47 (76278)
- do not include extension libs but build a proper binary

* Sun Aug 06 2006 Olivier Thauvin <nanardon@mandriva.org>
+ 2006-08-05 14:34:21 (53291)
- 2.0.8 rc2

* Sun Aug 06 2006 Olivier Thauvin <nanardon@mandriva.org>
+ 2006-08-05 14:29:03 (53290)
Import ebtables

* Sat Dec 31 2005 Olivier Thauvin <nanardon@mandriva.org> 2.0.8-0.rc1-1mdk
- 2.0.8-rc1

* 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