summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Walker <ka0ttic@gentoo.org>2005-01-31 10:39:56 +0000
committerAaron Walker <ka0ttic@gentoo.org>2005-01-31 10:39:56 +0000
commit749e9245b16b2a5d719286902a9454a7319e6a87 (patch)
tree66b258647a0e1049833ed9ceeb8430603363b67f /net-analyzer/traceproto
parentInitial commit for bug 62844. (diff)
downloadgentoo-2-749e9245b16b2a5d719286902a9454a7319e6a87.tar.gz
gentoo-2-749e9245b16b2a5d719286902a9454a7319e6a87.tar.bz2
gentoo-2-749e9245b16b2a5d719286902a9454a7319e6a87.zip
Initial commit for bug 65438.
(Portage version: 2.0.51-r15)
Diffstat (limited to 'net-analyzer/traceproto')
-rw-r--r--net-analyzer/traceproto/ChangeLog10
-rw-r--r--net-analyzer/traceproto/Manifest5
-rw-r--r--net-analyzer/traceproto/files/digest-traceproto-1.1.11
-rw-r--r--net-analyzer/traceproto/files/traceproto-1.1.1-fix-warnings.diff59
-rw-r--r--net-analyzer/traceproto/metadata.xml5
-rw-r--r--net-analyzer/traceproto/traceproto-1.1.1.ebuild37
6 files changed, 117 insertions, 0 deletions
diff --git a/net-analyzer/traceproto/ChangeLog b/net-analyzer/traceproto/ChangeLog
new file mode 100644
index 000000000000..bab1bf3654bc
--- /dev/null
+++ b/net-analyzer/traceproto/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-analyzer/traceproto
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/traceproto/ChangeLog,v 1.1 2005/01/31 10:39:56 ka0ttic Exp $
+
+*traceproto-1.1.1 (31 Jan 2005)
+
+ 31 Jan 2005; Aaron Walker <ka0ttic@gentoo.org> +metadata.xml,
+ +files/traceproto-1.1.1-fix-warnings.diff, +traceproto-1.1.1.ebuild:
+ Initial commit for bug 65438.
+
diff --git a/net-analyzer/traceproto/Manifest b/net-analyzer/traceproto/Manifest
new file mode 100644
index 000000000000..f651798db604
--- /dev/null
+++ b/net-analyzer/traceproto/Manifest
@@ -0,0 +1,5 @@
+MD5 52b7144ddb45973f156331a99b475fbf traceproto-1.1.1.ebuild 835
+MD5 63987834f417b83fa7a3279d93f6c1b4 ChangeLog 325
+MD5 637389da071d8ee0c0292695525bc29f metadata.xml 160
+MD5 1a3c5caf1acac2a8326789361bf81663 files/traceproto-1.1.1-fix-warnings.diff 2407
+MD5 e489db124aef70ee3c4067dcc0f15c2d files/digest-traceproto-1.1.1 68
diff --git a/net-analyzer/traceproto/files/digest-traceproto-1.1.1 b/net-analyzer/traceproto/files/digest-traceproto-1.1.1
new file mode 100644
index 000000000000..6c24866e0fed
--- /dev/null
+++ b/net-analyzer/traceproto/files/digest-traceproto-1.1.1
@@ -0,0 +1 @@
+MD5 0050c32bbeb3638732587d09eee4d218 traceproto-1.1.1.tar.gz 135394
diff --git a/net-analyzer/traceproto/files/traceproto-1.1.1-fix-warnings.diff b/net-analyzer/traceproto/files/traceproto-1.1.1-fix-warnings.diff
new file mode 100644
index 000000000000..1882436fd3bf
--- /dev/null
+++ b/net-analyzer/traceproto/files/traceproto-1.1.1-fix-warnings.diff
@@ -0,0 +1,59 @@
+diff -urN traceproto-1.1.1.orig/tp_packet.c traceproto-1.1.1/tp_packet.c
+--- traceproto-1.1.1.orig/tp_packet.c 2005-01-31 01:03:57.248742848 -0500
++++ traceproto-1.1.1/tp_packet.c 2005-01-31 01:06:39.184124928 -0500
+@@ -103,7 +103,7 @@
+ state.low_ttl = YES;
+
+ // tcp_hdr = ( struct libnet_tcp_hdr * ) & raw_packet[ 0 ];
+- tcp_hdr = ( struct libnet_tcp_hdr * ) tp_align ( raw_packet,
++ tcp_hdr = ( struct libnet_tcp_hdr * ) tp_align ( (char *)raw_packet,
+ 0,
+ sizeof ( struct libnet_tcp_hdr ) );
+
+@@ -165,7 +165,7 @@
+ state.low_ttl = YES;
+
+ // udp_hdr = ( struct libnet_udp_hdr * ) & raw_packet[ 0 ];
+- udp_hdr = ( struct libnet_udp_hdr * ) tp_align ( raw_packet,
++ udp_hdr = ( struct libnet_udp_hdr * ) tp_align ( (char *)raw_packet,
+ 0,
+ sizeof ( struct libnet_udp_hdr ) );
+
+@@ -268,12 +268,12 @@
+ * off of the packet
+ */
+ // eth_hdr = ( struct libnet_802_3_hdr * ) raw_packet;
+- eth_hdr = ( struct libnet_802_3_hdr * ) tp_align ( raw_packet,
++ eth_hdr = ( struct libnet_802_3_hdr * ) tp_align ( (char *)raw_packet,
+ 0,
+ sizeof ( struct libnet_802_3_hdr ) );
+
+ // state.ip_hdr = ( struct libnet_ipv4_hdr * ) & raw_packet[ eth_offset ];
+- state.ip_hdr = ( struct libnet_ipv4_hdr * ) tp_align ( raw_packet,
++ state.ip_hdr = ( struct libnet_ipv4_hdr * ) tp_align ( (char *)raw_packet,
+ eth_offset,
+ sizeof ( struct libnet_ipv4_hdr ) );
+
+@@ -294,19 +294,19 @@
+ {
+ case IPPROTO_ICMP:
+ // return parse_icmp_packet ( ( const u_char * ) & raw_packet [ ipv4_offset ] );
+- return parse_icmp_packet ( ( const u_char * ) tp_align ( raw_packet,
++ return parse_icmp_packet ( ( const u_char * ) tp_align ( (char *)raw_packet,
+ ipv4_offset,
+ sizeof ( struct libnet_icmpv4_hdr ) ) );
+ break;
+ case IPPROTO_TCP:
+ // return parse_tcp_packet ( ( const u_char * ) & raw_packet [ ipv4_offset ] );
+- return parse_tcp_packet ( ( const u_char * ) tp_align ( raw_packet,
++ return parse_tcp_packet ( ( const u_char * ) tp_align ( (char *)raw_packet,
+ ipv4_offset,
+ sizeof ( struct libnet_tcp_hdr ) ) );
+ break;
+ case IPPROTO_UDP:
+ // return parse_udp_packet ( ( const u_char * ) & raw_packet [ ipv4_offset ] );
+- return parse_udp_packet ( ( const u_char * ) tp_align ( raw_packet,
++ return parse_udp_packet ( ( const u_char * ) tp_align ( (char *)raw_packet,
+ ipv4_offset,
+ sizeof ( struct libnet_udp_hdr ) ) );
+ break;
diff --git a/net-analyzer/traceproto/metadata.xml b/net-analyzer/traceproto/metadata.xml
new file mode 100644
index 000000000000..78692635ad22
--- /dev/null
+++ b/net-analyzer/traceproto/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>netmon</herd>
+</pkgmetadata>
diff --git a/net-analyzer/traceproto/traceproto-1.1.1.ebuild b/net-analyzer/traceproto/traceproto-1.1.1.ebuild
new file mode 100644
index 000000000000..e7b298b1a5cb
--- /dev/null
+++ b/net-analyzer/traceproto/traceproto-1.1.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/traceproto/traceproto-1.1.1.ebuild,v 1.1 2005/01/31 10:39:56 ka0ttic Exp $
+
+inherit eutils
+
+DESCRIPTION="A traceroute-like utility that sends packets based on protocol"
+HOMEPAGE="http://traceproto.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug ncurses"
+
+RDEPEND=">=net-libs/libnet-1.1.0
+ virtual/libpcap
+ ncurses? ( sys-libs/ncurses )
+ debug? ( dev-libs/dmalloc )"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-fix-warnings.diff
+}
+
+src_compile() {
+ local myconf
+ use debug && myconf="--enable-dmalloc"
+ econf ${myconf} || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ dodoc AUTHORS ChangeLog NEWS README TODO INSTALL
+}