From owner-freebsd-ports@FreeBSD.ORG Sat Feb 11 07:47:28 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 5964716A420; Sat, 11 Feb 2006 07:47:28 +0000 (GMT) (envelope-from wes@softweyr.com) Received: from softweyr.homeunix.net (cpe-66-75-57-175.san.res.rr.com [66.75.57.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id E520743D45; Sat, 11 Feb 2006 07:47:27 +0000 (GMT) (envelope-from wes@softweyr.com) Received: from [204.68.178.34] (gulliver [204.68.178.34]) (authenticated bits=0) by softweyr.homeunix.net (8.12.10/8.12.10) with ESMTP id k1B7lQN6064663 (version=TLSv1/SSLv3 cipher=EDH-DSS-DES-CBC3-SHA bits=168 verify=NO); Fri, 10 Feb 2006 23:47:27 -0800 (PST) (envelope-from wes@opensail.org) In-Reply-To: <43EAF082.50201@FreeBSD.org> References: <92bcbda50602080058s2dc1d954y49b2a0dd37b91f55@mail.gmail.com> <43EAF082.50201@FreeBSD.org> Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <84744679-A063-4E88-8B5F-74DA156920CD@opensail.org> Content-Transfer-Encoding: 7bit From: Wes Peters Date: Fri, 10 Feb 2006 23:47:20 -0800 To: Doug Barton X-Mailer: Apple Mail (2.746.2) Cc: ports@FreeBSD.org, n j , 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: Sat, 11 Feb 2006 07:47:28 -0000 On Feb 8, 2006, at 11:34 PM, Doug Barton wrote: > 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. This is caused by David (Skoll, creator of mimedefang) using bash as the system shell (like all good Linux kiddies). I'll fix the port and report it to David. Getting rid of the stupid "OK" garbage would be nice, too. Note: yes, I used mimedefang, but not this script. We have custom perl modules that start every piece of our system. >> 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. I'll take a look at it. Once the mimedefang startup script works, it's not clear that this is a problem. -- Where am I, and what am I doing in this handbasket? Wes Peters wes@softweyr.com