Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 80939 - rsync should by default provide a local gentoo-portage mirror in rsyncd.conf
Summary: rsync should by default provide a local gentoo-portage mirror in rsyncd.conf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: SpanKY
URL: http://gentoo-wiki.com/HOWTO_Local_Rs...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-05 19:29 UTC by John Nilsson
Modified: 2005-03-23 16:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Nilsson 2005-02-05 19:29:13 UTC
The default installation of rsync should have an example rsyncd configuration for mirroring /usr/portage

The provided URI points to the current recommended setup. IMHO most of the lines in the recommended rsyncd.conf could be eliminated.
The changes in /etc/init.d/rsyncd should probably just go straight in.

Reproducible: Always
Steps to Reproduce:
Comment 1 Daniel Black (RETIRED) gentoo-dev 2005-02-10 04:52:18 UTC
app-admin/gentoo-rsync-mirror already exists.
Comment 2 John Nilsson 2005-02-10 09:29:52 UTC
Sorry I meant to say LOCAL mirror.
Comment 3 John Nilsson 2005-02-10 09:39:13 UTC
Quote from the URL:

Let me start by saying there is conflicting info in the forums and gentoo docs about how to setup a local rsync mirror. The howto at rsync (http://www.gentoo.org/doc/en/rsync.xml) is for OFFICIAL public mirrors! It can confuse a user wanting a LOCAL LAN mirror! There is an app-admin/gentoo-rsync-mirror ebuild that is currently outdated and possibly insecure!!
Comment 4 John Nilsson 2005-02-10 09:40:47 UTC
And really, there is no need for a seperate package when a few commented lines in a config file is all it takes...
Comment 5 SpanKY gentoo-dev 2005-03-17 18:01:41 UTC
before you go implying something is 'insecure', do us all a favor and know wtf you're talking about

added a small 4 line example to the rsyncd.conf:
# Simple example for enabling your own local rsync server
#[gentoo-portage]
#   path = /usr/portage
#   comment = Gentoo Linux Portage tree
#   exclude = distfiles packages
Comment 6 John Nilsson 2005-03-17 18:31:51 UTC
Just for the record.

Firstly: I didn't imply anything, it was a quote.

Secondly: This might not have been a show stopper or other serious bug. But small things like this will increase the usabillity of Gentoo over time.
Comment 7 numpf 2005-03-23 16:28:00 UTC
http://forums.gentoo.org/viewtopic-p-2225890.html
I and at least one other have had a problem with this:

#   exclude = distfiles packages

My interpretation of the rsyncd.conf manpage suggests this is bad. Without a leading or trailing slash, that pattern matches all PROFILE/packages files

   exclude = /distfiles/ /packages/

seems to be what we want. I've seen it on the forums as

   exclude = distfiles/ packages/

which I don't think is what it should be logically, but doesn't seem to cause problems, since it's widely publicized that way without complaint. Sorry if this should be a new bug.