diff options
author | Mikle Kolyada <zlogene@gentoo.org> | 2019-02-28 13:44:59 +0300 |
---|---|---|
committer | Mikle Kolyada <zlogene@gentoo.org> | 2019-02-28 13:45:09 +0300 |
commit | c6b05a8452a8e321b9688a2d38393eeec51a4896 (patch) | |
tree | f29d2375043d64bdc5e64dc4045b03a9e89576b8 /net-fs | |
parent | media-libs/libjpeg-turbo: Removed old. (diff) | |
download | gentoo-c6b05a8452a8e321b9688a2d38393eeec51a4896.tar.gz gentoo-c6b05a8452a8e321b9688a2d38393eeec51a4896.tar.bz2 gentoo-c6b05a8452a8e321b9688a2d38393eeec51a4896.zip |
net-fs/minio: Version bump
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'net-fs')
-rw-r--r-- | net-fs/minio/Manifest | 1 | ||||
-rw-r--r-- | net-fs/minio/minio-2019.02.26.19.51.46.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/net-fs/minio/Manifest b/net-fs/minio/Manifest index 8e9030757dad..87594ad3316b 100644 --- a/net-fs/minio/Manifest +++ b/net-fs/minio/Manifest @@ -10,3 +10,4 @@ DIST minio-2019.02.06.21.16.36.tar.gz 9112498 BLAKE2B 76d320dc8476dd8e7b938b02e1 DIST minio-2019.02.12.21.58.47.tar.gz 9143558 BLAKE2B dbec949490bb74272b82533c750630473184d848cc104c302a5f4e9a15ac2c289384ac3ceb75e7c2554352fe88c59473dd1d42c9ac803a877f9a2a95a4d6bd0a SHA512 55c00b6bd56ec17e09ee01ee15ae81365e09c224848b27f32b7b6df8d2f074c9aa60965141544fcc97a1a2a26e6fa520c4054c8d3d2702421dd0c94037b151a6 DIST minio-2019.02.14.00.21.45.tar.gz 9143268 BLAKE2B 3c39147378e5f9d5352980cf7213a9977ccabea719d8cc625bcb317a1d853f64f99d114af957a6fe13683afefde3497536d10fce465757b704ebdcf0eab0e6af SHA512 7e547d4a0e80d8ce22ff51af359de79c10e266adc8a5649ac8950b8dcda8c21bbd04d7d4dc801e8f66804fa4f6dc8ea38853a8bec82fcb2bc87e0adbf65e6502 DIST minio-2019.02.20.22.44.29.tar.gz 9139158 BLAKE2B 16924809cf3ab8961891cddd06d7b7ec75fc9e4920f15bbacd60165a31bc0499b0ca854a3436bd75dd9caa02e196f6151757d5da609c89aff16091790a3ee41c SHA512 c3c57093386e4b70b4890114149932741a8e5c9b6a4ecdf12b101d3b53d3d5601559a41b7d27e61e5aaa16d05497ee086150be98d80616cef98836848a6af33a +DIST minio-2019.02.26.19.51.46.tar.gz 9146652 BLAKE2B a132d2a06648e49bc71282cf6b1f0c2cff68f188f035461a0d9c135fbc40caba50cb365dfa170027b82a6086214a9c17567de55173bc1910ec6283a7d89a7813 SHA512 6ddb452b951ec60b1b30da3059b36db896478a5dc1d9ac60f8de3fb36fa4d9a149e08193af47837ccea9621490daf234ac8c5ecb462e234e5609132e4c61749a diff --git a/net-fs/minio/minio-2019.02.26.19.51.46.ebuild b/net-fs/minio/minio-2019.02.26.19.51.46.ebuild new file mode 100644 index 000000000000..8154fe5911ee --- /dev/null +++ b/net-fs/minio/minio-2019.02.26.19.51.46.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit user golang-build golang-vcs-snapshot eapi7-ver + +EGO_PN="github.com/minio/minio" +MY_PV="$(ver_cut 1-3)T$(ver_cut 4-7)Z" +MY_PV=${MY_PV//./-} +EGIT_COMMIT="ce419c98352324caa4c79b159a9f840ca714c3d5" +ARCHIVE_URI="https://${EGO_PN}/archive/RELEASE.${MY_PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~amd64-linux" + +DESCRIPTION="An Amazon S3 compatible object storage server" +HOMEPAGE="https://github.com/minio/minio" +SRC_URI="${ARCHIVE_URI}" +LICENSE="Apache-2.0" +SLOT="0" + +RESTRICT="test" + +pkg_setup() { + enewgroup ${PN} + enewuser ${PN} -1 -1 /var/lib/${PN} ${PN} +} + +src_prepare() { + default + sed -i -e "s/time.Now().UTC().Format(time.RFC3339)/\"${MY_PV}\"/"\ + -e "s/-s //"\ + -e "/time/d"\ + -e "s/+ commitID()/+ \"${EGIT_COMMIT}\"/"\ + src/${EGO_PN}/buildscripts/gen-ldflags.go || die +} + +src_compile() { + pushd src/${EGO_PN} || die + MINIO_RELEASE="${MY_PV}" + go run buildscripts/gen-ldflags.go + GOPATH="${S}" go build --ldflags "$(go run buildscripts/gen-ldflags.go)" -o ${PN} || die + popd || die +} + +src_install() { + pushd src/${EGO_PN} || die + dodoc -r README.md CONTRIBUTING.md MAINTAINERS.md docs + dobin minio + popd || die + newinitd "${FILESDIR}"/${PN}.initd ${PN} + keepdir /var/{lib,log}/${PN} + fowners ${PN}:${PN} /var/{lib,log}/${PN} +} |