[23629] trunk/dports/net/hping3
source_changes at macosforge.org
source_changes at macosforge.org
Thu Apr 5 12:11:26 PDT 2007
Revision: 23629
http://trac.macosforge.org/projects/macports/changeset/23629
Author: pmq at macports.org
Date: 2007-04-05 12:11:26 -0700 (Thu, 05 Apr 2007)
Log Message:
-----------
Should fix the compilation on x86. Was actually resolved with patches that should have been there before.
Modified Paths:
--------------
trunk/dports/net/hping3/Portfile
Added Paths:
-----------
trunk/dports/net/hping3/files/patch-ars.c
trunk/dports/net/hping3/files/patch-sendip.c
Modified: trunk/dports/net/hping3/Portfile
===================================================================
--- trunk/dports/net/hping3/Portfile 2007-04-05 19:09:12 UTC (rev 23628)
+++ trunk/dports/net/hping3/Portfile 2007-04-05 19:11:26 UTC (rev 23629)
@@ -29,7 +29,7 @@
depends_lib port:tcl
patchfiles patch-Makefile.in patch-libpcap_stuff.c \
- patch-script.c
+ patch-script.c patch-sendip.c patch-ars.c
post-configure {
reinplace "s#/usr/local#${prefix}#g" ${worksrcpath}/Makefile
Added: trunk/dports/net/hping3/files/patch-ars.c
===================================================================
--- trunk/dports/net/hping3/files/patch-ars.c (rev 0)
+++ trunk/dports/net/hping3/files/patch-ars.c 2007-04-05 19:11:26 UTC (rev 23629)
@@ -0,0 +1,11 @@
+--- ars.c.orig 2004-04-14 14:30:18.000000000 +0200
++++ ars.c 2007-04-05 21:05:19.000000000 +0200
+@@ -914,7 +914,7 @@
+ return -ARS_INVALID;
+ }
+ ip = (struct ars_iphdr*) packet;
+-#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
++#if defined OSTYPE_DARWIN || 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/hping3/files/patch-sendip.c
===================================================================
--- trunk/dports/net/hping3/files/patch-sendip.c (rev 0)
+++ trunk/dports/net/hping3/files/patch-sendip.c 2007-04-05 19:11:26 UTC (rev 23629)
@@ -0,0 +1,20 @@
+--- sendip.c.orig 2004-04-10 01:38:56.000000000 +0200
++++ sendip.c 2007-04-05 21:05:10.000000000 +0200
+@@ -48,7 +48,7 @@
+ 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 || OSTYPE_FREEBSD || defined OSTYPE_NETBSD || defined OSTYPE_BSDI
+ /* FreeBSD */
+ /* NetBSD */
+ ip->tot_len = packetsize;
+@@ -73,7 +73,7 @@
+ htons((unsigned short) src_id);
+ }
+
+-#if defined OSTYPE_FREEBSD || defined OSTYPE_NETBSD | defined OSTYPE_BSDI
++#if defined OSTYPE_DARWIN || OSTYPE_FREEBSD || defined OSTYPE_NETBSD | defined OSTYPE_BSDI
+ /* FreeBSD */
+ /* NetBSD */
+ ip->frag_off |= more_fragments;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070405/8ab5c54a/attachment.html
More information about the macports-changes
mailing list