diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-14 11:09:11 +0100 |
commit | deba8115d2c2af26df42966b91ef04ff4dd79cde (patch) | |
tree | 9a48f42594e1a9e6b2020d5535a784314434d7a7 /app-emulation/docker-swarm | |
parent | 38423c67c8a23f6a1bc42038193182e2da3116eb (diff) |
gentoo resync : 14.05.2020
Diffstat (limited to 'app-emulation/docker-swarm')
-rw-r--r-- | app-emulation/docker-swarm/Manifest | 8 | ||||
-rw-r--r-- | app-emulation/docker-swarm/docker-swarm-1.2.5.ebuild | 82 | ||||
-rw-r--r-- | app-emulation/docker-swarm/docker-swarm-1.2.9.ebuild | 54 |
3 files changed, 56 insertions, 88 deletions
diff --git a/app-emulation/docker-swarm/Manifest b/app-emulation/docker-swarm/Manifest index 3532201e0275..8af6293189d2 100644 --- a/app-emulation/docker-swarm/Manifest +++ b/app-emulation/docker-swarm/Manifest @@ -1,7 +1,3 @@ -DIST docker-swarm-1.2.5.tar.gz 4619026 BLAKE2B cae94bcb1bbb1f495b18662ac62ad3295d22547b332d6b6c4e55c070650fc3a1c314ef1ef696787b3109c0c5dce3c48979adc85031c0d65834d3d8ff5bd417b3 SHA512 2684c1fbb8e01c062c62137c874825120d0f2da0ca13808c1558ef01680a6f4d77bbff3769d1f59d9bb8011066f202dbb89c23d25597283cc24245db70731992 -DIST gobrake-2.0.8.tar.gz 6392 BLAKE2B ec3eccd5a52442163108c9e8f83e2e7a19ed45438c91e541d75af5cd44f382899098cecc5130c5d36a62ca53f1dc2062a82ec9e04b17e2db835cecdfbaa3b565 SHA512 76d1dfc55ddcbfa0b719d9eb3a75a0c8bc9d2f0308fef391cc59efa7c6b7607860c61c1e77d609d3a2d2cad473da359d0f1df98775a6da791a70d81f98ce5e6c -DIST gogo-protobuf-0.3.tar.gz 2116795 BLAKE2B 6b90ad97648e75724c69bb9b8d3cfb17b919a1121813c09ec463df99c290c117b0e0b87f43b285eb5147a205f2f926c223cc4b4d58205a286af2afa87dbd7f5b SHA512 57e1b1715d4811800da8cf9f2c72d202deae622d89715d7eff2ff0c406a0ea3778c187443abb17b072ae6fe57382844807f103837032759dab5420c860b99fb8 -DIST logrus-0.11.0.tar.gz 24165 BLAKE2B 5d71a4b78d5c46e71401a08d9b0228236f74e864d14206bd6450268a3a41d5f2ac7155c39f250b9906ec132fa63ace6e8888f0ec482ed4a0828696326bbba25e SHA512 ee0b813e277cef0533800a966e6e07884b8de64e75c200439979f00986d84f98cfc750f7d4cb2a2b57d6524941fbba0c6211ce37da50d9a8ca99274f81639620 -DIST logrus-airbrake-hook-2.1.1.tar.gz 3896 BLAKE2B a41877c8201d39f79fd0fabb7bba8d513c14931ab6a2d59b9dbe5907ce32a67d852f8cd25a2ed058ee95d321e430818d5258b4e047f3b809503da58a96bc8876 SHA512 8559f821731ee086a267f43f6e150e18b24a32a2556c45499b2ec42a85642a0581a862fc827b8b9a1949d003b5e36e69972df92a005111b94e2aa9678c336240 -EBUILD docker-swarm-1.2.5.ebuild 2170 BLAKE2B 5f72fefbe686c03f7f55b2b3ba8776f5f010a728004ff957fb36f6ebcbbe243f036fd04cae8f6c6d34b8c96e1f7f3babe9018b5816602a748eae29d35a063c44 SHA512 3a3fbc32ab43fec5e3443022280ff7765d396ec1d06814f66be3eb446f1761b245aa06ee02fe0193b6728719c8fa7908b30c17e85290feab75f27761eb9bfd5f +DIST docker-swarm-1.2.9.tar.gz 1532493 BLAKE2B 243a3cb6d2e9f719d81947429c6616e93cf1b08187685922ad5daf732e61db12bd626fa26f30174af7e779c8ba45ecce7d2cfb33835ef985bdd57657e30e2228 SHA512 cc0e0e27d0ed4845abd99d1554630cc8e2ab0645d40a76358a83b2ea6d1bc5287dbf5d1aefdd2eb4302aeef3894725e75cae3f5da2353b045492a4357631daa2 +EBUILD docker-swarm-1.2.9.ebuild 1785 BLAKE2B 33249b9b898394ca4abbef4b7391ed75a9dacb691692c1cfae076f67e408df556c7e62788949ac03e457717208eea7a3cd413438bbf9dbfd94c7a517d7f076fb SHA512 69be32a5e547703cdcf9e9e7886339faad7fffd31a530c95c3e9204db915864278b5e37d82d777e35203e4ea0ad1f8fcb051d8615ecc3e822215b7fa74961935 MISC metadata.xml 303 BLAKE2B 876c526defdc7c039b7923f9860e3fef8bfc3c835e4cc8a50e54ae3ae535c53a27fea39f17a3fbe46939a330e16e9534ebd6ec64d3141075694c4010bb858ef4 SHA512 b724e0dbde2212d3071b201aca8572059e0756f3be2a056097c84ea802ae4365a9682767725a02e3333f5f5cbd31f8e30a0a2b54b3e32619d75fbaa8400a9c22 diff --git a/app-emulation/docker-swarm/docker-swarm-1.2.5.ebuild b/app-emulation/docker-swarm/docker-swarm-1.2.5.ebuild deleted file mode 100644 index 95e2cbea5ca8..000000000000 --- a/app-emulation/docker-swarm/docker-swarm-1.2.5.ebuild +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# 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/swarm" -LICENSE="Apache-2.0 CC-BY-SA-4.0 BSD BSD-2 ISC MIT MPL-2.0 WTFPL-2" -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}" GOBIN="${S}/bin" \ - 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/docker-swarm-1.2.9.ebuild b/app-emulation/docker-swarm/docker-swarm-1.2.9.ebuild new file mode 100644 index 000000000000..5ca267108edf --- /dev/null +++ b/app-emulation/docker-swarm/docker-swarm-1.2.9.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit go-module + +KEYWORDS="~amd64" +EGO_PN=github.com/docker/swarm +EGIT_COMMIT="527a849cc6b8297690f478905083fc77951da2a7" +MY_PN=classicswarm +SRC_URI="https://github.com/docker/classicswarm/archive/v${PV}.tar.gz -> ${P}.tar.gz" +DESCRIPTION="Swarm Classic: a container clustering system" +HOMEPAGE="https://docs.docker.com/swarm" +LICENSE="Apache-2.0 CC-BY-SA-4.0 BSD BSD-2 ISC MIT MPL-2.0 WTFPL-2" +SLOT="0" +IUSE="" +RESTRICT="test" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_prepare() { + # It would require internet access to run `go mod vendor`, so + # generate approximate go.mod and vendor/modules.txt from the + # content of vendor.conf. Use a dummy vendor_version that is + # good enough for go to recognize as a valid version. + rm -f go.mod vendor/modules.txt || die + local x vendor_version=v1.0.0 + printf -- 'module %s\n' "${EGO_PN}" >> go.mod || die + printf -- 'go 1.14\n' >> go.mod || die + printf -- 'require (\n' >> go.mod || die + while read -r x; do + printf -- '\t%s %s\n' "${x}" "${vendor_version}" >> go.mod || die + printf -- '# %s %s\n' "${x}" "${vendor_version}" >> vendor/modules.txt || die + printf -- '## explicit\n' >> vendor/modules.txt || die + printf -- '%s\n' "${x}" >> vendor/modules.txt || die + done < <(grep -Eo "^[^#[:space:]]+" vendor.conf) + printf -- ')\n' >> go.mod || die + default +} + +src_compile() { + GOBIN="${S}/bin" \ + go install -v -work -x -mod=vendor -x \ + -ldflags "-w -X github.com/docker/swarm/version.GITCOMMIT=${EGIT_COMMIT} \ + -X github.com/docker/swarm/version.BUILDTIME=$(date -u +%FT%T%z)" \ + ./... || die +} + +src_install() { + dobin bin/swarm + dosym swarm /usr/bin/docker-swarm + dodoc CHANGELOG.md CONTRIBUTING.md logo.png README.md +} |