# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Proxy cache for Gentoo packages" HOMEPAGE="http://gertjan.freezope.org/" SRC_URI="http://gertjan.freezope.org/replicator/${P}.tar.gz" #SRC_URI="http://www.updatedlinux.com/replicator/${P}.tar.gz" LICENSE="GPL-2.0" SLOT="0" KEYWORDS="x86 amd64 alpha ppc" IUSE="" DEPEND=">=dev-lang/python-2.3" src_compile() { einfo "No compilation neccessary" } src_install(){ # Daemon and repcachman into /usr/bin exeinto /usr/bin doexe http-replicator if has_version '>=sys-apps/portage-2.0.51'; then newexe ${FILESDIR}/http-replicator-2.1-repcacheman-0.32 repcacheman else newexe ${FILESDIR}/http-replicator-2.1/repcacheman-0.2 repcacheman fi # Config file into /etc/conf.d insinto /etc/conf.d newins ${FILESDIR}/http-replicator-2.1.conf http-replicator # Doc's dodoc README dodoc debian/changelog dodoc debian/copyright # init.d scripts exeinto /etc/init.d newexe ${FILESDIR}/http-replicator-2.1.init http-replicator } pkg_postinst() { einfo einfo "If you wish to change defaults" einfo "edit /etc/conf.d/http-replicator" einfo einfo "Execute /usr/bin/repcacheman " einfo "to auto create the cache directory" einfo "and prime the cache." einfo }