summaryrefslogtreecommitdiff
path: root/security/hping
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2000-10-28 01:57:17 +0000
committerJames E. Housley <jeh@FreeBSD.org>2000-10-28 01:57:17 +0000
commitd556cdb473f354c7897de01fc2a876e90de863c0 (patch)
tree1475ffed0117e59038203eca971c72d68dd16068 /security/hping
parentUpdate for devel/perforce (diff)
Add New Port: security/hping
Network auditing tool PR: 21933 Submitted by: Roman Shterenzon <roman@xpert.com>
Notes
Notes: svn path=/head/; revision=34329
Diffstat (limited to 'security/hping')
-rw-r--r--security/hping/Makefile25
-rw-r--r--security/hping/distinfo1
-rw-r--r--security/hping/files/patch-aa22
-rw-r--r--security/hping/files/patch-ab13
-rw-r--r--security/hping/files/patch-ac10
-rw-r--r--security/hping/pkg-comment1
-rw-r--r--security/hping/pkg-descr22
-rw-r--r--security/hping/pkg-plist1
8 files changed, 95 insertions, 0 deletions
diff --git a/security/hping/Makefile b/security/hping/Makefile
new file mode 100644
index 000000000000..cd02b973b42c
--- /dev/null
+++ b/security/hping/Makefile
@@ -0,0 +1,25 @@
+# New ports collection makefile for: hping
+# Date Created: 5 Oct 2000
+# Whom: Roman Shterenzon <roman@xpert.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= hping
+PORTVERSION= 2b54
+CATEGORIES= security net
+MASTER_SITES= http://www.kyuzz.org/antirez/hping2-src/
+DISTNAME= hping2-beta54
+
+MAINTAINER= roman@xpert.com
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --force-libpcap
+
+MAN8= hping.8
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/hping2 ${PREFIX}/sbin/hping
+ ${INSTALL_MAN} ${WRKSRC}/docs/hping2.8 ${PREFIX}/man/man8/hping.8
+
+.include <bsd.port.mk>
diff --git a/security/hping/distinfo b/security/hping/distinfo
new file mode 100644
index 000000000000..06733487e4a6
--- /dev/null
+++ b/security/hping/distinfo
@@ -0,0 +1 @@
+MD5 (hping2-beta54.tar.gz) = 703f2102b948f214d59d89b41bca9923
diff --git a/security/hping/files/patch-aa b/security/hping/files/patch-aa
new file mode 100644
index 000000000000..f60706776698
--- /dev/null
+++ b/security/hping/files/patch-aa
@@ -0,0 +1,22 @@
+--- configure.orig Thu Jul 6 20:06:10 2000
++++ configure Thu Oct 5 15:33:45 2000
+@@ -65,8 +65,8 @@
+ ;;
+ *"--force-libpcap")
+ FORCE_LIBPCAP="-DFORCE_LIBPCAP"
+- PCAP="PCAP=libpcap/libpcap.a"
+- PCAP_INCLUDE="-I./libpcap"
++ PCAP="PCAP=-lpcap"
++ PCAP_INCLUDE=""
+ ;;
+ *"--dont-use-proc")
+ HAVE_PROC=""
+@@ -92,7 +92,7 @@
+ -e s/@FORCE_LIBPCAP@/"$FORCE_LIBPCAP"/g \
+ -e s/@HAVE_PROC@/"$HAVE_PROC"/g \
+ -e s^@PCAP@^"$PCAP"^g \
+- -e s^@PCAP_INCLUDE@^"$PCAP_INCLUDE$"^g \
++ -e s^@PCAP_INCLUDE@^"$PCAP_INCLUDE"^g \
+ -e s^@MANPATH@^"$INSTALL_MANPATH"^g \
+ > Makefile
+
diff --git a/security/hping/files/patch-ab b/security/hping/files/patch-ab
new file mode 100644
index 000000000000..fcc4cad3fa43
--- /dev/null
+++ b/security/hping/files/patch-ab
@@ -0,0 +1,13 @@
+--- Makefile.in.orig Thu Oct 5 15:22:25 2000
++++ Makefile.in Thu Oct 5 15:25:28 2000
+@@ -6,8 +6,8 @@
+ # $date: Sun Jul 25 17:56:15 MET DST 1999$
+ # $rev: 3$
+
+-CC= gcc
+-CCOPT= -O2 -Wall @PCAP_INCLUDE@
++CC?= gcc
++CCOPT= $(CFLAGS) -Wall @PCAP_INCLUDE@
+ DEBUG= -g
+ #uncomment the following if you need libpcap based build under linux
+ #(not raccomanded)
diff --git a/security/hping/files/patch-ac b/security/hping/files/patch-ac
new file mode 100644
index 000000000000..32e9ae6d37e0
--- /dev/null
+++ b/security/hping/files/patch-ac
@@ -0,0 +1,10 @@
+--- getlhs.c.orig Thu Oct 5 15:26:31 2000
++++ getlhs.c Thu Oct 5 15:26:26 2000
+@@ -73,6 +73,7 @@
+ else if ( strstr(ifname, "eth") /* ? */
+ || strstr(ifname, "ed")
+ || strstr(ifname, "ne")
++ || strstr(ifname, "xe") /* Xircom */
+ || strstr(ifname, "xl") /* 3com */
+ || strstr(ifname, "vx") /* 3com (older model) */
+ || strstr(ifname, "ep") /* 3com 3c589 */
diff --git a/security/hping/pkg-comment b/security/hping/pkg-comment
new file mode 100644
index 000000000000..2c244dd70f04
--- /dev/null
+++ b/security/hping/pkg-comment
@@ -0,0 +1 @@
+Network auditing tool
diff --git a/security/hping/pkg-descr b/security/hping/pkg-descr
new file mode 100644
index 000000000000..3ea23af55788
--- /dev/null
+++ b/security/hping/pkg-descr
@@ -0,0 +1,22 @@
+hping2 is a network tool able to send custom ICMP/UDP/TCP
+packets and to display target replies like ping do with
+ICMP replies. hping2 handle fragmentation, arbitrary packet
+body and size and can be used in order to transfer files
+under supported protocols. Using hping2 you are able at
+least to perform the following jobs:
+
+ - Test firewall rules
+ - [spoofed] port scanning
+ - Test net performance using different protocols,
+ packet size, TOS (type of service) and fragmentation.
+ - Path MTU discovery
+ - Files transfering even between really fascist firewall rules.
+ - Traceroute like under different protocols.
+ - Firewalk like usage.
+ - Remote OS fingerprint.
+ - TCP/IP stack auditing.
+ - A lot of others.
+
+WWW: http://www.kyuzz.org/antirez/hping/
+
+-- Roman Shterenzon <roman@xpert.com>
diff --git a/security/hping/pkg-plist b/security/hping/pkg-plist
new file mode 100644
index 000000000000..3e67b27d4975
--- /dev/null
+++ b/security/hping/pkg-plist
@@ -0,0 +1 @@
+sbin/hping