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:
app-admin/gentoo-rsync-mirror already exists.
Sorry I meant to say LOCAL mirror.
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!!
And really, there is no need for a seperate package when a few commented lines in a config file is all it takes...
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
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.
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.