Subject: Re: overriding standard executables via pkgsrc
To: Lubomir Sedlacik <salo@Xtrmntr.org>
From: Steven M. Bellovin <smb@cs.columbia.edu>
List: netbsd-users
Date: 06/07/2005 13:45:31
In message <20050607140138.GV29841@Xtrmntr.org>, Lubomir Sedlacik writes:
>
>--AAkN98o3X3ouhQaz
>Content-Type: text/plain; charset=us-ascii
>Content-Disposition: inline
>Content-Transfer-Encoding: quoted-printable
>
>On Tue, Jun 07, 2005 at 09:52:28AM -0400, Steven M. Bellovin wrote:
>> I'm curious what people regard as the best way to override standard
>> system executables with local versions or versions from pkgsrc.
>>=20
>> ...
>>=20
>> Deleting or chmoding the standard executables is causes problems for
>> upgrades.=20
>
>it actually does not.  just create your local mtree file with the
>overrides (e.g., mode=3D0)and run mtree after upgrades.
>

I'll play around with that; it's not clear to me that that's simpler 
than executing an arbitrary fix-up script.  I keep looking for a better 
way.

Regardless, I think the mechanism should be part of the standard 
upgrade path -- that is, it should somehow be invoked by postinstall.


		--Steven M. Bellovin, http://www.cs.columbia.edu/~smb