Subject: Re: package question
To: Frederick Bruckman <fb@enteract.com>
From: Justin Heath <justin@bbnow.net>
List: netbsd-users
Date: 11/26/2000 14:49:26
Frederick Bruckman wrote:
>
> On Sat, 25 Nov 2000, Justin Heath wrote:
>
> > This finishes the make process. However later (during make install) I am
> > prompted for the su password. I have also tried setting LOCALBASE and
> > PKGDB_DIR (since the user does not have write permissions to that dir. I
> > did not see any more information in the man page to lead me to any other
> > conclusions. Any Ideas?
> >
> > I basically want users to be able to install what they need from pkgsrc
> > into their home dir with zero root interaction.
>
> Firstly, they need to set MAKECONF to ~/mk.conf or similar and export
> it to the envirnonment. Then, in ${MAKECONF}, they could set
>
> SU_CMD= /bin/sh -c
>
> Of course, that will choke if "make install" really wants to be root
> for some reason, often because "install" is invoked with arguments to
> set the owner and group of the installed binary. They may be able to
> get around that by setting {BIN,MAN,SHARE}{OWN,GRP} in ${MAKECONF}
> (all six), otherwise it's necessary to descend into the package's work
> directory and edit the Makefile. Unfortunately, there is no truly
> general way for an ordinary user to build and install packages.
>
> Frederick
Well I will try that. If that doesnt work a simple make will suffice,
just as long as it gets built.
Thanks.
--Justin