Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Feb 2006 23:34:26 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        n j <nino80@gmail.com>
Cc:        ports@FreeBSD.org, wes@FreeBSD.org
Subject:   Re: FreeBSD Port: mimedefang-2.54
Message-ID:  <43EAF082.50201@FreeBSD.org>
In-Reply-To: <92bcbda50602080058s2dc1d954y49b2a0dd37b91f55@mail.gmail.com>
References:  <92bcbda50602080058s2dc1d954y49b2a0dd37b91f55@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43EAF082.50201>