summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcelo Góes <vanquirius@gentoo.org>2006-07-27 02:12:18 +0000
committerMarcelo Góes <vanquirius@gentoo.org>2006-07-27 02:12:18 +0000
commita2a308a66df56e1b1485dc86f67fe43a13e9eafb (patch)
tree4323151ad61dd50571f8c9ab4e9ba5c490f4c510 /net-analyzer
parentForgot to mask x11-themes/gdeskcal-skins (#141802) (diff)
downloadhistorical-a2a308a66df56e1b1485dc86f67fe43a13e9eafb.tar.gz
historical-a2a308a66df56e1b1485dc86f67fe43a13e9eafb.tar.bz2
historical-a2a308a66df56e1b1485dc86f67fe43a13e9eafb.zip
Add gcc-4 patch from bug 141828. Thanks to Ralf Holzer <gentoobugs at ralfhoelzer dot com>.
Package-Manager: portage-2.1-r1
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/paketto/ChangeLog9
-rw-r--r--net-analyzer/paketto/Manifest30
-rw-r--r--net-analyzer/paketto/files/1.10-gcc4.patch158
-rw-r--r--net-analyzer/paketto/files/digest-paketto-1.10-r12
-rw-r--r--net-analyzer/paketto/paketto-1.10-r1.ebuild15
5 files changed, 202 insertions, 12 deletions
diff --git a/net-analyzer/paketto/ChangeLog b/net-analyzer/paketto/ChangeLog
index d56da27865a3..a326ee1f7405 100644
--- a/net-analyzer/paketto/ChangeLog
+++ b/net-analyzer/paketto/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-analyzer/paketto
-# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/paketto/ChangeLog,v 1.10 2005/07/19 15:33:09 dholm Exp $
+# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/paketto/ChangeLog,v 1.11 2006/07/27 02:12:18 vanquirius Exp $
+
+ 27 Jul 2006; Marcelo Goes <vanquirius@gentoo.org> +files/1.10-gcc4.patch,
+ paketto-1.10-r1.ebuild:
+ Add gcc-4 patch from bug 141828. Thanks to Ralf Holzer <gentoobugs at
+ ralfhoelzer dot com>.
19 Jul 2005; David Holm <dholm@gentoo.org> paketto-1.10-r1.ebuild:
Added to ~ppc.
diff --git a/net-analyzer/paketto/Manifest b/net-analyzer/paketto/Manifest
index e637599a6b5f..7450b3dcb31c 100644
--- a/net-analyzer/paketto/Manifest
+++ b/net-analyzer/paketto/Manifest
@@ -1,6 +1,28 @@
-MD5 7d879a48977b4d8cf130ce4d16b80d35 ChangeLog 1231
-MD5 95051bf20b7a347505eff3b097fa2bb8 metadata.xml 812
-MD5 71cdd57828dda72bb897e005d715ee96 paketto-1.10-r1.ebuild 948
+AUX 1.10-gcc3.patch 785 RMD160 6ce47b797c3f6a2e5bfab66cd904db6515eda4f8 SHA1 5bef6bbc574df98ebf36644a0133ce411df9dda5 SHA256 945e5355c396c44a8fe2e1e8818cf1b11dba8396ca6cda8a5bf8b9207f5044b3
MD5 2f623e420e838cda4b64f6f1d48e2f04 files/1.10-gcc3.patch 785
+RMD160 6ce47b797c3f6a2e5bfab66cd904db6515eda4f8 files/1.10-gcc3.patch 785
+SHA256 945e5355c396c44a8fe2e1e8818cf1b11dba8396ca6cda8a5bf8b9207f5044b3 files/1.10-gcc3.patch 785
+AUX 1.10-gcc4.patch 5672 RMD160 afce1705aa6ad8298ab159c7969155d4bc6f9bab SHA1 9018ab0e4f99ca2b4ac57295d2193f19e8323335 SHA256 82c455de9254f7739b6d5fbfde9db502d74522c89ab42583fe5ea21ffc97af19
+MD5 cb0dbd235b7cb7d48b2fde3583b32e17 files/1.10-gcc4.patch 5672
+RMD160 afce1705aa6ad8298ab159c7969155d4bc6f9bab files/1.10-gcc4.patch 5672
+SHA256 82c455de9254f7739b6d5fbfde9db502d74522c89ab42583fe5ea21ffc97af19 files/1.10-gcc4.patch 5672
+AUX 1.10-libnet-1.0.patch 1944 RMD160 fa43990fcb5d126eab86bd9d5ba0f7ed386a4c60 SHA1 4c064e1ef199dd52dd436527094a7a29152551aa SHA256 4e0680dbd6321433e5563510314eaca6d25a2c3f84a7e4829567be91b52ec5a7
MD5 c41694742a0abb115eec2c9acfc2c127 files/1.10-libnet-1.0.patch 1944
-MD5 c516fafec2f15be22b14097832e91054 files/digest-paketto-1.10-r1 64
+RMD160 fa43990fcb5d126eab86bd9d5ba0f7ed386a4c60 files/1.10-libnet-1.0.patch 1944
+SHA256 4e0680dbd6321433e5563510314eaca6d25a2c3f84a7e4829567be91b52ec5a7 files/1.10-libnet-1.0.patch 1944
+DIST paketto-1.10.tar.gz 900104 RMD160 2c04af9c54f33e38c167d4ca277a0328743da419 SHA1 f4d880c0aeee442beecddf0ac31651c60ff2befa SHA256 13498ef49b79f95d1cbf4ebf15edde6b5cfdb5a67557b8060715b30fcab27b73
+EBUILD paketto-1.10-r1.ebuild 996 RMD160 9a9ac4debb35a421c55fe5084f00aa211fc8194c SHA1 c1a52b31a08d9a985e9223e150e1f274be6b2373 SHA256 f0779085a3a2e2671ece2e0c80ab7076802236d31bfc5505c2f4bbe12356b9e0
+MD5 581d16d9f43b27a2622d91fb28bb408b paketto-1.10-r1.ebuild 996
+RMD160 9a9ac4debb35a421c55fe5084f00aa211fc8194c paketto-1.10-r1.ebuild 996
+SHA256 f0779085a3a2e2671ece2e0c80ab7076802236d31bfc5505c2f4bbe12356b9e0 paketto-1.10-r1.ebuild 996
+MISC ChangeLog 1435 RMD160 6e2ff44c7373a12e49f421e0e7318920124ab359 SHA1 c4c06d1ce796d0b3fc7b85d954666a11f320b41b SHA256 1f1e2f1ebc56b2f2e7d72ccc0722da8663ac7950913d9951a20764166a970d50
+MD5 bd53cd35c3c55dad224dac7a45b4a8af ChangeLog 1435
+RMD160 6e2ff44c7373a12e49f421e0e7318920124ab359 ChangeLog 1435
+SHA256 1f1e2f1ebc56b2f2e7d72ccc0722da8663ac7950913d9951a20764166a970d50 ChangeLog 1435
+MISC metadata.xml 812 RMD160 c85256e5243f937ad6055ad3b93b83c5e22632ca SHA1 8c2bd223c89647e2c0ec0f2e199a7b9d9a1c4729 SHA256 58a85eae49879c73b223b1a84016976c369a17e791b2377ba5e5d00be1bda20f
+MD5 95051bf20b7a347505eff3b097fa2bb8 metadata.xml 812
+RMD160 c85256e5243f937ad6055ad3b93b83c5e22632ca metadata.xml 812
+SHA256 58a85eae49879c73b223b1a84016976c369a17e791b2377ba5e5d00be1bda20f metadata.xml 812
+MD5 5f8aef551ddd68468f57195d915e7d8f files/digest-paketto-1.10-r1 238
+RMD160 236011b83687545b7cbc3c84cb7a9952cedc8a64 files/digest-paketto-1.10-r1 238
+SHA256 5e42638b46f7ca6e142c3bdad92391c880d519eb832008264e9776208407b9f8 files/digest-paketto-1.10-r1 238
diff --git a/net-analyzer/paketto/files/1.10-gcc4.patch b/net-analyzer/paketto/files/1.10-gcc4.patch
new file mode 100644
index 000000000000..ef0e79328149
--- /dev/null
+++ b/net-analyzer/paketto/files/1.10-gcc4.patch
@@ -0,0 +1,158 @@
+diff --exclude='*~' -Naur src.orig/lc.c src/lc.c
+--- src.orig/lc.c 2006-07-26 14:30:24.000000000 -0700
++++ src/lc.c 2006-07-26 14:37:34.000000000 -0700
+@@ -190,7 +190,7 @@
+ break;
+ case 'h':
+ if(sniff_file[0]=='-' &&
+- sniff_file[1]==0) (void *)sniff.dump = stdout;
++ sniff_file[1]==0) sniff.dump = stdout;
+ else sniff.dump = (void *)fopen(sniff_file, "w");
+ if(!sniff.dump){
+ fprintf(stderr, "Couldn't open file: %s\n", sniff.dump);
+@@ -223,7 +223,7 @@
+ break;
+ case 'h':
+ if(spoof_file[0]=='-' &&
+- spoof_file[1]==0) (void *)spoof.pcap = stdin;
++ spoof_file[1]==0) spoof.pcap = stdin;
+ else spoof.pcap = (void *)fopen(spoof_file, "r");
+ if(!spoof.pcap){
+ fprintf(stderr, "Couldn't open file: %s\n", spoof.pcap);
+@@ -244,7 +244,7 @@
+ i=1;
+ if(!pid){
+ if(sniff_packets){
+- (void *)sniff.packet = pcap_next(sniff.pcap, &(sniff.pkthdr));
++ sniff.packet = pcap_next(sniff.pcap, &(sniff.pkthdr));
+ if(!sniff.packet) continue; /* network has "infinite packets, but there's blocking */
+ if(trailer_sniff){
+ pk_hmac(buf, sniff_key, sniff.packet, sniff.pkthdr.caplen-21);
+diff --exclude='*~' -Naur src.orig/minewt.c src/minewt.c
+--- src.orig/minewt.c 2006-07-26 14:28:11.000000000 -0700
++++ src/minewt.c 2006-07-26 14:37:34.000000000 -0700
+@@ -599,7 +599,7 @@
+ /* XXX very probable security hole lives here -- we must validate length, at minimum*/
+ if(stateless_ipt &&
+ (x.ip->ip_hl*4) != LIBNET_IP_H){
+- (char *)packet_state = (char *)x.ip + LIBNET_IP_H + 4;
++ packet_state = (char *)x.ip + LIBNET_IP_H + 4;
+ }
+
+ if(packet_state || (packet_state = find_entry(packet_key)))
+diff --exclude='*~' -Naur src.orig/paketto.c src/paketto.c
+--- src.orig/paketto.c 2006-07-26 14:24:27.000000000 -0700
++++ src/paketto.c 2006-07-26 14:37:34.000000000 -0700
+@@ -109,7 +109,7 @@
+ if(datalink != DLT_EN10MB) return(0); /* validate is our ethernet */
+ if(length < LIBNET_ETH_H) return(0); /* validate can be ethernet */
+
+- (char *)x->eth = (char *)packet;
++ x->eth = (char *)packet;
+ l2_offset=LIBNET_ETH_H;
+ ok += l2_offset;
+
+@@ -118,7 +118,7 @@
+ case ETHERTYPE_ARP:
+ if(length < LIBNET_ETH_H + LIBNET_ARP_H)
+ return(0);
+- (char *)x->arp = (char *)x->eth + LIBNET_ETH_H;
++ x->arp = (char *)x->eth + LIBNET_ETH_H;
+ ok+=LIBNET_ARP_H;
+ return(ok);
+ break;
+@@ -133,8 +133,8 @@
+ if(length < l2_offset + LIBNET_IP_H) /* Could we be IP? */
+ return(0);
+ ok+=LIBNET_IP_H;
+- if(x->eth) (char *)x->ip = (char *)x->eth + l2_offset;
+- else (char *)x->ip = (char *)packet;
++ if(x->eth) x->ip = (char *)x->eth + l2_offset;
++ else x->ip = (char *)packet;
+
+ if(x->ip->ip_off != 0 && x->ip->ip_off != ntohs(16384)) return(0);
+ if(x->ip->ip_v != 4) return(0);
+@@ -164,19 +164,19 @@
+ return(0);
+ ok+=LIBNET_TCP_H;
+ }
+- (char *)x->tcp = (char *)x->ip + ((int)x->ip->ip_hl*4);
++ x->tcp = (char *)x->ip + ((int)x->ip->ip_hl*4);
+ break;
+ case IPPROTO_UDP:
+ if(length < l2_offset + (int)x->ip->ip_hl*4 + LIBNET_UDP_H)
+ return(0);
+ ok+=LIBNET_UDP_H;
+- (char *)x->udp = (char *)x->ip + ((int)x->ip->ip_hl*4);
++ x->udp = (char *)x->ip + ((int)x->ip->ip_hl*4);
+ break;
+ case IPPROTO_ICMP:
+ if(length < l2_offset + (int)x->ip->ip_hl*4 + 8)
+ return(0);
+ ok+=LIBNET_ICMP_H;
+- (char *)x->icmp= (char *)x->ip + ((int)x->ip->ip_hl*4);
++ x->icmp= (char *)x->ip + ((int)x->ip->ip_hl*4);
+ break;
+ default:
+ return(0);
+@@ -317,7 +317,7 @@
+ char buf[MX_B], buf2[MX_B];
+ struct frame x;
+
+- (char *)x.ip = target;
++ x.ip = target;
+ snprintf(buf, sizeof(buf), "%s", inet_ntoa(x.ip->ip_src));
+ snprintf(buf2, sizeof(buf2), "%s", inet_ntoa(x.ip->ip_dst));
+ fprintf(stderr, " IP: i=%s->%s v=%hu hl=%hu s=%hu id=%i o=%hu ttl=%hu pay=%u\n",
+@@ -334,7 +334,7 @@
+ char tmp = '\n';
+
+ if(!short_tcp)tmp=' ';
+- (char *)x.tcp = target;
++ x.tcp = target;
+ fprintf(stderr, "TCP: p=%u->%u, s/a=%u%c",
+ ntohs(x.tcp->th_sport), ntohs(x.tcp->th_dport), ntohl(x.tcp->th_seq),tmp);
+ if(!short_tcp) fprintf(stderr, "-> %u o=%hu f=%hu w=%u u=%u optl=%i\n",
+diff --exclude='*~' -Naur src.orig/scanutil.c src/scanutil.c
+--- src.orig/scanutil.c 2006-07-26 14:28:50.000000000 -0700
++++ src/scanutil.c 2006-07-26 14:37:34.000000000 -0700
+@@ -10,8 +10,8 @@
+ u_char syncookie[20];
+ long synbits;
+
+- (char *)ip = (char *)ipp;
+- (char *)tcp = (char *)ip + (int)ip->ip_hl*4;
++ ip = (char *)ipp;
++ tcp = (char *)ip + (int)ip->ip_hl*4;
+
+
+ bzero(buf, sizeof(buf));
+@@ -39,8 +39,8 @@
+ u_char syncookie[20];
+ long synbits;
+
+- (char *)ip = (char *)ipp;
+- (char *)tcp = (char *)ip + (int)ip->ip_hl*4;
++ ip = (char *)ipp;
++ tcp = (char *)ip + (int)ip->ip_hl*4;
+
+ bzero(buf, sizeof(buf));
+ memcpy(buf, &ip->ip_dst, 4);
+@@ -261,7 +261,7 @@
+ 0, /*how much crap*/
+ (char *)x->eth);
+
+- (char *)x->ip = (char *)x->eth + LIBNET_ETH_H;
++ x->ip = (char *)x->eth + LIBNET_ETH_H;
+
+ libnet_build_ip(LIBNET_TCP_H,
+ 0, // tos
+@@ -276,7 +276,7 @@
+ (char *)x->ip);
+
+ x->ip->ip_off = 64; /* set DF flag */
+- (char *)x->tcp = (char *)x->ip + (int)x->ip->ip_hl*4;
++ x->tcp = (char *)x->ip + (int)x->ip->ip_hl*4;
+
+ libnet_build_tcp(12345, // source port
+ 139, // dest port
diff --git a/net-analyzer/paketto/files/digest-paketto-1.10-r1 b/net-analyzer/paketto/files/digest-paketto-1.10-r1
index 935a21aaff24..1e700de4566c 100644
--- a/net-analyzer/paketto/files/digest-paketto-1.10-r1
+++ b/net-analyzer/paketto/files/digest-paketto-1.10-r1
@@ -1 +1,3 @@
MD5 7fd82af09a6493f24c8681f7bbf03898 paketto-1.10.tar.gz 900104
+RMD160 2c04af9c54f33e38c167d4ca277a0328743da419 paketto-1.10.tar.gz 900104
+SHA256 13498ef49b79f95d1cbf4ebf15edde6b5cfdb5a67557b8060715b30fcab27b73 paketto-1.10.tar.gz 900104
diff --git a/net-analyzer/paketto/paketto-1.10-r1.ebuild b/net-analyzer/paketto/paketto-1.10-r1.ebuild
index 8154d8d9e897..ce939ed9b0ca 100644
--- a/net-analyzer/paketto/paketto-1.10-r1.ebuild
+++ b/net-analyzer/paketto/paketto-1.10-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2005 Gentoo Foundation
+# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/paketto/paketto-1.10-r1.ebuild,v 1.10 2005/07/19 15:33:09 dholm Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/paketto/paketto-1.10-r1.ebuild,v 1.11 2006/07/27 02:12:18 vanquirius Exp $
inherit eutils
@@ -21,13 +21,16 @@ DEPEND="<net-libs/libnet-1.1
src_unpack() {
unpack ${A}
- cd ${S}
- epatch ${FILESDIR}/${PV}-gcc3.patch
- epatch ${FILESDIR}/${PV}-libnet-1.0.patch
+
+ cd "${S}"
+ epatch "${FILESDIR}"/${PV}-gcc3.patch
+ epatch "${FILESDIR}"/${PV}-libnet-1.0.patch
+ # bug 141828
+ epatch "${FILESDIR}"/1.10-gcc4.patch
}
src_install() {
einstall || die
- dodoc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
+ dodoc AUTHORS ChangeLog NEWS README TODO
dodoc docs/lc_logs.txt docs/minewt_logs.txt docs/paratrace_logs.txt docs/scanrand_logs.txt
}