[20715] trunk/dports/net/hping2

source_changes at macosforge.org source_changes at macosforge.org
Mon Nov 20 18:21:37 PST 2006


Revision: 20715
          http://trac.macosforge.org/projects/macports/changeset/20715
Author:   markd at macports.org
Date:     2006-11-20 18:21:35 -0800 (Mon, 20 Nov 2006)

Log Message:
-----------
Adds patches to fix intel runtime error.  Submitted by nathan.stocks at gmail.

Modified Paths:
--------------
    trunk/dports/net/hping2/Portfile

Added Paths:
-----------
    trunk/dports/net/hping2/files/patch-ars.c
    trunk/dports/net/hping2/files/patch-sendip.c

Modified: trunk/dports/net/hping2/Portfile
===================================================================
--- trunk/dports/net/hping2/Portfile	2006-11-20 20:35:49 UTC (rev 20714)
+++ trunk/dports/net/hping2/Portfile	2006-11-21 02:21:35 UTC (rev 20715)
@@ -2,7 +2,7 @@
 PortSystem 1.0
 name		hping2
 version		rc3
-revision	1
+revision	2
 categories	net
 maintainers	nomaintainer at macports.org
 description	a network tool
@@ -12,7 +12,7 @@
 distfiles       ${name}.0.0-${version}.tar.gz
 master_sites	${homepage}	
 checksums	md5 029bf240f2e0545b664b2f8b9118d9e8
-patchfiles	patch-Makefile.in patch-libpcap_stuff.c
+patchfiles	patch-Makefile.in patch-libpcap_stuff.c patch-ars.c patch-sendip.c
 post-build { 
 	system "cd ${worksrcpath} && make strip" 
 	reinplace "s|INSTALL_PATH=|INSTALL_PATH=${destroot}${prefix}|g" Makefile

Added: trunk/dports/net/hping2/files/patch-ars.c
===================================================================
--- trunk/dports/net/hping2/files/patch-ars.c	                        (rev 0)
+++ trunk/dports/net/hping2/files/patch-ars.c	2006-11-21 02:21:35 UTC (rev 20715)
@@ -0,0 +1,11 @@
+--- ars.c.orig	2006-11-20 13:20:01.000000000 -0700
++++ ars.c	2006-11-20 13:20:46.000000000 -0700
+@@ -830,7 +830,7 @@
+ 		return -ARS_INVALID;
+ 	}
+ 	ip = (struct ars_iphdr*) packet;
+-#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
++#if defined OSTYPE_DARWIN || defined  OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
+ 	ip->tot_len = ntohs(ip->tot_len);
+ 	ip->frag_off = ntohs(ip->frag_off);
+ #endif

Added: trunk/dports/net/hping2/files/patch-sendip.c
===================================================================
--- trunk/dports/net/hping2/files/patch-sendip.c	                        (rev 0)
+++ trunk/dports/net/hping2/files/patch-sendip.c	2006-11-21 02:21:35 UTC (rev 20715)
@@ -0,0 +1,22 @@
+--- sendip.c.orig	2006-11-20 13:23:28.000000000 -0700
++++ sendip.c	2006-11-20 13:23:05.000000000 -0700
+@@ -48,7 +48,8 @@
+ 	ip->ihl		= (IPHDR_SIZE + optlen + 3) >> 2;
+ 	ip->tos		= ip_tos;
+ 
+-#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
++#if defined OSTYPE_DARWIN || defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
++/* OS X */
+ /* FreeBSD */
+ /* NetBSD */
+ 	ip->tot_len	= packetsize;
+@@ -73,7 +74,8 @@
+ 			htons((unsigned short) src_id);
+ 	}
+ 
+-#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD | defined OSTYPE_BSDI
++#if defined OSTYPE_DARWIN || defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD | defined OSTYPE_BSDI
++/* OS X */
+ /* FreeBSD */
+ /* NetBSD */
+ 	ip->frag_off	|= more_fragments;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20061120/0299c880/attachment.html


More information about the macports-changes mailing list