Ticket #47734: Portfile

File Portfile, 2.2 KB (added by RJVB (René Bertin), 9 years ago)
Line 
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
5PortSystem          1.0
6
7name                openntpd
8version             5.7p4
9categories          net
10license             ISC BSD
11platforms           darwin
12maintainers         nomaintainer
13description         free, easy to use implementation of the Network Time Protocol
14long_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.
18conflicts           ntp
19
20homepage            http://www.openntpd.org/
21master_sites        openbsd:OpenNTPD
22checksums           rmd160  d99d0058ce67272e5dff3cd945f0beaaf564591c \
23                    sha256  a993d95976e375acc0ab1a677fd268f55024477835633c8ae404895046bccb23
24
25platforms           darwin
26
27startupitem.create  yes
28startupitem.netchange   yes
29startupitem.executable  ${prefix}/sbin/ntpd -d -s -f ${prefix}/etc/ntpd.conf
30
31configure.args      --mandir=${prefix}/share/man --disable-silent-rules --disable-dependency-tracking
32
33post-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
42post-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
53livecheck.type  regex
54livecheck.url   http://www.openntpd.org/portable.html
55livecheck.regex (\\d+\.\\d+p\\d+)