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

> ~/mk.conf:
> SU CMD= sh -c
>
> ENV:
>
> MAKECONF=/arpa/ns/p/poff/mk.conf

You can put the rest of these in your ~/mk.conf file:

> PKG_DBDIR=/arpa/ns/p/poff/pkg/db
> LOCALBASE=/arpa/ns/p/poff/pkg
> BINGRP=arpa
> ROOT_GROUP=arpa
> BINOWN=poff
>
> I run:
>
> make PREFIX=${HOME}/pkg
>         (if no PREFIX then it tries to use /usr/sbin/pkg_* for install)

In your own mk.conf also define PKG_TOOLS_BIN as appropriate. Then you
should not need to set that PREFIX.

> make PKG_ADMIN=${HOME}/pkg/sbin/pkg_admin install
>         (no PKG_ADMIN tries for /usr/sbin/pkg_admin)

You don't need to define PKG_ADMIN, if PKG_TOOLS_BIN is set in your
mk.conf to your ${HOME}/pkg/sbin/.

> Which results in:
>
> ...
> Stored 0 files from 0 packages in /arpa/ns/p/poff/pkg/db/pkgdb.byfile.db.
> Done.

I don't know why.

> When I run make in, say, ~/pkgsrc/wip/ccrypt, it complains about needing a
> newer pkg_install.
>
> Any ideas?

Did is give you instructions to follow on how to install a newer
pkg_install?

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