# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$

PortSystem 1.0

name			maildrop
version	 		2.5.0
revision		2
categories		mail
license			{GPL-3 OpenSSLException}
maintainers		tnpi.biz:matt
description		Mail delivery agent (MDA) with filtering abilities
long_description	${description}
homepage		http://www.courier-mta.org/maildrop/
platforms		darwin
master_sites		sourceforge:courier
use_bzip2		yes
checksums		md5     efdd9a1324aa0c5b427a77d305ed5ecb \
			sha1    e09255dec179d796e55af008a8a536479aec55ac \
			rmd160  ad7880bace6e6e6135d9bc25aec7397d7ac96837
configure.args		--mandir=${prefix}/share/man \
			--with-etcdir=${prefix}/etc \
			--enable-syslog=1
depends_lib     	port:pcre port:gdbm port:libidn

variant vpopmail description {For use with vpopmail} {
	configure.args-append	--enable-maildrop-gid=vchkpw
}

variant qmail description {For use with qmail-spamcontrol} {
	depends_lib-append	port:qmail-spamcontrol
	configure.args-append	--enable-sendmail=${prefix}/var/qmail/bin/sendmail
}

pre-configure {
	if {[variant_isset vpopmail]} {
		addgroup vchkpw gid=2109
	}
}

post-install {
	ui_msg "\n
Please note the default maildrop mailfilter is in the
${prefix}/etc directory.
\n"
}