Gentoo Archives: gentoo-user

From: Frank Steinmetzger <Warp_7@×××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Select default repository in make.conf?
Date: Tue, 27 Oct 2015 22:51:23
Message-Id: 20151027225108.GB1587@asp.fritz.box
Hi guys’n’gals

Before the introduction of repos.conf, we used several variables in
make.conf to tell portage where to find stuff, such as GENTOO_MIRRORS and
SYNC. My make.conf used to first define sensible defaults for those and then
has the line:

source homenet.conf

This file modifies those portage settings to reroute operations to within my
own network. Oftentimes either my PC or laptop is (far) ahead of the other
(tree sync, distfiles download). So to make them serve each other, which
reduces load on public servers and vastly speeds up distfiles download, this
homenet.conf file
- prepends a gentoo mirror
- sets the portage rsync server
- enables distcc on the laptop

So with a single (un)commenting of the source command, I could switch
between “normal” mode and “homenet” mode.

Since repos.conf came about, this doesn’t work anymore (the sync part,
anyway, for now). So nowadays, when I want to switch mode, I need to change
the source line and also need to change the sync-uri in repos.conf’s default
repository. That’s too much work. :-D

How would you advise to achieve what I’m after?
Thanks-a-doodle and good night.
-- 
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me on any social network.

I can resist everything, except temptation.

Replies

Subject Author
Re: [gentoo-user] Select default repository in make.conf? Alan McKinnon <alan.mckinnon@×××××.com>