Subject: Re: how to build a package without installation from pkgsrc
To: Alexander Bubnov <alexander.bubnov@gmail.com>
From: Joel CARNAT <joel@carnat.net>
List: pkgsrc-users
Date: 03/06/2007 00:42:13
Hi,

> Hello! I am a new in NetBSD. Can you help to find out the subj.?
>
> On my PC package B is installed. But I would like to build this package B
> for my friend from pkgsrc because my friend does not want to download it
> or
> build from source. If I try to do in this case I get an error that package
> B
> is already installed.
> How can I install package B without reinstallation?
>

I'm using the following in /etc/mk.conf:
CLEANDEPENDS=                   YES
DEPENDS_TARGET=                 package
PACKAGES=                      
${PKGBINDIR}/${OPSYS}-${OS_VERSION}/${MACHINE_ARCH}

This build binary packages as soon as I build/rebuild/update any pkgsrc on
any of my system.