From 7e64c0e2b315673cf00797d4ebe98cac036f6e88 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Wed, 14 Dec 2011 23:17:41 +0100 Subject: [PATCH] ebtables: Updated (2.0.9-2 -> 2.0.10-2) --- ...ables-2.0.10-2-remove-unused-ret-var.patch | 41 +++++++++++++++++++ ...-makefile-sysvinit-sysconfig-install.patch | 20 --------- security/ebtables/ebtables.desc | 8 ++-- 3 files changed, 45 insertions(+), 24 deletions(-) create mode 100644 security/ebtables/ebtables-2.0.10-2-remove-unused-ret-var.patch delete mode 100644 security/ebtables/ebtables-makefile-sysvinit-sysconfig-install.patch diff --git a/security/ebtables/ebtables-2.0.10-2-remove-unused-ret-var.patch b/security/ebtables/ebtables-2.0.10-2-remove-unused-ret-var.patch new file mode 100644 index 000000000..56b55f93e --- /dev/null +++ b/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); diff --git a/security/ebtables/ebtables-makefile-sysvinit-sysconfig-install.patch b/security/ebtables/ebtables-makefile-sysvinit-sysconfig-install.patch deleted file mode 100644 index e48bb972e..000000000 --- a/security/ebtables/ebtables-makefile-sysvinit-sysconfig-install.patch +++ /dev/null @@ -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 diff --git a/security/ebtables/ebtables.desc b/security/ebtables/ebtables.desc index 05cfd9f90..a58ecaea0 100644 --- a/security/ebtables/ebtables.desc +++ b/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/