Subject: Re: Replacing OpenSSH
To: Frederick Bruckman <fb@enteract.com>
From: Justin Heath <justin@bbnow.net>
List: netbsd-users
Date: 03/27/2001 13:44:45
On Tue, Mar 27, 2001 at 12:01:46PM -0600, Frederick Bruckman wrote:
> Date: Tue, 27 Mar 2001 12:01:46 -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: <20010327113842.A14755@bbnow.net>
>
> 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.
>
>
> Frederick
>
I tried that originally but I get errors while compiling. The errors are as followed. (Read below the errors for my follow up)
bash-2.04# whoami
root
bash-2.04# pwd
/usr/pkgsrc/security/openssh
bash-2.04# make clean CLEANDEPENENDS=YES
===> Cleaning for openssh-2.5.2p2
bash-2.04# make install
===> Validating dependencies for openssh-2.5.2p2
===> Cleaning for digest-20010312
===> Extracting for digest-20010312
work.i386 -> /usr/tmp/pkgtools/digest/work.i386
===> Patching for digest-20010312
===> Configuring for digest-20010312
===> Building for digest-20010312
cc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-unin
itialized -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Ws
hadow -Werror -I/usr/tmp/pkgtools/digest/work.i386 -DVERSION="20010312" -DHAVE
_SYS_ENDIAN_H_ -DHAVE_MACHINE_ENDIAN_H_ -c digest.c
cc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-unin
itialized -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Ws
hadow -Werror -I/usr/tmp/pkgtools/digest/work.i386 -DVERSION="20010312" -DHAVE
_SYS_ENDIAN_H_ -DHAVE_MACHINE_ENDIAN_H_ -c rmd160.c
cc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-unin
itialized -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Ws
hadow -Werror -I/usr/tmp/pkgtools/digest/work.i386 -DVERSION="20010312" -DHAVE
_SYS_ENDIAN_H_ -DHAVE_MACHINE_ENDIAN_H_ -c rmd160hl.c
cc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-unin
itialized -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Ws
hadow -Werror -I/usr/tmp/pkgtools/digest/work.i386 -DVERSION="20010312" -DHAVE
_SYS_ENDIAN_H_ -DHAVE_MACHINE_ENDIAN_H_ -c sha2.c
cc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-unin
itialized -Wreturn-type -Wcast-qual -Wpointer-arith -Wwrite-strings -Wswitch -Ws
hadow -Werror -I/usr/tmp/pkgtools/digest/work.i386 -DVERSION="20010312" -DHAVE
_SYS_ENDIAN_H_ -DHAVE_MACHINE_ENDIAN_H_ -c sha2hl.c
cc -Wl,-R/usr/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/lib -static -o digest digest
.o rmd160.o rmd160hl.o sha2.o sha2hl.o
nroff -Tascii -mandoc digest.1 > digest.cat1
===> Installing for digest-20010312
===> digest-20010312 is already installed - perhaps an older version?
*** If so, you may wish to ``pkg_delete digest-20010312'' and install
*** this package again by ``make reinstall'' to upgrade it properly,
*** or use ``make update'' to upgrade it and all of its dependencies.
*** If you really wish to overwrite the old package of digest-20010312
*** without deleting it first, set the variable "FORCE_PKG_REGISTER"
*** in your environment or the "make install" command line.
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
*** Error code 1
Stop.
bash-2.04#
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.