Skip to content
Permalink
Browse files

bump version

cleanup whitespace
take maintainership
steal mww's eval
steal mww's systemstarter outline
Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@14558 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Charlie Allom
Charlie Allom committed Oct 11, 2005
1 parent 06dd8d7 commit 946c2cebc0430ee0f9cd01b532b89d21d17aa664
Showing with 39 additions and 33 deletions.
  1. +39 −33 net/ddclient/Portfile
@@ -1,41 +1,47 @@
# $Id: Portfile,v 1.13 2005/08/11 21:33:23 rshaw Exp $
# $Id: Portfile,v 1.14 2005/10/11 13:33:09 yeled Exp $
PortSystem 1.0
name ddclient
version 3.6.3beta2
revision 3
version 3.6.6
platforms darwin
categories net
maintainers darwinports@opendarwin.org
maintainers yeled@opendarwin.org
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://burry.ca:4141/ddclient/
master_sites opendarwin http://burry.ca:4141/ddclient/
checksums md5 98edbaea5459f47eb9164f8e58bc162a
depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup

configure { reinplace "s|\[\r\]$||" ${worksrcpath}/${portname}
reinplace "s|^#!.*/perl.*$|#!/usr/bin/env perl|" ${worksrcpath}/${portname}
reinplace "s|/etc/|${prefix}/etc/|" ${worksrcpath}/${portname} }

build { file copy -force ${portpath}/files/ddclient.sh ${worksrcpath}/
reinplace "s|__PREFIX|${prefix}|g" ${worksrcpath}/ddclient.sh }

destroot { system "install -m 755 -d ${destroot}${prefix}/etc"
system "install -m 555 ${worksrcpath}/sample-etc_ddclient.conf \
${destroot}${prefix}/etc/ddclient.conf.sample"
reinplace "s|/var/run|${prefix}/var/run|" ${destroot}${prefix}/etc/ddclient.conf.sample
system "install -m 755 -d ${destroot}${prefix}/sbin"
system "install -m 555 ${worksrcpath}/${portname} \
${destroot}${prefix}/sbin"
system "install -m 755 -d ${destroot}${prefix}/etc/rc.d"
system "install -m 755 -c ${worksrcpath}/ddclient.sh ${destroot}${prefix}/etc/rc.d/"
system "install -m 755 -d ${destroot}${prefix}/share/doc/${portname}"
system "install -m 444 ${worksrcpath}/COPY* \
${destroot}${prefix}/share/doc/${portname}"
system "install -m 444 ${worksrcpath}/README* \
${destroot}${prefix}/share/doc/${portname}"
system "install -m 444 ${worksrcpath}/sample-* \
${destroot}${prefix}/share/doc/${portname}"
destroot.keepdirs ${destroot}${prefix}/var/run }
homepage http://ddclient.sourceforge.net/
master_sites sourceforge:ddclient
checksums md5 9bdc93c0352c5fcc650773da7ecedb6d

configure {
reinplace "s|\[\r\]$||" ${worksrcpath}/${portname}
reinplace "s|^#!.*/perl.*$|#!${prefix}/bin/perl|" ${worksrcpath}/${portname}
reinplace "s|/etc/|${prefix}/etc/|" ${worksrcpath}/${portname}
}

build {}

destroot {
xinstall -m 555 ${worksrcpath}/sample-etc_ddclient.conf \
${destroot}${prefix}/etc/ddclient.conf.sample

reinplace "s|/var/run|${prefix}/var/run|" \
${destroot}${prefix}/etc/ddclient.conf.sample

xinstall -m 555 ${worksrcpath}/${portname} ${destroot}${prefix}/sbin
xinstall -d ${destroot}${prefix}/share/doc/${portname}

eval file copy [glob ${worksrcpath}/sample-*] \
${destroot}${prefix}/share/doc/${portname}
eval file copy [glob ${worksrcpath}/COPY*] \
${destroot}${prefix}/share/doc/${portname}
eval file copy [glob ${worksrcpath}/README*] \
${destroot}${prefix}/share/doc/${portname}

destroot.keepdirs ${destroot}${prefix}/var/run
}

startupitem.create yes
startupitem.start ${prefix}/sbin/ddclient
startupitem.stop "/bin/kill \$(cat ${prefix}/var/run/ddclient.pid)"


0 comments on commit 946c2ce

Please sign in to comment.
You can’t perform that action at this time.