1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="Ebuild for setting up a Gentoo rsync mirror"
7 HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Infrastructure/Rsync"
12 KEYWORDS="~alpha amd64 hppa ppc ppc64 sparc x86"
18 exeinto /opt/gentoo-rsync
19 doexe "${FILESDIR}"/rsync-gentoo-portage.sh
20 doexe "${FILESDIR}"/rsynclogparse-extended.pl
22 doins "${FILESDIR}"/rsyncd.conf
23 doins "${FILESDIR}"/rsyncd.motd
24 doins "${FILESDIR}"/gentoo-mirror.conf
25 dodir /opt/gentoo-rsync/portage
29 elog "The rsync-mirror is now installed into /opt/gentoo-rsync"
30 elog "The local portage copy resides in /opt/gentoo-rsync/portage"
31 elog "Please change /opt/gentoo-rsync/rsync-gentoo-portage.sh for"
32 elog "configuration of your main rsync server and use it to sync."
33 elog "Change /etc/rsync/rsyncd.motd to display your correct alias."
35 elog "RSYNC_OPTS="--config=/etc/rsync/rsyncd.conf" needs"
36 elog "to be set in /etc/conf.d/rsyncd to make allow syncing."
38 elog "The service can be started using /etc/init.d/rsyncd start"
39 elog "If you are setting up an official mirror, don't forget to add"
40 elog "00,30 * * * * root /opt/gentoo-rsync/rsync-gentoo-portage.sh"
41 elog "to your /etc/crontab to sync your tree every 30 minutes."
43 elog "If you are setting up a private (unofficial) mirror, you can add"
44 elog "0 3 * * * root /opt/gentoo-rsync/rsync-gentoo-portage.sh"
45 elog "to your /etc/crontab to sync your tree once per day."
47 elog "****IMPORTANT****"
48 elog "If you are setting up a private mirror, DO NOT sync against the"
49 elog "gentoo.org official rotations more than once a day. Doing so puts"
50 elog "you at risk of having your IP address banned from the rotations."
52 elog "For more information visit: https://wiki.gentoo.org/wiki/Project:Infrastructure/Rsync"