Browse Source

ebtables: Updated (2.0.9-2 -> 2.0.10-2)

user/amery/next/luajit
Christian Wiese 13 years ago
parent
commit
7e64c0e2b3
  1. 41
      security/ebtables/ebtables-2.0.10-2-remove-unused-ret-var.patch
  2. 20
      security/ebtables/ebtables-makefile-sysvinit-sysconfig-install.patch
  3. 8
      security/ebtables/ebtables.desc

41
security/ebtables/ebtables-2.0.10-2-remove-unused-ret-var.patch

@ -0,0 +1,41 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../ebtables/ebtables-2.0.10-2-remove-unused-ret-var.patch
# Copyright (C) 2011 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
--- ebtables-v2.0.10-2/communication.c.orig 2011-11-28 00:04:02.936104275 +0100
+++ ebtables-v2.0.10-2/communication.c 2011-11-28 00:07:17.076104276 +0100
@@ -256,7 +256,7 @@
static int store_counters_in_file(char *filename, struct ebt_u_replace *repl)
{
- int size = repl->nentries * sizeof(struct ebt_counter), ret = 0;
+ int size = repl->nentries * sizeof(struct ebt_counter);
unsigned int entries_size;
struct ebt_replace hlp;
FILE *file;
@@ -272,13 +272,11 @@
sizeof(unsigned int) ||
fseek(file, entries_size + sizeof(struct ebt_replace), SEEK_SET)) {
ebt_print_error("File %s is corrupt", filename);
- ret = -1;
goto close_file;
}
if (fwrite(repl->counters, sizeof(char), size, file) != size) {
ebt_print_error("Could not write everything to file %s",
filename);
- ret = -1;
}
close_file:
fclose(file);

20
security/ebtables/ebtables-makefile-sysvinit-sysconfig-install.patch

@ -1,20 +0,0 @@
Description: Only install sysvinit script and ebtables-config when INITDIR or SYSCONFIGDIR are defined
--- ./Makefile.orig 2011-02-07 18:18:23.994696283 +0100
+++ ./Makefile 2011-02-07 18:52:16.226697310 +0100
@@ -157,9 +157,15 @@
cat ebtables-save | sed 's/__EXEC_PATH__/$(tmp1)/g' > ebtables-save_
install -m 0755 -o root -g root ebtables-save_ $(DESTDIR)$(BINDIR)/ebtables-save
cat ebtables.sysv | sed 's/__EXEC_PATH__/$(tmp1)/g' | sed 's/__SYSCONFIG__/$(tmp2)/g' > ebtables.sysv_
+ifdef $(INITDIR)
+ install -d -m 0755 -o root -g root $(DESTDIR)$(INITDIR)
install -m 0755 -o root -g root ebtables.sysv_ $(DESTDIR)$(INITDIR)/ebtables
+endif
+ifdef $(SYSCONFIGDIR)
cat ebtables-config | sed 's/__SYSCONFIG__/$(tmp2)/g' > ebtables-config_
+ install -d -m 0600 -o root -g root $(DESTDIR)$(SYSCONFIGDIR)
install -m 0600 -o root -g root ebtables-config_ $(DESTDIR)$(SYSCONFIGDIR)/ebtables-config
+endif
rm -f ebtables-save_ ebtables.sysv_ ebtables-config_
$(MANDIR)/man8/ebtables.8: ebtables.8

8
security/ebtables/ebtables.desc

@ -2,7 +2,7 @@
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY]
[COPY] Filename: package/.../ebtables/ebtables.desc
[COPY] Copyright (C) 2010 The OpenSDE Project
[COPY] Copyright (C) 2010 - 2011 The OpenSDE Project
[COPY] Copyright (C) 2004 - 2006 The T2 SDE Project
[COPY]
[COPY] More information can be found in the files COPYING and README.
@ -34,7 +34,7 @@
[L] OpenSource
[S] Stable
[V] 2.0.9-2
[P] X -----5---9 200.000
[V] 2.0.10-2
[P] X -?---5---9 200.000
[D] 1302877171 ebtables-v2.0.9-2.tar.gz http://dl.sourceforge.net/ebtables/
[D] 1930606320 ebtables-v2.0.10-2.tar.gz http://dl.sourceforge.net/ebtables/

Loading…
Cancel
Save