diff options
Diffstat (limited to 'net-analyzer/packit')
-rw-r--r-- | net-analyzer/packit/Manifest | 8 | ||||
-rw-r--r-- | net-analyzer/packit/files/packit-1.0-format.patch | 43 | ||||
-rw-r--r-- | net-analyzer/packit/files/packit-1.0-nostrip.patch | 10 | ||||
-rw-r--r-- | net-analyzer/packit/files/packit-1.0-overflow.patch | 58 | ||||
-rw-r--r-- | net-analyzer/packit/files/packit-1.0-pcap-header.patch | 22 | ||||
-rw-r--r-- | net-analyzer/packit/packit-1.0-r2.ebuild | 33 | ||||
-rw-r--r-- | net-analyzer/packit/packit-1.6.1.ebuild | 6 |
7 files changed, 4 insertions, 176 deletions
diff --git a/net-analyzer/packit/Manifest b/net-analyzer/packit/Manifest index 8fc85c32d50f..f5df66321db9 100644 --- a/net-analyzer/packit/Manifest +++ b/net-analyzer/packit/Manifest @@ -1,10 +1,4 @@ -AUX packit-1.0-format.patch 1827 BLAKE2B 29afb31ec0f6d4952ea450cdb4c45b453099d1cef1fd07c4b98ad4d5c24d305cf8562e0c80f301b4e0ab14b5e48d4cbdb298b5185c0961426d2e28db448fbf5e SHA512 e82a0a917228cbd95520b89aedb8259c94b4442af4ae6b8bfe0b4ea3d182c542a0b7dcf58850855a9f2fdd7b15b9d6978fa3ef0581d39760199366b0ae58fa97 AUX packit-1.0-noopt.patch 214 BLAKE2B a0f981b13b21f9e6f37f87f69e36aa41c68c6c3fefc3337a7864d7e554315de555304c0f76227870a0b498d5301438038c175f66d908e5cd470407c79717fe40 SHA512 a4d0bcdb8947d219459d1a5687cdcadb7f8e9792bad2adabe8a402d42e19c5ca9e6e808bd6d832490af271d58d555d18c5f4949758233b47f27d7e115d36e6f3 -AUX packit-1.0-nostrip.patch 125 BLAKE2B 52d77227d70a59c372b15757edb03f1d0d91c29695d844b9077e8755e7afcc6023e6f6affdbb3991cee723b98540afce0119c5d64a62f83d631e9493a498a541 SHA512 b0cad5051c5f242a526ccd0ee04c27dd80bd8ba48a79164d8dd57aeecca800c977c79e12c999fa971c4ce1a39585d6f8581fae9e3b35dc200ce40922cdb122f3 -AUX packit-1.0-overflow.patch 1444 BLAKE2B 6c5d13b342890effd4f2d0da982e6deb05adbf53b4b9e91e144286211a9e6b9825c719e91691eabd5ad152569bd0dfa18fe2be582606dfce8190072f1c06729e SHA512 7798177a770e81b0db4bd2cf879d17f1dd6a0ae763e4546f2136e5cfc0e49e22d7c0b8eac1bb4409a026a8a072baae93f4c5d1079a3ac0dfc589a2fad15ecdd1 -AUX packit-1.0-pcap-header.patch 448 BLAKE2B f7d1932dd9394d00bb866a6d312ab0c9d2a24dfdb3cc22bd96c631f46486a964d0d2c63f28e3e34a0a432e5e71654c25310f1155188bad12d462f22113f8be08 SHA512 a88baa7cde0e333fa604f219dbabe77db4452dcf3a8071a8e3e4977b45947ea7827b5746cd187ab32bf236777e415e4f7cb0b3d18ee6ef776783bdbf9e6ef886 -DIST packit-1.0.tgz 138367 BLAKE2B d3677368d248aefaefbf2fbee51035ade7923db8cdc4ee4b19fef97b606beacbef52e1e704de50bf0f042a38fa9ed1d4149ab1dbd5726aeeef7093786407e282 SHA512 cc7e957d2149edbc92d4d914c9f29aecb7945bab43f2df7435bc4c21a4724f92e9d99990683e4d301384117f79819f87f423eaa28dbef11b37a96c4aa40a1398 DIST packit-1.6.1.tar.gz 52643 BLAKE2B 4b67c179140a21ec3dc8b5ae2e116a771fdbd860c3a880588a29346f04c956a80a59fcaf84f42ae6c505554e5b942964ed3f2d3a06d408e5b36850276832994a SHA512 462470bfc755dc33418ae0a65237d0dcbbe04609de710883134bcb1e13cff9212cd9a28e888b2e839a06a566fa080ecd6c6668414f1cac2bde337c81d1ac58a2 -EBUILD packit-1.0-r2.ebuild 788 BLAKE2B d3bd4f3e7da093d5900ca52f45509e8c0c050b8a8a1378cbcab40e5c519ce9b5f312289fa63b9464618427dddc88bac60eb00131a582206c8661490ce8f5b5eb SHA512 dccbb6d0e960d51db35ade7da0df07ac28e25aee0a2f55774e385d5c240c073922bb02e0f8da4417e595ac2a2f259bd062bb7921ac655696dfd355de7e37dd09 -EBUILD packit-1.6.1.ebuild 608 BLAKE2B 58fb813c1a9377029c06d370498d1bce4c0d9bf34df76d2404b67ab3d1cc9db269867e15e2e2f046c4738ca8f85e07b89fa197548091de92f96393d3f7243384 SHA512 84b472e05fbc9c2ab46c8e869119b685e8945e15c59634643bb5018176923a2bda02eba6e90735f52866f6794f791373dea6434444c263248bb53bc4338a75d9 +EBUILD packit-1.6.1.ebuild 654 BLAKE2B c5b20ee89d1b46a6009a06ac8574ceec62c3ca7d771bce7119b366cf15a89871e97fec4cced29cefb9020fdb2d7061ef56b5920e910b58bcaf23a799557da7ff SHA512 895b69e7667302cf82a94454b3b1b404a885d165716dfb2c57e4247b1bd0a1684491137ec1bf562338e6dd1a50e71000c76439dc83242e44634e442a4b3f7ea3 MISC metadata.xml 276 BLAKE2B e21811549278e73aa9a14acfe242fd022106a39ac1300caa00615772d7f54d08a433052659a271f9ac0d453c7776fc2b9e8d86e6d3f637817c214174dde52cb2 SHA512 f0e6c6bc89659e01e157d9bf30d0a2f3fd2d71bc26c8d12489c4a44fc5237159946e25b46e7295ab4676aea63559194977a0b1e76aced31d81cf6387dd0f4250 diff --git a/net-analyzer/packit/files/packit-1.0-format.patch b/net-analyzer/packit/files/packit-1.0-format.patch deleted file mode 100644 index 88a5edd92cdc..000000000000 --- a/net-analyzer/packit/files/packit-1.0-format.patch +++ /dev/null @@ -1,43 +0,0 @@ -The original objective seems to have been to apply padding, but this -is not done at all: instead, set a precision. -JeR - ---- a/src/shape_arp_hdr.c -+++ b/src/shape_arp_hdr.c -@@ -94,7 +94,7 @@ - if(format_ethernet_addr(ahdr_o.s_eaddr, s_neaddr) == 0) - fatal_error("Invalid sender ethernet address"); - -- snprintf(ahdr_o.shw_addr, 18, "%0X:%0X:%0X:%0X:%0X:%0X", -+ snprintf(ahdr_o.shw_addr, 18, "%.2X:%.2X:%.2X:%.2X:%.2X:%.2X", - s_neaddr[0], s_neaddr[1], s_neaddr[2], s_neaddr[3], s_neaddr[4], s_neaddr[5]); - - if(ahdr_o.r_paddr == NULL) -@@ -139,7 +139,7 @@ - if(format_ethernet_addr(ahdr_o.r_eaddr, r_neaddr) == 0) - fatal_error("Invalid receiver ethernet address"); - -- snprintf(ahdr_o.rhw_addr, 18, "%0X:%0X:%0X:%0X:%0X:%0X", -+ snprintf(ahdr_o.rhw_addr, 18, "%.2X:%.2X:%.2X:%.2X:%.2X:%.2X", - r_neaddr[0], r_neaddr[1], r_neaddr[2], r_neaddr[3], r_neaddr[4], r_neaddr[5]); - - if(libnet_build_arp( ---- a/src/shape_ethernet_hdr.c -+++ b/src/shape_ethernet_hdr.c -@@ -56,7 +56,7 @@ - if(format_ethernet_addr(ehdr_o.s_addr, us_addr) == 0) - fatal_error("Invalid source ethernet address"); - -- snprintf(ehdr_o.shw_addr, 18, "%0X:%0X:%0X:%0X:%0X:%0X", -+ snprintf(ehdr_o.shw_addr, 18, "%.2X:%.2X:%.2X:%.2X:%.2X:%.2X", - us_addr[0], us_addr[1], us_addr[2], us_addr[3], us_addr[4], us_addr[5]); - - if(ehdr_o.d_addr == NULL && injection_type == ETHERTYPE_ARP) -@@ -71,7 +71,7 @@ - if(format_ethernet_addr(ehdr_o.d_addr, ud_addr) == 0) - fatal_error("Invalid destination ethernet address"); - -- snprintf(ehdr_o.dhw_addr, 18, "%0X:%0X:%0X:%0X:%0X:%0X", -+ snprintf(ehdr_o.dhw_addr, 18, "%.2X:%.2X:%.2X:%.2X:%.2X:%.2X", - ud_addr[0], ud_addr[1], ud_addr[2], ud_addr[3], ud_addr[4], ud_addr[5]); - - if(libnet_build_ethernet( diff --git a/net-analyzer/packit/files/packit-1.0-nostrip.patch b/net-analyzer/packit/files/packit-1.0-nostrip.patch deleted file mode 100644 index 672f48ca1fd6..000000000000 --- a/net-analyzer/packit/files/packit-1.0-nostrip.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/src/Makefile.in -+++ b/src/Makefile.in -@@ -450,7 +450,6 @@ - - - all: -- strip @BINS@ - cp @BINS@ $(top_srcdir) - - clean: diff --git a/net-analyzer/packit/files/packit-1.0-overflow.patch b/net-analyzer/packit/files/packit-1.0-overflow.patch deleted file mode 100644 index 3adf31a6bb82..000000000000 --- a/net-analyzer/packit/files/packit-1.0-overflow.patch +++ /dev/null @@ -1,58 +0,0 @@ ---- a/src/utils.c -+++ b/src/utils.c -@@ -137,7 +137,7 @@ - #endif - - va_start(va, msgp); -- vsnprintf(msg, 256, msgp, va); -+ vsnprintf(msg, 255, msgp, va); - - msg_len = strlen(msg); - ---- a/src/exit.c -+++ b/src/exit.c -@@ -36,7 +36,7 @@ - while(1) - { - fprintf(stderr, "\n\nWould you like to quit? (y/n): "); -- fgets(a, 16, stdin); -+ fgets(a, 2, stdin); - - if(!strncasecmp(a, "Y", 1)) - break; ---- a/src/define_defaults.c -+++ b/src/define_defaults.c -@@ -36,7 +36,7 @@ - rand_d_port = (p_mode == M_TRACE) ? 1 : 0; - r_timeout = 1; - burst_rate = 1; -- hwaddr_p[17] = 0; -+ /* hwaddr_p[18] = 0; */ - init_type = 1; - interval_sec = 1; - interval_usec = 0; ---- a/src/inject_defs.h -+++ b/src/inject_defs.h -@@ -132,9 +132,9 @@ - u_int16_t rand_d_addr; - - u_int8_t *s_addr; /* source ethernet address string */ -- u_int8_t shw_addr[17]; -+ u_int8_t shw_addr[18]; - u_int8_t *d_addr; /* destination ethernet address string */ -- u_int8_t dhw_addr[17]; -+ u_int8_t dhw_addr[18]; - } ehdr_o; - - struct arphdr_opts -@@ -153,8 +153,8 @@ - u_int8_t *r_eaddr; /* receiver ethernet address */ - u_int16_t rand_r_eaddr; - -- u_int8_t shw_addr[17]; -- u_int8_t rhw_addr[17]; -+ u_int8_t shw_addr[18]; -+ u_int8_t rhw_addr[18]; - } ahdr_o; - - libnet_t *pkt_d; diff --git a/net-analyzer/packit/files/packit-1.0-pcap-header.patch b/net-analyzer/packit/files/packit-1.0-pcap-header.patch deleted file mode 100644 index 6cda0a8e65ce..000000000000 --- a/net-analyzer/packit/files/packit-1.0-pcap-header.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- a/src/globals.h -+++ b/src/globals.h -@@ -31,7 +31,7 @@ - #include <libnet.h> - #include <pcap.h> - #include <sys/types.h> --#include <net/bpf.h> -+#include <pcap-bpf.h> - #include <signal.h> - #include <time.h> - #include <stdio.h> ---- a/src/main.h -+++ b/src/main.h -@@ -26,7 +26,7 @@ - #include <libnet.h> - #include <pcap.h> - #include <sys/types.h> --#include <net/bpf.h> -+#include <pcap-bpf.h> - #include <signal.h> - #include <time.h> - #include <stdio.h> diff --git a/net-analyzer/packit/packit-1.0-r2.ebuild b/net-analyzer/packit/packit-1.0-r2.ebuild deleted file mode 100644 index 7df31e37cab7..000000000000 --- a/net-analyzer/packit/packit-1.0-r2.ebuild +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit eutils - -DESCRIPTION="network auditing tool that allows you to monitor, manipulate, and inject customized IPv4 traffic" -HOMEPAGE="http://packetfactory.openwall.net/projects/packit/" -SRC_URI="${HOMEPAGE}downloads/${P}.tgz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc x86 ~amd64-linux ~x86-linux ~ppc-macos" - -DEPEND=" - net-libs/libnet:1.1 - net-libs/libpcap -" -RDEPEND="${DEPEND}" - -src_prepare(){ - epatch \ - "${FILESDIR}"/packit-1.0-format.patch \ - "${FILESDIR}"/packit-1.0-noopt.patch \ - "${FILESDIR}"/packit-1.0-nostrip.patch \ - "${FILESDIR}"/packit-1.0-overflow.patch \ - "${FILESDIR}"/packit-1.0-pcap-header.patch -} - -src_install() { - default - dodoc docs/* -} diff --git a/net-analyzer/packit/packit-1.6.1.ebuild b/net-analyzer/packit/packit-1.6.1.ebuild index cd4fb1dfab52..ddeeeb77d2bf 100644 --- a/net-analyzer/packit/packit-1.6.1.ebuild +++ b/net-analyzer/packit/packit-1.6.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -6,11 +6,11 @@ inherit autotools DESCRIPTION="network packet generator and capture tool" HOMEPAGE="https://github.com/resurrecting-open-source-projects/packit" -SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI="https://github.com/resurrecting-open-source-projects/packit/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux ~ppc-macos" DEPEND=" net-libs/libnet:1.1 |