bin/165602: pkg_add - extend PACKAGESITE lookup to include
mike at bayphoto.com
Fri Mar 2 00:30:12 UTC 2012
>Synopsis: pkg_add - extend PACKAGESITE lookup to include rc.conf.local
>Arrival-Date: Fri Mar 02 00:30:12 UTC 2012
>Originator: Michael Carlson
Bay Photo Lab
FreeBSD b-bot.bayphoto.local 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Hey FreeBSD Dev's!
We have a local Tinderbox server to build packages from ports, and then we use Puppet to install said packages.
When puppet uses pkg_add, it does not grab the PACKAGESITE environment variable, and defaults to using the hard-coded value of ftp.freebsd.org in pkg_add itself.
It would be preferable if pkg_add was able to look up PACKAGESITE in any one of the system configuration file locations like rc.conf, rc.conf.local, etc...
Or, even something like /etc/pkg.conf.
This seems like it would be a nice enhancement to a core FreeBSD tool, and FreeBSD is always really good at being super flexible.
More information about the freebsd-bugs