Subject: Re: pkgsrc without su?
To: None <netbsd-help@netbsd.org>
From: poff <poff@sixbit.org>
List: netbsd-help
Date: 07/27/2003 09:16:41
Hi,
I setup the stuff, tried bootstrap-pkgsrc and got confused, here's result
of make install for normal pksrc:
===> Installing for pkg_install-20030423
===> Becoming root@otaku to install pkg_install-20030423.
sh cd lib && make
`libinstall.a' is up to date.
cd add && make
cd admin && make
cd create && make
cd delete && make
cd info && make
/bin/mkdir -p /usr/sbin
cd add && make install
/usr/bin/install -c -o poff -g arpa pkg_add /usr/sbin
install: /usr/sbin/pkg_add: open: Permission denied
*** Error code 1
How can I change the sbin path to my ~/pkg/sbin path?
Thanks a lot for the help,
P
On Sat, Jul 26, 2003 at 04:31:49PM -0700, Jeremy C. Reed wrote:
> 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/
--
poff@sixbit.org
SDF Public Access UNIX System - http://sdf.lonestar.org