source: trunk/dports/sysutils/ntp/Portfile @ 132386

Last change on this file since 132386 was 129888, checked in by dluke@…, 5 years ago

ntp: add comment for patchfile

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 129888 2014-12-22 15:21:46Z dluke@macports.org $
2
3PortSystem 1.0
4
5name            ntp
6version         4.2.8
7epoch           1
8categories      sysutils net
9maintainers     geeklair.net:dluke
10description     NTP is a protocol designed to synchronize the clocks of computers over a network.
11#license        NTP (http://www.eecis.udel.edu/~mills/ntp/html/copyright.html), see http://opensource.org/licenses/NTP
12license         Permissive
13
14long_description        NTP is an implementation of RFC-5905. It is widely \
15                        used to synchronize a computer to Internet time \
16                        servers or other sources.
17homepage        http://www.ntp.org/
18master_sites    http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-[join [lrange [split ${version} .] 0 1] .]/
19
20checksums       md5     6972a626be6150db8cfbd0b63d8719e7 \
21                sha1    6d1c017a8a0e97d5cf8bf4e5e38333973ffd22d5 \
22                rmd160  d68edfca4dd65ccca8ccc40a90b0ec1110982dc3
23
24platforms       darwin
25
26#- fix build, upstream bug http://bugs.ntp.org/show_bug.cgi?id=2697
27patchfiles      patch-ntpd-ntp_io.c.diff
28
29configure.args  --enable-ipv6
30
31startupitem.create      yes
32startupitem.netchange   yes
33startupitem.executable  ${prefix}/sbin/ntpd -n -g -p ${prefix}/var/run/ntpd.pid -f ${prefix}/var/db/ntp.drift -c ${prefix}/etc/ntp.conf
34
35post-destroot   {
36                        xinstall -o root -m 644 ${filespath}/ntp.conf \
37                                ${destroot}${prefix}/etc/ntp.conf.dist
38
39                        xinstall -m 755 -d ${destroot}${prefix}/var/run \
40                                ${destroot}${prefix}/var/db             
41
42                        destroot.keepdirs ${destroot}${prefix}/var/run \
43                                ${destroot}${prefix}/var/db
44                }
45
46#- our conf file contains restrictions to mitigate CVE-2013-5211
47post-activate   {
48                        if {![file exists ${prefix}/etc/ntp.conf]} {
49                                file copy ${prefix}/etc/ntp.conf.dist ${prefix}/etc/ntp.conf
50                        }
51                }
52
53livecheck.type regex
54livecheck.url http://support.ntp.org/rss/releases.xml
55livecheck.regex (\\d+\.\\d+.\\d+p\\d+)\.\*Development
Note: See TracBrowser for help on using the repository browser.