Files
Joshua Root e75b2782c1 net/*: set github.tarball_from explicitly
In preparation for changing the default.
2025-01-27 01:32:42 +11:00

44 lines
1.3 KiB
Plaintext

PortSystem 1.0
PortGroup github 1.0
github.setup EnderUNIX checkDNS 0.5
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision 0
checksums md5 7420cc7a01217391bb3eb4a2e7da1e96 \
rmd160 d77fcf371e40d53c7055c009114dc398a3322b85 \
sha256 b0c72e7d8327651933abe4e67acfdf5d6c45ce8387993994eda12ff93529c155 \
size 17262
name checkdns
categories net
license GPL-2+
maintainers nomaintainer
description A domain name server analysis and reporting tool
long_description {*}${description}
master_sites macports_distfiles
patchfiles patch-dns.c.diff patch-main.c.diff patch-Makefile.diff
configure {
reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/checkdns.conf-dist
reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/main.c
}
build.target compile
build.args CC=${configure.cc}
pre-build {
build.args-append CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
LDFLAGS="[get_canonical_archflags ld]"
}
destroot {
xinstall -m 755 ${worksrcpath}/checkdns ${destroot}${prefix}/bin
xinstall -m 755 -d ${destroot}${prefix}/etc/${name} \
${destroot}${prefix}/share/${name}
xinstall -m 644 ${worksrcpath}/checkdns.conf-dist \
${destroot}${prefix}/etc/${name}/checkdns.conf.sample
file copy ${worksrcpath}/lang ${destroot}${prefix}/share/${name}
}