Subject: Re: hardcoded prefix path in pkgtools/pkg_install
To: Douwe Kiela <>
From: Jeremy C. Reed <>
List: tech-pkg
Date: 09/27/2003 14:39:27
On Sat, 27 Sep 2003, Douwe Kiela wrote:

> ./bootstrap --prefix=/usr/local --pkgdbdir=/var/pkgdb --pkgsrcdir=/usr/pkgsr
> c

Maybe add --localbase=/usr/local

> When I went to /usr/pkgsrc/pkgtools/pkg_install and did "bmake install
> distclean", it gave me this error:
> /usr/pkg/sbin/pkg_admin: not found

That package is built with:

PREFIX:=                ${PKG_TOOLS_BIN:C|/[^/]?bin$||}

Which usually defaults to:
PKG_TOOLS_BIN?=                ${LOCALBASE}/sbin

Try setting your PKG_TOOLS_BIN or LOCALBASE to the directory you want in
your mk.conf.

Good luck with having both FreeBSD ports and pkgsrc using /usr/local --
let us know how it works ...

   Jeremy C. Reed