From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E82FF138335 for ; Sat, 20 Oct 2018 12:17:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 199E8E086B; Sat, 20 Oct 2018 12:17:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D021AE086B for ; Sat, 20 Oct 2018 12:17:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 79FA9335CEB for ; Sat, 20 Oct 2018 12:17:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 20075439 for ; Sat, 20 Oct 2018 12:17:16 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1540037806.a7c55f6ca3ef13012f08bb01544decb07b1d6200.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/http-replicator/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-proxy/http-replicator/http-replicator-4.0_alpha2-r6.ebuild X-VCS-Directories: net-proxy/http-replicator/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: a7c55f6ca3ef13012f08bb01544decb07b1d6200 X-VCS-Branch: master Date: Sat, 20 Oct 2018 12:17:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 4ee227d6-55a9-41a2-85b2-8176a6199024 X-Archives-Hash: 2a47c3ee75972ef58476bc6f03bee9a8 commit: a7c55f6ca3ef13012f08bb01544decb07b1d6200 Author: Pacho Ramos gentoo org> AuthorDate: Sat Oct 20 11:45:08 2018 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Sat Oct 20 12:16:46 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a7c55f6c net-proxy/http-replicator: Fix dep on portage (#640886 by Anthony Parsons) Closes: https://bugs.gentoo.org/640886 Signed-off-by: Pacho Ramos gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 .../http-replicator-4.0_alpha2-r6.ebuild | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) 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 new file mode 100644 index 00000000000..67f093d09fe --- /dev/null +++ b/net-proxy/http-replicator/http-replicator-4.0_alpha2-r6.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python2_7 ) + +inherit python-r1 readme.gentoo-r1 systemd + +MY_P="${PN}_${PV/_/}" + +DESCRIPTION="Proxy cache for Gentoo packages" +HOMEPAGE="https://sourceforge.net/projects/http-replicator" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86" +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + sys-apps/portage[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${MY_P}" + +# Tests downloads files as well as breaks, should be turned into local tests. +RESTRICT="test" + +DISABLE_AUTOFORMATTING="yes" +DOC_CONTENTS=" +Before starting ${PN}, please follow the next few steps: + +- Modify /etc/conf.d/${PN} if required. +- Run \`repcacheman\` to set up the cache. +- Add HTTP_PROXY=\"http://serveraddress:8080\" to make.conf on +the server as well as on the client machines. +- Make sure GENTOO_MIRRORS in /etc/portage/make.conf +starts with several good HTTP mirrors. + +For more information please refer to the following forum thread: +https://forums.gentoo.org/viewtopic-t-173226.html + +Starting with 4.x releases, the conf.d parameters have changed. +" + +PATCHES=( "${FILESDIR}"/${PN}-4.0_alpha2-r3-pid.patch ) + +src_test() { + ./unit-test && die +} + +src_install() { + python_foreach_impl python_doscript http-replicator + + newbin "${FILESDIR}"/${PN}-3.0-callrepcacheman-0.1 repcacheman + + python_foreach_impl python_domodule *.py + + python_foreach_impl python_newscript "${FILESDIR}"/${PN}-3.0-repcacheman-0.44-r2 repcacheman.py + + newinitd "${FILESDIR}"/${PN}-4.0_alpha2-r3.init http-replicator + newconfd "${FILESDIR}"/${PN}-4.0_alpha2-r2.conf http-replicator + + systemd_dounit "${FILESDIR}"/http-replicator.service + systemd_install_serviced "${FILESDIR}"/http-replicator.service.conf + + dodoc README.user README.devel RELNOTES + readme.gentoo_create_doc +} + +pkg_postinst() { + readme.gentoo_print_elog +}