source: trunk/dports/net/ez-ipupdate/Portfile

Last change on this file was 119546, checked in by jmr@…, 3 years ago

ez-ipupdate: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 119546 2014-04-30 02:02:08Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            ez-ipupdate
6version         3.0.11b7
7categories      net
8license         GPL-2+
9maintainers     nomaintainer
10platforms       darwin freebsd
11description     dynamic dns client
12long_description        ez-ipupdate is a small utility for updating your host \
13                        name at one of the dynamic DNS services. The daemon \
14                        mode is currently not working under Darwin/OS-X.
15
16homepage        http://www.ez-ipupdate.com
17master_sites    ${homepage}/dist/
18checksums       md5 525be4550b4461fdf105aed8e753b020
19
20configure.args  --cache-file=${prefix}/var/ez-ipupdate
21
22platform darwin {
23        configure.cppflags      "-D__FreeBSD__"
24        configure.args-append --host=powerpc-apple-freebsd
25}
26
27build.target
28
29pre-destroot    {
30        reinplace "s|DESTDIR =|DESTDIR = ${destroot}|g" \
31                ${worksrcpath}/Makefile
32}
33
34set conf        ${prefix}/etc/ez-ipupdate.conf
35
36post-destroot   {
37        file mkdir ${destroot}${prefix}/share/doc/${name}
38        file copy ${worksrcpath}/README ${worksrcpath}/COPYING \
39                ${destroot}${prefix}/share/doc/${name}
40        file copy ${worksrcpath}/example.conf \
41                ${destroot}${conf}.sample
42        reinplace "s|/usr/local/bin/ez-ipupdate|${prefix}/bin/ez-ipupdate|g" \
43                ${destroot}${conf}.sample
44}
45
46post-install {
47        if { ![file exists ${conf}] } {
48                if { [file exists ${conf}.sample] } {
49                        file copy ${conf}.sample ${conf}
50                }
51        }
52}
53
54livecheck.type  regex
55livecheck.regex ${name}-(\[0-9a-z.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.