Commits
Fred Wright authored and Ken committed 7c17445b3e5
1 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 2 | |
3 3 | PortSystem 1.0 |
4 4 | PortGroup waf 1.0 |
5 5 | PortGroup python 1.0 |
6 6 | |
7 7 | name ntpsec |
8 8 | version 1.1.7 |
9 + | revision 1 |
9 10 | categories sysutils net |
10 11 | maintainers {fwright.net:fw @fhgwright} openmaintainer |
11 12 | description A secure, hardened, and improved implementation of NTP |
12 13 | license Permissive |
13 14 | platforms darwin |
14 15 | long_description A secure, hardened, and improved implementation of Network \ |
15 16 | Time Protocol derived from NTP Classic, Dave Mills’s original. |
16 17 | homepage https://www.ntpsec.org/ |
17 18 | |
18 19 | conflicts ntp openntpd |
19 20 | |
20 21 | master_sites ftp://ftp.ntpsec.org/pub/releases/ |
21 22 | checksums rmd160 4f88807fc4652d2bb0608ca82df5b7e6be18eb63 \ |
22 23 | sha256 48eb3e0ed932fccc21373bc34a344b0c7164fda637f9b822b85b146f1aea398b \ |
23 24 | size 2534524 |
24 25 | |
25 - | depends_build port:bison |
26 - | depends_lib path:lib/libssl.dylib:openssl port:python${python.version} |
26 + | # To avoid breaking any code that uses our Python package, keep the Python |
27 + | # version at 2.7 until we add variants for Python versions. The upstream |
28 + | # code itself works with 2.6, 2.7, and 3.3+. |
29 + | python.versions 27 |
30 + | |
31 + | # Note that the upstream --python option doesn't work correctly, so waf |
32 + | # must be run with the target Python version. The waf PortGroup doesn't |
33 + | # currently allow selecting its Python version, but since it's hard-coded |
34 + | # for 2.7, we can ignore this for now. |
35 + | |
36 + | depends_build-append port:bison |
37 + | depends_lib-append path:lib/libssl.dylib:openssl \ |
38 + | port:python${python.version} |
27 39 | |
28 40 | patchfiles patch-PreHighSierra.diff |
29 41 | |
30 42 | post-destroot { |
31 43 | foreach f {ntpdig ntpkeygen ntploggps ntplogtemp ntpmon ntpq ntpsnmpd ntpsweep ntptrace ntpviz ntpwait} { |
32 44 | # Some programs may not exist, e.g. ntploggps w/o gpsd |
33 45 | if {[file exists ${destroot}${prefix}/bin/$f]} { |
34 46 | reinplace "s,^#!/usr/bin/env python,#!${python.bin}," ${destroot}${prefix}/bin/$f |
35 47 | } |
36 48 | } |