View previous topic :: View next topic |
Author |
Message |
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Mon Apr 20, 2015 1:56 pm Post subject: new sync options [solved] |
|
|
not a good day what with libav vs. ffmpeg issues
but my question is about the new sync options
in particular, when I'm home my laptops sync to my
local server running an rsync server
old style in make.conf:
Quote: | SYNC="rsync://192.168.0.5/gentoo-portage" |
when travelling I comment this out; easy
is there a guide for this somewhere for setting up similarly EASY
system for the repos.conf system?
Do I have to make a file for the local rsync in repos.conf which I'll then have
to move in or out of the directory when I'm travelling? Or does the new system
have an advantage here so some automation can be developed? _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Last edited by albright on Mon Apr 20, 2015 6:38 pm; edited 1 time in total |
|
Back to top |
|
|
dol-sen Retired Dev
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
Posted: Mon Apr 20, 2015 3:16 pm Post subject: |
|
|
No, in /etc/portage/repos.conf/gentoo.conf just have mutliple sync-uri = settings, comment one or more out. So, really it's the same thing, just different file, different variable name.
eg: in mine I do similar for testing different things
Code: | [gentoo]
location = /usr/portage
#location = /var/tmp/test/gentoo
#sync-type = websync
sync-type = rsync
#sync-uri = rsync://192.168.1.1/gentoo-portage
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
auto-sync = yes
|
_________________ Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch... |
|
Back to top |
|
|
jagdpanther l33t
Joined: 22 Nov 2003 Posts: 729
|
Posted: Mon Apr 20, 2015 3:22 pm Post subject: |
|
|
I was looking at this guide:
https://wiki.gentoo.org/wiki//etc/portage/repos.conf
My '/etc/portage/repos.conf/gentoo.conf', after stripping out most of the comments, looks like the following. It seems to work. Disclaimer: I am NOT an expert:
Code: |
# see https://wiki.gentoo.org/wiki//etc/portage/repos.conf
[DEFAULT]
main-repo = gentoo
[gentoo]
priority = 9999
[gentoo]
location = /usr/portage
#sync-type = cvs
sync-type = rsync
#sync-uri = :pserver:anonymous@anoncvs.gentoo.org:/var/cvsroot
sync-uri = rsync://rsync.us.gentoo.org/gentoo-portage
# sync-cvs-repo = gentoo-x86
auto-sync = yes
|
|
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6051 Location: Removed by Neddy
|
Posted: Mon Apr 20, 2015 3:26 pm Post subject: |
|
|
could you do it via symlink and rc.local? detect what your IP is and link to the local, else link to the global _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Mon Apr 20, 2015 5:15 pm Post subject: |
|
|
I just commented out my SYNC= line in make.conf. I'll change it next time when portage is provided as a git repo. |
|
Back to top |
|
|
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Mon Apr 20, 2015 6:38 pm Post subject: |
|
|
Quote: | mutliple sync-uri = settings |
yes, thanks, that's good
(it would be possible to write a script that checked the
network to see which sync-uri to use but it's just as
easy to comment out by hand when I'm away from
home ...) _________________ .... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme) |
|
Back to top |
|
|
|