source: trunk/dports/net/mtr/Portfile

Last change on this file was 154358, checked in by ryandesign@…, 9 months ago

mtr: Apply upstream patch to fix build on older systems

Resolves https://lists.macosforge.org/pipermail/macports-users/2016-October/041874.html

See https://github.com/traviscross/mtr/issues/141

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- 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
2# $Id: Portfile 154358 2016-10-28 13:50:22Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                mtr
7version             0.87
8categories          net
9platforms           darwin
10license             GPL-2
11maintainers         nomaintainer
12
13description         traceroute and ping in a single tool
14long_description    mtr combines the functionality of the 'traceroute' \
15                    and 'ping' programs in a single network diagnostic \
16                    tool. As mtr starts, it investigates the network \
17                    connection between the host mtr runs on and \
18                    a user-specified destination host. After it \
19                    determines the address of each network hop between \
20                    the machines, it sends a sequence ICMP ECHO \
21                    requests to each one to determine the quality of \
22                    the link to each machine. As it does this, it \
23                    prints running statistics about each machine.
24homepage            http://www.bitwizard.nl/mtr/
25
26depends_build       port:pkgconfig
27depends_lib         port:ncurses
28
29master_sites        ftp://ftp.bitwizard.nl/mtr/
30checksums           rmd160 9cc760ec31113462f9aeff94b3ba1af1cb4ed994 \
31                    sha256 193947c61d23b154c8dc03677e90e8fd912f8f18567ab76ce619b7856c4af19f
32
33patch.pre_args      -p1
34patchfiles          HAS_SCTP.patch
35
36configure.args      --without-gtk
37pre-configure {
38    # For some reason, config.h.in is older than aclocal.m4 and configure.ac,
39    # which causes the mtr build system to attempt to re-generate it.
40    # Re-generating requires an autoconf dependency, so let's avoid it,
41    # especially since the file does not change.
42    file mtime ${worksrcpath}/config.h.in [file mtime ${worksrcpath}/aclocal.m4]
43}
44
45livecheck.type      regex
46livecheck.url       [lindex ${master_sites} 0]
47livecheck.regex     "[quotemeta ${name}]-(\\d(\\.\\d+)*)[quotemeta ${extract.suffix}]"
Note: See TracBrowser for help on using the repository browser.