From: W. Trevor King Date: Fri, 21 Feb 2014 01:14:33 +0000 (-0800) Subject: net-proxy/package-cache: Package my package-cache server X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5ea5bd92e623eb4203ebdb90e6276d392ab6db7f;p=wtk-overlay.git net-proxy/package-cache: Package my package-cache server --- 5ea5bd92e623eb4203ebdb90e6276d392ab6db7f 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}" +}