Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/http-replicator/
Date: Sat, 20 Oct 2018 12:17:19
Message-Id: 1540037806.a7c55f6ca3ef13012f08bb01544decb07b1d6200.pacho@gentoo
1 commit: a7c55f6ca3ef13012f08bb01544decb07b1d6200
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 20 11:45:08 2018 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 20 12:16:46 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7c55f6c
7
8 net-proxy/http-replicator: Fix dep on portage (#640886 by Anthony Parsons)
9
10 Closes: https://bugs.gentoo.org/640886
11 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
12 Package-Manager: Portage-2.3.51, Repoman-2.3.11
13
14 .../http-replicator-4.0_alpha2-r6.ebuild | 75 ++++++++++++++++++++++
15 1 file changed, 75 insertions(+)
16
17 diff --git a/net-proxy/http-replicator/http-replicator-4.0_alpha2-r6.ebuild b/net-proxy/http-replicator/http-replicator-4.0_alpha2-r6.ebuild
18 new file mode 100644
19 index 00000000000..67f093d09fe
20 --- /dev/null
21 +++ b/net-proxy/http-replicator/http-replicator-4.0_alpha2-r6.ebuild
22 @@ -0,0 +1,75 @@
23 +# Copyright 1999-2018 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +PYTHON_COMPAT=( python2_7 )
28 +
29 +inherit python-r1 readme.gentoo-r1 systemd
30 +
31 +MY_P="${PN}_${PV/_/}"
32 +
33 +DESCRIPTION="Proxy cache for Gentoo packages"
34 +HOMEPAGE="https://sourceforge.net/projects/http-replicator"
35 +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz"
36 +
37 +LICENSE="GPL-2"
38 +SLOT="0"
39 +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86"
40 +IUSE=""
41 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
42 +
43 +RDEPEND="${PYTHON_DEPS}
44 + sys-apps/portage[${PYTHON_USEDEP}]
45 +"
46 +DEPEND="${RDEPEND}"
47 +
48 +S="${WORKDIR}/${MY_P}"
49 +
50 +# Tests downloads files as well as breaks, should be turned into local tests.
51 +RESTRICT="test"
52 +
53 +DISABLE_AUTOFORMATTING="yes"
54 +DOC_CONTENTS="
55 +Before starting ${PN}, please follow the next few steps:
56 +
57 +- Modify /etc/conf.d/${PN} if required.
58 +- Run \`repcacheman\` to set up the cache.
59 +- Add HTTP_PROXY=\"http://serveraddress:8080\" to make.conf on
60 +the server as well as on the client machines.
61 +- Make sure GENTOO_MIRRORS in /etc/portage/make.conf
62 +starts with several good HTTP mirrors.
63 +
64 +For more information please refer to the following forum thread:
65 +https://forums.gentoo.org/viewtopic-t-173226.html
66 +
67 +Starting with 4.x releases, the conf.d parameters have changed.
68 +"
69 +
70 +PATCHES=( "${FILESDIR}"/${PN}-4.0_alpha2-r3-pid.patch )
71 +
72 +src_test() {
73 + ./unit-test && die
74 +}
75 +
76 +src_install() {
77 + python_foreach_impl python_doscript http-replicator
78 +
79 + newbin "${FILESDIR}"/${PN}-3.0-callrepcacheman-0.1 repcacheman
80 +
81 + python_foreach_impl python_domodule *.py
82 +
83 + python_foreach_impl python_newscript "${FILESDIR}"/${PN}-3.0-repcacheman-0.44-r2 repcacheman.py
84 +
85 + newinitd "${FILESDIR}"/${PN}-4.0_alpha2-r3.init http-replicator
86 + newconfd "${FILESDIR}"/${PN}-4.0_alpha2-r2.conf http-replicator
87 +
88 + systemd_dounit "${FILESDIR}"/http-replicator.service
89 + systemd_install_serviced "${FILESDIR}"/http-replicator.service.conf
90 +
91 + dodoc README.user README.devel RELNOTES
92 + readme.gentoo_create_doc
93 +}
94 +
95 +pkg_postinst() {
96 + readme.gentoo_print_elog
97 +}