Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
new sync options [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Mon Apr 20, 2015 1:56 pm    Post subject: new sync options [solved] Reply with quote

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
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Mon Apr 20, 2015 3:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
jagdpanther
l33t
l33t


Joined: 22 Nov 2003
Posts: 729

PostPosted: Mon Apr 20, 2015 3:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Mon Apr 20, 2015 3:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Mon Apr 20, 2015 5:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Mon Apr 20, 2015 6:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum