/[gentoo-x86]/net-proxy/http-replicator/http-replicator-3.0-r3.ebuild
Gentoo

Contents of /net-proxy/http-replicator/http-replicator-3.0-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Wed Jan 7 13:58:21 2015 UTC (2 weeks, 6 days ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Reassign and cleanup as discussed at https://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg66357.html

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-proxy/http-replicator/http-replicator-3.0-r3.ebuild,v 1.5 2012/08/24 12:05:24 xmw Exp $
4
5 EAPI=4
6 PYTHON_DEPEND="2:2.7:2.7" # not 2.6 bug #33907, not 3.0 bug #411083
7 inherit eutils python
8
9 MY_P="${PN}_${PV}"
10
11 DESCRIPTION="Proxy cache for Gentoo packages"
12 HOMEPAGE="http://sourceforge.net/projects/http-replicator"
13 SRC_URI="mirror://sourceforge/http-replicator/${MY_P}.tar.gz"
14 S="${WORKDIR}/${MY_P}"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~alpha amd64 hppa ppc ~sparc x86"
19 IUSE=""
20
21 DEPEND=""
22 RDEPEND="${DEPEND}"
23
24 src_compile() {
25 epatch "${FILESDIR}/http-replicator-3.0-sighup.patch"
26 einfo "No compilation necessary"
27 }
28
29 src_install(){
30 # Daemon and repcacheman into /usr/bin
31 exeinto /usr/bin
32 doexe http-replicator
33 newexe "${FILESDIR}/http-replicator-3.0-callrepcacheman-0.1" repcacheman
34 newexe "${FILESDIR}/http-replicator-3.0-repcacheman-0.44-r2" repcacheman.py
35
36 # init.d scripts
37 newinitd "${FILESDIR}/http-replicator-3.0.init" http-replicator
38 newconfd "${FILESDIR}/http-replicator-3.0.conf" http-replicator
39
40 # not 2.6 bug #33907, not 3.0 bug #411083
41 python_convert_shebangs -r 2.7 "${ED}"
42
43 # Docs
44 dodoc README debian/changelog
45
46 # Man Page - Not Gentooified yet
47 doman http-replicator.1
48
49 insinto /etc/logrotate.d
50 newins debian/logrotate http-replicator
51 }
52
53 pkg_postinst() {
54 einfo
55 einfo "Before starting http-replicator, please follow the next few steps:"
56 einfo "- modify /etc/conf.d/http-replicator if required"
57 einfo "- run /usr/bin/repcacheman to set up the cache"
58 einfo "- add http_proxy=\"http://serveraddress:8080\" to make.conf on"
59 einfo " the server as well as on the client machines"
60 einfo "- make sure GENTOO_MIRRORS in /etc/make.conf starts with several"
61 einfo " good http mirrors"
62 einfo
63 einfo "For more information please refer to the following forum thread:"
64 einfo " http://forums.gentoo.org/viewtopic-t-173226.html"
65 einfo
66 }

  ViewVC Help
Powered by ViewVC 1.1.20