From owner-freebsd-questions@FreeBSD.ORG Sat Mar 25 15:05:05 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA47916A401 for ; Sat, 25 Mar 2006 15:05:05 +0000 (UTC) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52E1B43D45 for ; Sat, 25 Mar 2006 15:05:05 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from frontend2.internal (frontend2.internal [10.202.2.151]) by frontend1.messagingengine.com (Postfix) with ESMTP id 4E877D422D7 for ; Sat, 25 Mar 2006 10:05:04 -0500 (EST) Received: from frontend3.messagingengine.com ([10.202.2.152]) by frontend2.internal (MEProxy); Sat, 25 Mar 2006 10:04:52 -0500 X-Sasl-enc: mFbjQ/ocuCWA+fhLO4JYxFkXv+aoFLnKx2gDX95SjMTA 1143299092 Received: from bb-87-81-140-128.ukonline.co.uk (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by frontend3.messagingengine.com (Postfix) with ESMTP id 57A916EF for ; Sat, 25 Mar 2006 10:04:51 -0500 (EST) From: RW To: freebsd-questions@freebsd.org Date: Sat, 25 Mar 2006 15:04:58 +0000 User-Agent: KMail/1.9.1 References: <20060324170911.M29859@enabled.com> <200603250221.23897.list-freebsd-2004@morbius.sent.com> In-Reply-To: <200603250221.23897.list-freebsd-2004@morbius.sent.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200603251505.00394.list-freebsd-2004@morbius.sent.com> Subject: Re: portmanager configuration and stunnel options X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Mar 2006 15:05:05 -0000 On Saturday 25 March 2006 02:21, RW wrote: > On Friday 24 March 2006 17:13, Noah wrote: > > Hi there, > > > > I am trying to figure out the proper options and configuration syntax for > > the portmanager configuration file - pm-020.conf . I cant figure out > > what the proper stunnel switches to automatically keep the stunnel GID > > and UID. At hte moment stunnel requires manual intervention during each > > upgrade. I just want to keep the UID and GID as is and not delete them. > > How would I instruct portmanager to handle this gracefully. > > I don't think you can do anything about this. Actually I was wrong, I just took a look at the stunnel pkg-deinstall script and it does check whether BATCH is set before prompting. The problem is that most people set BATCH via make, whereas pkg-deinstall is a shell script invoked by pkg_delete. portmanager, portupgrade and "make deinstall" all have this problem, and there are several ports that behave like this. It would be nice if portmanager and portupgrade could handle this by doing a "make -V BATCH" and checking their respective configuration files before running pkg_delete, but I wouldn't hold my breath. At the moment the solution is to export BATCH=yes from somewhere. The problem is that that's global, and not per port.