[56589] trunk/dports/net/hping2

toby at macports.org toby at macports.org
Sun Aug 30 10:13:34 PDT 2009


Revision: 56589
          http://trac.macports.org/changeset/56589
Author:   toby at macports.org
Date:     2009-08-30 10:13:29 -0700 (Sun, 30 Aug 2009)
Log Message:
-----------
#20926 (hping2 fails to build on 10.6)

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

Added Paths:
-----------
    trunk/dports/net/hping2/files/patch-bytesex.h

Modified: trunk/dports/net/hping2/Portfile
===================================================================
--- trunk/dports/net/hping2/Portfile	2009-08-30 16:53:51 UTC (rev 56588)
+++ trunk/dports/net/hping2/Portfile	2009-08-30 17:13:29 UTC (rev 56589)
@@ -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 patch-ars.c patch-sendip.c
+patchfiles	patch-Makefile.in patch-libpcap_stuff.c patch-ars.c patch-sendip.c patch-bytesex.h
 post-build { 
 	system "cd ${worksrcpath} && make strip" 
 	reinplace "s|INSTALL_PATH=|INSTALL_PATH=${destroot}${prefix}|g" Makefile

Added: trunk/dports/net/hping2/files/patch-bytesex.h
===================================================================
--- trunk/dports/net/hping2/files/patch-bytesex.h	                        (rev 0)
+++ trunk/dports/net/hping2/files/patch-bytesex.h	2009-08-30 17:13:29 UTC (rev 56589)
@@ -0,0 +1,11 @@
+--- bytesex.h.orig	2009-08-30 10:11:15.000000000 -0700
++++ bytesex.h	2009-08-30 10:11:27.000000000 -0700
+@@ -7,7 +7,7 @@
+ #ifndef ARS_BYTESEX_H
+ #define ARS_BYTESEX_H
+ 
+-#if 	defined(__i386__) \
++#if 	defined(__i386__) || defined(__x86_64__) \
+ 	|| defined(__alpha__) \
+ 	|| (defined(__mips__) && (defined(MIPSEL) || defined (__MIPSEL__)))
+ #define BYTE_ORDER_LITTLE_ENDIAN
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090830/e7251467/attachment.html>


More information about the macports-changes mailing list