Subject: Re: overriding standard executables via pkgsrc
To: Lubomir Sedlacik <>
From: Steven M. Bellovin <>
List: netbsd-users
Date: 06/07/2005 13:45:31
In message <>, Lubomir Sedlacik writes:
>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.
>> ...
>> 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 

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,