From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-misc/nemesis/Manifest | 10 ++ net-misc/nemesis/files/1.4-libnet-1.0.patch | 127 +++++++++++++++++++++ net-misc/nemesis/files/nemesis-1.4-fileio.patch | 37 ++++++ .../nemesis/files/nemesis-1.4-libnet-1.0.patch | 127 +++++++++++++++++++++ net-misc/nemesis/files/nemesis-1.4-prototcp.patch | 33 ++++++ net-misc/nemesis/metadata.xml | 15 +++ net-misc/nemesis/nemesis-1.4-r1.ebuild | 27 +++++ net-misc/nemesis/nemesis-1.4.ebuild | 30 +++++ 8 files changed, 406 insertions(+) create mode 100644 net-misc/nemesis/Manifest create mode 100644 net-misc/nemesis/files/1.4-libnet-1.0.patch create mode 100644 net-misc/nemesis/files/nemesis-1.4-fileio.patch create mode 100644 net-misc/nemesis/files/nemesis-1.4-libnet-1.0.patch create mode 100644 net-misc/nemesis/files/nemesis-1.4-prototcp.patch create mode 100644 net-misc/nemesis/metadata.xml create mode 100644 net-misc/nemesis/nemesis-1.4-r1.ebuild create mode 100644 net-misc/nemesis/nemesis-1.4.ebuild (limited to 'net-misc/nemesis') diff --git a/net-misc/nemesis/Manifest b/net-misc/nemesis/Manifest new file mode 100644 index 000000000000..c21a998e521e --- /dev/null +++ b/net-misc/nemesis/Manifest @@ -0,0 +1,10 @@ +AUX 1.4-libnet-1.0.patch 6278 SHA256 1e79c8c0a9d848a657c2e14d062f7c6d0a51fe66a7c9d56266dd65952acfdafc SHA512 c584afc645e64ac0f09907ba50a60b8ab10d1aad93749eda277dfdf645267a3b16a0617ca4b7812c8a1828f48170c0b7aa5f6077e537bb539e1fe8294efec6d2 WHIRLPOOL f7434c880efa2a040884cd68d5ae8296442c390f775539eb3a05380374629b23d0af2ed05df41b4f97b93699dab06e6e2441aa74f2d26028608c0f37ab885d44 +AUX nemesis-1.4-fileio.patch 1064 SHA256 76dd3b28ea2f67f93baa89ad466555971641ace6e3ff0a1a06927977270e83a3 SHA512 d50107668e19f7fb9cd27bbdd97c24cb594dd6bc7a82ebb6fc6c6a0ef9e344c9c9c0dc5f18bae5e97714ce8544b81f910ea469e4985137d3b1934745845cec95 WHIRLPOOL b845268655d5cf9c6e0ca18f395303d476a31dc163bf5cb346cc26db7616ad7394f2c8d8d5f0bcbf44caa45d4fb2fbb16c0261fe921748049a44839140fd4dc8 +AUX nemesis-1.4-libnet-1.0.patch 6278 SHA256 1e79c8c0a9d848a657c2e14d062f7c6d0a51fe66a7c9d56266dd65952acfdafc SHA512 c584afc645e64ac0f09907ba50a60b8ab10d1aad93749eda277dfdf645267a3b16a0617ca4b7812c8a1828f48170c0b7aa5f6077e537bb539e1fe8294efec6d2 WHIRLPOOL f7434c880efa2a040884cd68d5ae8296442c390f775539eb3a05380374629b23d0af2ed05df41b4f97b93699dab06e6e2441aa74f2d26028608c0f37ab885d44 +AUX nemesis-1.4-prototcp.patch 1376 SHA256 c7a2c97b25639574ba8e81fd70847ba5c7a741f37e6ea72a8683126833046d74 SHA512 2c502eb3a3caa3a1cd849827d43d247102d63cd574dcf142ef4b10e53c22b4b64f8016a4763cd57d2acef995354aeeef78294b97b2637f8454fd107b214efacd WHIRLPOOL 063faa66ed8c3c3c1036570e2c66787c288f2f3a765b6cec3c835c4555d435fe3c2a615166817671ae976e763cdec0b75482171a0491919f462b0f17f985e556 +DIST nemesis-1.4.tar.gz 144187 SHA256 803f5cf5c7c4af15128b8cd7f7610730cbed1427f062a31c2f5255790fb1bab4 SHA512 a8d4b434a9b0287e704ab923900c43051dc3aac4a7063e702aa93d7c89cfdeac287a6f40138bdca140e2c889e024f885288c4953940104ac12631cf7394501c8 WHIRLPOOL 9aff914eceed0a8db1c662f88ea2565d7bd56ad25d92cf15b6ee97e5567d6a535bbed72274fcdfea76171b2e3ba79388b2bfbba210f03ee6a1b8c43a701c4083 +EBUILD nemesis-1.4-r1.ebuild 620 SHA256 5e503b6acf90d06ed644088e0b47a893c57c1b3de7ebc020b2e0a64a0b3ac7ea SHA512 228079a6233df981052fc0118ddb65745989e91aee9712befd607352644e2ac30d3272486e3c6c07f05f084ca82b4801d2e576323d7c0a20353ce006598ea97b WHIRLPOOL 57a910cddb3f082b0ae9d103656b4e0b93a202375bef647057486620204e448c8b27ae549618812ea7cf83dc15a2c795ce6c48b75ef0861a9e9495f914e7859a +EBUILD nemesis-1.4.ebuild 633 SHA256 04534490e43def79a72edb8f8d41bedd8bb61ddb40bdbd62b4f3f331d18caa94 SHA512 f9f037590bd629674944cbb9d5b1c9b064f28148e40815d6201e7fa4d033e91ed957ddb93777a865487c64bf78036222102f4dd6ae42399080d86527ef679697 WHIRLPOOL 78cb400ae9af36360ed6f620cf07cf657e44ba11565e17aeb5d34e9aaf4d7445c4ce9d914146a611896c5351d869e679484286eb6477acabb34985a715be9dd7 +MISC ChangeLog 2652 SHA256 8a2b3530bcbe803a91d66ab2ebfb5aba94aeed12748708e9202a49f612a1846e SHA512 ea1ad757263d98bb9e80519204e78ddbaca52f38e531cdae296bc8cf53ee9b0af7078ae867d3ed80e48627474e2d0e51f59401c389ea235e513f7b4ba80ea667 WHIRLPOOL 688a596d3d54729fa1f524e0f0277c3676039e6c47b1f74d65e7697e0c03ce026425cd32e957d383f0a61759a12d1326afeaef3032962fb529d43972cc002ab9 +MISC ChangeLog-2015 2747 SHA256 8dbb96a50d9d7c6f173e8a4e63f7bf98c1a290c4ce40faef102576735a05f3b5 SHA512 4d02ad55e64ecb47c13050c02d0d1bceba34dc552e8aac9006ff558ce42405fc3890d77c353e98740e5b9368ff78bfc20274ede8ee1f6f2e7f34a485a1a11571 WHIRLPOOL 5fb61ffcdf6170379cc4350bd1e299a6c96bbeb3ab03b35348a27d01a63130775d0703b3c2842d30ebc67e23026d52ae587d7efe7bd24fc8c9fce7b102c292dd +MISC metadata.xml 431 SHA256 b87162c785063b463f76649e9cbf6db85cec3af56fd9a2ac69573e2fcd450d58 SHA512 5dd7f62f672d2c31476bbece365b05f84e3a4bf913b1bbf4ad2cc5b374284025a8f679400cbb705fa3389bac636ff097b1c232929bef03ed3659b1025d8aae47 WHIRLPOOL e7056b8985b057b6704ad6d6d279fb2693887ebab37e7dc7b785998a7303e366ae6499774787921d7f82bc74784a6dbfde933406c5b95bf4442f235adf3593e3 diff --git a/net-misc/nemesis/files/1.4-libnet-1.0.patch b/net-misc/nemesis/files/1.4-libnet-1.0.patch new file mode 100644 index 000000000000..b4c55c374efa --- /dev/null +++ b/net-misc/nemesis/files/1.4-libnet-1.0.patch @@ -0,0 +1,127 @@ +--- nemesis-1.4.orig/configure 2006-12-15 13:56:46.000000000 -0700 ++++ nemesis-1.4/configure 2006-12-15 14:17:33.000000000 -0700 +@@ -4150 +4150 @@ +-CPPFLAGS="${CPPFLAGS} `libnet-config --defines`" ++CPPFLAGS="${CPPFLAGS} `libnet-1.0-config --defines`" +@@ -4153 +4153 @@ +-if test `libnet-config --cflags | wc -c` = "1"; then ++if test `libnet-1.0-config --cflags | wc -c` = "1"; then +@@ -4157 +4157 @@ +- CPPFLAGS="${CPPFLAGS} `libnet-config --cflags`" ++ CPPFLAGS="${CPPFLAGS} `libnet-1.0-config --cflags`" +@@ -4160,3 +4160,3 @@ +-if test `libnet-config --libs | wc -c` = "1"; then +- { echo "$as_me:$LINENO: WARNING: libnet-config --libs is broken on your system. If you" >&5 +-echo "$as_me: WARNING: libnet-config --libs is broken on your system. If you" >&2;} ++if test `libnet-1.0-config --libs | wc -c` = "1"; then ++ { echo "$as_me:$LINENO: WARNING: libnet-1.0-config --libs is broken on your system. If you" >&5 ++echo "$as_me: WARNING: libnet-1.0-config --libs is broken on your system. If you" >&2;} +@@ -4167 +4167 @@ +- LIBS="${LIBS} `libnet-config --libs | sed s/\-lnet//`" ++ LIBS="${LIBS} `libnet-1.0-config --libs | sed s/\-lnet-1.0//`" +@@ -4712,2 +4712,2 @@ +-echo "$as_me:$LINENO: checking for libnet_build_ip in -lnet" >&5 +-echo $ECHO_N "checking for libnet_build_ip in -lnet... $ECHO_C" >&6 ++echo "$as_me:$LINENO: checking for libnet_build_ip in -lnet-1.0" >&5 ++echo $ECHO_N "checking for libnet_build_ip in -lnet-1.0... $ECHO_C" >&6 +@@ -4718 +4718 @@ +-LIBS="-lnet $LIBS" ++LIBS="-lnet-1.0 $LIBS" +@@ -4781 +4781 @@ +- LIBS="-lnet $LIBS" ++ LIBS="-lnet-1.0 $LIBS" +@@ -5263 +5263 @@ +-for ac_header in libnet.h ++for ac_header in libnet-1.0.h +@@ -5433 +5433 @@ +- libnet_dir=`libnet-config --cflags | cut -dI -f2` ++ libnet_dir=`libnet-1.0-config --cflags | cut -dI -f2` +@@ -5438 +5438 @@ +- if test -r $i/libnet.h; then ++ if test -r $i/libnet-1.0.h; then +@@ -5444 +5444 @@ +- if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet.h | grep -v 1.0.2a >/dev/null"; then ++ if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet-1.0.h | grep -v 1.0.2a >/dev/null"; then +@@ -5455 +5455 @@ +- echo " ERROR: unable to find" "libnet 1.0.2a (libnet.h)" ++ echo " ERROR: unable to find" "libnet 1.0.2a (libnet-1.0.h)" +@@ -5474 +5474 @@ +- echo " ERROR: unable to find" "libnet 1.0.2a (libnet.h)" ++ echo " ERROR: unable to find" "libnet 1.0.2a (libnet-1.0.h)" +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-arp.h nemesis-1.4beta3/src/nemesis-arp.h +--- nemesis-1.4beta3.orig/src/nemesis-arp.h 2003-08-19 15:45:45.675664688 -0400 ++++ nemesis-1.4beta3/src/nemesis-arp.h 2003-08-19 15:47:07.631205552 -0400 +@@ -30 +30 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-dns.h nemesis-1.4beta3/src/nemesis-dns.h +--- nemesis-1.4beta3.orig/src/nemesis-dns.h 2003-08-19 15:45:45.675664688 -0400 ++++ nemesis-1.4beta3/src/nemesis-dns.h 2003-08-19 15:47:07.638204488 -0400 +@@ -30 +30 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-ethernet.h nemesis-1.4beta3/src/nemesis-ethernet.h +--- nemesis-1.4beta3.orig/src/nemesis-ethernet.h 2003-08-19 15:45:45.676664536 -0400 ++++ nemesis-1.4beta3/src/nemesis-ethernet.h 2003-08-19 15:47:07.641204032 -0400 +@@ -29 +29 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-functions.c nemesis-1.4beta3/src/nemesis-functions.c +--- nemesis-1.4beta3.orig/src/nemesis-functions.c 2003-08-19 15:45:45.676664536 -0400 ++++ nemesis-1.4beta3/src/nemesis-functions.c 2003-08-19 15:47:07.656201752 -0400 +@@ -37 +37 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-icmp.h nemesis-1.4beta3/src/nemesis-icmp.h +--- nemesis-1.4beta3.orig/src/nemesis-icmp.h 2003-08-19 15:45:45.676664536 -0400 ++++ nemesis-1.4beta3/src/nemesis-icmp.h 2003-08-19 15:47:07.665200384 -0400 +@@ -31 +31 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-igmp.h nemesis-1.4beta3/src/nemesis-igmp.h +--- nemesis-1.4beta3.orig/src/nemesis-igmp.h 2003-08-19 15:45:45.676664536 -0400 ++++ nemesis-1.4beta3/src/nemesis-igmp.h 2003-08-19 15:47:07.670199624 -0400 +@@ -30 +30 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-ip.h nemesis-1.4beta3/src/nemesis-ip.h +--- nemesis-1.4beta3.orig/src/nemesis-ip.h 2003-08-19 15:45:45.676664536 -0400 ++++ nemesis-1.4beta3/src/nemesis-ip.h 2003-08-19 15:47:07.677198560 -0400 +@@ -26 +26 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-ospf.h nemesis-1.4beta3/src/nemesis-ospf.h +--- nemesis-1.4beta3.orig/src/nemesis-ospf.h 2003-08-19 15:45:45.677664384 -0400 ++++ nemesis-1.4beta3/src/nemesis-ospf.h 2003-08-19 15:47:07.684197496 -0400 +@@ -33 +33 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-rip.h nemesis-1.4beta3/src/nemesis-rip.h +--- nemesis-1.4beta3.orig/src/nemesis-rip.h 2003-08-19 15:45:45.678664232 -0400 ++++ nemesis-1.4beta3/src/nemesis-rip.h 2003-08-19 15:47:07.717192480 -0400 +@@ -33 +33 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-tcp.h nemesis-1.4beta3/src/nemesis-tcp.h +--- nemesis-1.4beta3.orig/src/nemesis-tcp.h 2003-08-19 15:45:45.678664232 -0400 ++++ nemesis-1.4beta3/src/nemesis-tcp.h 2003-08-19 15:47:07.723191568 -0400 +@@ -30 +30 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-udp.h nemesis-1.4beta3/src/nemesis-udp.h +--- nemesis-1.4beta3.orig/src/nemesis-udp.h 2003-08-19 15:45:45.678664232 -0400 ++++ nemesis-1.4beta3/src/nemesis-udp.h 2003-08-19 15:47:07.728190808 -0400 +@@ -30 +30 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis.h nemesis-1.4beta3/src/nemesis.h +--- nemesis-1.4beta3.orig/src/nemesis.h 2003-08-19 15:45:45.678664232 -0400 ++++ nemesis-1.4beta3/src/nemesis.h 2003-08-19 15:47:07.731190352 -0400 +@@ -15 +15 @@ +-#include ++#include +--- nemesis-1.4.orig/src/nemesis-printout.c 2006-12-15 13:56:46.000000000 -0700 ++++ nemesis-1.4/src/nemesis-printout.c 2006-12-15 14:47:14.000000000 -0700 +@@ -34 +34 @@ +-#include ++#include diff --git a/net-misc/nemesis/files/nemesis-1.4-fileio.patch b/net-misc/nemesis/files/nemesis-1.4-fileio.patch new file mode 100644 index 000000000000..07c96bc17a74 --- /dev/null +++ b/net-misc/nemesis/files/nemesis-1.4-fileio.patch @@ -0,0 +1,37 @@ +--- nemesis-1.4-orig/source/src/nemesis-fileio.c Fri Oct 31 16:29:36 2003 ++++ nemesis-1.4/source/src/nemesis-fileio.c Fri May 19 17:31:13 2006 +@@ -63,7 +63,7 @@ + fp = stdin; + fd = fileno(fp); + } +- else if ((fd = open(file, O_RDONLY)) < 0) ++ else if ((fp = fopen(file, "rb")) < 0) + { + #if !defined(WIN32) + fprintf(stderr, "ERROR: Unable to open %s file: %s. %s\n", +@@ -82,8 +82,12 @@ + return -1; + } + ++#ifdef DEBUG ++ printf("DEBUG: trying to read max %u bytes from %s\n", maxsize, file); ++#endif ++ + /* read() can return negative values on successful reads, test for -1 */ +- if ((bytesread = read(fd, (void *)memory, maxsize)) == -1) ++ if ((bytesread = fread((void *)memory, 1, maxsize, fp)) == -1) + { + #if !defined(WIN32) + fprintf(stderr, "ERROR: Unable to read %s file: %s. %s\n", +@@ -106,6 +110,11 @@ + if (strncmp(file, "-", 1)) + close(fd); + } ++ ++#ifdef DEBUG ++ printf("DEBUG: bytes read from %s: %u.\n", file, bytesread); ++#endif ++ + return bytesread; + } + diff --git a/net-misc/nemesis/files/nemesis-1.4-libnet-1.0.patch b/net-misc/nemesis/files/nemesis-1.4-libnet-1.0.patch new file mode 100644 index 000000000000..b4c55c374efa --- /dev/null +++ b/net-misc/nemesis/files/nemesis-1.4-libnet-1.0.patch @@ -0,0 +1,127 @@ +--- nemesis-1.4.orig/configure 2006-12-15 13:56:46.000000000 -0700 ++++ nemesis-1.4/configure 2006-12-15 14:17:33.000000000 -0700 +@@ -4150 +4150 @@ +-CPPFLAGS="${CPPFLAGS} `libnet-config --defines`" ++CPPFLAGS="${CPPFLAGS} `libnet-1.0-config --defines`" +@@ -4153 +4153 @@ +-if test `libnet-config --cflags | wc -c` = "1"; then ++if test `libnet-1.0-config --cflags | wc -c` = "1"; then +@@ -4157 +4157 @@ +- CPPFLAGS="${CPPFLAGS} `libnet-config --cflags`" ++ CPPFLAGS="${CPPFLAGS} `libnet-1.0-config --cflags`" +@@ -4160,3 +4160,3 @@ +-if test `libnet-config --libs | wc -c` = "1"; then +- { echo "$as_me:$LINENO: WARNING: libnet-config --libs is broken on your system. If you" >&5 +-echo "$as_me: WARNING: libnet-config --libs is broken on your system. If you" >&2;} ++if test `libnet-1.0-config --libs | wc -c` = "1"; then ++ { echo "$as_me:$LINENO: WARNING: libnet-1.0-config --libs is broken on your system. If you" >&5 ++echo "$as_me: WARNING: libnet-1.0-config --libs is broken on your system. If you" >&2;} +@@ -4167 +4167 @@ +- LIBS="${LIBS} `libnet-config --libs | sed s/\-lnet//`" ++ LIBS="${LIBS} `libnet-1.0-config --libs | sed s/\-lnet-1.0//`" +@@ -4712,2 +4712,2 @@ +-echo "$as_me:$LINENO: checking for libnet_build_ip in -lnet" >&5 +-echo $ECHO_N "checking for libnet_build_ip in -lnet... $ECHO_C" >&6 ++echo "$as_me:$LINENO: checking for libnet_build_ip in -lnet-1.0" >&5 ++echo $ECHO_N "checking for libnet_build_ip in -lnet-1.0... $ECHO_C" >&6 +@@ -4718 +4718 @@ +-LIBS="-lnet $LIBS" ++LIBS="-lnet-1.0 $LIBS" +@@ -4781 +4781 @@ +- LIBS="-lnet $LIBS" ++ LIBS="-lnet-1.0 $LIBS" +@@ -5263 +5263 @@ +-for ac_header in libnet.h ++for ac_header in libnet-1.0.h +@@ -5433 +5433 @@ +- libnet_dir=`libnet-config --cflags | cut -dI -f2` ++ libnet_dir=`libnet-1.0-config --cflags | cut -dI -f2` +@@ -5438 +5438 @@ +- if test -r $i/libnet.h; then ++ if test -r $i/libnet-1.0.h; then +@@ -5444 +5444 @@ +- if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet.h | grep -v 1.0.2a >/dev/null"; then ++ if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet-1.0.h | grep -v 1.0.2a >/dev/null"; then +@@ -5455 +5455 @@ +- echo " ERROR: unable to find" "libnet 1.0.2a (libnet.h)" ++ echo " ERROR: unable to find" "libnet 1.0.2a (libnet-1.0.h)" +@@ -5474 +5474 @@ +- echo " ERROR: unable to find" "libnet 1.0.2a (libnet.h)" ++ echo " ERROR: unable to find" "libnet 1.0.2a (libnet-1.0.h)" +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-arp.h nemesis-1.4beta3/src/nemesis-arp.h +--- nemesis-1.4beta3.orig/src/nemesis-arp.h 2003-08-19 15:45:45.675664688 -0400 ++++ nemesis-1.4beta3/src/nemesis-arp.h 2003-08-19 15:47:07.631205552 -0400 +@@ -30 +30 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-dns.h nemesis-1.4beta3/src/nemesis-dns.h +--- nemesis-1.4beta3.orig/src/nemesis-dns.h 2003-08-19 15:45:45.675664688 -0400 ++++ nemesis-1.4beta3/src/nemesis-dns.h 2003-08-19 15:47:07.638204488 -0400 +@@ -30 +30 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-ethernet.h nemesis-1.4beta3/src/nemesis-ethernet.h +--- nemesis-1.4beta3.orig/src/nemesis-ethernet.h 2003-08-19 15:45:45.676664536 -0400 ++++ nemesis-1.4beta3/src/nemesis-ethernet.h 2003-08-19 15:47:07.641204032 -0400 +@@ -29 +29 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-functions.c nemesis-1.4beta3/src/nemesis-functions.c +--- nemesis-1.4beta3.orig/src/nemesis-functions.c 2003-08-19 15:45:45.676664536 -0400 ++++ nemesis-1.4beta3/src/nemesis-functions.c 2003-08-19 15:47:07.656201752 -0400 +@@ -37 +37 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-icmp.h nemesis-1.4beta3/src/nemesis-icmp.h +--- nemesis-1.4beta3.orig/src/nemesis-icmp.h 2003-08-19 15:45:45.676664536 -0400 ++++ nemesis-1.4beta3/src/nemesis-icmp.h 2003-08-19 15:47:07.665200384 -0400 +@@ -31 +31 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-igmp.h nemesis-1.4beta3/src/nemesis-igmp.h +--- nemesis-1.4beta3.orig/src/nemesis-igmp.h 2003-08-19 15:45:45.676664536 -0400 ++++ nemesis-1.4beta3/src/nemesis-igmp.h 2003-08-19 15:47:07.670199624 -0400 +@@ -30 +30 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-ip.h nemesis-1.4beta3/src/nemesis-ip.h +--- nemesis-1.4beta3.orig/src/nemesis-ip.h 2003-08-19 15:45:45.676664536 -0400 ++++ nemesis-1.4beta3/src/nemesis-ip.h 2003-08-19 15:47:07.677198560 -0400 +@@ -26 +26 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-ospf.h nemesis-1.4beta3/src/nemesis-ospf.h +--- nemesis-1.4beta3.orig/src/nemesis-ospf.h 2003-08-19 15:45:45.677664384 -0400 ++++ nemesis-1.4beta3/src/nemesis-ospf.h 2003-08-19 15:47:07.684197496 -0400 +@@ -33 +33 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-rip.h nemesis-1.4beta3/src/nemesis-rip.h +--- nemesis-1.4beta3.orig/src/nemesis-rip.h 2003-08-19 15:45:45.678664232 -0400 ++++ nemesis-1.4beta3/src/nemesis-rip.h 2003-08-19 15:47:07.717192480 -0400 +@@ -33 +33 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-tcp.h nemesis-1.4beta3/src/nemesis-tcp.h +--- nemesis-1.4beta3.orig/src/nemesis-tcp.h 2003-08-19 15:45:45.678664232 -0400 ++++ nemesis-1.4beta3/src/nemesis-tcp.h 2003-08-19 15:47:07.723191568 -0400 +@@ -30 +30 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis-udp.h nemesis-1.4beta3/src/nemesis-udp.h +--- nemesis-1.4beta3.orig/src/nemesis-udp.h 2003-08-19 15:45:45.678664232 -0400 ++++ nemesis-1.4beta3/src/nemesis-udp.h 2003-08-19 15:47:07.728190808 -0400 +@@ -30 +30 @@ +-#include ++#include +diff -r -U 0 nemesis-1.4beta3.orig/src/nemesis.h nemesis-1.4beta3/src/nemesis.h +--- nemesis-1.4beta3.orig/src/nemesis.h 2003-08-19 15:45:45.678664232 -0400 ++++ nemesis-1.4beta3/src/nemesis.h 2003-08-19 15:47:07.731190352 -0400 +@@ -15 +15 @@ +-#include ++#include +--- nemesis-1.4.orig/src/nemesis-printout.c 2006-12-15 13:56:46.000000000 -0700 ++++ nemesis-1.4/src/nemesis-printout.c 2006-12-15 14:47:14.000000000 -0700 +@@ -34 +34 @@ +-#include ++#include diff --git a/net-misc/nemesis/files/nemesis-1.4-prototcp.patch b/net-misc/nemesis/files/nemesis-1.4-prototcp.patch new file mode 100644 index 000000000000..0e75a2e43c39 --- /dev/null +++ b/net-misc/nemesis/files/nemesis-1.4-prototcp.patch @@ -0,0 +1,33 @@ +--- nemesis-1.4-orig/source/src/nemesis-proto_tcp.c Fri Oct 31 16:29:38 2003 ++++ nemesis-1.4/source/src/nemesis-proto_tcp.c Fri May 19 17:31:13 2006 +@@ -16,7 +16,7 @@ + FileData *ipod, FileData *tcpod, char *device) + { + int n; +- u_int32_t tcp_packetlen = 0, tcp_meta_packetlen = 0; ++ u_int32_t tcp_packetlen = 0, tcp_meta_packetlen = 0, tcp_headerlen = 0, ip_headerlen = 0; + static u_int8_t *pkt; + static int sockfd = -1; + struct libnet_link_int *l2 = NULL; +@@ -58,13 +58,20 @@ + #endif + } + ++ ip_headerlen = LIBNET_IP_H + ipod->file_s; ++ tcp_headerlen = LIBNET_TCP_H + tcpod->file_s; ++ + tcp_packetlen = link_offset + LIBNET_IP_H + LIBNET_TCP_H + pd->file_s + + ipod->file_s + tcpod->file_s; + +- tcp_meta_packetlen = tcp_packetlen - (link_offset + LIBNET_IP_H); ++ tcp_meta_packetlen = LIBNET_TCP_H + pd->file_s; + + #ifdef DEBUG ++ printf("DEBUG: link offsetlength %u.\n", link_offset); ++ printf("DEBUG: IP header length %u.\n", ip_headerlen); ++ printf("DEBUG: TCP header length %u.\n", tcp_headerlen); + printf("DEBUG: TCP packet length %u.\n", tcp_packetlen); ++ printf("DEBUG: TCP meta length %u.\n", tcp_meta_packetlen); + printf("DEBUG: IP options size %u.\n", ipod->file_s); + printf("DEBUG: TCP options size %u.\n", tcpod->file_s); + printf("DEBUG: TCP payload size %u.\n", pd->file_s); diff --git a/net-misc/nemesis/metadata.xml b/net-misc/nemesis/metadata.xml new file mode 100644 index 000000000000..d0f86294cbe0 --- /dev/null +++ b/net-misc/nemesis/metadata.xml @@ -0,0 +1,15 @@ + + + + + rainbow@irh.it + rainbow + + + proxy-maint@gentoo.org + Proxy Maintainers + + + nemesis + + diff --git a/net-misc/nemesis/nemesis-1.4-r1.ebuild b/net-misc/nemesis/nemesis-1.4-r1.ebuild new file mode 100644 index 000000000000..37cd943d341e --- /dev/null +++ b/net-misc/nemesis/nemesis-1.4-r1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils + +DESCRIPTION="A commandline-based, portable human IP stack for UNIX/Linux" +HOMEPAGE="http://nemesis.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P/_}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~sparc ~x86" +IUSE="" + +RDEPEND="net-libs/libpcap" +DEPEND="${RDEPEND} + =net-libs/libnet-1.0*" + +DOCS="CREDITS ChangeLog README" + +src_prepare() { + epatch "${FILESDIR}"/${P}-fileio.patch + epatch "${FILESDIR}"/${P}-libnet-1.0.patch + epatch "${FILESDIR}"/${P}-prototcp.patch +} diff --git a/net-misc/nemesis/nemesis-1.4.ebuild b/net-misc/nemesis/nemesis-1.4.ebuild new file mode 100644 index 000000000000..28a43fa57943 --- /dev/null +++ b/net-misc/nemesis/nemesis-1.4.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils + +DESCRIPTION="A commandline-based, portable human IP stack for UNIX/Linux" +HOMEPAGE="http://nemesis.sourceforge.net/" +SRC_URI="mirror://sourceforge/nemesis/${P/_}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="alpha amd64 sparc x86" +IUSE="" + +RDEPEND="net-libs/libpcap" +DEPEND="${RDEPEND} + =net-libs/libnet-1.0*" + +S=${WORKDIR}/${P/_} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${PV}-libnet-1.0.patch +} + +src_install() { + make DESTDIR="${D}" install || die + dodoc CREDITS ChangeLog INSTALL README +} -- cgit v1.2.3