Subject: Re: auto deinstall and reinstall if already installed and no dependencies
To: Roland Illig <roland.illig@gmx.de>
From: Alistair Crooks <agc@pkgsrc.org>
List: tech-pkg
Date: 02/09/2004 09:02:08
On Mon, Feb 09, 2004 at 12:44:07AM +0100, Roland Illig wrote:
> Alistair Crooks wrote:
> >It sounds like you should investigate "make replace".
> 
> "make replace" should depend on pkg_tarup.

It does, although in a rather heavy-handed way. If pkg_tarup is not
installed, then "make replace" will fail. The reason I didn't do the
normal dependency dance is because we only come to this at a fairly
late stage in the game.
 
> Additionally, "make replace" asks me for the root password, but "make 
> install" doesn't. (I have set *OWN=roland and *GRP=users). That's weird.

Hmmm, just-in-time su for "make replace"?

It should be there, accomplished by the do-su-replace, real-su-replace
and _SU_TARGET framework in bsd.pkg.mk.

Regards,
Alistair
--
Alistair Crooks <agc@pkgsrc.org>
D415 9DEB 336D E4CC CDFA  00CD 1B68 DCFC C059 6823