1 |
commit: c55241caddfca89aa1d45eeb4d83a587e0c77363 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 10 23:26:45 2020 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 11 00:19:10 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c55241ca |
7 |
|
8 |
app-emulation/docker-swarm: Bump to version 1.2.9 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/722184 |
11 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
12 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
13 |
|
14 |
app-emulation/docker-swarm/Manifest | 1 + |
15 |
.../docker-swarm/docker-swarm-1.2.9.ebuild | 54 ++++++++++++++++++++++ |
16 |
2 files changed, 55 insertions(+) |
17 |
|
18 |
diff --git a/app-emulation/docker-swarm/Manifest b/app-emulation/docker-swarm/Manifest |
19 |
index 5c30c4fd969..8a2580cb8df 100644 |
20 |
--- a/app-emulation/docker-swarm/Manifest |
21 |
+++ b/app-emulation/docker-swarm/Manifest |
22 |
@@ -1,4 +1,5 @@ |
23 |
DIST docker-swarm-1.2.5.tar.gz 4619026 BLAKE2B cae94bcb1bbb1f495b18662ac62ad3295d22547b332d6b6c4e55c070650fc3a1c314ef1ef696787b3109c0c5dce3c48979adc85031c0d65834d3d8ff5bd417b3 SHA512 2684c1fbb8e01c062c62137c874825120d0f2da0ca13808c1558ef01680a6f4d77bbff3769d1f59d9bb8011066f202dbb89c23d25597283cc24245db70731992 |
24 |
+DIST docker-swarm-1.2.9.tar.gz 1532493 BLAKE2B 243a3cb6d2e9f719d81947429c6616e93cf1b08187685922ad5daf732e61db12bd626fa26f30174af7e779c8ba45ecce7d2cfb33835ef985bdd57657e30e2228 SHA512 cc0e0e27d0ed4845abd99d1554630cc8e2ab0645d40a76358a83b2ea6d1bc5287dbf5d1aefdd2eb4302aeef3894725e75cae3f5da2353b045492a4357631daa2 |
25 |
DIST gobrake-2.0.8.tar.gz 6392 BLAKE2B ec3eccd5a52442163108c9e8f83e2e7a19ed45438c91e541d75af5cd44f382899098cecc5130c5d36a62ca53f1dc2062a82ec9e04b17e2db835cecdfbaa3b565 SHA512 76d1dfc55ddcbfa0b719d9eb3a75a0c8bc9d2f0308fef391cc59efa7c6b7607860c61c1e77d609d3a2d2cad473da359d0f1df98775a6da791a70d81f98ce5e6c |
26 |
DIST gogo-protobuf-0.3.tar.gz 2116795 BLAKE2B 6b90ad97648e75724c69bb9b8d3cfb17b919a1121813c09ec463df99c290c117b0e0b87f43b285eb5147a205f2f926c223cc4b4d58205a286af2afa87dbd7f5b SHA512 57e1b1715d4811800da8cf9f2c72d202deae622d89715d7eff2ff0c406a0ea3778c187443abb17b072ae6fe57382844807f103837032759dab5420c860b99fb8 |
27 |
DIST logrus-0.11.0.tar.gz 24165 BLAKE2B 5d71a4b78d5c46e71401a08d9b0228236f74e864d14206bd6450268a3a41d5f2ac7155c39f250b9906ec132fa63ace6e8888f0ec482ed4a0828696326bbba25e SHA512 ee0b813e277cef0533800a966e6e07884b8de64e75c200439979f00986d84f98cfc750f7d4cb2a2b57d6524941fbba0c6211ce37da50d9a8ca99274f81639620 |
28 |
|
29 |
diff --git a/app-emulation/docker-swarm/docker-swarm-1.2.9.ebuild b/app-emulation/docker-swarm/docker-swarm-1.2.9.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..5ca267108ed |
32 |
--- /dev/null |
33 |
+++ b/app-emulation/docker-swarm/docker-swarm-1.2.9.ebuild |
34 |
@@ -0,0 +1,54 @@ |
35 |
+# Copyright 1999-2020 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+inherit go-module |
41 |
+ |
42 |
+KEYWORDS="~amd64" |
43 |
+EGO_PN=github.com/docker/swarm |
44 |
+EGIT_COMMIT="527a849cc6b8297690f478905083fc77951da2a7" |
45 |
+MY_PN=classicswarm |
46 |
+SRC_URI="https://github.com/docker/classicswarm/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+DESCRIPTION="Swarm Classic: a container clustering system" |
48 |
+HOMEPAGE="https://docs.docker.com/swarm" |
49 |
+LICENSE="Apache-2.0 CC-BY-SA-4.0 BSD BSD-2 ISC MIT MPL-2.0 WTFPL-2" |
50 |
+SLOT="0" |
51 |
+IUSE="" |
52 |
+RESTRICT="test" |
53 |
+ |
54 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ # It would require internet access to run `go mod vendor`, so |
58 |
+ # generate approximate go.mod and vendor/modules.txt from the |
59 |
+ # content of vendor.conf. Use a dummy vendor_version that is |
60 |
+ # good enough for go to recognize as a valid version. |
61 |
+ rm -f go.mod vendor/modules.txt || die |
62 |
+ local x vendor_version=v1.0.0 |
63 |
+ printf -- 'module %s\n' "${EGO_PN}" >> go.mod || die |
64 |
+ printf -- 'go 1.14\n' >> go.mod || die |
65 |
+ printf -- 'require (\n' >> go.mod || die |
66 |
+ while read -r x; do |
67 |
+ printf -- '\t%s %s\n' "${x}" "${vendor_version}" >> go.mod || die |
68 |
+ printf -- '# %s %s\n' "${x}" "${vendor_version}" >> vendor/modules.txt || die |
69 |
+ printf -- '## explicit\n' >> vendor/modules.txt || die |
70 |
+ printf -- '%s\n' "${x}" >> vendor/modules.txt || die |
71 |
+ done < <(grep -Eo "^[^#[:space:]]+" vendor.conf) |
72 |
+ printf -- ')\n' >> go.mod || die |
73 |
+ default |
74 |
+} |
75 |
+ |
76 |
+src_compile() { |
77 |
+ GOBIN="${S}/bin" \ |
78 |
+ go install -v -work -x -mod=vendor -x \ |
79 |
+ -ldflags "-w -X github.com/docker/swarm/version.GITCOMMIT=${EGIT_COMMIT} \ |
80 |
+ -X github.com/docker/swarm/version.BUILDTIME=$(date -u +%FT%T%z)" \ |
81 |
+ ./... || die |
82 |
+} |
83 |
+ |
84 |
+src_install() { |
85 |
+ dobin bin/swarm |
86 |
+ dosym swarm /usr/bin/docker-swarm |
87 |
+ dodoc CHANGELOG.md CONTRIBUTING.md logo.png README.md |
88 |
+} |