Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using OpenBSD as local Rsync mirror
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bjd
Tux's lil' helper
Tux's lil' helper


Joined: 10 Aug 2005
Posts: 127
Location: Loughborough, UK

PostPosted: Tue Dec 06, 2005 9:56 pm    Post subject: Using OpenBSD as local Rsync mirror Reply with quote

I have a handful of Gentoo boxes and want to set up a local Rsync mirror for the Portage tree. Thing is, I want to use my OpenBSD3.7 box as the mirror, it already acts as a file and time server, and want to give it something more interesting to do of an evening.

A glance at the wiki article suggests its just a case of setting up Rsync on OpenBSD and storing the tree somewhere suitable. Then a shell script can point it to a suitable Gentoo mirror and do the sync. Pretty straightforward.

Thing is, I don't want to stop there :) I was reading the SquashFS for Portage thread and liked what was going on. Saving ~500Mb of space would be useful on a couple of my boxes :) What I want is the OpenBSD box to take the portage tree its just Rsync'ed and create a SquashFS file, which it can then share out to the Gentoo machines.

The thing I'm not sure about, is that when you emerge --sync, it doesn't just sync the tree, it goes on to build the portage cache. Thats a step that the OpenBSD box would omit, which would mean its missing from the SquashFS file. Thats me assuming whatever the cache builds resides in /usr/portage. I don't quite know what that step does, or if it can be omitted safely. I assume its building a file somewhere for dependency checks and the like. I have been looking at the emerge code to see if I could implement this step on the OpenBSD box in a shell script or similar, but Im not familiar with Python so its hard going :)

The SquashFS step isn't essential at the end of the day, but it would be nice to get it working, so thought Id ask here to see if it made any sense!
TIA
Back to top
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3065
Location: Korea

PostPosted: Tue Dec 06, 2005 10:08 pm    Post subject: Reply with quote

I may be wrong but I think the cache isn't stored inside /usr/portage

edit:
So I was wrong.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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