source: trunk/dports/sysutils/ntp/Portfile

Last change on this file was 149425, checked in by dluke@…, 13 months ago

ntp: version bump, update to 4.2.8p8

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 149425 2016-06-19 17:40:08Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            ntp
6version         4.2.8p8
7categories      sysutils net
8maintainers     geeklair.net:dluke
9description     NTP is a protocol designed to synchronize the clocks of computers over a network.
10#license        NTP (http://www.eecis.udel.edu/~mills/ntp/html/copyright.html), see http://opensource.org/licenses/NTP
11license         Permissive
12
13long_description        NTP is an implementation of RFC-5905. It is widely \
14                        used to synchronize a computer to Internet time \
15                        servers or other sources.
16homepage        http://www.ntp.org/
17master_sites    http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-[join [lrange [split ${version} .] 0 1] .]/
18
19checksums       md5     4a8636260435b230636f053ffd070e34 \
20                sha1    208ae3e2ce1237ad684c3bc818b6314d28636e46 \
21                rmd160  45d393abb749c46bbd3a5fd93a53c892613587c8
22
23platforms       darwin
24
25configure.args  --enable-ipv6 ac_cv_search_nlist=no
26
27depends_lib     lib:libcrypto:openssl port:libevent port:libedit
28depends_build   port:pkgconfig
29
30startupitem.create      yes
31startupitem.netchange   yes
32startupitem.executable  ${prefix}/sbin/ntpd -n -g -p ${prefix}/var/run/ntpd.pid -f ${prefix}/var/db/ntp.drift -c ${prefix}/etc/ntp.conf
33
34post-destroot   {
35                        xinstall -o root -m 644 ${filespath}/ntp.conf \
36                                ${destroot}${prefix}/etc/ntp.conf.dist
37
38                        xinstall -m 755 -d ${destroot}${prefix}/var/run \
39                                ${destroot}${prefix}/var/db             
40
41                        destroot.keepdirs ${destroot}${prefix}/var/run \
42                                ${destroot}${prefix}/var/db
43                }
44
45#- our conf file contains restrictions to mitigate CVE-2013-5211
46post-activate   {
47                        if {![file exists ${prefix}/etc/ntp.conf]} {
48                                file copy ${prefix}/etc/ntp.conf.dist ${prefix}/etc/ntp.conf
49                        }
50                }
51
52livecheck.type regex
53livecheck.url http://support.ntp.org/rss/releases.xml
54livecheck.regex (\\d+\.\\d+.\\d+p\\d+)\.\*Stable
Note: See TracBrowser for help on using the repository browser.