Subject: Re: pkgsrc without su?
To: poff <poff@sixbit.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 07/26/2003 16:31:49
On Sun, 27 Jul 2003, poff wrote:

> CVS works fine, but I can't "make" without an update pkg_install, which
> isn't available on the system.
>
> I can make pkg_install itself, but when it hits make install it wants to
> su.
>
> Likewise I don't have access to /etc/mk.conf
>
> Is there really no solution for my situation?

So in other words, you have not superuser privilege (and now sudo).

Try defining MAKECONF to your own ~/mk.conf file.

Since you don't have superuser privilege, then try setting
SU_CMD= sh -c

You will need your pkg databases writable too. So when you build
pkg_install (maybe you should use the bootstrap kit), have it use some
directory in your home directory for that.

Then set PKG_DBDIR to that directory.

Set LOCALBASE to be in your home too.

Also, define your CHGRP and CHOWN variables to not do anything, like:
CHOWN=	true

(Then you probably don't have to set the BINGRP and ROOT_GROUP and
BINOWN.)

This should get you started.

Please tell us how it works for you.

Good luck,

   Jeremy C. Reed
   http://www.reedmedia.net/