Subject: Re: LOCALBASE and non NetBSD use of pkgsrc
To: Alistair Crooks <agc@pkgsrc.org>
From: David Brownlee <abs@netbsd.org>
List: tech-pkg
Date: 05/17/2001 16:27:14
On Thu, 17 May 2001, Alistair Crooks wrote:
> On Thu, May 17, 2001 at 03:23:59PM +0100, David Brownlee wrote:
> > I'd like to propose switching LOCALBASE on non NetBSD systems to
> > /usr/pkg to match the NetBSD usage (rather than /usr/local) - at
> > the very least on linux.
>
> Yes. I really wish I'd made the Solaris LOCALBASE /usr/pkg now, but
> 20:20 hindsight is a wonderful thing.
OK - I've just defaulted the LOCALBASE to /usr/pkg for Linux.
In order to reduce the chances of hosing any Solaris pkgsrc
users I'd like to change the Solaris case to try to pick up
an existing /usr/local based installation and refuse to run
unless LOCALBASE is set explicitly.
The first idea cam up with would be to check for a directory
in SunOS.pkg.dist (eg 'libexec/cgi-bin') - if it is present
in /usr/local and not in /usr/pkg then give the warning and
exit.
Does this seem reasonable?
--
David/absolute -- www.netbsd.org: No hype required --