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=dc8fc3ac61feda23a9398cb66ac7419b31f20a03;p=wtk-overlay.git net-proxy/package-cache: Package my package-cache server --- diff --git a/net-proxy/package-cache/ChangeLog b/net-proxy/package-cache/ChangeLog new file mode 100644 index 0000000..82272fe --- /dev/null +++ b/net-proxy/package-cache/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/net-proxy/package-cache/metadata.xml b/net-proxy/package-cache/metadata.xml new file mode 100644 index 0000000..84d0c50 --- /dev/null +++ b/net-proxy/package-cache/metadata.xml @@ -0,0 +1,12 @@ + + + + + + wking@tremily.us + W. Trevor King + + + package-cache + + diff --git a/net-proxy/package-cache/package-cache-9999.ebuild b/net-proxy/package-cache/package-cache-9999.ebuild new file mode 100644 index 0000000..ef687c2 --- /dev/null +++ b/net-proxy/package-cache/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}" +}