mtr on mavericks via rudix('s ports collection)
With thanks to https://code.google.com/p/rudix/wiki/HowToMakeNewPackages and https://trac.macports.org/changeset/112285
hg clone https://rudix.googlecode.com/hg/ rudix
cd rudix/Ports/mtr
You'll need to update the Makefile:
diff -r 11e7e05f8dd7 Ports/mtr/Makefile
--- a/Ports/mtr/Makefile Fri Jul 20 18:29:04 2012 -0300
+++ b/Ports/mtr/Makefile Thu Feb 13 16:03:51 2014 +1100
@@ -2,7 +2,7 @@
Title= MTR
Name= mtr
-Version= 0.82
+Version= 0.85
Revision= 1
URL= ftp://ftp.bitwizard.nl/mtr/
Source= $(Name)-$(Version).tar.gz
Now you'll need to provide one small patch to be applied while building:
mkdir patches
Make yourself a patch file that looks like this:
diff -rupN mtr-build.orig/asn.c mtr-build/asn.c
--- asn.c 2014-02-13 15:59:36.000000000 +1100
+++ asn.c 2014-02-13 15:59:46.000000000 +1100
@@ -21,7 +21,7 @@
#include
#include <sys/types.h>
-#ifndef __APPLE__
+#ifdef __APPLE__
#define BIND_8_COMPAT
#endif
#include <arpa/nameser.h>
now you can
make build
cd mtr-build/
sudo make install