summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Januszewski <spock@gentoo.org>2006-09-15 15:27:37 +0000
committerMichael Januszewski <spock@gentoo.org>2006-09-15 15:27:37 +0000
commit4cae3fdb75cf32a8ea829c3486f69bff7272e230 (patch)
treece22344f05d9a8a967bbcc6341e105b9b2f8755e
parentversion bump (diff)
downloadgentoo-2-4cae3fdb75cf32a8ea829c3486f69bff7272e230.tar.gz
gentoo-2-4cae3fdb75cf32a8ea829c3486f69bff7272e230.tar.bz2
gentoo-2-4cae3fdb75cf32a8ea829c3486f69bff7272e230.zip
Fixed bug #143906.
(Portage version: 2.1.1)
-rw-r--r--net-analyzer/gspoof/ChangeLog8
-rw-r--r--net-analyzer/gspoof/files/digest-gspoof-3.22
-rw-r--r--net-analyzer/gspoof/files/gspoof-def-values.patch29
-rw-r--r--net-analyzer/gspoof/gspoof-3.2.ebuild13
4 files changed, 45 insertions, 7 deletions
diff --git a/net-analyzer/gspoof/ChangeLog b/net-analyzer/gspoof/ChangeLog
index eebfff5af8ec..6804614e79c7 100644
--- a/net-analyzer/gspoof/ChangeLog
+++ b/net-analyzer/gspoof/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-analyzer/gspoof
-# Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/gspoof/ChangeLog,v 1.7 2005/12/25 00:31:42 spock Exp $
+# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/gspoof/ChangeLog,v 1.8 2006/09/15 15:27:37 spock Exp $
+
+ 15 Sep 2006; Michał Januszewski <spock@gentoo.org>
+ +files/gspoof-def-values.patch, gspoof-3.2.ebuild:
+ Fixed bug #143906.
25 Dec 2005; Michał Januszewski <spock@gentoo.org> gspoof-3.2.ebuild:
Added missing call to econf (bug #109549).
diff --git a/net-analyzer/gspoof/files/digest-gspoof-3.2 b/net-analyzer/gspoof/files/digest-gspoof-3.2
index c8104a804d8d..f7c641c2b88c 100644
--- a/net-analyzer/gspoof/files/digest-gspoof-3.2
+++ b/net-analyzer/gspoof/files/digest-gspoof-3.2
@@ -1 +1,3 @@
MD5 7a1d124a1d0bed87e19b239d559ba880 gspoof-3.2.tar.gz 69340
+RMD160 2030e4b99d5191ae9dadec617eec2ae73b021775 gspoof-3.2.tar.gz 69340
+SHA256 65f12bf8ca23d3fa6af0cedda4fb6c28c955a909e1787bd5dda14404a0280019 gspoof-3.2.tar.gz 69340
diff --git a/net-analyzer/gspoof/files/gspoof-def-values.patch b/net-analyzer/gspoof/files/gspoof-def-values.patch
new file mode 100644
index 000000000000..442f8e821b01
--- /dev/null
+++ b/net-analyzer/gspoof/files/gspoof-def-values.patch
@@ -0,0 +1,29 @@
+diff -Naurp gspoof-3.2-orig/gfuncts.c gspoof-3.2/gfuncts.c
+--- gspoof-3.2-orig/gfuncts.c 2006-09-15 16:39:59.000000000 +0200
++++ gspoof-3.2/gfuncts.c 2006-09-15 17:20:49.000000000 +0200
+@@ -47,12 +47,6 @@ int RestoreDefault()
+ struct libnet_ether_addr *ethaddr; /* eth address */
+ libnet_t *l;
+
+- /* put default value */
+- bzero (&f, 6);
+- bzero (&ck, 2);
+- memset (data, '\0', 128);
+- memset (device, '\0', 10);
+-
+ /* loading libnet core */
+ if ((l=libnet_init(LIBNET_LINK, NULL, ebuf))==NULL)
+ {
+@@ -126,6 +120,12 @@ int RestoreDefault()
+ gtk_entry_set_text (GTK_ENTRY (win_entry), "32767");
+ gtk_entry_set_text(GTK_ENTRY (urg_entry), ltostr(urgp));
+
++ /* put default value */
++ bzero (&f, sizeof(f));
++ bzero (&ck, sizeof(ck));
++ memset (data, '\0', 128);
++ memset (device, '\0', 10);
++
+ /* Set default variable values */
+ f.syn=1;
+ m.number=10;
diff --git a/net-analyzer/gspoof/gspoof-3.2.ebuild b/net-analyzer/gspoof/gspoof-3.2.ebuild
index 9f447079b30d..c0c7363c1a8d 100644
--- a/net-analyzer/gspoof/gspoof-3.2.ebuild
+++ b/net-analyzer/gspoof/gspoof-3.2.ebuild
@@ -1,6 +1,8 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/gspoof/gspoof-3.2.ebuild,v 1.7 2005/12/25 00:31:42 spock Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/gspoof/gspoof-3.2.ebuild,v 1.8 2006/09/15 15:27:37 spock Exp $
+
+inherit eutils
DESCRIPTION="A simple GTK/command line TCP/IP packet generator"
HOMEPAGE="http://gspoof.sourceforge.net/"
@@ -15,9 +17,10 @@ DEPEND="=x11-libs/gtk+-2*
=dev-libs/glib-2*
>=net-libs/libnet-1.1.1"
-src_compile() {
- econf || die
- emake || die
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/gspoof-def-values.patch
}
src_install() {