summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ullmann <jokey@gentoo.org>2006-11-13 23:11:41 +0000
committerMarkus Ullmann <jokey@gentoo.org>2006-11-13 23:11:41 +0000
commit391a81a9145dc643c2516e530ba55879e06a0b1c (patch)
tree3f32a4ff2ac524c35639a167844c3120198561f0 /net-analyzer/hping
parentVersion bump for trac-0.10*. (diff)
downloadgentoo-2-391a81a9145dc643c2516e530ba55879e06a0b1c.tar.gz
gentoo-2-391a81a9145dc643c2516e530ba55879e06a0b1c.tar.bz2
gentoo-2-391a81a9145dc643c2516e530ba55879e06a0b1c.zip
Version bump thanks to Robert Buchholz
(Portage version: 2.1.2_rc1-r6)
Diffstat (limited to 'net-analyzer/hping')
-rw-r--r--net-analyzer/hping/ChangeLog11
-rw-r--r--net-analyzer/hping/files/digest-hping-3_pre200511053
-rw-r--r--net-analyzer/hping/files/hping-3_pre20051105.patch45
-rw-r--r--net-analyzer/hping/hping-3_pre20051105.ebuild55
-rw-r--r--net-analyzer/hping/metadata.xml2
5 files changed, 113 insertions, 3 deletions
diff --git a/net-analyzer/hping/ChangeLog b/net-analyzer/hping/ChangeLog
index c31f19d274ef..edf1674a34b4 100644
--- a/net-analyzer/hping/ChangeLog
+++ b/net-analyzer/hping/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-analyzer/hping
-# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/hping/ChangeLog,v 1.37 2005/08/25 01:55:23 agriffis Exp $
+# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/hping/ChangeLog,v 1.38 2006/11/13 23:11:41 jokey Exp $
+
+*hping-3_pre20051105 (13 Nov 2006)
+
+ 13 Nov 2006; Markus Ullmann <jokey@gentoo.org>
+ +files/hping-3_pre20051105.patch, metadata.xml,
+ +hping-3_pre20051105.ebuild:
+ Version bump thanks to Robert Buchholz
25 Aug 2005; Aron Griffis <agriffis@gentoo.org> files/bytesex.h.patch,
hping-2.0.0_rc3-r1.ebuild:
diff --git a/net-analyzer/hping/files/digest-hping-3_pre20051105 b/net-analyzer/hping/files/digest-hping-3_pre20051105
new file mode 100644
index 000000000000..ad3410a61b6b
--- /dev/null
+++ b/net-analyzer/hping/files/digest-hping-3_pre20051105
@@ -0,0 +1,3 @@
+MD5 ca4ea4e34bcc2162aedf25df8b2d1747 hping3-20051105.tar.gz 584001
+RMD160 e4ec209228b5cb99e2d561c5a7b1c82ff8abe540 hping3-20051105.tar.gz 584001
+SHA256 f5a671a62a11dc8114fa98eade19542ed1c3aa3c832b0e572ca0eb1a5a4faee8 hping3-20051105.tar.gz 584001
diff --git a/net-analyzer/hping/files/hping-3_pre20051105.patch b/net-analyzer/hping/files/hping-3_pre20051105.patch
new file mode 100644
index 000000000000..154237931f3f
--- /dev/null
+++ b/net-analyzer/hping/files/hping-3_pre20051105.patch
@@ -0,0 +1,45 @@
+--- libpcap_stuff.c.old 2004-06-15 18:38:08.062799704 +1200
++++ libpcap_stuff.c 2004-06-15 18:38:22.515602544 +1200
+@@ -17,7 +17,7 @@
+ #include <stdlib.h>
+ #include <sys/ioctl.h>
+ #include <pcap.h>
+-#include <net/bpf.h>
++#include <pcap-bpf.h>
+
+ #include "globals.h"
+
+--- script.c.old 2004-06-15 18:38:59.135035544 +1200
++++ script.c 2004-06-15 18:39:11.210199840 +1200
+@@ -24,7 +24,7 @@
+
+ #include <sys/ioctl.h>
+ #include <pcap.h>
+-#include <net/bpf.h>
++#include <pcap-bpf.h>
+
+ #include "release.h"
+ #include "hping2.h"
+--- configure.old 2004-06-15 19:00:55.992842728 +1200
++++ configure 2004-06-15 19:00:04.961600656 +1200
+@@ -93,7 +93,7 @@
+ else
+ USE_TCL=""
+ TCL_LIB=""
+- echo "==> WARNING: no Tcl header files found!"
++ echo "==> WARNING: no Tcl header files found."
+ fi
+ fi
+ if [ -n $USE_TCL ]
+--- Makefile.in.orig 2006-10-31 01:21:53.000000000 +0100
++++ Makefile.in 2006-10-31 01:22:08.000000000 +0100
+@@ -52,9 +52,6 @@
+ hping3: byteorder.h $(OBJ)
+ $(CC) -o hping3 $(CCOPT) $(DEBUG) $(OBJ) -L/usr/local/lib $(PCAP) @SOLARISLIB@ @TCL_LIB@
+ @echo
+- ./hping3 -v
+- @echo "use \`make strip' to strip hping3 binary"
+- @echo "use \`make install' to install hping3"
+
+ hping3-static: byteorder.h $(OBJ)
+ $(CC) -static -o hping3-static $(CCOPT) $(DEBUG) $(OBJ) -L/usr/local/lib $(PCAP) @SOLARISLIB@ @TCL_LIB@ -ldl
diff --git a/net-analyzer/hping/hping-3_pre20051105.ebuild b/net-analyzer/hping/hping-3_pre20051105.ebuild
new file mode 100644
index 000000000000..d4da27f5107c
--- /dev/null
+++ b/net-analyzer/hping/hping-3_pre20051105.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/hping/hping-3_pre20051105.ebuild,v 1.1 2006/11/13 23:11:41 jokey Exp $
+
+inherit eutils toolchain-funcs
+
+MY_P="${PN}${PV//_pre/-}"
+DESCRIPTION="A ping-like TCP/IP packet assembler/analyzer"
+HOMEPAGE="http://www.hping.org"
+SRC_URI="http://www.hping.org/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="tcl debug"
+
+S="${WORKDIR}/${MY_P}"
+
+DEPEND="net-libs/libpcap
+ tcl? ( dev-lang/tcl )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch ${FILESDIR}/${P}.patch
+
+ # Correct hard coded values
+ sed -i "9s:gcc:$(tc-getCC):" Makefile.in
+ sed -i "10s:/usr/bin/ar:$(tc-getAR):" Makefile.in
+ sed -i "11s:/usr/bin/ranlib:$(tc-getRANLIB):" Makefile.in
+ sed -i "12s:-O2:${CFLAGS}:" Makefile.in
+}
+
+src_compile() {
+
+ myconf=""
+ use tcltk || myconf="--no-tcl"
+ econf ${myconf} || die "configure failed"
+
+ if use debug; then
+ emake || die "make failed"
+ else
+ emake DEBUG="" || die "make failed"
+ fi
+}
+
+src_install () {
+ dosbin hping3
+ dosym /usr/sbin/hping3 /usr/sbin/hping
+ dosym /usr/sbin/hping3 /usr/sbin/hping2
+
+ doman docs/hping3.8
+
+ dodoc INSTALL NEWS README TODO AUTHORS BUGS CHANGES
+}
diff --git a/net-analyzer/hping/metadata.xml b/net-analyzer/hping/metadata.xml
index d05f9ba0821d..3c084a313e7f 100644
--- a/net-analyzer/hping/metadata.xml
+++ b/net-analyzer/hping/metadata.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<herd>no-herd</herd>
+<herd>netmon</herd>
<maintainer>
<email>avenj@gentoo.org</email>
<name>Jon Portnoy</name>