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

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

nsping: add universal variant

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