# New ports collection makefile for:	clamassassin
# Date created:				16 October 2004
# Whom:					Matt <matt@xtaz.net>
#
# $FreeBSD: ports/security/clamassassin/Makefile,v 1.8 2006/06/19 20:06:57 shaun Exp $
#

PORTNAME=	clamassassin
PORTVERSION=	1.2.3
CATEGORIES=	security
MASTER_SITES=	http://drivel.com/clamassassin/ \
		http://mirror.inerd.com/FreeBSD/distfiles/${PORTNAME}/

MAINTAINER=	shaun@FreeBSD.org
COMMENT=	A simple virus filter wrapper for ClamAV

BUILD_DEPENDS=	sigtool:${PORTSDIR}/security/clamav \
		formail:${PORTSDIR}/mail/procmail
RUN_DEPENDS=	${BUILD_DEPENDS}

PLIST_FILES=	bin/clamassassin

GNU_CONFIGURE=	yes

OPTIONS=	CLAMDSCAN "Scanning using clamd" on \
		SUBREWRITE "Mail subject rewriting" off

.include <bsd.port.pre.mk>

.if !defined (WITHOUT_CLAMDSCAN)
CONFIGURE_ARGS+=	--enable-clamdscan
.endif

.if defined (WITH_SUBREWRITE)
CONFIGURE_ARGS+=	--enable-subject-rewrite
.endif

.include <bsd.port.post.mk>
