aboutsummaryrefslogtreecommitdiffstats
path: root/security/clamav
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2008-06-17 03:28:23 +0800
committergarga <garga@FreeBSD.org>2008-06-17 03:28:23 +0800
commitb9abbf902f9b714a0656183e5a5b15c6c63441ff (patch)
tree3f136ed202a7262dd5a4a5ef382dca358915b4ab /security/clamav
parentdf7bde79672fd124edfcad673686fb2d7a1cdd55 (diff)
downloadfreebsd-ports-graphics-b9abbf902f9b714a0656183e5a5b15c6c63441ff.tar.gz
freebsd-ports-graphics-b9abbf902f9b714a0656183e5a5b15c6c63441ff.tar.zst
freebsd-ports-graphics-b9abbf902f9b714a0656183e5a5b15c6c63441ff.zip
- Fix clamd startup script to support cld containers for virus databases
- Bump PORTREVISION Reported by: Robert Huff <roberthuff@rcn.com>
Diffstat (limited to 'security/clamav')
-rw-r--r--security/clamav/Makefile1
-rw-r--r--security/clamav/files/clamav-clamd.in6
2 files changed, 4 insertions, 3 deletions
diff --git a/security/clamav/Makefile b/security/clamav/Makefile
index f740f14150f..c1e415199dc 100644
--- a/security/clamav/Makefile
+++ b/security/clamav/Makefile
@@ -7,6 +7,7 @@
PORTNAME= clamav
PORTVERSION= 0.93.1
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= SF
diff --git a/security/clamav/files/clamav-clamd.in b/security/clamav/files/clamav-clamd.in
index b2a606674b1..8adcc8f5546 100644
--- a/security/clamav/files/clamav-clamd.in
+++ b/security/clamav/files/clamav-clamd.in
@@ -34,10 +34,10 @@ load_rc_config "$name"
start_precmd=clamav_clamd_precmd
-#clamav .93 won't start without a valid main.cvd file
+#clamav .93 won't start without a valid main.c[vl]d file
clamav_clamd_precmd() {
- if [ ! -f %%DBDIR%%/main.cvd ];then
- echo "Missing %%DBDIR%%/clamav/*.cvd files. You must run freshclam first"
+ if [ ! -f %%DBDIR%%/main.cvd -a ! %%DBDIR%%/main.cld ];then
+ echo "Missing %%DBDIR%%/clamav/*.cvd or *.cld files. You must run freshclam first"
exit 1
fi
}