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:
parent
07281cb52d
commit
f5c9b5def5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=214967
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= clamav
|
||||
PORTVERSION= 20080520
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= http://www.clamav.net/snapshot/ \
|
||||
${MASTER_SITE_LOCAL}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= clamav
|
||||
PORTVERSION= 0.93.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= SF
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user