[112285] trunk/dports/net/mtr

cal at macports.org cal at macports.org
Wed Oct 16 16:40:37 PDT 2013


Revision: 112285
          https://trac.macports.org/changeset/112285
Author:   cal at macports.org
Date:     2013-10-16 16:40:37 -0700 (Wed, 16 Oct 2013)
Log Message:
-----------
mtr: update to 0.85, closes #40682, #39936, maintainer timeout

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

Added Paths:
-----------
    trunk/dports/net/mtr/files/
    trunk/dports/net/mtr/files/2a08115f2c026232e2172db7f894d12306594d1d.patch

Modified: trunk/dports/net/mtr/Portfile
===================================================================
--- trunk/dports/net/mtr/Portfile	2013-10-16 22:16:08 UTC (rev 112284)
+++ trunk/dports/net/mtr/Portfile	2013-10-16 23:40:37 UTC (rev 112285)
@@ -1,35 +1,40 @@
 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
-PortSystem 1.0
+PortSystem          1.0
+PortGroup           github 1.0
 
-name        mtr
-version     0.82
-categories  net
-license     GPL-2
-maintainers mr_bond
-description 'traceroute' and 'ping' in a single tool
+name                mtr
+version             0.85
+checksums           rmd160  98874ac87e921db23d4ce63d037fa6bab627dd64 \
+                    sha256  6d6372e15dd3763d6beaee8a21f01e6e9186faf6ed20f6b052990e1a2bfa19cb
+
+master_sites        ftp://ftp.bitwizard.nl/mtr/
+homepage            http://www.bitwizard.nl/mtr/
+
+categories          net
+platforms           darwin
+license             GPL-2
+maintainers         mr_bond
+
+description         traceroute and ping in a single tool
 long_description    \
-    As mtr starts,  it  investigates  the  network  connection \
-    between  the  host  mtr  runs on and HOSTNAME.  by sending \
-    packets with purposly low TTLs. It continues to send pack- \
-    ets  with  low TTL, noting the response time of the inter- \
-    vening routers.  This allows mtr  to  print  the  response \
-    percentage  and  response  times  of the internet route to \
-    HOSTNAME.  A sudden increase  in  packetloss  or  response \
-    time  is  often  an  indication  of a bad (or simply over- \
-    loaded) link.
-homepage    http://www.bitwizard.nl/mtr/
-platforms   darwin
-master_sites    ftp://ftp.bitwizard.nl/mtr/
+    As mtr starts, it investigates the network connection between the host mtr \
+    runs on and a user-specified destination host.  After it determines the \
+    address of each network hop between the machines, it sends a sequence ICMP \
+    ECHO requests to each one to determine the quality of the link to each \
+    machine.  As it does this, it prints running statistics about each machine.
 
-checksums           rmd160  dd608961070e17eb3b4d17aec4c667d0b474e913 \
-                    sha256  f3b457c9623ae03565688a7ffd49d4843a5e2505ccaf3ba8d9fbd86e3ce9b6a0
+depends_build       port:pkgconfig
+depends_lib         port:ncurses \
+                    path:lib/pkgconfig/glib-2.0.pc:glib2
 
-depends_lib         port:ncurses
+patch.pre_args      -p1
+patchfiles          2a08115f2c026232e2172db7f894d12306594d1d.patch
 
-configure.args-append --without-gtk
+configure.args-append \
+                    --without-gtk
 
 if {${os.platform} == "darwin" && ${os.major} >= 10} {
-    configure.env-append LIBS=-lresolv
+    configure.env-append    LIBS=-lresolv
 }

Added: trunk/dports/net/mtr/files/2a08115f2c026232e2172db7f894d12306594d1d.patch
===================================================================
--- trunk/dports/net/mtr/files/2a08115f2c026232e2172db7f894d12306594d1d.patch	                        (rev 0)
+++ trunk/dports/net/mtr/files/2a08115f2c026232e2172db7f894d12306594d1d.patch	2013-10-16 23:40:37 UTC (rev 112285)
@@ -0,0 +1,27 @@
+From 2a08115f2c026232e2172db7f894d12306594d1d Mon Sep 17 00:00:00 2001
+From: Markus Chou <chou.marcus at gmail.com>
+Date: Sun, 7 Jul 2013 01:01:10 +0800
+Subject: [PATCH] fix building on osx
+
+    On Linux, they use 'BIND_4_COMPAT' and #include <arpa/nameser_compat.h> in <arpa/nameser.h>
+    On OSX, if 'BIND_8_COMPAT' is #defined, <arpa/nameser_compat.h> is #included in <arpa/nameser.h>
+---
+ asn.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/asn.c b/asn.c
+index f384f19..eac8d5e 100644
+--- a/asn.c
++++ b/asn.c
+@@ -21,7 +21,7 @@
+ #include <stdlib.h>
+ #include <sys/types.h>
+ 
+-#ifndef __APPLE__
++#ifdef __APPLE__
+ #define BIND_8_COMPAT
+ #endif
+ #include <arpa/nameser.h>
+-- 
+1.8.4
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131016/29a40145/attachment.html>


More information about the macports-changes mailing list