bin/165602: pkg_add - extend PACKAGESITE lookup to include rc.conf.local

Michael Carlson mike at
Fri Mar 2 00:30:12 UTC 2012

>Number:         165602
>Category:       bin
>Synopsis:       pkg_add - extend PACKAGESITE lookup to include rc.conf.local
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 02 00:30:12 UTC 2012
>Originator:     Michael Carlson
>Release:        9.0-RELEASE
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  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 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 mailing list