From owner-freebsd-ports@FreeBSD.ORG Thu Feb 9 07:34:30 2006 Return-Path: X-Original-To: ports@FreeBSD.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEFFB16A420 for ; Thu, 9 Feb 2006 07:34:30 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.FreeBSD.org (Postfix) with SMTP id C65A343D46 for ; Thu, 9 Feb 2006 07:34:29 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 49599 invoked by uid 399); 9 Feb 2006 07:34:29 -0000 Received: from localhost (HELO ?192.168.1.102?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 9 Feb 2006 07:34:29 -0000 Message-ID: <43EAF082.50201@FreeBSD.org> Date: Wed, 08 Feb 2006 23:34:26 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: n j References: <92bcbda50602080058s2dc1d954y49b2a0dd37b91f55@mail.gmail.com> In-Reply-To: <92bcbda50602080058s2dc1d954y49b2a0dd37b91f55@mail.gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ports@FreeBSD.org, wes@FreeBSD.org Subject: Re: FreeBSD Port: mimedefang-2.54 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2006 07:34:30 -0000 n j wrote: > Hello, > > Don't know if this has been reported and/or fixed... > > After installing mimedefang, the attempt to start it using rc.d > startup script, mimedefang.sh, succeeds, but reports the following: > > "Starting mimedefang: [: missing ] > [ OK ]" > > A few hours later (well, I'm no expert) :), I figured what's wrong > with the installation. It appears that startup script has a bug. On > lines 180 and 218, a space is missing before the closing square > bracket, after the SPOOLDIR variable: > the line should read [ -n "$SPOOLDIR" ] && echo "-z $SPOOLDIR" instead > of [ -n "$SPOOLDIR"] && echo "-z $SPOOLDIR" (note the space). Good catch. This is actually a bug in the script as provided by the vendor, so you might want to report this upstream as well. > While I'm at it, it would be nice if mimedefang installation somehow > modified sendmail startup script to automatically start mimedefang, as > sendmail with mimedefang configured but not started doesn't work > anyway. But this is more of an idea to think about than an RFE :). One way to handled this (and in fact it would be preferred at this point) would be to install this init-script in ${PREFIX}/libexec (perhaps as mimedefang-init), and write a simple rc.d script that called that script at boot. The example in the Porter's Handbook could be simplified and used in this situation. Doug -- This .signature sanitized for your protection