aboutsummaryrefslogtreecommitdiffstats
path: root/security/clamav-devel
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-devel
parentdf7bde79672fd124edfcad673686fb2d7a1cdd55 (diff)
downloadfreebsd-ports-gnome-b9abbf902f9b714a0656183e5a5b15c6c63441ff.tar.gz
freebsd-ports-gnome-b9abbf902f9b714a0656183e5a5b15c6c63441ff.tar.zst
freebsd-ports-gnome-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-devel')
-rw-r--r--security/clamav-devel/Makefile1
-rw-r--r--security/clamav-devel/files/clamav-clamd.in4
2 files changed, 3 insertions, 2 deletions
diff --git a/security/clamav-devel/Makefile b/security/clamav-devel/Makefile
index fd7935b4156c..f2c681ffd1f3 100644
--- a/security/clamav-devel/Makefile
+++ b/security/clamav-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= clamav
PORTVERSION= 20080520
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.clamav.net/snapshot/ \
${MASTER_SITE_LOCAL}
diff --git a/security/clamav-devel/files/clamav-clamd.in b/security/clamav-devel/files/clamav-clamd.in
index 81425ffe9304..91407131c4c1 100644
--- a/security/clamav-devel/files/clamav-clamd.in
+++ b/security/clamav-devel/files/clamav-clamd.in
@@ -35,8 +35,8 @@ load_rc_config "$name"
start_precmd=clamav_clamd_precmd
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
}