summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2019-03-28 10:38:29 +0300
committerMikle Kolyada <zlogene@gentoo.org>2019-03-28 10:38:29 +0300
commit6d21ba8f52d1cbb700bfc716df27f31c014886a4 (patch)
treefee39f8315700a54878b86ef04e8999a59feef76 /net-fs/minio
parentmedia-libs/libemf: amd64 stable wrt bug #676574 (diff)
downloadgentoo-6d21ba8f52d1cbb700bfc716df27f31c014886a4.tar.gz
gentoo-6d21ba8f52d1cbb700bfc716df27f31c014886a4.tar.bz2
gentoo-6d21ba8f52d1cbb700bfc716df27f31c014886a4.zip
net-fs/minio: Version bump
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11
Diffstat (limited to 'net-fs/minio')
-rw-r--r--net-fs/minio/Manifest1
-rw-r--r--net-fs/minio/minio-2019.03.27.22.35.21.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/net-fs/minio/Manifest b/net-fs/minio/Manifest
index 2d45ea90d22..9b95c941d09 100644
--- a/net-fs/minio/Manifest
+++ b/net-fs/minio/Manifest
@@ -10,3 +10,4 @@ DIST minio-2019.02.26.19.51.46.tar.gz 9146652 BLAKE2B a132d2a06648e49bc71282cf6b
DIST minio-2019.03.06.22.47.10.tar.gz 9197298 BLAKE2B 3b74e2958d876e5c409290dfc0b4b6b1997c06f34d188c9e9357db7c6bcf75af1402acf111b8cfda17cb86a41e9e3e5643dce7bfe2ab40a2f6d06b783c54c719 SHA512 09c1ec200320f0843fd41711a2fe1596af906c84d82dfa080a15fa8e98713601adbc21b91d4c82d436f128cc00fe75575f88ddefc25e1ce5ed72bd2d65dfce12
DIST minio-2019.03.13.21.59.47.tar.gz 9200988 BLAKE2B 56b2e6e3e4a7643d1e79c6038937b77dfaae632e38cd4049d79076920ee1c84ec75b738d5d069eb0c9c2b219cd2e39b129422191ab8f771386fde25338585edb SHA512 daa76f2e79acea86594189e3df5336d2bc29a5da21ebe36bc6de2fcf68135e4ea7529351a3878609adb9118553fa10088ac0fb1c746d23890b886fe7885a1b2c
DIST minio-2019.03.20.22.38.47.tar.gz 9249505 BLAKE2B c3b5173575c266bf4a86276eafa1faecdcee7411fafb497452d0265c81d75adb06c2e2e05ed17dc6fec8b367ac8e389798ff4f98e4177eec8bbf786af05f7109 SHA512 33790bae9d2b33c53bf98bc20dc2f5d2653bcad2263f75d99523a9140d029adb16068eb8b376966ddaf96aad8eaf540bf4c8cc9d5c3fbb14c2aa0b63ac9fdefb
+DIST minio-2019.03.27.22.35.21.tar.gz 9261176 BLAKE2B 896162800b156d6cc04733fb80a4a0adf90b9bb5ff3561108e136e953dc60d4356c28fd6f28865977060d854f3887c23396139433e4a6c46fe9036a2b2e01336 SHA512 1fce454f0cbbb90bd8fff48c20a3a93cac464ea8dda1acb5687a566a5db641e912ff57a9b8e73192df5a7eb896f265945da734f89cf6c57dc9e2a0c8554f8d10
diff --git a/net-fs/minio/minio-2019.03.27.22.35.21.ebuild b/net-fs/minio/minio-2019.03.27.22.35.21.ebuild
new file mode 100644
index 00000000000..434b3afcb56
--- /dev/null
+++ b/net-fs/minio/minio-2019.03.27.22.35.21.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit user golang-build golang-vcs-snapshot
+
+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() {
+ unset XDG_CACHE_HOME
+
+ 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}
+}