summaryrefslogtreecommitdiff
path: root/app-emulation/docker-swarm
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-emulation/docker-swarm
reinit the tree, so we can have metadata
Diffstat (limited to 'app-emulation/docker-swarm')
-rw-r--r--app-emulation/docker-swarm/Manifest10
-rw-r--r--app-emulation/docker-swarm/docker-swarm-1.2.0.ebuild38
-rw-r--r--app-emulation/docker-swarm/docker-swarm-1.2.5.ebuild82
-rw-r--r--app-emulation/docker-swarm/metadata.xml10
4 files changed, 140 insertions, 0 deletions
diff --git a/app-emulation/docker-swarm/Manifest b/app-emulation/docker-swarm/Manifest
new file mode 100644
index 000000000000..33d2b82d4397
--- /dev/null
+++ b/app-emulation/docker-swarm/Manifest
@@ -0,0 +1,10 @@
+DIST docker-swarm-1.2.0.tar.gz 4474619 SHA256 8a30745ef4129a848dd2e88fc511c9eb85af07fbdbb46645f2e860b2aacdf8e6 SHA512 dab97d7df9d38c7bc7a1565788c84a13c8c792161d61a904ba9e45f43fbf835d055bd1c1a0f1d2f9b29f9b7fc6ed6fe19aef75b53288188caf82b152d37392ac WHIRLPOOL 52e8ee816daa3641446a44ec650bc76f93eb94e0132ef94ec7166e603e40b1a88aa2e162f796cfa137a2ad5e241a26e69e2e9af730d148170ff63c18a231cd1d
+DIST docker-swarm-1.2.5.tar.gz 4619026 SHA256 d3f20d94525ff9b338a0d31feaed6a9779801bcadf23ffc33e5ce4a3ad106beb SHA512 2684c1fbb8e01c062c62137c874825120d0f2da0ca13808c1558ef01680a6f4d77bbff3769d1f59d9bb8011066f202dbb89c23d25597283cc24245db70731992 WHIRLPOOL 37d236971c9524709828d0e884f736c1409ce3bb4f9fb9e5f3c6ce87eeacc8c90df802fa0a5ec9917f6453d17cde0244632873b049b76de2e678e42b7290afe6
+DIST gobrake-2.0.8.tar.gz 6392 SHA256 90be2a977aa887aa36ce7333b1131ae2b3681d0b9758384c8c04567ebcb96d85 SHA512 76d1dfc55ddcbfa0b719d9eb3a75a0c8bc9d2f0308fef391cc59efa7c6b7607860c61c1e77d609d3a2d2cad473da359d0f1df98775a6da791a70d81f98ce5e6c WHIRLPOOL 32ec5ff981b2a58f8353d3cab204510eda29ab815d1eb40689fdf2caf8be93ded878f5557c98ad604f73e0e80f115f918e02ef30faaab28252e9d6413b19dd3e
+DIST gogo-protobuf-0.3.tar.gz 2116795 SHA256 82222a5ad3bdc53fb60851df05acc16e7578932984c78e32abd05cb610127308 SHA512 57e1b1715d4811800da8cf9f2c72d202deae622d89715d7eff2ff0c406a0ea3778c187443abb17b072ae6fe57382844807f103837032759dab5420c860b99fb8 WHIRLPOOL 2c900a93d698d946949e8ef830c9940ea43c8faaf667eec7ec99ad58f46e5de9e59e43182d675f419196caacb08af2a49e63146998c5ccbef379c3920997511f
+DIST logrus-0.11.0.tar.gz 24165 SHA256 dd1a009e0be6fa4df0609797a044d46ee467117d720ba444043ca61d6eb03429 SHA512 ee0b813e277cef0533800a966e6e07884b8de64e75c200439979f00986d84f98cfc750f7d4cb2a2b57d6524941fbba0c6211ce37da50d9a8ca99274f81639620 WHIRLPOOL 3fa3a96267f46ac583466ad7831f85f2c42e57c7da3ca6cae2335de5892c5e6e5c7a40f0208dacae8ac6f95be5cd6b24ea23b7d4c986c407bc848fab3f7e0680
+DIST logrus-airbrake-hook-2.1.1.tar.gz 3896 SHA256 10a8f668ac387951204c93a0e7d9f14eea03ce687a312840ccd07c9fa437ccaf SHA512 8559f821731ee086a267f43f6e150e18b24a32a2556c45499b2ec42a85642a0581a862fc827b8b9a1949d003b5e36e69972df92a005111b94e2aa9678c336240 WHIRLPOOL 873df0a3aa7fba684e65d2a9d8c146d7806eab5d4216c867ada4ced05329b01a2b1448d937d6052bbc1d22fb28163de8b5288054749c305a5938b0d0a80e9bb1
+EBUILD docker-swarm-1.2.0.ebuild 946 SHA256 ff240478a607ebfeddf2a85914f316198b86fbde40020b1c60dc4385c5d8fb46 SHA512 2cca2506e1638caf79f28f088cb8184fef4fdab87bfc723d29c7a1337a20b942f6e50a7b77d130d1720e2d9b764d360c1644fc39a42008d32648335b1f32144b WHIRLPOOL b4d79283a9d2c27e5a3e0d6ef04835bfc733f4da26bb49909e8218ce4ee98564a31434847f1c0b22dcc4561e25d4f053c7a206ed8a7b4bafbda83734ea900d68
+EBUILD docker-swarm-1.2.5.ebuild 2127 SHA256 df4cab5074bf561905d069a72f4593e226fcd1d42e5ed27cb5f3071bb2b12ef8 SHA512 187e42b66e2ce4eca9501ca564855f422a6f24fb8442d54c93f0e16f84ac2a9487e507d5fc00271777bc3036e62c4a0e34daf08d40b43167c6e573ce616e6673 WHIRLPOOL 7121cb09459936411a896311ad51e4ff7c78184740cbdd67aff8f3d0b73227f341ed930e7f6fa0bfe63e7e03f3e3fb607f240cd9d6a29ab4fd43f95d3038fcf8
+MISC ChangeLog 2460 SHA256 f903c61428157d6ff462ffb9248c14da0c4aeff8be414bf7a08638982bc2c0bd SHA512 1afdc75908cab53adec370877c75d72b7bc38a504149ca2d5559ed539a4f5a93881cb46c890f64fe2a9c2f536fe5f552a7e7a5e1e95de662243a0acb760e188e WHIRLPOOL 8702121913fa4c6bb2ec762c11ba131fb8ddf90a5da18d3e4ec7ad6c7abcbbe6b0b4c2877c51d82a0a9e68039803c424a9efd1ce3dbe67917e97b70c3b3e1957
+MISC metadata.xml 303 SHA256 c129ccb5de61fdf45e025d396196dfe982f2e12b43ceaee498e107cc7d1f17a0 SHA512 b724e0dbde2212d3071b201aca8572059e0756f3be2a056097c84ea802ae4365a9682767725a02e3333f5f5cbd31f8e30a0a2b54b3e32619d75fbaa8400a9c22 WHIRLPOOL 6a6ed04b9e88a89149b7dda7655b888e25550c3cb7fce81abc8e8586202d3cf1ab0f2c431dbb9e4229047a61e18cef7bfeabc0ec6450a085e0ec894a0e9df99d
diff --git a/app-emulation/docker-swarm/docker-swarm-1.2.0.ebuild b/app-emulation/docker-swarm/docker-swarm-1.2.0.ebuild
new file mode 100644
index 000000000000..0def6b786c3f
--- /dev/null
+++ b/app-emulation/docker-swarm/docker-swarm-1.2.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+EGO_PN=github.com/docker/${PN##*-}/...
+
+if [[ ${PV} = *9999* ]]; then
+ inherit golang-vcs
+else
+ KEYWORDS="~amd64"
+ EGIT_COMMIT="v${PV}"
+ SRC_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+ inherit golang-vcs-snapshot
+fi
+inherit golang-build
+
+DESCRIPTION="A Docker-native clustering system"
+HOMEPAGE="https://docs.docker.com/${PN##*-}/"
+LICENSE="Apache-2.0"
+SLOT="0"
+IUSE=""
+RESTRICT="test"
+DEPEND=">=dev-lang/go-1.6:=
+ !!<app-admin/consul-0.6.3-r1"
+RDEPEND=""
+S=${WORKDIR}/${P}/src/${EGO_PN%/*}
+
+src_compile() {
+ GOPATH="${WORKDIR}/${P}:${S}/Godeps/_workspace:$(get_golibdir_gopath)" \
+ go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
+}
+
+src_install() {
+ dobin "${WORKDIR}/${P}/bin/${PN#docker-}"
+ dosym swarm /usr/bin/docker-swarm
+ dodoc CHANGELOG.md CONTRIBUTING.md README.md ROADMAP.md
+}
diff --git a/app-emulation/docker-swarm/docker-swarm-1.2.5.ebuild b/app-emulation/docker-swarm/docker-swarm-1.2.5.ebuild
new file mode 100644
index 000000000000..ee87135b33ab
--- /dev/null
+++ b/app-emulation/docker-swarm/docker-swarm-1.2.5.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KEYWORDS="~amd64"
+EGO_PN=github.com/docker/${PN##*-}/...
+SRC_URI="https://${EGO_PN%/*}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/gogo/protobuf/archive/v0.3.tar.gz -> gogo-protobuf-0.3.tar.gz
+ https://github.com/gemnasium/logrus-airbrake-hook/archive/v2.1.1.tar.gz -> logrus-airbrake-hook-2.1.1.tar.gz
+ https://github.com/airbrake/gobrake/archive/v2.0.8.tar.gz -> gobrake-2.0.8.tar.gz
+ https://github.com/Sirupsen/logrus/archive/v0.11.0.tar.gz -> logrus-0.11.0.tar.gz"
+DESCRIPTION="A Docker-native clustering system"
+HOMEPAGE="https://docs.docker.com/${PN##*-}/"
+LICENSE="Apache-2.0 CC-BY-SA-4.0"
+SLOT="0"
+IUSE=""
+RESTRICT="test"
+DEPEND=">=dev-lang/go-1.6:=
+ !!<app-admin/consul-0.6.3-r1"
+RDEPEND=""
+
+get_archive_go_package() {
+ local archive=${1} uri x
+ for x in ${SRC_URI}; do
+ if [[ ${x} == http* ]]; then
+ uri=${x}
+ elif [[ ${x} == ${archive} ]]; then
+ break
+ fi
+ done
+ uri=${uri#https://}
+ uri=${uri%/archive/*}
+ case ${uri} in
+ ${EGO_PN%/*}*)
+ echo "${EGO_PN%/*}|swarm-*"
+ ;;
+ github.com/gemnasium/logrus-airbrake-hook)
+ echo "gopkg.in/gemnasium/logrus-airbrake-hook.v2|logrus-airbrake-hook-*"
+ ;;
+ github.com/airbrake/gobrake)
+ echo "gopkg.in/airbrake/gobrake.v2|gobrake-*"
+ ;;
+ *)
+ echo "${uri}|${uri##*/}-*"
+ ;;
+ esac
+}
+
+unpack_go_packages() {
+ local go_package x
+ # Unpack packages to appropriate locations for GOPATH
+ for x in ${A}; do
+ unpack ${x}
+ if [[ ${x} == *.tar.gz ]]; then
+ go_package=$(get_archive_go_package ${x})
+ x=${go_package#*|}
+ go_package=${go_package%|*}
+ mkdir -p src/${go_package%/*}
+ mv ${x} src/${go_package} || die
+ fi
+ done
+}
+
+src_unpack() {
+ mkdir "${S}" || die
+ cd "${S}" || die
+ unpack_go_packages
+}
+
+src_compile() {
+ GOPATH="${S}" \
+ go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}"
+ [[ -x ${S}/bin/${PN#docker-} ]] || die
+}
+
+src_install() {
+ dobin "${S}/bin/${PN#docker-}"
+ dosym swarm /usr/bin/docker-swarm
+ cd "${S}/src/${EGO_PN%/*}" || die
+ dodoc CHANGELOG.md CONTRIBUTING.md logo.png README.md ROADMAP.md
+}
diff --git a/app-emulation/docker-swarm/metadata.xml b/app-emulation/docker-swarm/metadata.xml
new file mode 100644
index 000000000000..127ef4728e20
--- /dev/null
+++ b/app-emulation/docker-swarm/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">docker/swarm</remote-id>
+ </upstream>
+</pkgmetadata>