aboutsummaryrefslogtreecommitdiff
path: root/mail/dspam
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2006-07-07 21:19:05 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2006-07-07 21:19:05 +0000
commit7594a830571e1cb3fbf56e85847166458960a544 (patch)
tree2fdbc7bc123436cf06f8eb7256630a2bd73b789f /mail/dspam
parent167f1d64b8d5b487945104425b381ba9dc2015ab (diff)
downloadports-7594a830571e1cb3fbf56e85847166458960a544.tar.gz
ports-7594a830571e1cb3fbf56e85847166458960a544.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>
Notes
Notes: svn path=/head/; revision=167163
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