1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4:nomodified |
---|
2 | # kate: backspace-indents true; indent-pasted-text true; indent-width 4; keep-extra-spaces true; remove-trailing-spaces modified; replace-tabs true; replace-tabs-save true; syntax Tcl/Tk; tab-indents true; tab-width 4; |
---|
3 | # $Id: Portfile 124743 2014-08-27 21:19:27Z dluke@macports.org $ |
---|
4 | |
---|
5 | PortSystem 1.0 |
---|
6 | |
---|
7 | name openntpd |
---|
8 | version 5.7p4 |
---|
9 | categories net |
---|
10 | license ISC BSD |
---|
11 | platforms darwin |
---|
12 | maintainers nomaintainer |
---|
13 | description free, easy to use implementation of the Network Time Protocol |
---|
14 | long_description OpenNTPD is a free, easy to use implementation of the \ |
---|
15 | Network Time Protocol. It provides the ability to sync the \ |
---|
16 | local clock to remote NTP servers and can act as NTP server \ |
---|
17 | itself, redistributing the local clock. |
---|
18 | conflicts ntp |
---|
19 | |
---|
20 | homepage http://www.openntpd.org/ |
---|
21 | master_sites openbsd:OpenNTPD |
---|
22 | checksums rmd160 d99d0058ce67272e5dff3cd945f0beaaf564591c \ |
---|
23 | sha256 a993d95976e375acc0ab1a677fd268f55024477835633c8ae404895046bccb23 |
---|
24 | |
---|
25 | platforms darwin |
---|
26 | |
---|
27 | startupitem.create yes |
---|
28 | startupitem.netchange yes |
---|
29 | startupitem.executable ${prefix}/sbin/ntpd -d -s -f ${prefix}/etc/ntpd.conf |
---|
30 | |
---|
31 | configure.args --mandir=${prefix}/share/man --disable-silent-rules --disable-dependency-tracking |
---|
32 | |
---|
33 | post-destroot { |
---|
34 | file rename ${destroot}${prefix}/etc/ntpd.conf \ |
---|
35 | ${destroot}${prefix}/etc/ntpd.conf.sample |
---|
36 | |
---|
37 | xinstall -m 755 -d ${destroot}${prefix}/var/db/ntpd |
---|
38 | |
---|
39 | destroot.keepdirs ${destroot}${prefix}/var/db/ntpd |
---|
40 | } |
---|
41 | |
---|
42 | post-activate { |
---|
43 | addgroup _ntp gid=[nextgid] users="_ntp" |
---|
44 | set gid [existsgroup _ntp] |
---|
45 | adduser _ntp gid=${gid} password={\*} uid=[nextuid] \ |
---|
46 | home=${prefix}/var/db/ntpd shell=/usr/bin/false \ |
---|
47 | realname=OpenNTPD\ Server |
---|
48 | if {![file exists ${prefix}/etc/ntpd.conf]} { |
---|
49 | file copy ${prefix}/etc/ntpd.conf.sample ${prefix}/etc/ntpd.conf |
---|
50 | } |
---|
51 | } |
---|
52 | |
---|
53 | livecheck.type regex |
---|
54 | livecheck.url http://www.openntpd.org/portable.html |
---|
55 | livecheck.regex (\\d+\.\\d+p\\d+) |
---|