Subject: Re: Replacing OpenSSH
To: Justin Heath <justin@bbnow.net>
From: Frederick Bruckman <fb@enteract.com>
List: netbsd-users
Date: 03/27/2001 14:04:31
On Tue, 27 Mar 2001, Justin Heath wrote:

> > On Tue, 27 Mar 2001, Justin Heath wrote:
> >
> > > I would like to replace the version of OpenSSH that came with 1.5
> > > to OpenSSH 2.5.2p2. Are there some arguments I can give make like
> > > localdir=/ or something similar so it installs to bin amd not
> > > /usr/pkg/bin? TIA.
> >
> > You could set LOCALBASE to / in /etc/mk.conf, or in your ${ENV} file.
> > Don't try to set it on the "make" command line, as it would not then
> > be passed down to recursive makes. If you don't want to register it
> > either (so it can't be de-installed), you could try setting PKG_DBDIR
> > to /tmp.

> I tried that originally but I get errors while compiling. The
> errors are as followed. (Read below the errors for my follow up)

Hmmm. Now that pkgsrc checks for lots of things in LOCALBASE, setting
LOCALBASE to /usr is even more broken than before.  Never mind.

> After this point I change the /etc/mk.conf LOCALBASE variable back
> to /usr/pkg. I then make deinstall, make clean, make install on
> digest. Then I change LOCALBASE to /usr and try again with the
> same error. I would like to put OpenSSH in /usr but thats all.
> TIA.

You could _try_ to make an openssh binary package (make package &&
make deinstall), and then add it with "pkg_add -f /usr", but that's
not guaranteed to work correctly, either.

Why abuse the package system at all. Doesn't openssh build out of the
box?


Frederick