Date: Mon, 24 May 2010 09:27:04 -0700 From: Garrett Cooper <yaneurabeya@gmail.com> To: Alexander Churanov <alexanderchuranov@gmail.com> Cc: freebsd-ports@freebsd.org, Ade Lovett <ade@freebsd.org> Subject: Re: Users and groups kept after a port deinstallation Message-ID: <25792BFD-D9A7-4DD7-9054-FC6CCDEF8F38@gmail.com> In-Reply-To: <AANLkTik-rY3D_2R2XxLbdo34weffGZzXpTUUD6VeLK5f@mail.gmail.com> References: <AANLkTindTvyrfPRj_cGWUC3LXWI63bGN5azaXo_xYRVu@mail.gmail.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> <AANLkTik-rY3D_2R2XxLbdo34weffGZzXpTUUD6VeLK5f@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On May 24, 2010, at 9:22 AM, Alexander Churanov wrote: > 2010/5/23 jhell <jhell@dataix.net>: >> 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=3Dyes" 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. >=20 > Folks, >=20 > May be is' better to add another make target, called "update", which > would invoke "deinstall", followed by "reinstall"? This would > encapsulate the mechanism inside port.mk. I'm going to have toe disagree with you on this. Using = pkg_install with the appropriate install/deinstall scripts would better = solve the installation and deletion scenarios properly (especially = because adding code like this to port.mk would be haphazard in cases = where you need to specify a specific DESTDIR, PREFIX, etc). Thanks, -Garrett=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?25792BFD-D9A7-4DD7-9054-FC6CCDEF8F38>