# -*- 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

PortSystem          1.0
PortGroup           github 1.0
PortGroup           makefile 1.0

github.setup        darkhelmet ntpstat 86e0a68df62e7f6b6c5ee97ee9d15b5e28a4b359
github.tarball_from archive
version             0.2
revision            0

categories          sysutils net
platforms           darwin
license             GPL-2
maintainers         {hotmail.com:amtor @RobK88} openmaintainer

description         ${name} shows the network time protocol (ntp) status
long_description    ${description}. ${name} will  report the synchronisation \
                    state of the NTP daemon running on the local machine. If \
                    the local system is found to be synchronised to a reference \
                    time source, ${name} will report the approximate time accuracy.

homepage            https://web.archive.org/web/20121207230716/http://people.redhat.com/rkeech/#ntpstat

checksums           rmd160  d82756f5f5a9a7a6d947303147e19a0a7664497b \
                    sha256  d6e3cb1a95ea975a2f8703b3676b1ca6df1752747c172f90e474f11323feeb9c \
                    size    3952
                    
patchfiles          1001-Makefile.patch \
                    1002-Header-includes.patch

depends_run         port:ntp

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
    xinstall -m 0755 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1
    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 ${worksrcpath}/COPYING ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      none
