source: trunk/dports/net/checkdns/Portfile

Last change on this file was 122837, checked in by jmr@…, 3 years ago

checkdns: set license, fix build on recent systems

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1# $Id: Portfile 122837 2014-07-31 16:19:00Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    checkdns
6version                 0.5
7categories              net
8license                 GPL-2+
9platforms               darwin
10maintainers             nomaintainer
11description             A domain name server analysis and reporting tool
12long_description        ${description}
13
14homepage                http://www.enderunix.org/checkdns/
15master_sites    http://www.enderunix.org/checkdns/
16checksums               md5 7420cc7a01217391bb3eb4a2e7da1e96
17patchfiles              patch-dns.c.diff patch-main.c.diff patch-Makefile.diff
18
19configure {
20        reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/checkdns.conf-dist
21        reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/main.c
22}
23
24build.target    compile
25build.args CC=${configure.cc}
26pre-build {
27    build.args-append CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
28        LDFLAGS="[get_canonical_archflags ld]"
29}
30
31destroot {
32        xinstall -m 755 ${worksrcpath}/checkdns ${destroot}${prefix}/bin
33        xinstall -m 755 -d ${destroot}${prefix}/etc/${name} \
34                ${destroot}${prefix}/share/${name}
35        xinstall -m 644 ${worksrcpath}/checkdns.conf-dist \
36                ${destroot}${prefix}/etc/${name}/checkdns.conf.sample
37        file copy ${worksrcpath}/lang ${destroot}${prefix}/share/${name}
38}
Note: See TracBrowser for help on using the repository browser.