Support /etc/portage/binrepos.conf as a replacement for the PORTAGE_BINHOST variable. Behavior is similar to repos.conf, initially supporting just the sync-uri attribute. Both binrepos.conf and PORTAGE_BINHOST can be used simultaneously, in the same way that repos.conf and PORTDIR_OVERLAY can be used simultaneously.
The emerge --info output for binrepos.conf looks like this: Binary Repositories: example-binhost sync-uri: https://example.com/packages Support customization of fetchcommand and resumecommand in binrepos.conf, allowing customized authentication mechanisms for each repository. Zac Medico (2): Add binrepos.conf to replace PORTAGE_BINHOST (bug 668334) binrepos.conf: support fetchcommand customization (bug 661332) lib/_emerge/BinpkgFetcher.py | 29 ++++-- lib/_emerge/actions.py | 13 ++- lib/portage/binrepo/__init__.py | 0 lib/portage/binrepo/config.py | 131 ++++++++++++++++++++++++ lib/portage/const.py | 1 + lib/portage/dbapi/bintree.py | 48 ++++++--- lib/portage/tests/emerge/test_simple.py | 14 ++- man/make.conf.5 | 3 +- man/portage.5 | 52 ++++++++++ 9 files changed, 264 insertions(+), 27 deletions(-) create mode 100644 lib/portage/binrepo/__init__.py create mode 100644 lib/portage/binrepo/config.py -- 2.25.3