OBS User unknown 2007-01-15 23:11:02 +00:00 committed by Git OBS Bridge
commit dfaa48522a
8 changed files with 230 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

83
ebtables-v2.0.6-gcc.diff Normal file
View File

@ -0,0 +1,83 @@
--- ebtables.c
+++ ebtables.c
@@ -1171,6 +1171,7 @@
continue;
return i;
letscontinue:
+ ;
}
return -1;
}
--- extensions/ebt_ip.c
+++ extensions/ebt_ip.c
@@ -313,7 +313,7 @@
ipinfo->invflags |= EBT_IP_PROTO;
if (optind > argc)
print_error("Missing IP protocol argument");
- (unsigned char) i = strtoul(argv[optind - 1], &end, 10);
+ i = (unsigned char) strtoul(argv[optind - 1], &end, 10);
if (*end != '\0') {
struct protoent *pe;
--- extensions/ebt_limit.c
+++ extensions/ebt_limit.c
@@ -203,15 +203,15 @@
static struct ebt_u_match limit_match =
{
- .name EBT_LIMIT_MATCH,
- .size sizeof(struct ebt_limit_info),
- .help print_help,
- .init init,
- .parse parse,
- .final_check final_check,
- .print print,
- .compare compare,
- .extra_ops opts,
+ .name = EBT_LIMIT_MATCH,
+ .size = sizeof(struct ebt_limit_info),
+ .help = print_help,
+ .init = init,
+ .parse = parse,
+ .final_check= final_check,
+ .print = print,
+ .compare = compare,
+ .extra_ops = opts,
};
static void _init(void) __attribute((constructor));
--- extensions/ebt_vlan.c
+++ extensions/ebt_vlan.c
@@ -141,8 +141,8 @@
check_option(flags, OPT_VLAN_ID);
CHECK_INV_FLAG(EBT_VLAN_ID);
CHECK_IF_MISSING_VALUE;
- (unsigned short) local.id =
- strtoul(argv[optind - 1], &end, 10);
+ local.id =
+ (unsigned short) strtoul(argv[optind - 1], &end, 10);
CHECK_RANGE(local.id > 4094 || *end != '\0');
vlaninfo->id = local.id;
SET_BITMASK(EBT_VLAN_ID);
@@ -152,8 +152,8 @@
check_option(flags, OPT_VLAN_PRIO);
CHECK_INV_FLAG(EBT_VLAN_PRIO);
CHECK_IF_MISSING_VALUE;
- (unsigned char) local.prio =
- strtoul(argv[optind - 1], &end, 10);
+ local.prio =
+ (unsigned char) strtoul(argv[optind - 1], &end, 10);
CHECK_RANGE(local.prio >= 8 || *end != '\0');
vlaninfo->prio = local.prio;
SET_BITMASK(EBT_VLAN_PRIO);
@@ -163,8 +163,8 @@
check_option(flags, OPT_VLAN_ENCAP);
CHECK_INV_FLAG(EBT_VLAN_ENCAP);
CHECK_IF_MISSING_VALUE;
- (unsigned short) local.encap =
- strtoul(argv[optind - 1], &end, 16);
+ local.encap =
+ (unsigned short) strtoul(argv[optind - 1], &end, 16);
if (*end != '\0') {
ethent = getethertypebyname(argv[optind - 1]);
if (ethent == NULL)

View File

@ -0,0 +1,21 @@
--- Makefile
+++ Makefile
@@ -46,15 +46,15 @@
$(MANDIR)/man8/ebtables.8: ebtables.8
mkdir -p $(@D)
- install -m 0644 -o root -g root $< $@
+ install -m 0644 $< $@
$(ETHERTYPESFILE): ethertypes
mkdir -p $(@D)
- install -m 0644 -o root -g root $< $@
+ install -m 0644 $< $@
.PHONY: exec
exec: ebtables
- install -m 0755 -o root -g root $< $(BINFILE)
+ install -m 0755 $< $(BINFILE)
.PHONY: install
install: $(MANDIR)/man8/ebtables.8 $(ETHERTYPESFILE) exec

3
ebtables-v2.0.6.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fc14a4b550e0a0516d678e1d11eae8dfddc17052474016c31809ee327f9e5754
size 58691

20
ebtables.changes Normal file
View File

@ -0,0 +1,20 @@
-------------------------------------------------------------------
Wed Jan 25 21:35:40 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Wed Jun 29 18:12:37 CEST 2005 - meissner@suse.de
- use RPM_OPT_FLAGS.
-------------------------------------------------------------------
Thu Apr 21 16:05:31 CEST 2005 - postadal@suse.cz
- fixed for gcc 4.0
-------------------------------------------------------------------
Fri Jun 18 16:52:46 CEST 2004 - postadal@suse.cz
- new package v2.0.6

79
ebtables.spec Normal file
View File

@ -0,0 +1,79 @@
#
# spec file for package ebtables (Version v2.0.6)
#
# Copyright (c) 2005 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
# norootforbuild
Name: ebtables
License: GPL
Group: Productivity/Networking/Security
Autoreqprov: on
Version: v2.0.6
Release: 5
Summary: Ethernet Bridge Tables
Source: %{name}-%{version}.tar.bz2
Patch: %{name}-%{version}-makefile.diff
Patch1: %{name}-%{version}-gcc.diff
URL: http://ebtables.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A firewalling tool to transparantly filter network traffic passing a
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
%setup
%patch
%patch1
%build
make CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
BINPATH=%{_prefix}/sbin/ \
MANDIR=%{_mandir} \
ETHERTYPESPATH=/etc
%install
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
install -d -m 755 $RPM_BUILD_ROOT%{_prefix}/sbin
install -d -m 755 $RPM_BUILD_ROOT/etc
make BINPATH=$RPM_BUILD_ROOT%{_prefix}/sbin/ \
MANDIR=$RPM_BUILD_ROOT%{_mandir} \
ETHERTYPESPATH=$RPM_BUILD_ROOT/etc \
install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc %{_mandir}/man8/ebtables.8*
%{_prefix}/sbin/ebtables
%config(noreplace) /etc/ethertypes
%changelog -n ebtables
* 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

0
ready Normal file
View File