From 5ea5bd92e623eb4203ebdb90e6276d392ab6db7f Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 20 Feb 2014 17:14:33 -0800 Subject: [PATCH 1/1] net-proxy/package-cache: Package my package-cache server --- ChangeLog | 9 +++++++++ metadata.xml | 12 ++++++++++++ package-cache-9999.ebuild | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 ChangeLog create mode 100644 metadata.xml create mode 100644 package-cache-9999.ebuild diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..82272fe --- /dev/null +++ b/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for net-proxy/package-cache +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*package-cache-9999 (20 Feb 2014) + + 20 Feb 2014; W. Trevor King package-cache-9999.ebuild: + + Initial Version diff --git a/metadata.xml b/metadata.xml new file mode 100644 index 0000000..84d0c50 --- /dev/null +++ b/metadata.xml @@ -0,0 +1,12 @@ + + + + + + wking@tremily.us + W. Trevor King + + + package-cache + + diff --git a/package-cache-9999.ebuild b/package-cache-9999.ebuild new file mode 100644 index 0000000..ef687c2 --- /dev/null +++ b/package-cache-9999.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="5" +PYTHON_COMPAT=( python3_3 ) + +inherit distutils-r1 user + +DESCRIPTION="A caching proxy for package downloads" +HOMEPAGE="http://blog.tremily.us/posts/package-cache/" +if [[ "${PV}" == "9999" ]]; then + inherit git-2 + EGIT_BRANCH="master" + EGIT_REPO_URI="git://github.com/wking/${PN}.git" + SRC_URI="" +else + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +fi + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="${PYTHON_DEPS}" +DEPEND="${PYTHON_DEPS}" + +pkg_setup() { + enewuser "${PN}" -1 -1 -1 portage +} + +src_install() { + distutils-r1_src_install + doinitd "contrib/openrc/init.d/${PN}" +} -- 2.26.2