diff options
author | glewis <glewis@FreeBSD.org> | 2004-02-03 06:46:21 +0000 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2004-02-03 06:46:21 +0000 |
commit | 1960a70ef0f26bfdd91ddc2195b061716826b22d (patch) | |
tree | f203ccedc2fe6f3396831f6ba7b12d7b5d7947da /security/clamav/files/clamav-freshclam.sh | |
parent | 1716ebfd876e9b508674496fd5f6c270d971252b (diff) | |
download | FreeBSD-ports-1960a70ef0f26bfdd91ddc2195b061716826b22d.zip FreeBSD-ports-1960a70ef0f26bfdd91ddc2195b061716826b22d.tar.gz |
1. Add a freshclam rc.d script to start freshclam so the AV database is
updated periodically. Loosely based on the script in the PR.
2. Reorder some operations in the various Makefile targets.
3. Bump PORTREVISION.
PR: 61966 [1]
Submitted by: Douglas K. Rand <rand@meridian-enviro.com>
Diffstat (limited to 'security/clamav/files/clamav-freshclam.sh')
-rw-r--r-- | security/clamav/files/clamav-freshclam.sh | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/security/clamav/files/clamav-freshclam.sh b/security/clamav/files/clamav-freshclam.sh new file mode 100644 index 0000000..ea87bd5 --- /dev/null +++ b/security/clamav/files/clamav-freshclam.sh @@ -0,0 +1,36 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: freshclam +# REQUIRE: LOGIN +# BEFORE: mail +# KEYWORD: FreeBSD shutdown + +# +# Add the following lines to /etc/rc.conf to enable freshclam: +# +#clamav_freshclam_enable="YES" +# +# See freshclam(8) for flags +# + +. %%RC_SUBR%% + +name=clamav_freshclam +rcvar=`set_rcvar` + +command=%%PREFIX%%/bin/freshclam +required_dirs=%%DATADIR%% + +# set defaults + +clamav_freshclam_enable=${clamav_freshclam_enable:-"NO"} +clamav_freshclam_flags=${clamav_freshclam_flags:-"--checks=1 --datadir=%%DATADIR%% --daemon-notify=%%PREFIX%%/etc/clamav.conf --log=/var/log/clamav/freshclam.log"} + +load_rc_config $name + +# add --daemon to any given arguments +clamav_freshclam_flags="${clamav_freshclam_flags} --daemon" +run_rc_command "$1" |