Subject: Re: changes to pkgsrc defaults
To: John Hawkinson <jhawk@MIT.EDU>
From: Alistair Crooks <agc@pkgsrc.org>
List: tech-pkg
Date: 12/03/2001 22:50:24
On Mon, Dec 03, 2001 at 04:38:55PM -0500, John Hawkinson wrote:
> Alistair Crooks <agc@pkgsrc.org> wrote on Wed, 19 Sep 2001
> at 00:47:31 +0200 in <20010919004731.B29672@smaug.fh-regensburg.de>:
> 
> > The old practice of copying mk.conf.defaults into /etc/mk.conf,
> > in-place editing, and then testing has now changed, although it
> > will still work.
> > 
> > Now a new file called pkgsrc/mk/bsd.pkg.defaults.mk is sourced
> > before /etc/mk.conf, and any default values for pkgsrc will be
> > set. It is now only necessary to set values in /etc/mk.conf which
> > differ from the default.
> 
> Just as we ship with a now-empty rc.conf file that makes
> it clear that defaults are read from /etc/defaults/rc.conf,
> is there a reason we do not continue to ship an mk.conf.example file
> like:

Fine by me.
 
> --- /dev/null	Mon Dec  3 10:35:57 2001
> +++ mk.conf.example	Mon Dec  3 16:36:20 2001
> @@ -0,0 +1,9 @@
> +#	$NetBSD$
> +#
> +# This file may be used to override defaults set in the pkgsrc
> +# tree, in ${PKGSRCROOT}/mk/bsd.pkg.defaults.mk.
> +#
> +# bsd.pkg.defaults.mk is sourced after mk.conf is read, and
> +# it sets variables with =?, so they may be overriden here.
> +#
> +# Add local overrides below
> 
> While this is not strictly necessary, this would help to reduce
> confusion for folks who are expecting mk.conf.example to provide
> a reference for defaults.
> 
> Thanks.
> 
> --jhawk
> 
> p.s.: Whatever is done, it would be best if pkgsrc/README were clear on it.

Subject: CVS commit: pkgsrc
To: pkgsrc-changes@netbsd.org
Reply-To: agc@netbsd.org
Message-Id: <20011203213357.E778EB005@cvs.netbsd.org>
Date: Mon,  3 Dec 2001 23:33:57 +0200 (EET)
Sender: pkgsrc-changes-owner@netbsd.org


Module Name:    pkgsrc
Committed By:   agc
Date:           Mon Dec  3 21:33:57 UTC 2001

Modified Files:
        pkgsrc: README

Log Message:
Update a sentence which used to talk about mk.conf.example to explain the
use of bsd.pkg.defaults.mk. Pointed out by jhawk.


To generate a diff of this commit:
cvs rdiff -r1.12 -r1.13 pkgsrc/README

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.