Date: Sun, 23 May 2010 10:59:09 -0700 From: Doug Barton <dougb@FreeBSD.org> To: jhell <jhell@DataIX.net> Cc: Ade Lovett <ade@freebsd.org>, freebsd-ports@freebsd.org Subject: Re: Users and groups kept after a port deinstallation Message-ID: <4BF96CED.2050707@FreeBSD.org> In-Reply-To: <alpine.BSF.2.00.1005231215550.85568@pragry.qngnvk.ybpny> References: <AANLkTindTvyrfPRj_cGWUC3LXWI63bGN5azaXo_xYRVu@mail.gmail.com> <AANLkTikNB0LbKG1qtL90F-thxeCvvSqnBxOCCDSucVS6@mail.gmail.com> <20100522005313.26dcfbdb@gumby.homeunix.com> <AANLkTim9NqCGi_iPMuoivw0z2bzEXHkt39VPk6c7aHyt@mail.gmail.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> <A8D32BA4-70D5-48DC-B992-8B093BD97774@FreeBSD.org> <4BF8A565.7040309@dataix.net> <4BF8C4F8.9090103@infracaninophile.co.uk> <alpine.BSF.2.00.1005231215550.85568@pragry.qngnvk.ybpny>
next in thread | previous in thread | raw e-mail | index | archive | help
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=<name of port with version> 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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BF96CED.2050707>