source: trunk/dports/net/ddclient/Portfile

Last change on this file was 152128, checked in by snc@…, 11 months ago

ddclient: use perl5.24, #52081

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
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
2# $Id: Portfile 152128 2016-08-29 15:43:47Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name                ddclient
7version             3.8.3
8revision            2
9platforms           darwin
10categories          net
11license             GPL
12maintainers         snc openmaintainer
13description         Update dynamic DNS entries
14long_description    ddclient is a Perl client used to update dynamic \
15                    DNS entries for accounts on many dynamic DNS services.
16homepage            http://ddclient.sourceforge.net/
17
18master_sites        sourceforge
19
20checksums           rmd160  e0b0f8ee11700f04022f322a2163d9fde9487b31 \
21                    sha256  debd5fec69eeb65e2331b86f5280f382416d97ed103839a65c201eef8e6d1fc9
22
23depends_lib         port:p5.24-io-socket-ssl
24depends_run         port:perl5.24 \
25                    path:share/curl/curl-ca-bundle.crt:curl-ca-bundle
26
27patchfiles          patch-ddclient.diff
28post-patch {
29    reinplace s|@@PREFIX@@|${prefix}|g ${worksrcpath}/ddclient
30}
31
32configure   {
33        reinplace "s|\[\r\]$||" ${worksrcpath}/${name}
34        reinplace "s|^#!.*/perl.*$|#!${prefix}/bin/perl5.24|" ${worksrcpath}/${name}
35}
36
37build   {}
38
39destroot.keepdirs   ${destroot}${prefix}/var/cache/${name}
40destroot    {
41        file mkdir ${destroot}${prefix}/etc/${name}
42        xinstall -m 755 -d ${destroot}${prefix}/var/cache/${name}
43        xinstall -m 555 ${worksrcpath}/sample-etc_ddclient.conf \
44            ${destroot}${prefix}/etc/${name}/ddclient.conf.sample
45
46        reinplace "s|/var/run|${prefix}/var/run|" \
47            ${destroot}${prefix}/etc/${name}/ddclient.conf.sample
48
49        xinstall -m 755 ${worksrcpath}/${name} ${destroot}${prefix}/sbin
50        xinstall -d ${destroot}${prefix}/share/doc/${name}
51
52        eval file copy [glob ${worksrcpath}/sample-*] \
53            ${destroot}${prefix}/share/doc/${name}
54        eval file copy [glob ${worksrcpath}/COPY*] \
55            ${destroot}${prefix}/share/doc/${name}
56        eval file copy [glob ${worksrcpath}/README*] \
57            ${destroot}${prefix}/share/doc/${name}
58
59        destroot.keepdirs ${destroot}${prefix}/var/run
60}
61
62startupitem.create  yes
63startupitem.start   ${prefix}/sbin/${name}
64startupitem.stop    "/bin/kill \$(cat ${prefix}/var/run/${name}.pid)"
65
66livecheck.regex     "${name}-(\\d+\\.\\d+\\.\\d+)"
Note: See TracBrowser for help on using the repository browser.