# $Id: Portfile,v 1.2 2006/03/31 18:48:41 matt Exp $

PortSystem 1.0
name			setiathome
version			3.03
categories		science
platforms		darwin
maintainers		darwinports@opendarwin.org
homepage		http://setiathome.ssl.berkeley.edu/
description		UNIX version of the Seti@home client

long_description	setiathome is the UNIX version of the SETI@home client. \
			It downloads radio telescope data from a network server, \
			analyzes the data looking for signals of extraterrestrial \
			origin, and uploads results to the server, repeating this \
			cycle indefinitely.

master_sites		ftp://alien.ssl.berkeley.edu/pub/
checksums		md5 40c17734b40d2c47aad3a82e1b7ffc18

distname		${name}-${version}.powerpc-apple-darwin1.2

extract.suffix		.tar
extract.cmd		tar
extract.pre_args	-xf

patchfiles		patch-README.diff

configure		{}
build			{}

pre-destroot		{ system "mv ${worksrcpath}/README ${worksrcpath}/${name}.1" }

destroot {		file mkdir ${destroot}${prefix}/libexec/${name}
			file mkdir ${destroot}${prefix}/share/man/man1
			file copy ${worksrcpath}/setiathome \
				${destroot}${prefix}/libexec/${name}
			file copy ${worksrcpath}/${name}.1 \
				${destroot}${prefix}/share/man/man1
			}

# Notify the user where is the binary
post-install {		ui_msg "\n###################################"
			ui_msg "${name} has been installed into:\n"
			ui_msg "${prefix}/libexec/${name}\n"
			ui_msg "as ${name} creates a bunch of"
			ui_msg "*.sah files.\n"
			ui_msg "So you should launch it within that"
			ui_msg "directory.\n"
			ui_msg "###################################\n"
			}
