source: trunk/dports/net/nsping/Portfile @ 114325

Last change on this file since 114325 was 114325, checked in by ryandesign@…, 7 years ago

use eq and ne instead of == and != when comparing ${os.platform} and ${os.subplatform}

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 114325 2013-12-05 09:20:31Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    nsping
6version                 0.8
7revision                3
8categories              net
9license                 GPL-1
10maintainers             nomaintainer
11description             DNS ping
12long_description        Nsping uses DNS queries to monitor reachability \
13                        and operation of nameservers, as well as the latency \
14                        of DNS queries. It does this by sending random recursive \
15                        DNS queries to the nameserver (avoiding the effects of \
16                        DNS caching) and measuring the amount of time between \
17                        the sending of the query and the receipt of the response packet.
18
19platforms               darwin
20master_sites            http://distfiles.master.finkmirrors.net/
21
22checksums               md5 64785a50eb065a9b28ee33ec8c1ccab2
23
24patchfiles              patch-dprintf.diff
25
26use_configure           no
27
28variant universal {}
29
30build.args              CPPFLAGS="-DBIND_8_COMPAT" \
31                        CC="${configure.cc}" \
32                        CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
33                        LDFLAGS="[get_canonical_archflags ld]"
34build.target
35destroot                { xinstall -m 555 -W ${worksrcpath} nsping ${destroot}${prefix}/bin
36                          xinstall -m 644 -c -W ${worksrcpath} nsping.8 ${destroot}${prefix}/share/man/man8 }
37
38if {${os.platform} eq "darwin" && ${os.major} >= 10} {
39    build.args-append LIBS=-lresolv
40}
Note: See TracBrowser for help on using the repository browser.