Date: Sun, 19 Feb 2006 10:10:48 +0900 (JST) From: KIMURA Yasuhiro <yasu@utahime.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: clsung@FreeBSD.org Subject: ports/93541: security/clamsmtp: does not start with new rc script Message-ID: <20060219011048.B008C29@eastasia.home.utahime.org> Resent-Message-ID: <200602190120.k1J1K4kr052926@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 93541 >Category: ports >Synopsis: security/clamsmtp: does not start with new rc script >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Feb 19 01:20:03 GMT 2006 >Closed-Date: >Last-Modified: >Originator: KIMURA Yasuhiro >Release: FreeBSD 6.0-RELEASE-p4 i386 >Organization: >Environment: System: FreeBSD xxxx 6.0-RELEASE-p4 FreeBSD 6.0-RELEASE-p4 #0: Thu Jan 26 01:26:11 JST 2006 xxxx i386 >Description: After files/clamsmtpd.sh.in is updated, startup fails with option error. (BTW, I wonder if using -d option of clamsmtpd in rc script is really meaningful...) >How-To-Repeat: Install with latest port and start up with # /usr/local/etc/rc.d/clamsmtp.sh start >Fix: --- patch-clamsmtp begins here --- Index: security/clamsmtp/files/clamsmtpd.sh.in =================================================================== RCS file: /usr1/freebsd/cvsroot/ports/security/clamsmtp/files/clamsmtpd.sh.in,v retrieving revision 1.2 diff -u -r1.2 clamsmtpd.sh.in --- security/clamsmtp/files/clamsmtpd.sh.in 17 Feb 2006 02:45:40 -0000 1.2 +++ security/clamsmtp/files/clamsmtpd.sh.in 19 Feb 2006 00:35:26 -0000 @@ -20,8 +20,6 @@ rcvar=${name}_enable command=%%PREFIX%%/sbin/${name} -command_args="-f ${clamsmtpd_conf} -p ${clamsmtpd_pid} -d ${clamsmtpd_debug}" -pidfile=${clamsmtpd_pid} sig_stop=-KILL load_rc_config ${name} @@ -29,6 +27,12 @@ : ${clamsmtpd_enable="NO"} : ${clamsmtpd_conf="%%PREFIX%%/etc/clamsmtpd.conf"} : ${clamsmtpd_pid="%%CLAMAV_PID_DIR%%/clamsmtpd.pid"} -: ${clamsmtpd_debug="0"} + +if [ -z ${clamsmtpd_debug} ]; then + command_args="-f ${clamsmtpd_conf} -p ${clamsmtpd_pid}" +else + command_args="-f ${clamsmtpd_conf} -p ${clamsmtpd_pid} -d ${clamsmtpd_debug}" +fi +pidfile=${clamsmtpd_pid} run_rc_command "$1" --- patch-clamsmtp ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060219011048.B008C29>