From owner-freebsd-ports@FreeBSD.ORG Sun May 23 17:59:13 2010 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 50A47106564A for ; Sun, 23 May 2010 17:59:13 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with ESMTP id E534F8FC0A for ; Sun, 23 May 2010 17:59:12 +0000 (UTC) Received: (qmail 27801 invoked by uid 399); 23 May 2010 17:59:11 -0000 Received: from localhost (HELO foreign.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 23 May 2010 17:59:11 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4BF96CED.2050707@FreeBSD.org> Date: Sun, 23 May 2010 10:59:09 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.9) Gecko/20100330 Thunderbird/3.0.4 MIME-Version: 1.0 To: jhell References: <20100522005313.26dcfbdb@gumby.homeunix.com> <4BF787E2.9010907@dataix.net> <20100522120815.063975ae@gumby.homeunix.com> <4BF7C6EE.3010001@dataix.net> <20100522134212.3d5447a8@gumby.homeunix.com> <4BF7FB7D.1010501@dataix.net> <20100522235425.1ab2c504@gumby.homeunix.com> <86aarr8q0m.fsf@gmail.com> <4BF8A565.7040309@dataix.net> <4BF8C4F8.9090103@infracaninophile.co.uk> In-Reply-To: X-Enigmail-Version: 1.0.1 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Ade Lovett , freebsd-ports@freebsd.org Subject: Re: Users and groups kept after a port deinstallation 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: Sun, 23 May 2010 17:59:13 -0000 On 05/23/10 09:24, jhell wrote: > > That shouldn't actually be to hard. If a utility like the three main > upgrade tools that are being used the most right now would export a > variable for say "UPGRADING=yes" then the uninstall script could check > against that to decide whether or not the port is being removed or > upgraded and make the proper decision while alerting the admin to whats > going on. The previous author of portupgrade and I agreed on the following variables to be set in our tools: UPGRADE_TOOL=portmaster UPGRADE_PORT= UPGRADE_PORT_VER=`echo $UPGRADE_PORT | sed 's#.*-\(.*\)#\1#'` The last 2 are not set if this is a new install. hth, Doug -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/