dev-python/pytest: arm64 stable (bug #723996)
[gentoo.git] / app-admin / gentoo-rsync-mirror / gentoo-rsync-mirror-1.0-r5.ebuild
1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
3
4 EAPI=5
5
6 DESCRIPTION="Ebuild for setting up a Gentoo rsync mirror"
7 HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Infrastructure/Rsync"
8 SRC_URI=""
9
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="~alpha amd64 hppa ppc ppc64 sparc x86"
13 IUSE=""
14
15 S="${WORKDIR}"
16
17 src_install() {
18         exeinto /opt/gentoo-rsync
19         doexe "${FILESDIR}"/rsync-gentoo-portage.sh
20         doexe "${FILESDIR}"/rsynclogparse-extended.pl
21         insinto etc/rsync
22         doins "${FILESDIR}"/rsyncd.conf
23         doins "${FILESDIR}"/rsyncd.motd
24         doins "${FILESDIR}"/gentoo-mirror.conf
25         dodir /opt/gentoo-rsync/portage
26 }
27
28 pkg_postinst() {
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."
34         elog
35         elog "RSYNC_OPTS="--config=/etc/rsync/rsyncd.conf" needs"
36         elog "to be set in /etc/conf.d/rsyncd to make allow syncing."
37         elog
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."
42         elog
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."
46         elog
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."
51         elog
52         elog "For more information visit: https://wiki.gentoo.org/wiki/Project:Infrastructure/Rsync"
53 }