Subject: changes to pkgsrc defaults
To: None <tech-pkg@netbsd.org>
From: Alistair Crooks <agc@pkgsrc.org>
List: tech-pkg
Date: 09/19/2001 00:47:31
Just a word of warning to let you know that I've changed the way
that default values are set in pkgsrc.
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.
I've also added a new value, called INET_COUNTRY (I can never think
of good names for these), which is used to determine which of
the MASTER_SITE_{GNU,SOURCEFORGE,XCONTRIB,...} definitions get
used. e.g.
% cd pkgsrc/finance/xfinans
% make show-var VARNAME=MASTER_SITES
ftp://sunsite.unc.edu/pub/Linux/apps/financial/accounting/ ftp://ftp.infomagic.com/pub/mirrors/linux/sunsite/apps/financial/accounting/ ftp://ftp.informatik.rwth-aachen.de/pub/comp/Linux/sunsite.unc.edu/apps/financial/accounting/ ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/ ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/
% env INET_COUNTRY=uk make show-var VARNAME=MASTER_SITES
ftp://sunsite.org.uk/Mirrors/sunsite.unc.edu/pub/Linux/apps/financial/accounting/ ftp://sunsite.unc.edu/pub/Linux/apps/financial/accounting/ ftp://ftp.infomagic.com/pub/mirrors/linux/sunsite/apps/financial/accounting/ ftp://ftp.informatik.rwth-aachen.de/pub/comp/Linux/sunsite.unc.edu/apps/financial/accounting/ ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/ ftp://ftp.freebsd.org/pub/FreeBSD/distfiles/
I don't anticipate any problems, but if there are any, please
send-pr them in the usual way.
Thanks,
Alistair