Subject: Re: pkgsrc work directories
To: Chris Ross <>
From: Alistair Crooks <>
List: tech-pkg
Date: 10/05/2004 20:28:00
On Tue, Oct 05, 2004 at 01:17:32PM -0400, Chris Ross wrote:
>   I'm sure this has come up before, but I'm working why "work" isn't in
> the .cvsignore file for all pkg's?  I get a long list of work
> directories when I cvs update my pkgsrc tree, and it seems this
> would be easy to avoid by making/updating .cvsignore files.
>   Is there a reason this wasn't done?  Or is it just considered too
> unimportant to make a bunch of .cvsignore files?

The name of the work directory, and its location, can be specified by
using certain definitions in /etc/mk.conf:

WRKOBJDIR= /usr/obj/pkgsrc

will create the ${WRKDIR} in the category/pkgname subdirectory of
${WRKOBJDIR}, and create a symbolic link pointing to it from the
package directory.


will change the name of the "work" directory to "work.`hostname`".

I use both of these to keep my pkgsrc tree relatively clean.