ports/61966: clamav: Extra rc file to start freshclam

Douglas K. Rand rand at meridian-enviro.com
Mon Jan 26 21:10:21 UTC 2004


>Number:         61966
>Category:       ports
>Synopsis:       clamav: Extra rc file to start freshclam
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 26 13:10:17 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Douglas K. Rand
>Release:        FreeBSD 4.9-RELEASE-p1 i386
>Organization:
Meridian Environmental Technology, Inc.
>Environment:
System: FreeBSD delta.meridian-enviro.com 4.9-RELEASE-p1 FreeBSD 4.9-RELEASE-p1 #19: Fri Jan 23 15:21:16 CST 2004 rand at delta.meridian-enviro.com:/usr/obj/usr/src/sys/DELTA i386


	
>Description:
	We use freshclam to keep our AV DB up to date, and there isn't a
	method of having it start automatically in the current port.

>How-To-Repeat:
	install the port.   ;)

>Fix:
	Here is a clamav-freshclam.sh script for rc.d:


#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: freshclam
# REQUIRE: LOGIN
# BEFORE: mail
# KEYWORD: FreeBSD shutdown

#
# Add the following lines to /etc/rc.conf to enable clamd:
#
#clamav_freshclam_enable="YES"
#
# See freshclam(8) for flags
#

. /usr/local/etc/rc.subr

name=clamav_freshclam
rcvar=`set_rcvar`

command=/usr/local/bin/freshclam
command_args="--daemon"
required_dirs=/usr/local/share/clamav

# set defaults

clamav_freshclam_enable=${clamav_clamd_enable:-"NO"}
clamav_freshclam_flags=${clamav_clamd_flags:-"--checks=18 --log=/var/log/freshclam.log"}

load_rc_config $name
run_rc_command "$1"
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list