Subject: Re: LOCALBASE and non NetBSD use of pkgsrc
To: Greywolf <>
From: David Brownlee <>
List: tech-pkg
Date: 05/17/2001 16:58:29
On Thu, 17 May 2001, Greywolf wrote:

> # 	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.
> You mean, if /usr/local exists then LOCALBASE must be set?
> Or must it be set to something besides /usr/local, or...?
	If /usr/local/libexec/cgi-bin exists and /usr/pkg/libexec/cgi-bin
	does not, _and_ the user has not set LOCALBASE in /etc/mk.conf
	or the environment, then they get a warninig.

> # 	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.
> I may be misunderstanding this, but FORCING it to live in /usr/pkg or
> just die just seems really wrong to me, if that's what you're proposing.
> I actually go out of my way to make sure that LOCALBASE *is* /usr/local
> because I don't relish the idea of maintaining a fourth hierarchy,
> not to mention I don't want to extend my path.

	See above.

		David/absolute		-- No hype required --