aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2003-11-21 17:39:40 +0800
committerleeym <leeym@FreeBSD.org>2003-11-21 17:39:40 +0800
commit78e5816cea1134b4cd84ebe086ce1370e38bec52 (patch)
tree84d5c12e847f35bbfe927a3bf230f361137395f5 /security
parenta3112e57e20d513aa8fc66fab6a4b23c51c32b4e (diff)
downloadfreebsd-ports-gnome-78e5816cea1134b4cd84ebe086ce1370e38bec52.tar.gz
freebsd-ports-gnome-78e5816cea1134b4cd84ebe086ce1370e38bec52.tar.zst
freebsd-ports-gnome-78e5816cea1134b4cd84ebe086ce1370e38bec52.zip
Use uvscan as default virus scanner and unbreak amavisd
Diffstat (limited to 'security')
-rw-r--r--security/amavisd/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/amavisd/Makefile b/security/amavisd/Makefile
index b043e8d52b8c..fef244fa26e3 100644
--- a/security/amavisd/Makefile
+++ b/security/amavisd/Makefile
@@ -54,6 +54,10 @@ CONFIGURE_ARGS+= --sysconfdir=${PREFIX}/etc \
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
+.if !defined(WITHOUT_UVSCAN)
+BUILD_DEPENDS+= uvscan:${PORTSDIR}/security/vscan
+.endif
+
.if defined(BATCH) || defined(PACKAGE_BUILDING)
CONFIGURE_ARGS+= --enable-all
.endif
@@ -76,6 +80,13 @@ CONFIGURE_ARGS+= --enable-sendmail
MTA?= sendmail
.endif
+pre-fetch:
+.if !defined(WITHOUT_UVSCAN)
+ @${ECHO}
+ @${ECHO} "Type \"make WITHOUT_UVSCAN=yes\" if you DONT use UVSCAN."
+ @${ECHO}
+.endif
+
post-patch:
@${SED} 's,%%AMAVISUSER%%,${AMAVISUSER},g' ${FILESDIR}/${STARTSCRIPT} > ${WRKSRC}/${STARTSCRIPT}
@${PERL} -pi.orig -e 's|/etc/amavisd.conf|${PREFIX}/etc/amavisd.conf|g' ${WRKSRC}/configure ${WRKSRC}/amavis/amavisd.in ${WRKSRC}/amavis/Makefile.in