summaryrefslogtreecommitdiff
path: root/net-analyzer/rain
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-02-05 18:44:56 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-02-05 18:44:56 +0000
commit29aabba0ea759c6a2864ff5631735b67ee38e5e0 (patch)
treeab466b4dfa7abecb401b2f8039d08af4689306bb /net-analyzer/rain
parentd42200bec37eef2a7478d88988ff00addd0a9202 (diff)
gentoo resync : 05.02.2020
Diffstat (limited to 'net-analyzer/rain')
-rw-r--r--net-analyzer/rain/Manifest3
-rw-r--r--net-analyzer/rain/files/rain-1.2.9_beta1-die-on-error.patch40
-rw-r--r--net-analyzer/rain/files/rain-1.2.9_beta1-fno-common.patch111
-rw-r--r--net-analyzer/rain/rain-1.2.9_beta1-r1.ebuild37
4 files changed, 191 insertions, 0 deletions
diff --git a/net-analyzer/rain/Manifest b/net-analyzer/rain/Manifest
index ca50f47d8240..ae6ba9b7bb2c 100644
--- a/net-analyzer/rain/Manifest
+++ b/net-analyzer/rain/Manifest
@@ -1,5 +1,8 @@
+AUX rain-1.2.9_beta1-die-on-error.patch 1748 BLAKE2B a265ef9f2a749110419360f179acd3e8f1444daafbc25caa7f33c9d68d7bc9ea46f866a8fb5bd70a917f016f387b9328a0ab918ea11854231ffa44cc08cbd983 SHA512 5a2b300acf7f6c6799e5427edf604f835383ca7addeee9a8abb52928d2d7258c2554232c847e284e2306454c33a78f471083533c79b9c00a4f48d08163b75136
+AUX rain-1.2.9_beta1-fno-common.patch 3313 BLAKE2B 84ced105416324dde778aa1f251118ccc9c109dc98be81569565cfd381dd4b7ec50ab291501b42da0599cd5b9722e0f4d52dc754a18fcd851e912fb194ef825f SHA512 f4bc6e7c2fdad082dabad48d36c4f952f70a686fde68ff8e01345f061c7fb73bad04bec04ee11392303bd54995cc831945449c3fdb1f8b6e089d3d7558323f68
AUX rain-1.2.9_beta1-gentoo.patch 1213 BLAKE2B 3017ebfb59b8be96568cb6efa225fe76db91a5a79dc1ad5e7157edd7a3ef994f4d4e6385d4fb417fdaa9f837be270f5da02c7b6d99ccefc51a3b22ce4b8334c4 SHA512 7a7f623ee8d7e72c91fce9f4185c14e5c4ac6764229f63f37a324f5683c4fa8b99c298e04d2fa51d093eb86547fde2c98c4e66e592c3ec92970616684d672a69
DIST rain_1.2.9beta1-1.diff.gz 1828 BLAKE2B b50743f0eb141c2d07462a717cfd14d6671b1428869398f6220e13adf653df368adb6f421af6d584ab782ef0bd4244f237412ec02f6a16f25c31378eedcf6ebe SHA512 5e871fddbf475d8e73c88a3f7340199cdfae8f54446aced599be7658e0be2c6b7a7ef2626cd13dff577df5c81187fa07bc8ec3a7ab386752e4be321d9a372843
DIST rain_1.2.9beta1.orig.tar.gz 79098 BLAKE2B cb9302bdf024df0e49a250b5ef5feed07c7dcaf0c734513177ac6161496d7df1fa7b5262a23730f83fe4a237f4108539911318a17cb604efbfe82b50b9ed3485 SHA512 5e61ac26872e453c6da9e600e3fb427425d2f79a7a5f569ab93308c0b0f4509b6a0d5b45b138f04b9f8bee7b16b8b63be28b7ede65a92f5d4a3384e73e12036d
+EBUILD rain-1.2.9_beta1-r1.ebuild 840 BLAKE2B 3f37eb044c27d486c5d72fc71801696eecfd22556f3530dc07887b00ecc3aa9d1dcf8245ca08f66f3911da2b50eff0f4b8b02ceee5bb2597f6815783d2fbfbad SHA512 8741a456519b84073da14c6982de6ce046c51bd4c2d4ad54cf3b9c936edbc82f59d4f57171ae21b6b40b20324f03b018044955fe5bf76978bac9f2ee5752da76
EBUILD rain-1.2.9_beta1.ebuild 708 BLAKE2B a52913e44e2929f00360bbcb373dc698ac82b79cde22c6c5229a76f2b665898b192127fe3b03c4577da40a7b680b761786c3fa4bc24eea40dabab51fe4016232 SHA512 7a8757eed74b9b3fc790b023f4bdd7e4bf7fc13d3c436f06651610503f0bc2a1e6308ac7bda792d95179578eca7e46764734f342587cef493f43a567f7bb17fa
MISC metadata.xml 276 BLAKE2B e21811549278e73aa9a14acfe242fd022106a39ac1300caa00615772d7f54d08a433052659a271f9ac0d453c7776fc2b9e8d86e6d3f637817c214174dde52cb2 SHA512 f0e6c6bc89659e01e157d9bf30d0a2f3fd2d71bc26c8d12489c4a44fc5237159946e25b46e7295ab4676aea63559194977a0b1e76aced31d81cf6387dd0f4250
diff --git a/net-analyzer/rain/files/rain-1.2.9_beta1-die-on-error.patch b/net-analyzer/rain/files/rain-1.2.9_beta1-die-on-error.patch
new file mode 100644
index 000000000000..ac73a0f5390e
--- /dev/null
+++ b/net-analyzer/rain/files/rain-1.2.9_beta1-die-on-error.patch
@@ -0,0 +1,40 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -15,22 +15,22 @@
+
+ all:
+ @echo Making all
+- -$(CC) $(CFLAGS) -c source/rain_command_line.c
+- -$(CC) $(CFLAGS) -c source/rain_defaults.c
+- -$(CC) $(CFLAGS) -c source/rain_die.c
+- -$(CC) $(CFLAGS) -c source/rain_icmp.c
+- -$(CC) $(CFLAGS) -c source/rain_igmp.c
+- -$(CC) $(CFLAGS) -c source/rain_inet_common.c
+- -$(CC) $(CFLAGS) -c source/rain_mem.c
+- -$(CC) $(CFLAGS) -c source/rain_resolv.c
+- -$(CC) $(CFLAGS) -c source/rain_services.c
+- -$(CC) $(CFLAGS) -c source/rain_signal.c
+- -$(CC) $(CFLAGS) -c source/rain_string.c
+- -$(CC) $(CFLAGS) -c source/rain_tcp.c
+- -$(CC) $(CFLAGS) -c source/rain_udp.c
+- -$(CC) $(CFLAGS) -c source/rain_main.c
++ $(CC) $(CFLAGS) -c source/rain_command_line.c
++ $(CC) $(CFLAGS) -c source/rain_defaults.c
++ $(CC) $(CFLAGS) -c source/rain_die.c
++ $(CC) $(CFLAGS) -c source/rain_icmp.c
++ $(CC) $(CFLAGS) -c source/rain_igmp.c
++ $(CC) $(CFLAGS) -c source/rain_inet_common.c
++ $(CC) $(CFLAGS) -c source/rain_mem.c
++ $(CC) $(CFLAGS) -c source/rain_resolv.c
++ $(CC) $(CFLAGS) -c source/rain_services.c
++ $(CC) $(CFLAGS) -c source/rain_signal.c
++ $(CC) $(CFLAGS) -c source/rain_string.c
++ $(CC) $(CFLAGS) -c source/rain_tcp.c
++ $(CC) $(CFLAGS) -c source/rain_udp.c
++ $(CC) $(CFLAGS) -c source/rain_main.c
+
+- -$(CC) $(CFLAGS) $(LDFLAGS) -o rain rain_command_line.o rain_defaults.o rain_die.o rain_icmp.o rain_igmp.o rain_inet_common.o rain_main.o rain_mem.o rain_resolv.o rain_services.o rain_signal.o rain_string.o rain_tcp.o rain_udp.o
++ $(CC) $(CFLAGS) $(LDFLAGS) -o rain rain_command_line.o rain_defaults.o rain_die.o rain_icmp.o rain_igmp.o rain_inet_common.o rain_main.o rain_mem.o rain_resolv.o rain_services.o rain_signal.o rain_string.o rain_tcp.o rain_udp.o
+
+ @echo done.
+
diff --git a/net-analyzer/rain/files/rain-1.2.9_beta1-fno-common.patch b/net-analyzer/rain/files/rain-1.2.9_beta1-fno-common.patch
new file mode 100644
index 000000000000..06eb84fc2e77
--- /dev/null
+++ b/net-analyzer/rain/files/rain-1.2.9_beta1-fno-common.patch
@@ -0,0 +1,111 @@
+--- a/include/rain_inet_common.h
++++ b/include/rain_inet_common.h
+@@ -368,14 +368,14 @@
+ /*
+ * global variables
+ */
+-u_int16_t packetsize;
+-unsigned char *buffer; /* For holding packets. Declared globally to ensure it is freed when the program exits */
+-time_t send_start; /* for storing start and finish time of total packets sent */
+-time_t send_finish;
+-unsigned long packets_sent;
+-u_short verbose;
+-struct in_addr group; /* for ICMP gateway and IGMP group addresses */
+-int sendflags; /* stores flags for sendto(); Default is 0 */
++extern u_int16_t packetsize;
++extern unsigned char *buffer; /* For holding packets. Declared globally to ensure it is freed when the program exits */
++extern time_t send_start; /* for storing start and finish time of total packets sent */
++extern time_t send_finish;
++extern unsigned long packets_sent;
++extern u_short verbose;
++extern struct in_addr group; /* for ICMP gateway and IGMP group addresses */
++extern int sendflags; /* stores flags for sendto(); Default is 0 */
+ /*---------------------------*/
+
+
+--- a/source/rain_inet_common.c
++++ b/source/rain_inet_common.c
+@@ -17,6 +17,18 @@
+ *-------------------------------------------------*/
+ #include "rain_common.h"
+
++/*
++ * global variables
++ */
++u_int16_t packetsize;
++unsigned char *buffer; /* For holding packets. Declared globally to ensure it is freed when the program exits */
++time_t send_start; /* for storing start and finish time of total packets sent */
++time_t send_finish;
++unsigned long packets_sent;
++u_short verbose;
++struct in_addr group; /* for ICMP gateway and IGMP group addresses */
++int sendflags; /* stores flags for sendto(); Default is 0 */
++/*---------------------------*/
+
+ /*
+ * Internet checksum routine (RFC 1071)
+--- a/include/rain_icmp.h
++++ b/include/rain_icmp.h
+@@ -20,7 +20,7 @@
+
+
+
+-unsigned char icmpinfo[56][56][56];
++extern unsigned char icmpinfo[56][56][56];
+
+
+ /*
+--- a/source/rain_icmp.c
++++ b/source/rain_icmp.c
+@@ -17,6 +17,7 @@
+ *-------------------------------------------------*/
+ #include "rain_common.h"
+
++unsigned char icmpinfo[56][56][56];
+
+ /*
+ * Prints all the ICMP type/code combinations
+--- a/include/rain_igmp.h
++++ b/include/rain_igmp.h
+@@ -18,7 +18,7 @@
+ #ifndef _RAIN_IGMP_H
+ #define _RAIN_IGMP_H
+
+-unsigned char igmpinfo[56][56][5];
++extern unsigned char igmpinfo[56][56][5];
+
+
+ extern void print_igmp_info(void);
+--- a/source/rain_igmp.c
++++ b/source/rain_igmp.c
+@@ -17,7 +17,7 @@
+ *-------------------------------------------------*/
+ #include "rain_common.h"
+
+-
++unsigned char igmpinfo[56][56][5];
+
+ /*
+ * Prints IGMP type/code descriptions
+--- a/include/rain_tcp.h
++++ b/include/rain_tcp.h
+@@ -20,7 +20,7 @@
+ #ifndef _RAIN_TCP_H
+ #define _RAIN_TCP_H
+
+-unsigned char tcpinfo[25];
++extern unsigned char tcpinfo[25];
+
+ extern void tcp_info_init(struct pkt_info_tcp *);
+ extern int tcp_shower_connect(struct sockaddr_in *, struct pkt_info *);
+--- a/source/rain_tcp.c
++++ b/source/rain_tcp.c
+@@ -17,7 +17,7 @@
+ *-------------------------------------------------*/
+ #include "rain_common.h"
+
+-
++unsigned char tcpinfo[25];
+
+ /*
+ * tcp_info_init():
diff --git a/net-analyzer/rain/rain-1.2.9_beta1-r1.ebuild b/net-analyzer/rain/rain-1.2.9_beta1-r1.ebuild
new file mode 100644
index 000000000000..84351e1ba87e
--- /dev/null
+++ b/net-analyzer/rain/rain-1.2.9_beta1-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit autotools
+
+MY_P=${P/_/}
+MY_P=${MY_P/-/_}
+DESCRIPTION="powerful tool for testing stability of utilizing IP protocols"
+HOMEPAGE="http://www.mirrors.wiretapped.net/security/packet-construction/rain/"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+SRC_URI="
+ mirror://ubuntu/pool/universe/r/${PN}/${MY_P}.orig.tar.gz
+ mirror://ubuntu/pool/universe/r/${PN}/${MY_P}-1.diff.gz
+"
+
+DOCS=( BUGS CHANGES README TODO )
+S="${WORKDIR}/${MY_P/_/-}"
+PATCHES=(
+ "${WORKDIR}"/${MY_P}-1.diff
+ "${FILESDIR}"/${P}-fno-common.patch
+ "${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${P}-die-on-error.patch
+)
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_install() {
+ default
+ gunzip "${ED}"/usr/share/man/man1/${PN}.1.gz || die
+}