ports/93618: ClamSMTP cann't be started with rc.d script in the port.
Yoshisato YANAGISAWA
yanagisawa at csg.is.titech.ac.jp
Tue Feb 21 05:40:06 UTC 2006
>Number: 93618
>Category: ports
>Synopsis: ClamSMTP cann't be started with rc.d script in the port.
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Feb 21 05:40:04 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Yoshisato YANAGISAWA
>Release: FreeBSD 6.1-PRERELEASE i386
>Organization:
Tokyo Institute of Technology.
>Environment:
System: FreeBSD frodo.csg.is.titech.ac.jp 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #76: Mon Feb 20 13:16:09 JST 2006 yanagisawa at frodo.csg.is.titech.ac.jp:/usr/obj/usr/src/sys/FRODO i386
>Description:
ClamSMTP doesn't start with rc.d script destributed with
the port whose version is 1.6_2.
>How-To-Repeat:
Just install security/clamsmtp from ports,
set clamsmtp_enable="YES" to /etc/rc.conf,
and start clamsmtpd with /usr/local/etc/rc.d/clamsmtpd.sh start.
>Fix:
Use following patch:
diff -rui clamsmtp.bak/files/clamsmtpd.sh.in clamsmtp/files/clamsmtpd.sh.in
--- clamsmtp.bak/files/clamsmtpd.sh.in Tue Feb 21 13:40:47 2006
+++ clamsmtp/files/clamsmtpd.sh.in Tue Feb 21 13:41:14 2006
@@ -19,16 +19,16 @@
name="clamsmtpd"
rcvar=${name}_enable
+: ${clamsmtpd_enable="NO"}
+: ${clamsmtpd_conf="%%PREFIX%%/etc/clamsmtpd.conf"}
+: ${clamsmtpd_pid="%%CLAMAV_PID_DIR%%/clamsmtpd.pid"}
+
+load_rc_config ${name}
+
command=%%PREFIX%%/sbin/${name}
command_args="-f ${clamsmtpd_conf} -p ${clamsmtpd_pid}"
required_files=${clamsmtpd_conf}
pidfile=${clamsmtpd_pid}
sig_stop=-KILL
-
-load_rc_config ${name}
-
-: ${clamsmtpd_enable="NO"}
-: ${clamsmtpd_conf="%%PREFIX%%/etc/clamsmtpd.conf"}
-: ${clamsmtpd_pid="%%CLAMAV_PID_DIR%%/clamsmtpd.pid"}
run_rc_command "$1"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list