# $Id: Portfile 30236 2007-10-22 23:15:10Z jmpp@macports.org $

PortSystem 1.0
name		newmail
version		1.0.1
revision	2
categories	mail
maintainers	nomaintainer
description	Utility to check for new mail in multiple mailboxes
homepage	http://www.ugh.net/~andrew/
platforms	darwin

long_description newmail looks at mailboxes and determines if any new \
		 mail has arrived.  The mailboxes to be examined are \
		 specified as command line arguments.  If a directory is \
		 specified, all mailboxes inside will be checked.  By \
		 default, it runs every 15 minutes by the user's shell.

master_sites	ftp://ftp.ugh.net.au/pub/unix/newmail/ \
		ftp://ftp.megamirror.com/pub/ugh/unix/newmail/ \
		http://ftp.megamirror.com/pub/ugh/unix/newmail/

checksums	md5 539810d1f47dda9a6db8a683c1d46db9
patchfiles	patch-newmail.c.diff

worksrcdir	newmail
post-extract	{ reinplace "s|/usr/local|${destroot}${prefix}|g" \
		    ${workpath}/${worksrcdir}/Makefile }

use_configure	no

destroot	{
	xinstall -m 755 ${worksrcpath}/newmail ${destroot}${prefix}/bin
	xinstall -m 644 ${worksrcpath}/newmail.1 \
		${destroot}${prefix}/share/man/man1
}
