# Created by: SeaD
# $FreeBSD: tags/RELEASE_10_0_0/mail/clamfilter/Makefile 327742 2013-09-20 19:59:12Z bapt $

# Anyone upgrading this port is advised to check all changes since the
# previous tarball; I have updated MASTER_SITES to an alternative
# location, but I have no idea if this is an official mirror or not.
#
# The old site was: http://www.ensita.net/products/clamfilter/

PORTNAME=	clamfilter
PORTVERSION=	0.5
PORTREVISION=	4
CATEGORIES=	mail
MASTER_SITES=	http://www.wyae.de/software/Retired/ensita-clamfilter/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A small, efficient clamav content filter for Postfix

.if defined(WITH_CLAMAV_DEVEL)
RUN_DEPENDS=	${LOCALBASE}/bin/clamdscan:${PORTSDIR}/security/clamav-devel
.else
RUN_DEPENDS=	${LOCALBASE}/bin/clamdscan:${PORTSDIR}/security/clamav
.endif

SUB_FILES=	pkg-message
PLIST_FILES=	bin/clamfilter

NO_STAGE=	yes
post-install:
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
