# $Id: Portfile,v 1.10 2005/10/06 19:23:27 mww Exp $

PortSystem 1.0

name			putmail
version			1.3
categories		mail
platforms		darwin
maintainers		mww@opendarwin.org
description		putmail is a very lightweight MTA
long_description	putmail is a very lightweight MTA that was designed to \
				replace the sendmail command in certain situations. It \
				supports several configurations, SMTP authentication, TLS and \
				should work with Mutt, nail, mail, and other similar programs.

homepage		http://sourceforge.net/projects/putmail/
master_sites	sourceforge
distname		${name}.py-${version}
checksums		md5 f1d5394678e80f0cf7a6064810f966f1
use_bzip2		yes
patchfiles		patch-install.sh

depends_run		bin:python:python24

configure {
	reinplace "s|__PREFIX__|${destroot}${prefix}|g" ${worksrcpath}/install.sh
}

build		{}

destroot {
	system "cd ${worksrcpath} && sh install.sh"
	system "cd ${destroot}${prefix}/bin && ln -sf putmail.py putmail"
}
