# Compiling Time: 2.26 SBU
# Maintainer: Krisztian VASAS <iron@frugalware.org>

options+=('asneeded')

pkgname=courier-maildrop
pkgver=2.6.0
pkgrel=1
pkgdesc="The Courier maildrop MDA"
_F_sourceforge_dirname="courier"
_F_sourceforge_name="maildrop"
_F_sourceforge_ext=".tar.bz2"
Finclude sourceforge
url="http://www.courier-mta.org/"
depends=('glibc' 'courier-authlib>=0.65.0')
groups=('network-extra')
archs=('i686' 'x86_64')
makedepends=('openldap' 'mysql' 'postgresql')
up2date="lynx -dump 'http://www.courier-mta.org/download.php'|grep maildrop-|sed -n 's/.*-\(.*\)\.t.*/\1/;1 p'"
sha1sums=('8ca4f7fd3848aa9129bd0dcb0eafa2155a2d642d')

build()
{
	Fcd maildrop-$pkgver
	Fbuild \
	    --prefix=/usr \
	    --exec-prefix=/usr \
	    --enable-maildirquota

	# remove original courier rc scripts (we don't need them :P )
	# this block is only required if we compile courier-imap source package
	Fmv /usr/bin/deliverquota /usr/bin/deliverquota.maildrop
	Fmv /usr/bin/maildirmake /usr/bin/maildirmake.maildrop
	#Fmv /usr/man/man1/maildirmake.1 /usr/man/man1/maildirmake.maildrop.1
	#Fmv /usr/man/man8/deliverquota.8 /usr/man/man8/deliverquota.maildrop.8
}

# optimization OK
