Subject: Re: /etc/mk.conf problems
To: Richard Rauch <rauch@rice.edu>
From: Frederick Bruckman <fredb@immanent.net>
List: netbsd-help
Date: 12/13/2001 17:48:07
On Thu, 13 Dec 2001, Richard Rauch wrote:

> Good point...  Still, since make uses /etc/mk.conf, you could contnue to
> stuff the variables in there if you wanted.  It just seems to me that an
> /etc file is not really the best place for pkgsrc configuration.
> (Especially since most packages get _their_ configuration/etc. isolated
> into /usr/pkg/ by the pkgsrc system.)
>
> Perhaps there is a good, technical reaso for using /etc/mk.conf as the
> pkgsrc configuration.  If there is, I'm missing it.

For one thing, you don't have to use "/etc/mk.conf". You can set
"${MAKECONF}" in your environment to any file you like, and that will
be used instead.

For another, pkgsrc sets "${BSD_PKG_MK}" so that you can put all your
settings for pkgsrc and other projects in a single "/etc/mk.conf" via
the appropriate conditionals. E.g:

.ifdef BSD_PKG_MK
# Package system options

PACKAGES=               ${PKGSRCDIR}/packages/${MACHINE_ARCH}
WRKOBJDIR=              /t/pkgobj

FETCH_CMD=              /usr/bin/ftp -T get,10000

#LYNX_SCREEN_LIB=       curses
PAPERSIZE=              Letter

.endif # BSD_PKG_MK


Frederick