net-proxy/package-cache: Package my package-cache server
authorW. Trevor King <wking@tremily.us>
Fri, 21 Feb 2014 01:14:33 +0000 (17:14 -0800)
committerW. Trevor King <wking@tremily.us>
Fri, 21 Feb 2014 01:14:33 +0000 (17:14 -0800)
net-proxy/package-cache/ChangeLog [new file with mode: 0644]
net-proxy/package-cache/metadata.xml [new file with mode: 0644]
net-proxy/package-cache/package-cache-9999.ebuild [new file with mode: 0644]

diff --git a/net-proxy/package-cache/ChangeLog b/net-proxy/package-cache/ChangeLog
new file mode 100644 (file)
index 0000000..82272fe
--- /dev/null
@@ -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 <wking@tremily.us> 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 (file)
index 0000000..84d0c50
--- /dev/null
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd></herd>
+       <maintainer>
+               <email>wking@tremily.us</email>
+               <name>W. Trevor King</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="pypi">package-cache</remote-id>
+       </upstream>
+</pkgmetadata>
diff --git a/net-proxy/package-cache/package-cache-9999.ebuild b/net-proxy/package-cache/package-cache-9999.ebuild
new file mode 100644 (file)
index 0000000..ef687c2
--- /dev/null
@@ -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}"
+}