2007-01-16 00:11:02 +01:00
|
|
|
#
|
2011-06-01 09:32:44 +02:00
|
|
|
# spec file for package ebtables
|
2007-01-16 00:11:02 +01:00
|
|
|
#
|
2011-06-01 09:32:44 +02:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:11:02 +01:00
|
|
|
#
|
2008-09-01 02:30:46 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
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
|
|
|
#
|
|
|
|
|
|
|
|
|
2008-09-01 02:30:46 +02:00
|
|
|
|
2007-08-09 18:41:37 +02:00
|
|
|
Name: ebtables
|
2011-07-11 01:06:42 +02:00
|
|
|
Version: 2.0.10.1
|
2011-06-14 12:09:23 +02:00
|
|
|
Release: 1
|
2011-06-06 13:54:04 +02:00
|
|
|
License: GPLv2
|
2007-08-09 18:41:37 +02:00
|
|
|
Summary: Ethernet Bridge Tables
|
2011-07-19 22:47:36 +02:00
|
|
|
URL: http://ebtables.sf.net/
|
2011-06-06 13:54:04 +02:00
|
|
|
Group: Productivity/Networking/Security
|
2011-07-11 01:06:42 +02:00
|
|
|
Source: %name-v2.0.10-1.tar.xz
|
2011-07-11 01:07:58 +02:00
|
|
|
Patch0: %name-v2.0.8-makefile.diff
|
|
|
|
Patch1: %name-v2.0.8-initscript.diff
|
2011-07-11 02:25:50 +02:00
|
|
|
Patch2: ebtables-typepuns.diff
|
2011-07-11 01:07:58 +02:00
|
|
|
BuildRoot: %_tmppath/%name-%version-build
|
2011-07-11 01:06:42 +02:00
|
|
|
BuildRequires: xz
|
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.
|
|
|
|
|
|
|
|
%prep
|
2011-07-11 01:06:42 +02:00
|
|
|
%setup -q -n %name-v2.0.10-1
|
2007-10-13 00:07:43 +02:00
|
|
|
%patch0
|
2007-01-16 00:11:02 +01:00
|
|
|
%patch1
|
2011-07-11 02:25:50 +02:00
|
|
|
%patch -P 2 -p1
|
2007-01-16 00:11:02 +01:00
|
|
|
|
|
|
|
%build
|
2010-01-27 18:48:02 +01:00
|
|
|
# The way ebtables is built requires ASNEEDED=0 forever [bnc#567267]
|
|
|
|
export SUSE_ASNEEDED=0
|
2010-01-12 15:48:48 +01:00
|
|
|
# delete all kernel headers, but keep ebt_ip6.h and ebt_nflog.h
|
|
|
|
mv include/linux/netfilter_bridge/ebt_ip6.{h,h.save}
|
|
|
|
mv include/linux/netfilter_bridge/ebt_nflog.{h,h.save}
|
|
|
|
rm -f include/linux/*.h
|
|
|
|
rm -f include/linux/netfilter_bridge/*.h
|
|
|
|
mv include/linux/netfilter_bridge/ebt_ip6.{h.save,h}
|
|
|
|
mv include/linux/netfilter_bridge/ebt_nflog.{h.save,h}
|
2007-10-13 00:07:43 +02:00
|
|
|
make \
|
2011-07-11 01:07:58 +02:00
|
|
|
CFLAGS="%optflags" \
|
|
|
|
CXXFLAGS="%optflags" \
|
|
|
|
LIBDIR=%_libdir/%name \
|
|
|
|
MANDIR=%_mandir \
|
|
|
|
BINDIR=%_sbindir \
|
|
|
|
ETCDIR=%_sysconfdir \
|
|
|
|
INITDIR=%_sysconfdir/init.d \
|
|
|
|
SYSCONFIGDIR=%_sysconfdir
|
2007-01-16 00:11:02 +01:00
|
|
|
|
|
|
|
%install
|
2010-01-27 18:48:02 +01:00
|
|
|
# The way ebtables is built requires ASNEEDED=0 forever [bnc#567267]
|
|
|
|
export SUSE_ASNEEDED=0
|
2011-07-11 01:07:58 +02:00
|
|
|
install -d -m 755 %buildroot%_sbindir
|
|
|
|
install -d -m 755 %buildroot%_sysconfdir/init.d
|
2007-10-13 00:07:43 +02:00
|
|
|
make \
|
2011-07-11 01:07:58 +02:00
|
|
|
DESTDIR=%buildroot \
|
|
|
|
LIBDIR=%_libdir/%name \
|
|
|
|
MANDIR=%_mandir \
|
|
|
|
BINDIR=%_sbindir \
|
|
|
|
ETCDIR=%_sysconfdir \
|
|
|
|
INITDIR=%_sysconfdir/init.d \
|
|
|
|
SYSCONFIGDIR=%_sysconfdir \
|
2007-10-13 00:07:43 +02:00
|
|
|
install
|
2011-07-11 01:07:58 +02:00
|
|
|
ln -sf %_sysconfdir/init.d/ebtables %buildroot%_sbindir/rcebtables
|
2011-05-31 14:57:59 +02:00
|
|
|
# not used
|
2011-07-11 01:07:58 +02:00
|
|
|
rm -f %buildroot%_sysconfdir/ebtables-config
|
2007-10-13 00:07:43 +02:00
|
|
|
|
2010-01-12 15:48:48 +01:00
|
|
|
%post
|
|
|
|
%fillup_and_insserv ebtables
|
|
|
|
|
2007-10-13 00:07:43 +02:00
|
|
|
%preun
|
|
|
|
%stop_on_removal ebtables
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%restart_on_update ebtables
|
|
|
|
%insserv_cleanup
|
2007-01-16 00:11:02 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2011-06-06 13:54:04 +02:00
|
|
|
%doc COPYING ChangeLog
|
2011-07-11 01:07:58 +02:00
|
|
|
%doc %_mandir/man8/ebtables.8*
|
|
|
|
%config(noreplace) %_sysconfdir/ethertypes
|
|
|
|
%_sysconfdir/init.d/ebtables
|
|
|
|
%dir %_libdir/%name
|
|
|
|
%_libdir/%name/*.so
|
|
|
|
%_sbindir/ebtables
|
|
|
|
%_sbindir/ebtables-restore
|
|
|
|
%_sbindir/ebtables-save
|
|
|
|
%_sbindir/rcebtables
|
2008-09-01 02:30:46 +02:00
|
|
|
|
2007-08-09 18:41:37 +02:00
|
|
|
%changelog
|