[124743] trunk/dports/net/openntpd/Portfile
dluke at macports.org
dluke at macports.org
Wed Aug 27 14:19:27 PDT 2014
Revision: 124743
https://trac.macports.org/changeset/124743
Author: dluke at macports.org
Date: 2014-08-27 14:19:27 -0700 (Wed, 27 Aug 2014)
Log Message:
-----------
openntpd: add livecheck, startupitem, copy config file in post-activate
Modified Paths:
--------------
trunk/dports/net/openntpd/Portfile
Modified: trunk/dports/net/openntpd/Portfile
===================================================================
--- trunk/dports/net/openntpd/Portfile 2014-08-27 21:05:09 UTC (rev 124742)
+++ trunk/dports/net/openntpd/Portfile 2014-08-27 21:19:27 UTC (rev 124743)
@@ -4,6 +4,7 @@
name openntpd
version 3.9p1
+revision 1
categories net
license ISC BSD
platforms darwin
@@ -15,9 +16,16 @@
itself, redistributing the local clock.
homepage http://www.openntpd.org/
-master_sites openbsd:OpenNTPD
-checksums sha1 098a435d02886a9e4d34afb15b15fde795eda1e9
+master_sites openbsd:OpenNTPD
+checksums rmd160 c348004116c78810daa9451f15abcc26788949a8 \
+ sha256 83dd7c1e8ec8b4567afe49af539271b5a73562fb7a3ca51df73eccba89ec8c49
+platforms darwin
+
+startupitem.create yes
+startupitem.netchange yes
+startupitem.executable ${prefix}/sbin/ntpd -d -s -f ${prefix}/etc/ntpd.conf
+
configure.args --mandir=${prefix}/share/man
pre-destroot {
@@ -31,6 +39,18 @@
post-destroot {
file rename ${destroot}${prefix}/etc/ntpd.conf \
${destroot}${prefix}/etc/ntpd.conf.sample
+
xinstall -m 755 -d ${destroot}${prefix}/var/db/ntpd
+
+ destroot.keepdirs ${destroot}${prefix}/var/db/ntpd
}
-destroot.keepdirs ${destroot}${prefix}/var/db/ntpd
+
+post-activate {
+ if {![file exists ${prefix}/etc/ntpd.conf]} {
+ file copy ${prefix}/etc/ntpd.conf.sample ${prefix}/etc/ntpd.conf
+ }
+}
+
+livecheck.type regex
+livecheck.url http://www.openntpd.org/portable.html
+livecheck.regex (\\d+\.\\d+p\\d+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140827/8085e96d/attachment.html>
More information about the macports-changes
mailing list