[80552] trunk/dports/net/fragroute
ryandesign at macports.org
ryandesign at macports.org
Thu Jul 14 12:07:07 PDT 2011
Revision: 80552
http://trac.macports.org/changeset/80552
Author: ryandesign at macports.org
Date: 2011-07-14 12:07:04 -0700 (Thu, 14 Jul 2011)
Log Message:
-----------
fragroute: fix compilation with latest libevent; see #30163
Modified Paths:
--------------
trunk/dports/net/fragroute/Portfile
Added Paths:
-----------
trunk/dports/net/fragroute/files/fragroute.c.patch
Modified: trunk/dports/net/fragroute/Portfile
===================================================================
--- trunk/dports/net/fragroute/Portfile 2011-07-14 18:02:38 UTC (rev 80551)
+++ trunk/dports/net/fragroute/Portfile 2011-07-14 19:07:04 UTC (rev 80552)
@@ -24,5 +24,8 @@
# libdnet is not universal
universal_variant no
-patchfiles configure.patch pcaputil.c.patch
+patchfiles configure.patch \
+ fragroute.c.patch \
+ pcaputil.c.patch
+
configure.args --mandir=${prefix}/share/man
Added: trunk/dports/net/fragroute/files/fragroute.c.patch
===================================================================
--- trunk/dports/net/fragroute/files/fragroute.c.patch (rev 0)
+++ trunk/dports/net/fragroute/files/fragroute.c.patch 2011-07-14 19:07:04 UTC (rev 80552)
@@ -0,0 +1,38 @@
+http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-analyzer/fragroute/files/1.2-libevent.patch
+--- fragroute.c.orig 2002-04-08 00:55:20.000000000 +0200
++++ fragroute.c 2010-02-03 21:23:21.451754240 +0100
+@@ -36,10 +36,6 @@
+
+ static struct fr_ctx ctx;
+
+-/* XXX - these should be in event.h */
+-extern int (*event_sigcb)(void);
+-extern int event_gotsig;
+-
+ static void
+ usage(void)
+ {
+@@ -140,7 +136,6 @@
+ fragroute_signal(DWORD sig)
+ {
+ warnx("exiting at user request");
+- event_gotsig++;
+ return (TRUE);
+ }
+ #else
+@@ -148,7 +143,6 @@
+ fragroute_signal(int sig)
+ {
+ warnx("exiting on signal %d", sig);
+- event_gotsig++;
+ }
+ #endif
+
+@@ -178,7 +172,6 @@
+ pkt_init(128);
+
+ event_init();
+- event_sigcb = fragroute_close;
+
+ if ((ctx.arp = arp_open()) == NULL ||
+ (ctx.intf = intf_open()) == NULL ||
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110714/2c2b49af/attachment.html>
More information about the macports-changes
mailing list