Subject: Re: Replacing OpenSSH
To: Frederick Bruckman <fb@enteract.com>
From: Justin Heath <justin@bbnow.net>
List: netbsd-users
Date: 03/27/2001 14:38:05
On Tue, Mar 27, 2001 at 02:04:31PM -0600, Frederick Bruckman wrote:
> Date: Tue, 27 Mar 2001 14:04:31 -0600 (CST)
> From: Frederick Bruckman <fb@enteract.com>
> Reply-To: Frederick Bruckman <fb@enteract.com>
> To: Justin Heath <justin@bbnow.net>
> cc: <netbsd-users@netbsd.org>
> Subject: Re: Replacing OpenSSH
> In-Reply-To: <20010327134445.A28197@bbnow.net>
>
> 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
>
Yes, making it a package and using 'pkg_add -f -p /usr openssh-2.5.2p2.tgz' worked fine. Thanks!
Still if someone figures out how to accomplish this during a 'make install' rather than making a package first please let me know.