Subject: pkg/27734: mail/clamav: freshclamd.sh option is not changeable
To: None <gnats-bugs@gnats.netbsd.org>
From: None <moriko@hh.iij4u.or.jp>
List: pkgsrc-bugs
Date: 11/01/2004 11:05:12
>Number:         27734
>Category:       pkg
>Synopsis:       mail/clamav: freshclamd.sh option is not changeable
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 01 02:06:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Koji Mori
>Release:        NetBSD 1.6.2_STABLE
>Organization:
>Environment:
>Description:
	In mail/clamav/files/freshclamd.sh,
	freshclam's options are fixed, such as 'command_args="-d -c 2"'.
	But, I want to change option "-c 2" in my rc.conf,
	as 'freshclamd_flags="-c 4"'.
>How-To-Repeat:
>Fix:
--- freshclamd.sh	Mon Nov  1 10:48:48 2004
+++ freshclamd.sh.new	Mon Nov  1 10:49:34 2004
@@ -12,7 +12,8 @@
 pidfile="@VARBASE@/run/${name}.pid"
 sig_stop="KILL"
 freshclamd_user="@CLAMAV_USER@"
-command_args="-d -c 2"
+command_args="-d"
+freshclamd_flags=${freshclamd_flags:-"-c 2"}
 
 . /etc/rc.subr
 
>Release-Note:
>Audit-Trail:
>Unformatted: