[Midnightbsd-cvs] mports: mports/net: add hping.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri May 30 20:01:23 EDT 2008
Log Message:
-----------
add hping.
Modified Files:
--------------
mports/net:
Makefile (r1.76 -> r1.77)
Added Files:
-----------
mports/net/hping:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
mports/net/hping/files:
patch-Makefile.in (r1.1)
patch-bytesex.h (r1.1)
patch-configure (r1.1)
-------------- next part --------------
--- /dev/null
+++ net/hping/pkg-descr
@@ -0,0 +1,21 @@
+hping is a command-line oriented TCP/IP packet assembler/analyzer.
+The interface is inspired to the ping(8) unix command, but hping isn't
+only able to send ICMP echo requests. It supports TCP, UDP, ICMP and
+RAW-IP protocols, has a traceroute mode, the ability to send files
+between a covered channel, and many other features.
+While hping was mainly used as a security tool in the past, it can be
+used in many ways by people that don't care about security to test
+networks and hosts. A subset of the stuff you can do using hping:
+
+ - 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.
+
+WWW: http://www.hping.org/
--- /dev/null
+++ net/hping/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: hping
+# Date Created: 5 Oct 2000
+# Whom: Roman Shterenzon <roman at xpert.com>
+#
+# $MidnightBSD: mports/net/hping/Makefile,v 1.1 2008/05/31 00:01:21 laffer1 Exp $
+# $FreeBSD: ports/net/hping/Makefile,v 1.15 2005/11/15 10:30:07 az Exp $
+#
+
+PORTNAME= hping
+PORTVERSION= 2.0.0r3
+PORTEPOCH= 1
+CATEGORIES= net security
+MASTER_SITES= http://www.hping.org/ \
+ http://ipv42.net/distfiles/hping/
+DISTNAME= hping2.0.0-rc3
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Network auditing tool
+LICENSE= gpl2
+
+WRKSRC= ${WRKDIR}/hping2-rc3
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --force-libpcap
+USE_GMAKE= yes
+
+PLIST_FILES= sbin/hping
+PORTDOCS= AS-BACKDOOR HPING2-HOWTO.txt HPING2-IS-OPEN \
+ MORE-FUN-WITH-IPID SPOOFED_SCAN.txt APD.txt
+
+MAN8= hping.8
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/hping2 ${PREFIX}/sbin/hping
+ ${INSTALL_MAN} ${WRKSRC}/docs/hping2.8 ${PREFIX}/man/man8/hping.8
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}
+.for i in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/docs/${i} ${DOCSDIR}/
+.endfor
+.endif
+
+.include <bsd.port.mk>
--- /dev/null
+++ net/hping/distinfo
@@ -0,0 +1,3 @@
+MD5 (hping2.0.0-rc3.tar.gz) = 029bf240f2e0545b664b2f8b9118d9e8
+SHA256 (hping2.0.0-rc3.tar.gz) = f59292de39b9a4010414bd120a494226399767148efa37278bd53d9613167964
+SIZE (hping2.0.0-rc3.tar.gz) = 124573
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/net/Makefile,v
retrieving revision 1.76
retrieving revision 1.77
diff -L net/Makefile -L net/Makefile -u -r1.76 -r1.77
--- net/Makefile
+++ net/Makefile
@@ -17,6 +17,7 @@
SUBDIR += freeradius
SUBDIR += gnet2
SUBDIR += hinfo
+ SUBDIR += hping
SUBDIR += ilbc
SUBDIR += jags
SUBDIR += kdenetwork3
--- /dev/null
+++ net/hping/files/patch-bytesex.h
@@ -0,0 +1,18 @@
+
+$FreeBSD: ports/net/hping/files/patch-bytesex.h,v 1.2 2004/10/10 08:44:48 krion Exp $
+
+--- bytesex.h.orig Tue Sep 14 15:22:45 2004
++++ bytesex.h Tue Sep 14 15:21:50 2004
+@@ -8,10 +8,12 @@
+ #define ARS_BYTESEX_H
+
+ #if defined(__i386__) \
++ || defined(__ia64__) \
+ || defined(__alpha__) \
+ || (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__)))
+ #define BYTE_ORDER_LITTLE_ENDIAN
+ #elif defined(__mc68000__) \
++ || defined (__amd64__) \
+ || defined (__sparc__) \
+ || defined (__sparc) \
+ || defined (__PPC__) \
--- /dev/null
+++ net/hping/files/patch-configure
@@ -0,0 +1,10 @@
+--- configure.orig Fri Sep 14 22:04:25 2001
++++ configure Fri Sep 14 22:05:02 2001
+@@ -99,6 +99,7 @@
+ -e "s^@PCAP_INCLUDE@^$PCAP_INCLUDE^g" \
+ -e "s^@MANPATH@^$INSTALL_MANPATH^g" \
+ -e "s^@SOLARISLIB@^$SOLARISLIB^g" \
++ -e "s^@CFLAGS@^$CFLAGS^g" \
+ <Makefile.in > Makefile
+
+ #
--- /dev/null
+++ net/hping/files/patch-Makefile.in
@@ -0,0 +1,33 @@
+--- Makefile.in.orig Mon May 3 11:29:39 2004
++++ Makefile.in Wed May 19 11:23:43 2004
+@@ -6,10 +6,10 @@
+ # $date: Sun Jul 25 17:56:15 MET DST 1999$
+ # $rev: 3$
+
+-CC= gcc
++CC?= gcc
+ AR=/usr/bin/ar
+ RANLIB=/usr/bin/ranlib
+-CCOPT= -O2 -Wall @PCAP_INCLUDE@
++CCOPT= -Wall @CFLAGS@ @PCAP_INCLUDE@
+ DEBUG= -g
+ #uncomment the following if you need libpcap based build under linux
+ #(not raccomanded)
+@@ -43,7 +43,7 @@
+ $(RANLIB) $@
+
+ hping2: byteorder.h $(OBJ)
+- $(CC) -o hping2 $(CCOPT) $(DEBUG) $(OBJ) $(PCAP) @SOLARISLIB@
++ $(CC) -o hping2 $(CCOPT) $(OBJ) $(PCAP) @SOLARISLIB@
+ @echo
+ ./hping2 -v
+ @echo "use \`make strip' to strip hping2 binary"
+@@ -53,7 +53,7 @@
+ ./configure
+
+ .c.o:
+- $(CC) -c $(CCOPT) $(DEBUG) $(COMPILE_TIME) $<
++ $(CC) -c $(CCOPT) $(COMPILE_TIME) $<
+
+ clean:
+ rm -rf hping2 *.o *.a
More information about the Midnightbsd-cvs
mailing list