[119867] trunk/dports/sysutils

dluke at macports.org dluke at macports.org
Thu May 8 10:57:44 PDT 2014


Revision: 119867
          https://trac.macports.org/changeset/119867
Author:   dluke at macports.org
Date:     2014-05-08 10:57:44 -0700 (Thu, 08 May 2014)
Log Message:
-----------
ntp: new port

Added Paths:
-----------
    trunk/dports/sysutils/ntp/
    trunk/dports/sysutils/ntp/Portfile
    trunk/dports/sysutils/ntp/files/
    trunk/dports/sysutils/ntp/files/ntp.conf

Added: trunk/dports/sysutils/ntp/Portfile
===================================================================
--- trunk/dports/sysutils/ntp/Portfile	                        (rev 0)
+++ trunk/dports/sysutils/ntp/Portfile	2014-05-08 17:57:44 UTC (rev 119867)
@@ -0,0 +1,48 @@
+# $Id$
+
+PortSystem 1.0
+
+name            ntp
+version         4.2.6p5
+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-4.2/
+
+checksums	md5	00df80a84ec9528fcfb09498075525bc \
+		sha1	4a5353a4791b6f4315a66c28d504ec6c7926b192 \
+		rmd160	aa1caffe697328b5c3e29dfa50b6074138646d20
+
+platforms       darwin
+
+startupitem.create	yes
+startupitem.netchange	yes
+startupitem.executable	${prefix}/bin/ntpd -n -g -p ${prefix}/var/run/ntpd.pid -f ${prefix}/var/db/ntp.drift
+
+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
+		}
+
+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+)\.\*Stable


Property changes on: trunk/dports/sysutils/ntp/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/sysutils/ntp/files/ntp.conf
===================================================================
--- trunk/dports/sysutils/ntp/files/ntp.conf	                        (rev 0)
+++ trunk/dports/sysutils/ntp/files/ntp.conf	2014-05-08 17:57:44 UTC (rev 119867)
@@ -0,0 +1,12 @@
+# Limit network machines to time queries only
+
+restrict default kod nomodify notrap nopeer noquery
+restrict -6 default kod nomodify notrap nopeer noquery
+
+# localhost is unrestricted
+restrict 127.0.0.1
+restrict -6 ::1
+
+disable monitor
+
+server time.apple.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140508/6ffd7a09/attachment.html>


More information about the macports-changes mailing list