diff options
Diffstat (limited to 'app-admin/gentoo-rsync-mirror/gentoo-rsync-mirror-1.0-r3.ebuild')
-rw-r--r-- | app-admin/gentoo-rsync-mirror/gentoo-rsync-mirror-1.0-r3.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/app-admin/gentoo-rsync-mirror/gentoo-rsync-mirror-1.0-r3.ebuild b/app-admin/gentoo-rsync-mirror/gentoo-rsync-mirror-1.0-r3.ebuild new file mode 100644 index 000000000000..98a9f73c9412 --- /dev/null +++ b/app-admin/gentoo-rsync-mirror/gentoo-rsync-mirror-1.0-r3.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $ + +IUSE="" +S=${WORKDIR}/gentoo-rsync-mirror-${PV} +DESCRIPTION="Ebuild for setting up a Gentoo rsync mirror" +HOMEPAGE="http://www.gentoo.org/doc/en/rsync.xml" + +DEPEND="virtual/glibc" +RDEPEND="net-misc/rsync + dev-lang/perl" +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="x86 ppc sparc alpha amd64" + +src_install() { + dodir /opt/gentoo-rsync + cp ${FILESDIR}/rsync-gentoo-portage.sh ${D}/opt/gentoo-rsync + cp ${FILESDIR}/rsynclogparse-extended.pl ${D}/opt/gentoo-rsync + insinto etc/rsync + doins ${FILESDIR}/rsyncd.conf + doins ${FILESDIR}/rsyncd.motd + dodir /opt/gentoo-rsync/portage + exeinto /etc/init.d + newexe ${FILESDIR}/rsyncd.init rsyncd +} + +pkg_postinst() { + einfo "The rsync-mirror is now installed into /opt/gentoo-rsync" + einfo "The local portage copy resides in /opt/gentoo-rsync/portage" + einfo "Please change /opt/gentoo-rsync/rsync-gentoo-portage.sh for" + einfo "configuration of your main rsync server and use it so sync." + einfo "Change /etc/rsync/rsyncd.motd to display your correct alias." + einfo + einfo "The service can be started using /etc/init.d/rsyncd start" + einfo "If you are setting up an official mirror, don't forget to add" + einfo "00,30 * * * * root /opt/gentoo-rsync/rsync-gentoo-portage.sh" + einfo "to your /etc/crontab to sync your tree every 30 minutes." + einfo + einfo "If you are setting up a private (unofficial) mirror, you can add" + einfo "0 3 * * * root /opt/gentoo-rsync/rsync-gentoo-portage.sh" + einfo "to your /etc/crontab to sync your tree once per day." + einfo + einfo "****IMPORTANT****" + einfo "If you are setting up a private mirror, DO NOT sync against the" + einfo "gentoo.org official rotations more than once a day. Doing so puts" + einfo "you at risk of having your IP address banned from the rotations." + einfo + einfo "For more information visit: http://www.gentoo.org/doc/en/rsync.xml" +} + |