Date: Mon, 26 Jan 2004 15:02:14 -0600 (CST) From: "Douglas K. Rand" <rand@meridian-enviro.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/61966: clamav: Extra rc file to start freshclam Message-ID: <200401262102.i0QL2EuL087431@delta.meridian-enviro.com> Resent-Message-ID: <200401262110.i0QLAIHb062014@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401262102.i0QL2EuL087431>