2007-01-16 00:11:02 +01:00
|
|
|
#
|
2007-10-13 00:07:43 +02:00
|
|
|
# spec file for package ebtables (Version v2.0.8)
|
2007-01-16 00:11:02 +01:00
|
|
|
#
|
2007-08-09 18:41:37 +02:00
|
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:11:02 +01:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
2007-08-09 18:41:37 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-16 00:11:02 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2007-08-09 18:41:37 +02:00
|
|
|
Name: ebtables
|
|
|
|
License: GPL v2 or later
|
|
|
|
Group: Productivity/Networking/Security
|
2007-10-13 00:07:43 +02:00
|
|
|
AutoReqProv: on
|
|
|
|
Version: v2.0.8
|
2007-10-25 01:58:48 +02:00
|
|
|
Release: 6
|
2007-08-09 18:41:37 +02:00
|
|
|
Summary: Ethernet Bridge Tables
|
2007-10-13 00:07:43 +02:00
|
|
|
Source: %{name}-%{version}-2.tar.bz2
|
|
|
|
Patch0: %{name}-%{version}-makefile.diff
|
|
|
|
Patch1: %{name}-%{version}-initscript.diff
|
|
|
|
Url: http://ebtables.sourceforge.net/
|
2007-08-09 18:41:37 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-16 00:11:02 +01:00
|
|
|
|
|
|
|
%description
|
2007-08-09 18:41:37 +02:00
|
|
|
A firewalling tool to transparently filter network traffic passing a
|
2007-01-16 00:11:02 +01:00
|
|
|
bridge. The filtering possibilities are limited to link layer filtering
|
|
|
|
and some basic filtering on higher network layers. The ebtables tool
|
|
|
|
can be used together with the other Linux filtering tools, like
|
|
|
|
iptables. There are no incompatibility issues.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Bart De Schuymer <bdschuym@pandora.be>
|
|
|
|
Nick Fedchik <nick@fedchik.org.ua>
|
|
|
|
Grzegorz Borowiak <grzes@gnu.univ.gda.pl>
|
|
|
|
|
|
|
|
%prep
|
2007-10-13 00:07:43 +02:00
|
|
|
%setup -q -n %{name}-%{version}-2
|
|
|
|
%patch0
|
2007-01-16 00:11:02 +01:00
|
|
|
%patch1
|
|
|
|
|
|
|
|
%build
|
2007-08-09 18:41:37 +02:00
|
|
|
rm -rf include/linux/
|
2007-10-13 00:07:43 +02:00
|
|
|
make \
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" \
|
|
|
|
CXXFLAGS="$RPM_OPT_FLAGS" \
|
|
|
|
LIBDIR=%{_libdir} \
|
|
|
|
MANDIR=%{_mandir} \
|
|
|
|
BINDIR=%{_sbindir} \
|
|
|
|
ETCDIR=%{_sysconfdir} \
|
|
|
|
INITDIR=%{_sysconfdir}/init.d \
|
|
|
|
SYSCONFIGDIR=%{_sysconfdir}
|
2007-01-16 00:11:02 +01:00
|
|
|
|
|
|
|
%install
|
2007-10-13 00:07:43 +02:00
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_sbindir}
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}/init.d
|
|
|
|
make \
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT \
|
|
|
|
LIBDIR=%{_libdir} \
|
|
|
|
MANDIR=%{_mandir} \
|
|
|
|
BINDIR=%{_sbindir} \
|
|
|
|
ETCDIR=%{_sysconfdir} \
|
|
|
|
INITDIR=%{_sysconfdir}/init.d \
|
|
|
|
SYSCONFIGDIR=%{_sysconfdir} \
|
|
|
|
install
|
|
|
|
ln -sf %{_sysconfdir}/init.d/ebtables $RPM_BUILD_ROOT%{_sbindir}/rcebtables
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%stop_on_removal ebtables
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%restart_on_update ebtables
|
|
|
|
%insserv_cleanup
|
2007-01-16 00:11:02 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_mandir}/man8/ebtables.8*
|
2007-10-13 00:07:43 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/ebtables-config
|
|
|
|
%config(noreplace) %{_sysconfdir}/ethertypes
|
|
|
|
%{_sysconfdir}/init.d/ebtables
|
2007-10-17 17:34:39 +02:00
|
|
|
%{_libdir}/*.so
|
2007-10-13 00:07:43 +02:00
|
|
|
%{_sbindir}/ebtables
|
|
|
|
%{_sbindir}/ebtables-restore
|
|
|
|
%{_sbindir}/ebtables-save
|
|
|
|
%{_sbindir}/rcebtables
|
2007-08-09 18:41:37 +02:00
|
|
|
%changelog
|
2007-10-25 01:58:48 +02:00
|
|
|
* Wed Oct 24 2007 - ro@suse.de
|
|
|
|
- fix build (use gcc not ld directly)
|
2007-10-17 17:34:39 +02:00
|
|
|
* Wed Oct 17 2007 - prusnak@suse.cz
|
|
|
|
- fixed specfile not to include debug files in normal package
|
2007-10-13 00:07:43 +02:00
|
|
|
* Fri Oct 12 2007 - prusnak@suse.cz
|
|
|
|
- update to 2.0.8-2
|
|
|
|
* add sysconfig support (ebtables-save, ebtables-restore, etc)
|
|
|
|
* add ulog watcher
|
|
|
|
* use shared libraries (making the code easily usable by third parties)
|
|
|
|
* improve speed
|
|
|
|
* bugfixes, dccp and sctp support
|
|
|
|
- dropped obsolete patches:
|
|
|
|
* gcc.diff (included in update)
|
2007-08-09 18:41:37 +02:00
|
|
|
* Thu Aug 09 2007 - olh@suse.de
|
|
|
|
- remove private include/linux/ files
|
2007-01-16 00:11:02 +01:00
|
|
|
* Wed Jan 25 2006 - mls@suse.de
|
|
|
|
- converted neededforbuild to BuildRequires
|
|
|
|
* Wed Jun 29 2005 - meissner@suse.de
|
|
|
|
- use RPM_OPT_FLAGS.
|
|
|
|
* Thu Apr 21 2005 - postadal@suse.cz
|
|
|
|
- fixed for gcc 4.0
|
|
|
|
* Fri Jun 18 2004 - postadal@suse.cz
|
|
|
|
- new package v2.0.6
|