# $Id: Portfile 129888 2014-12-22 15:21:46Z dluke@macports.org $ PortSystem 1.0 name ntp version 4.2.8 epoch 1 categories sysutils net maintainers geeklair.net:dluke description NTP is a protocol designed to synchronize the clocks of computers over a network. #license NTP (http://www.eecis.udel.edu/~mills/ntp/html/copyright.html), see http://opensource.org/licenses/NTP license Permissive long_description NTP is an implementation of RFC-5905. It is widely \ used to synchronize a computer to Internet time \ servers or other sources. homepage http://www.ntp.org/ master_sites http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-[join [lrange [split ${version} .] 0 1] .]/ checksums md5 6972a626be6150db8cfbd0b63d8719e7 \ sha1 6d1c017a8a0e97d5cf8bf4e5e38333973ffd22d5 \ rmd160 d68edfca4dd65ccca8ccc40a90b0ec1110982dc3 platforms darwin #- fix build, upstream bug http://bugs.ntp.org/show_bug.cgi?id=2697 patchfiles patch-ntpd-ntp_io.c.diff configure.args --enable-ipv6 startupitem.create yes startupitem.netchange yes startupitem.executable ${prefix}/sbin/ntpd -n -g -p ${prefix}/var/run/ntpd.pid -f ${prefix}/var/db/ntp.drift -c ${prefix}/etc/ntp.conf post-destroot { xinstall -o root -m 644 ${filespath}/ntp.conf \ ${destroot}${prefix}/etc/ntp.conf.dist xinstall -m 755 -d ${destroot}${prefix}/var/run \ ${destroot}${prefix}/var/db destroot.keepdirs ${destroot}${prefix}/var/run \ ${destroot}${prefix}/var/db } #- our conf file contains restrictions to mitigate CVE-2013-5211 post-activate { if {![file exists ${prefix}/etc/ntp.conf]} { file copy ${prefix}/etc/ntp.conf.dist ${prefix}/etc/ntp.conf } } livecheck.type regex livecheck.url http://support.ntp.org/rss/releases.xml livecheck.regex (\\d+\.\\d+.\\d+p\\d+)\.\*Development