aboutsummaryrefslogtreecommitdiffstats
path: root/mail/dspam
diff options
context:
space:
mode:
authoritetcu <itetcu@FreeBSD.org>2006-07-08 05:19:05 +0800
committeritetcu <itetcu@FreeBSD.org>2006-07-08 05:19:05 +0800
commitb7e0d2e40ead3cbe079d6cf0e77b63f9bb85a839 (patch)
treec47b630d288cae1b16403950f4c6a902280223f4 /mail/dspam
parentd10733e7ad7b7a683dfe43309dda54d25e2c692a (diff)
downloadfreebsd-ports-gnome-b7e0d2e40ead3cbe079d6cf0e77b63f9bb85a839.tar.gz
freebsd-ports-gnome-b7e0d2e40ead3cbe079d6cf0e77b63f9bb85a839.tar.zst
freebsd-ports-gnome-b7e0d2e40ead3cbe079d6cf0e77b63f9bb85a839.zip
Fix CLAMAV[_DEVEL][_LOCAL] logic so one can use clamav w/o CLAMAV_LOCAL.
PR: ports/98709 Submitted by: Artis Caune <Artis.Caune@latnet.lv>
Diffstat (limited to 'mail/dspam')
-rw-r--r--mail/dspam/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/mail/dspam/Makefile b/mail/dspam/Makefile
index 8f34cb5fc5b6..dee06eff5965 100644
--- a/mail/dspam/Makefile
+++ b/mail/dspam/Makefile
@@ -179,18 +179,23 @@ SUB_LIST+= DSPAM_HOME=${DSPAM_HOME}
_SED_SCRIPT+= -e '/%%DAEMON%%/D'
.endif
-.ifndef(WITHOUT_CLAMAV) && !defined(WITHOUT_CLAMAV_LOCAL)
+.ifndef(WITHOUT_CLAMAV)
CONFIGURE_ARGS+= --enable-clamav
+. ifndef(WITHOUT_CLAMAV_LOCAL)
RUN_DEPENDS+= clamav>=0:${PORTSDIR}/security/clamav
SUB_LIST+= CLAMD=clamd
+. else
+SUB_LIST+= CLAMD=
+. endif
.endif
-.ifdef(WITH_CLAMAV_DEVEL) && !defined(WITHOUT_CLAMAV_LOCAL)
+.ifdef(WITH_CLAMAV_DEVEL)
CONFIGURE_ARGS+= --enable-clamav
+. ifndef(WITHOUT_CLAMAV_LOCAL)
RUN_DEPENDS+= clamav-devel>=0:${PORTSDIR}/security/clamav-devel
SUB_LIST+= CLAMD=clamd
-.endif
-.ifdef(WITHOUT_CLAMAV_LOCAL)
+. else
SUB_LIST+= CLAMD=
+. endif
.endif
# we need to know if we are building statically or dynamicaly for the plist