Subject: pkg/36433: mail/clamsmtp clamd configuration file name is invalid
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <hatano@sarasarado.org>
List: pkgsrc-bugs
Date: 06/03/2007 10:35:01
>Number: 36433
>Category: pkg
>Synopsis: mail/clamsmtp clamd configuration file name is invalid
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jun 03 10:35:01 +0000 2007
>Originator: HATANO Hiromichi
>Release: NetBSD 4.0BETA2
>Organization:
>Environment:
NetBSD dia.sarasarado.org 4.0_BETA2 NetBSD 4.0_BETA2 (MACMINI) #2: Sat Feb 3 15:50:01 UTC 2007 root@:/usr/src/sys/arch/macppc/compile/MACMINI macppc
>Description:
% /etc/rc.d/clamsmtp start does not start program, if you change LocalSocket of clamd.
>How-To-Repeat:
clamd.conf
--
LocalSocket /var/clamav/clamd
>Fix:
--- clamsmtpd.sh-dist 2007-06-03 17:22:25.000000000 +0900
+++ clamsmtpd.sh 2007-06-03 17:22:39.000000000 +0900
@@ -30,7 +30,7 @@
start_precmd="clamsmtpd_prestart"
start_cmd="clamsmtpd_start"
-clamav_conffile="@PKG_SYSCONFDIR@/clamav.conf"
+clamav_conffile="@PKG_SYSCONFDIR@/clamd.conf"
if [ -f "${clamav_conffile}" ]; then
socket=`@AWK@ 'BEGIN {r = "/tmp/clamd"};
/^#/ {next}; /^LocalSocket[ ]/ {r = $2};