diff options
author | Jeroen Roovers <jer@gentoo.org> | 2020-01-02 01:10:21 +0100 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2020-01-02 01:11:53 +0100 |
commit | cecd4c967eb43992134b544a3b013eb1b778e730 (patch) | |
tree | 80d04fa964c8abdd396510a43ea285e52937a04f /net-analyzer | |
parent | net-analyzer/packit: Stable (diff) | |
download | gentoo-cecd4c967eb43992134b544a3b013eb1b778e730.tar.gz gentoo-cecd4c967eb43992134b544a3b013eb1b778e730.tar.bz2 gentoo-cecd4c967eb43992134b544a3b013eb1b778e730.zip |
net-analyzer/packit: Old
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'net-analyzer')
-rw-r--r-- | net-analyzer/packit/Manifest | 1 | ||||
-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 |
6 files changed, 0 insertions, 167 deletions
diff --git a/net-analyzer/packit/Manifest b/net-analyzer/packit/Manifest index 8bbf0b42d8c9..ad0264dcc2f7 100644 --- a/net-analyzer/packit/Manifest +++ b/net-analyzer/packit/Manifest @@ -1,2 +1 @@ -DIST packit-1.0.tgz 138367 BLAKE2B d3677368d248aefaefbf2fbee51035ade7923db8cdc4ee4b19fef97b606beacbef52e1e704de50bf0f042a38fa9ed1d4149ab1dbd5726aeeef7093786407e282 SHA512 cc7e957d2149edbc92d4d914c9f29aecb7945bab43f2df7435bc4c21a4724f92e9d99990683e4d301384117f79819f87f423eaa28dbef11b37a96c4aa40a1398 DIST packit-1.6.1.tar.gz 52643 BLAKE2B 4b67c179140a21ec3dc8b5ae2e116a771fdbd860c3a880588a29346f04c956a80a59fcaf84f42ae6c505554e5b942964ed3f2d3a06d408e5b36850276832994a SHA512 462470bfc755dc33418ae0a65237d0dcbbe04609de710883134bcb1e13cff9212cd9a28e888b2e839a06a566fa080ecd6c6668414f1cac2bde337c81d1ac58a2 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/* -} |