maintainer-feedback requested: [Bug 237356] [feature request] ports-mgmt/pkg: allow 'http_proxy' in repository context

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Apr 18 07:07:20 UTC 2019


Bugzilla Automation <bugzilla at FreeBSD.org> has asked freebsd-pkg mailing list
<pkg at FreeBSD.org> for maintainer-feedback:
Bug 237356: [feature request] ports-mgmt/pkg: allow 'http_proxy' in repository
context
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237356



--- Description ---
As the pkg.conf (5) man page states it is currently possible to specify a HTTP
proxy within the global pkg environment context like so:

pkg_env: {
  http_proxy: "http://myproxy:3128",
}

It would be very useful if it were possible to specify HTTP proxies within a
repository configuration context. For instance:

# /usr/local/etc/pkg/repos/mycorporaterepo.conf
FreeBSD: {
	url: "pkg+http://my.company.tld/${ABI}/latest",
	http_proxy: "http://someuser:secret@myproxy:3128"
}


This logic would be consistent with other repository config systems such as yum
(search 'proxy'):

https://linux.die.net/man/5/yum.conf


More information about the freebsd-pkg mailing list