# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-proxy/http-replicator/http-replicator-3.0-r1.ebuild,v 1.6 2008/08/26 18:33:44 griffon26 Exp $ inherit eutils DESCRIPTION="Proxy cache for Gentoo packages" HOMEPAGE="http://gertjan.freezope.org/replicator/" SRC_URI="http://gertjan.freezope.org/replicator/${PN}_${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 ~hppa ppc ~sparc x86" IUSE="" DEPEND=">=dev-lang/python-2.3" src_compile() { epatch "${FILESDIR}/http-replicator-3.0-sighup.patch" einfo "No compilation necessary" } src_install(){ # Daemon and repcacheman into /usr/bin exeinto /usr/bin doexe http-replicator newexe "${FILESDIR}/http-replicator-3.0-callrepcacheman-0.1" repcacheman if has_version '>=sys-apps/portage-2.2_rc6'; then newexe "${FILESDIR}/http-replicator-3.0-repcacheman-0.44-r1" repcacheman.py else newexe "${FILESDIR}/http-replicator-3.0-repcacheman-0.44" repcacheman.py fi # init.d scripts newinitd "${FILESDIR}/http-replicator-3.0.init" http-replicator newconfd "${FILESDIR}/http-replicator-3.0.conf" http-replicator # Docs dodoc README debian/changelog # Man Page - Not Gentooified yet doman http-replicator.1 insinto /etc/logrotate.d newins debian/logrotate http-replicator } pkg_postinst() { einfo einfo "Before starting http-replicator, please follow the next few steps:" einfo "- modify /etc/conf.d/http-replicator if required" einfo "- run /usr/bin/repcacheman to set up the cache" einfo "- add http_proxy=\"http://serveraddress:8080\" to make.conf on" einfo " the server as well as on the client machines" einfo "- make sure GENTOO_MIRRORS in /etc/make.conf starts with several" einfo " good http mirrors" einfo einfo "For more information please refer to the following forum thread:" einfo " http://forums.gentoo.org/viewtopic-t-173226.html" einfo }