Portfile

# $Id: Portfile 23053 2007-03-23 20:35:47Z pipping@macports.org $

PortSystem 1.0
name dnetc
version 2.9010.495
categories net
maintainers yeled@macports.org
description distributed.net client
long_description distributed.net believes in the capability and potential \
of distributed computing. Their mission consists of three \
interdependent goals: development, deployment, and \
advocacy, to be pursued in the advancement of distributed \
computing. \
They advocate distributed computing, by encouraging global \
participation and contributions of processing power, \
bandwidth, and expertise\; by providing a forum for \
discussion\; and by raising awareness on the Internet and \
in the mainstream.

homepage http://distributed.net/
platforms darwin
distfiles dnetc495-macosx-ppc.tar.gz
checksums md5 a9ce95ebb986cdf3dcab04c4922688ad
master_sites ftp://ftp.distributed.net/pub/dcti/v2.9010/ \
http://http.distributed.net/pub/dcti/v2.9010/
worksrcdir dnetc495-macosx-ppc

startupitem.create yes
startupitem.start "${prefix}/share/${name}/dnetc.init start"
startupitem.stop "${prefix}/share/${name}/dnetc.init stop"

use_configure no
build {}
destroot {
xinstall -m 755 -d ${destroot}${prefix}/bin
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 755 -d ${destroot}${prefix}/share/${name}
xinstall -m 755 ${worksrcpath}/dnetc ${destroot}${prefix}/bin

eval xinstall -m 644 [glob ${worksrcpath}/docs/*] ${destroot}${prefix}/share/doc/${name}
xinstall -m 755 ${portpath}/files/dnetc.init ${destroot}${prefix}/share/${name}

reinplace "s|__PREFIX__|${prefix}|g" \
${destroot}${prefix}/share/${name}/dnetc.init
}

post-install {
ui_msg "\n
=========================================================================
Please Note! Run dnetc with script ${prefix}/share/${name}/dnetc.init start.
This script places the dnetc.ini and buffer files in ${prefix}/var/db/${name}.
The first time the script runs you will be asked to set configuration parameters.
To change parameters later on, use ${prefix}/share/${name}/dnetc.init config.
dnetc is also started at system boot via the same startup script.
==========================================================================\n"
}

files