summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2017-05-22 19:44:45 +0200
committerManuel Rüger <mrueg@gentoo.org>2017-05-22 19:55:58 +0200
commit9d4a26fcc5c4ad7788abad5381f287b3e138e07c (patch)
treefb4675902efebc26dee74f7058fa58dd375c1da8 /dev-util/docker-distribution-pruner
parentsys-kernel/git-sources: adding manifest for git-sources bump (diff)
downloadgentoo-9d4a26fcc5c4ad7788abad5381f287b3e138e07c.tar.gz
gentoo-9d4a26fcc5c4ad7788abad5381f287b3e138e07c.tar.bz2
gentoo-9d4a26fcc5c4ad7788abad5381f287b3e138e07c.zip
dev-util/docker-distribution-pruner: Initial version
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'dev-util/docker-distribution-pruner')
-rw-r--r--dev-util/docker-distribution-pruner/Manifest2
-rw-r--r--dev-util/docker-distribution-pruner/docker-distribution-pruner-0_p20170401.ebuild34
-rw-r--r--dev-util/docker-distribution-pruner/metadata.xml8
3 files changed, 44 insertions, 0 deletions
diff --git a/dev-util/docker-distribution-pruner/Manifest b/dev-util/docker-distribution-pruner/Manifest
new file mode 100644
index 000000000000..e3713bfa4fa6
--- /dev/null
+++ b/dev-util/docker-distribution-pruner/Manifest
@@ -0,0 +1,2 @@
+DIST docker-distribution-pruner-0_p20170401.tar.gz 6245783 SHA256 104b142b17b02b570b773717ee57fbb4350c37d274051e989cd88b8154d5d70a SHA512 8e2bf3c9be37f7b16299e1e7219d646e2b037ff40ba244bb2262905ab9864b212d7f96d844a096b057c6111440d66236f8ed5eb4a61e95f7a81bac3516f65cdd WHIRLPOOL 9c2fdb153f00ca812c4e570df970c3ed8c47629a334a3f8672f869a68488d88eb9a867b4e02e58d57f8c1031c549e641caf9ec8987a4936b5b66ffd24aa7e224
+DIST github.com-go-yaml-yaml-a3f3340b5840cee44f372bddb5880fcbc419b46a.tar.gz 60814 SHA256 0904953c06aa32c6691cec2390437f7d4d62c71f37d72f50d110a6577c87963b SHA512 184a0e658a4eac3b867533cd0e494bd84db94fbe10e8df0d0b755c7ffc95bc99e2f84c0157183ca74cdc79289a85dcf7f1dea8a4c89a253565baf473b3627eae WHIRLPOOL c9113048502f65a4036bbfbd4f072b27b41f68547e682d1e1496ae73c65c30b1470061d1f99d17e6b4a373e59e07568b460ad5396eb4b1f16079da077aa8382f
diff --git a/dev-util/docker-distribution-pruner/docker-distribution-pruner-0_p20170401.ebuild b/dev-util/docker-distribution-pruner/docker-distribution-pruner-0_p20170401.ebuild
new file mode 100644
index 000000000000..3eafca49e433
--- /dev/null
+++ b/dev-util/docker-distribution-pruner/docker-distribution-pruner-0_p20170401.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+EGO_PN="gitlab.com/gitlab-org/${PN}/..."
+EGIT_COMMIT="207b308c12b1717c6e3d2adf5e1ffe504c64f56e"
+
+EGO_VENDOR=( "gopkg.in/yaml.v2 a3f3340b5840cee44f372bddb5880fcbc419b46a github.com/go-yaml/yaml" )
+
+inherit golang-build golang-vcs-snapshot
+
+ARCHIVE_URI="https://${EGO_PN%/*}/repository/archive.tar.gz?ref=${EGIT_COMMIT} -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+
+DESCRIPTION="Clean all old container revisions from registry"
+HOMEPAGE="https://gitlab.com/gitlab-org/docker-distribution-pruner"
+SRC_URI="${ARCHIVE_URI}
+ ${EGO_VENDOR_URI}"
+LICENSE="MIT"
+SLOT="0"
+IUSE=""
+
+RESTRICT="test"
+
+src_compile() {
+ pushd src || die
+ GOPATH="${WORKDIR}/${P}" go install gitlab.com/gitlab-org/docker-distribution-pruner || die
+ popd || die
+}
+
+src_install() {
+ dobin bin/${PN}
+}
diff --git a/dev-util/docker-distribution-pruner/metadata.xml b/dev-util/docker-distribution-pruner/metadata.xml
new file mode 100644
index 000000000000..0ecfb76d568f
--- /dev/null
+++ b/dev-util/docker-distribution-pruner/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>mrueg@gentoo.org</email>
+ <name>Manuel Rüger</name>
+ </maintainer>
+</pkgmetadata>