Subject: pkg/27618: ClamAV's rc.d script needs to be changed
To: None <gnats-bugs@gnats.netbsd.org>
From: Mirko Thiesen <thiesi@NetWorkXXIII.de>
List: pkgsrc-bugs
Date: 10/29/2004 01:30:20
>Number: 27618
>Category: pkg
>Synopsis: ClamAV's rc.d script checks for wrong configuration file
>Confidential: no
>Severity: non-critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 28 23:31:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Mirko Thiesen
>Release: NetBSD 1.6.2_STABLE
>Organization:
--
thiesi@NetWork23.Sytes.NET ---- NetBSD: Power to the people!
Tel.: ++49-(0)171-416 05 09 -- Fax: ++49-(0)171-134 16 05 09
Mirko Thiesen, Soemmeringstrasse 41, D-10589 Berlin, Germany
"We're with you all the way, mostly"
>Environment:
System: NetBSD ReLink.NetWorkXXIII.de 1.6.2_STABLE NetBSD 1.6.2_STABLE (ReLink) #13: Sun Mar 21 23:12:28 CET 2004 thiesi@ReLink.NetWorkXXIII.de:/usr/src/sys/arch/i386/compile/ReLink i386
Architecture: i386
Machine: i386
>Description:
$RCD_SCRIPTS_DIR/clamd checks for $PKG_SYSCONFBASE/clamav.conf being there,
but the default name of that configuration file has changed recently. Its
name now is $PKG_SYSCONFBASE/clamd.conf, so $RCD_SCRIPTS_DIR/clamd should
check for this file instead.
>How-To-Repeat:
Build the latest version of ClamAV from PkgSrc, then try to start it. You
won't notice this misbehaviour when you're upgrading your ClamAV
installation since the old configuration file $PKG_SYSCONFBASE/clamav.conf
won't be removed during the deinstallation process.
>Fix:
Change the following line
required_files="@PKG_SYSCONFDIR@/clamav.conf"
to
required_files="@PKG_SYSCONFDIR@/clamd.conf"
in /usr/pkgsrc/mail/clamav/files/clamd.sh.
>Release-Note:
>Audit-Trail:
>Unformatted: