1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00

- Fix clamd startup script to support cld containers for virus databases

- Bump PORTREVISION

Reported by:	Robert Huff <roberthuff@rcn.com>
This commit is contained in:
Renato Botelho 2008-06-16 19:28:23 +00:00
parent 07281cb52d
commit f5c9b5def5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=214967
4 changed files with 7 additions and 5 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= clamav
PORTVERSION= 20080520
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://www.clamav.net/snapshot/ \
${MASTER_SITE_LOCAL}

View File

@ -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
}

View File

@ -7,6 +7,7 @@
PORTNAME= clamav
PORTVERSION= 0.93.1
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= SF

View File

@ -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
}