blob: 2497fd4e94a89d33b780d7c49a3971731c55145f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2005 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.ebuild,v 1.3 2005/06/04 01:51:17 yoswink Exp $
DESCRIPTION="Proxy cache for Gentoo packages"
HOMEPAGE="http://gertjan.freezope.org/"
SRC_URI="http://gertjan.freezope.org/replicator/${PN}_${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc ~x86 ~alpha"
IUSE=""
DEPEND=">=dev-lang/python-2.3"
src_compile() {
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.0.51'; then
newexe ${FILESDIR}/http-replicator-3.0-repcacheman-0.33 repcacheman.py
else
newexe ${FILESDIR}/http-replicator-3.0-repcacheman-0.21 repcacheman.py
fi
# Config file into /etc/conf.d
insinto /etc/conf.d
newins ${FILESDIR}/http-replicator-3.0.conf http-replicator
# Docs
dodoc README debian/changelog
# init.d scripts
exeinto /etc/init.d
newexe ${FILESDIR}/http-replicator-3.0.init http-replicator
# 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
}
|