aboutsummaryrefslogtreecommitdiff
path: root/net/hping
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2001-06-04 13:48:50 +0000
committerPeter Pentchev <roam@FreeBSD.org>2001-06-04 13:48:50 +0000
commit89d8b2e400bd4a2fd7f181c0f3561664820e1dbd (patch)
tree2d26dbb07fd4950c480c9377788eef1305503b39 /net/hping
parent304b4791ba82c1099c451ed114505d7caea7fbfe (diff)
downloadports-89d8b2e400bd4a2fd7f181c0f3561664820e1dbd.tar.gz
ports-89d8b2e400bd4a2fd7f181c0f3561664820e1dbd.zip
Recognize more Ethernet interfaces.
Install docs, honoring NOPORTDOCS. PR: 27649 - the problem of unrecognized ether ifaces; 27874 - the maintainer patch. Reported by: Jason Swank <jswank@colltech.com> (the problem) Submitted by: maintainer (the patch)
Notes
Notes: svn path=/head/; revision=43489
Diffstat (limited to 'net/hping')
-rw-r--r--net/hping/Makefile7
-rw-r--r--net/hping/files/patch-ac24
-rw-r--r--net/hping/pkg-plist6
3 files changed, 34 insertions, 3 deletions
diff --git a/net/hping/Makefile b/net/hping/Makefile
index cd02b973b42c..820d82516a81 100644
--- a/net/hping/Makefile
+++ b/net/hping/Makefile
@@ -7,6 +7,7 @@
PORTNAME= hping
PORTVERSION= 2b54
+PORTREVISION= 1
CATEGORIES= security net
MASTER_SITES= http://www.kyuzz.org/antirez/hping2-src/
DISTNAME= hping2-beta54
@@ -21,5 +22,11 @@ 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} ${PREFIX}/share/doc/hping
+.for i in AS-BACKDOOR HPING2-HOWTO.txt HPING2-IS-OPEN MORE-FUN-WITH-IPID SPOOFED_SCAN.txt
+ ${INSTALL_DATA} ${WRKSRC}/docs/${i} ${PREFIX}/share/doc/hping/
+.endfor
+.endif
.include <bsd.port.mk>
diff --git a/net/hping/files/patch-ac b/net/hping/files/patch-ac
index 32e9ae6d37e0..ca68c8d0719b 100644
--- a/net/hping/files/patch-ac
+++ b/net/hping/files/patch-ac
@@ -1,10 +1,28 @@
---- getlhs.c.orig Thu Oct 5 15:26:31 2000
-+++ getlhs.c Thu Oct 5 15:26:26 2000
+--- getlhs.c.orig Mon Jun 4 16:17:30 2001
++++ getlhs.c Mon Jun 4 16:17:32 2001
@@ -73,6 +73,7 @@
else if ( strstr(ifname, "eth") /* ? */
|| strstr(ifname, "ed")
|| strstr(ifname, "ne")
-+ || strstr(ifname, "xe") /* Xircom */
++ || strstr(ifname, "xe") /* Xircom */
|| strstr(ifname, "xl") /* 3com */
|| strstr(ifname, "vx") /* 3com (older model) */
|| strstr(ifname, "ep") /* 3com 3c589 */
+@@ -85,6 +86,17 @@
+ || strstr(ifname, "sk") /* SysKonnect SK-984x */
+ || strstr(ifname, "tl") /* Compaq Netelligent 10/10+TNETE100 */
+ || strstr(ifname, "tx") /* SMC 9432TX */
++ || strstr(ifname, "an") /* Aironet 4500/4800 */
++ || strstr(ifname, "awi") /* PRISM I IEEE 802.11b wireless NIC */
++ || strstr(ifname, "dc") /* DEC/Intel 21143 and workalikes */
++ || strstr(ifname, "de") /* Digital Equipment DC21040 */
++ || strstr(ifname, "pcn") /* AMD Am79C79x */\
++ || strstr(ifname, "sis") /* SiS 900/SiS 7016 */
++ || strstr(ifname, "ste") /* Sundance ST201 */
++ || strstr(ifname, "vr") /* VIA Rhine, Rhine II */
++ || strstr(ifname, "vx") /* 3com (older model) */
++ || strstr(ifname, "wi") /* WaveLAN/IEEE 802.11 wireless NICs */
++ || strstr(ifname, "wx") /* Intel Gigabit "Wiseman" */
+ || strstr(ifname, "wb")) /* Winbond W89C840F chip */
+ {
+ linkhdr_size = ETHHDR_SIZE;
diff --git a/net/hping/pkg-plist b/net/hping/pkg-plist
index 3e67b27d4975..53c3a3af705f 100644
--- a/net/hping/pkg-plist
+++ b/net/hping/pkg-plist
@@ -1 +1,7 @@
sbin/hping
+%%PORTDOCS%%share/doc/hping/AS-BACKDOOR
+%%PORTDOCS%%share/doc/hping/HPING2-HOWTO.txt
+%%PORTDOCS%%share/doc/hping/HPING2-IS-OPEN
+%%PORTDOCS%%share/doc/hping/MORE-FUN-WITH-IPID
+%%PORTDOCS%%share/doc/hping/SPOOFED_SCAN.txt
+%%PORTDOCS%%@dirrm share/doc/hping