From owner-freebsd-ports@FreeBSD.ORG Tue Feb 7 21:27:32 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B6971065672 for ; Tue, 7 Feb 2012 21:27:32 +0000 (UTC) (envelope-from rflynn@acsalaska.net) Received: from ingra.acsalaska.net (ingra.acsalaska.net [209.112.173.251]) by mx1.freebsd.org (Postfix) with ESMTP id 08C018FC16 for ; Tue, 7 Feb 2012 21:27:31 +0000 (UTC) Received: from mymail.acsalaska.net (sheep.acsalaska.net [216.67.61.194]) by ingra.acsalaska.net (8.14.4/8.14.4) with ESMTP id q17LRUio021738; Tue, 7 Feb 2012 12:27:30 -0900 (AKST) (envelope-from rflynn@acsalaska.net) Received: from 46.129.107.107 (SquirrelMail authenticated user rflynn@acsalaska.net) by mymail.acsalaska.net with HTTP; Tue, 7 Feb 2012 12:27:31 -0900 (AKST) Message-ID: <2337.46.129.107.107.1328650051.squirrel@mymail.acsalaska.net> In-Reply-To: <0C1FF807-0415-4D21-9C92-C4443BB184CE@tandon.net> References: <20120207020427.GB8661@magic.hamla.org> <4831.46.129.107.107.1328625848.squirrel@mymail.acsalaska.net> <0C1FF807-0415-4D21-9C92-C4443BB184CE@tandon.net> Date: Tue, 7 Feb 2012 12:27:31 -0900 (AKST) From: rflynn@acsalaska.net To: "Sahil Tandon" User-Agent: SquirrelMail/1.4.13 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (ingra.acsalaska.net [209.112.168.121]); Tue, 07 Feb 2012 12:27:31 -0900 (AKST) X-ACS-Spam-Status: no X-ACS-Scanned-By: MD 2.67; SA 3.3.0; spamdefang 1.122 Cc: "freebsd-ports@freebsd.org" Subject: Re: Input on "most correct" way to set IS_INTERACTIVE for Postfix ports 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: Tue, 07 Feb 2012 21:27:32 -0000 > On Feb 7, 2012, at 9:44 AM, rflynn@acsalaska.net wrote: > >>> mail/postfix and its derivatives are interactive when ALL of the >>> following conditions are true: >>> >>> - PACKAGE_BUILDING is undefined >>> - /etc/mail/mailer.conf exists >>> - /etc/mail/mailer.conf contains a line beginning with 'purgestat' >> - POSTFIX_DEFAULT_MTA is unset > > Right, but regardless of whether this is set, or what it is set to, the script > still asks a question unless other conditions are met, and only the default answer > (that is displayed along with the query) is affected. Are you suggesting that we > change the behavior to not ask the question at all, and just leave mailer.conf > alone if the latter variable above is unset, and always change mailer.conf if it is > set? I just want to make sure I understand your suggestion. > > Thanks for your input. Oh right, BATCH I think, been a while since I looked at it, but this makes sense to me for the flag in question: .ifndef POSTFIX_DEFAULT_MTA IS_INTERACTIVE=yes .endif Then if it is set to NO, don't update. If set to YES, do update. Else be interactive. The reason for an explicit NO, is that I'd like to be able to turn it off and still not be confronted with a question. -- Mel