summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-02-03 20:44:37 +0100
committerJeroen Roovers <jer@gentoo.org>2020-02-03 20:45:25 +0100
commitacb39f4c38accb21b574f55d47d2a2d47bce0218 (patch)
tree64d3967901b972eeeb064d8d688a970dcfc0be27 /net-misc
parentnet-analyzer/flow-tools: Fix CFLAGS=-fno-common (diff)
downloadgentoo-acb39f4c38accb21b574f55d47d2a2d47bce0218.tar.gz
gentoo-acb39f4c38accb21b574f55d47d2a2d47bce0218.tar.bz2
gentoo-acb39f4c38accb21b574f55d47d2a2d47bce0218.zip
net-misc/packETH: Version 2.1
Package-Manager: Portage-2.3.87, Repoman-2.3.20 Signed-off-by: Jeroen Roovers <jer@gentoo.org> Closes: https://bugs.gentoo.org/show_bug.cgi?id=708048 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/packETH/Manifest1
-rw-r--r--net-misc/packETH/files/packETH-2.1-fno-common.patch42
-rw-r--r--net-misc/packETH/packETH-2.1.ebuild33
3 files changed, 76 insertions, 0 deletions
diff --git a/net-misc/packETH/Manifest b/net-misc/packETH/Manifest
index 8681bb0e62ce..d2d76dd4a512 100644
--- a/net-misc/packETH/Manifest
+++ b/net-misc/packETH/Manifest
@@ -1,3 +1,4 @@
DIST packETH-1.7.3.tar.gz 395666 BLAKE2B e3ca7e727900a85cf3a8fa1e88b2763cecb6d284342e123932f5d19ae1c324d93045372386026940e4b1eeefa71ee52b380a5aab5eeab1aab70cf749a8626bf4 SHA512 349fd579bbbbbbbe2ca96374c8083ecf047a1c5f51626341bd7f98b4c8a29b74342311e45950a3f2628ba53dba250135c3802556b6aa5c49181e72313a7256d5
DIST packETH-1.8.1.tar.bz2 321624 BLAKE2B 3360240cde8c3dea41ea0e226cd648dc4599b5e838281a3d6b731c6d095a1d0db32373fd20096a16fd04390cc5bed11e94d05789b9ad7c97a79d2df6c0e3fcc2 SHA512 caca26d3a0e9a175cdcaccc21f8d0038fd4c3dc0939b52ae6e16109d0e42b882b4de95524d35bfe7bafc131203ba23aac5f3baf825b2c55ab18022edadb04a4d
DIST packETH-1.9.tar.bz2 450837 BLAKE2B 38eee3092be49ffffe7af23c30059d723e566d572c6a8dda6af5b44e8bc5b3c17d76cdccbdb4b4664ac245e1e7a41eb43e49eafc09a7e56b3f9d1ded93ba9239 SHA512 f322130a5981412f109555c52f9ae0b1c92e4f2a4c9a0ec2a62abeef368ade1ef08d5152724a6351fd626ef1dee4b5b98a61b250efd2391e4d61976d4ae4c50d
+DIST packETH-2.1.tar.gz 458750 BLAKE2B c08096e0781fc0174922d2eece31fa5e789ccfd7745eac0f16fbd515c6b5f72c7b9f7575fd215a3a1d0b69d6ae1f08427e5d145abbc83b9cbfeb6c6657d28b35 SHA512 55be4a2eb517c1d040664ea1a16d59dab20b06edbbd073cbf709deb4dfcec8d8eb12b88dfbd578f9bdb0ca614036ac4bbb00be6f865b774da2aa62ce8d3d767e
diff --git a/net-misc/packETH/files/packETH-2.1-fno-common.patch b/net-misc/packETH/files/packETH-2.1-fno-common.patch
new file mode 100644
index 000000000000..1f34c53d6b28
--- /dev/null
+++ b/net-misc/packETH/files/packETH-2.1-fno-common.patch
@@ -0,0 +1,42 @@
+--- a/src/function.c
++++ b/src/function.c
+@@ -66,7 +66,7 @@
+ int ipv6_start = 0;
+ int eth_start = 0;
+ gboolean stop_flag = 0;
+-extern char iftext[20];
++char iftext[20];
+ static unsigned long crc32_table[256];
+ int crc32_table_init = 0;
+ int ip_proto_used = 0; // 0 - none, 4 - ipv4, 6- IPv6, 806 - ARP
+--- a/src/function.h
++++ b/src/function.h
+@@ -22,6 +22,8 @@
+
+ #include <gtk/gtk.h>
+
++extern char iftext[20];
++
+ signed int char2x(char *p);
+ char c4(int value);
+ guint32 get_checksum32(int start, int stop);
+--- a/src/function_send.c
++++ b/src/function_send.c
+@@ -55,7 +55,6 @@
+ extern long li_packets_sent_lastsec;
+ extern long sentstream[10];
+ extern long sendtime;
+-char iftext[20];
+
+ struct params {
+ long long del;
+--- a/src/callbacks.c
++++ b/src/callbacks.c
+@@ -65,7 +65,6 @@
+ extern int stop_flag;
+ extern long desired_bw;
+ gint row_number;/* this is because i cant get the selected row number*/
+-gchar iftext[20];
+ gchar address_filename[100] = "addresslist";
+ static GtkWidget *entry_field;
+ static GtkWidget *entry_field_ip;
diff --git a/net-misc/packETH/packETH-2.1.ebuild b/net-misc/packETH/packETH-2.1.ebuild
new file mode 100644
index 000000000000..be593baac9e6
--- /dev/null
+++ b/net-misc/packETH/packETH-2.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools
+
+DESCRIPTION="Packet generator tool for ethernet"
+HOMEPAGE="http://packeth.sourceforge.net/"
+SRC_URI="https://github.com/jemcek/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+ dev-libs/glib:2
+ x11-libs/gdk-pixbuf
+ x11-libs/gtk+:2
+"
+DEPEND="
+ virtual/pkgconfig
+ ${RDEPEND}
+"
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.8.1-libs-and-flags.patch
+ "${FILESDIR}"/${PN}-2.1-fno-common.patch
+)
+DOCS=( AUTHORS CHANGELOG README )
+
+src_prepare() {
+ default
+ eautoreconf
+}