Ticket #64142: Portfile

File Portfile, 1.8 KB (added by RobK88, 3 years ago)

Updated portfile -- Added "depends_run port:ntp"

Line 
1# -*- 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
2
3PortSystem          1.0
4PortGroup           makefile 1.0
5
6name                ntpstat
7version             20010622
8categories          sysutils net
9platforms           darwin
10license             GPL-2
11maintainers         {hotmail.com:amtor @RobK88} \
12                    openmaintainer
13
14description         ${name} shows the network time protocol (ntp) status
15
16long_description    ${name} shows the network time protocol (ntp) status.\
17                    ${name}  will  report the synchronisation state of the \
18                    NTP daemon running on the local machine.  If the local \
19                    system is found to be synchronised to a reference time \
20                    source, ${name} will report the approximate time accuracy.
21
22homepage            https://github.com/darkhelmet/ntpstat
23master_sites        https://github.com/darkhelmet/ntpstat/archive/refs/heads/
24
25distname            master
26dist_subdir         master/${version}
27
28checksums           rmd160  c80933837800f8219d7c8a4ed88a11fa1dc08960 \
29                    sha256  bcfe789e1f9ad6eab05251ff7d6d523a888b7e2e8d1ae3a39df73d08193f905b \
30                    size    9388
31
32use_zip             yes
33
34worksrcdir          ${name}-master
35
36patchfiles          1001-Makefile.patch \
37                    1002-Header-includes.patch
38
39depends_run         port:ntp
40
41destroot {
42    xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
43    xinstall -m 755 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1
44    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
45    xinstall -m 644 ${worksrcpath}/COPYING ${destroot}${prefix}/share/doc/${name}
46    xinstall -m 644 ${filespath}/LICENSE.txt ${destroot}${prefix}/share/doc/${name}
47}