| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | |
|---|
| 5 | name ntp |
|---|
| 6 | version 4.2.8p8 |
|---|
| 7 | categories sysutils net |
|---|
| 8 | maintainers geeklair.net:dluke |
|---|
| 9 | description 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 |
|---|
| 11 | license Permissive |
|---|
| 12 | |
|---|
| 13 | long_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. |
|---|
| 16 | homepage http://www.ntp.org/ |
|---|
| 17 | master_sites http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-[join [lrange [split ${version} .] 0 1] .]/ |
|---|
| 18 | |
|---|
| 19 | checksums md5 4a8636260435b230636f053ffd070e34 \ |
|---|
| 20 | sha1 208ae3e2ce1237ad684c3bc818b6314d28636e46 \ |
|---|
| 21 | rmd160 45d393abb749c46bbd3a5fd93a53c892613587c8 |
|---|
| 22 | |
|---|
| 23 | platforms darwin |
|---|
| 24 | |
|---|
| 25 | configure.args --enable-ipv6 ac_cv_search_nlist=no |
|---|
| 26 | |
|---|
| 27 | depends_lib lib:libcrypto:openssl port:libevent port:libedit |
|---|
| 28 | depends_build port:pkgconfig |
|---|
| 29 | |
|---|
| 30 | startupitem.create yes |
|---|
| 31 | startupitem.netchange yes |
|---|
| 32 | startupitem.executable ${prefix}/sbin/ntpd -n -g -p ${prefix}/var/run/ntpd.pid -f ${prefix}/var/db/ntp.drift -c ${prefix}/etc/ntp.conf |
|---|
| 33 | |
|---|
| 34 | post-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 |
|---|
| 46 | post-activate { |
|---|
| 47 | if {![file exists ${prefix}/etc/ntp.conf]} { |
|---|
| 48 | file copy ${prefix}/etc/ntp.conf.dist ${prefix}/etc/ntp.conf |
|---|
| 49 | } |
|---|
| 50 | } |
|---|
| 51 | |
|---|
| 52 | livecheck.type regex |
|---|
| 53 | livecheck.url http://support.ntp.org/rss/releases.xml |
|---|
| 54 | livecheck.regex (\\d+\.\\d+.\\d+p\\d+)\.\*Stable |
|---|