# $Id$ PortSystem 1.0 name ddclient version 3.7.0 platforms darwin categories net maintainers nomaintainer description Update dynamic DNS entries long_description ddclient is a Perl client used to update dynamic \ DNS entries for accounts on many dynamic DNS services. homepage http://ddclient.sourceforge.net/ master_sites sourceforge:ddclient checksums md5 67976f65c2aad267664267bed940ce18 depends_run bin:perl:perl5.8 configure { reinplace "s|\[\r\]$||" ${worksrcpath}/${name} reinplace "s|^#!.*/perl.*$|#!${prefix}/bin/perl|" ${worksrcpath}/${name} reinplace "s|/etc/|${prefix}/etc/|" ${worksrcpath}/${name} } build {} pre-destroot { file mkdir ${destroot}${prefix}/etc/ddclient } destroot { xinstall -m 555 ${worksrcpath}/sample-etc_ddclient.conf \ ${destroot}${prefix}/etc/ddclient/ddclient.conf.sample reinplace "s|/var/run|${prefix}/var/run|" \ ${destroot}${prefix}/etc/ddclient/ddclient.conf.sample xinstall -m 555 ${worksrcpath}/${name} ${destroot}${prefix}/sbin xinstall -d ${destroot}${prefix}/share/doc/${name} eval file copy [glob ${worksrcpath}/sample-*] \ ${destroot}${prefix}/share/doc/${name} eval file copy [glob ${worksrcpath}/COPY*] \ ${destroot}${prefix}/share/doc/${name} eval file copy [glob ${worksrcpath}/README*] \ ${destroot}${prefix}/share/doc/${name} destroot.keepdirs ${destroot}${prefix}/var/run } startupitem.create yes startupitem.start ${prefix}/sbin/ddclient startupitem.stop "/bin/kill \$(cat ${prefix}/var/run/ddclient.pid)"