# $Id: Portfile,v 1.1 2005/11/05 03:21:52 mww Exp $

PortSystem 1.0

name			aardmail
version			0.1
categories		mail
platforms		darwin
maintainers		darwinports@opendarwin.org
description		tools for different kinds of mail handling
long_description	aardmail is a package with useful tools for different \
			kinds of mail handling. Current programs include a POP3 client \
			(can be used to replace fetchmail for getting mail from POP 3 \
			servers), an SMTP client, a minimalistic sendmail, and a \
			minimalistic client for testing. All programs support SSL for \
			encryption, verification, and authentication. IPv6 works.

homepage		http://bwachter.lart.info./projects/aardmail/
master_sites	http://bwachter.lart.info./projects/download/
checksums		md5 11fcbb4acc809aa1149f071f4324f6a3
use_bzip2		yes

configure { system "cd ${worksrcpath} && ${build.cmd} dep" }

destroot.args	BINDIR=${prefix}/bin MANDIR=${prefix}/share/man
post-destroot {
	file rename ${destroot}${prefix}/bin/libaardmail.a \
		${destroot}${prefix}/lib/libaardmail.a
	file rename ${destroot}${prefix}/bin/libibaard.a \
		${destroot}${prefix}/lib/libibaard.a
	xinstall -m 755 -d ${destroot}${prefix}/include/${name}
	xinstall -m 644 -W ${worksrcpath}/src aardmail.h addrlist.h maildir.h \
		sendmail.h version.h ${destroot}${prefix}/include/${name}
}

