summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2018-11-22 18:18:12 +0300
committerMikle Kolyada <zlogene@gentoo.org>2018-11-22 18:18:12 +0300
commit77332a83bbda66224ad188ab8ce3da0a9bb071fb (patch)
tree80cbaab23701bd0441e9db52529e5a345a8bdcda /net-fs/minio
parentsys-kernel/gentoo-sources: amd64 stable wrt bug #671688 (diff)
downloadgentoo-77332a83bbda66224ad188ab8ce3da0a9bb071fb.tar.gz
gentoo-77332a83bbda66224ad188ab8ce3da0a9bb071fb.tar.bz2
gentoo-77332a83bbda66224ad188ab8ce3da0a9bb071fb.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/minio')
-rw-r--r--net-fs/minio/Manifest1
-rw-r--r--net-fs/minio/minio-2018.11.22.02.51.56.ebuild53
2 files changed, 54 insertions, 0 deletions
diff --git a/net-fs/minio/Manifest b/net-fs/minio/Manifest
index c06a7e8e9da7..86ea55aec1c9 100644
--- a/net-fs/minio/Manifest
+++ b/net-fs/minio/Manifest
@@ -8,3 +8,4 @@ DIST minio-2018.10.25.01.27.03.tar.gz 9083869 BLAKE2B 8adc52a4557bde234c367b1a0d
DIST minio-2018.11.06.01.01.02.tar.gz 9090585 BLAKE2B e7cfcdd0eb89fe1c65ceaa7893c2f2c5c4667bea689c2e42ec1f09969590ed06b2a5977015206ee18bb7a5481c9e82b4311c2719cae6df1fd2c3b5da87f9f1fb SHA512 f3d51f5a2c15b2c7cad0679fcb6c72647e090e64efb5e29ad04519fb8870809044f3ae6c2f95a36ad2f0ffb7401e602ea8f5d2f4e5b61c8b60082339b9b91c68
DIST minio-2018.11.15.01.26.07.tar.gz 9075498 BLAKE2B 8b690a05a597d0c1d3212891a47f0db944817855138dccf7806f023f6e1e0028287cca3a96df28c36d6f91fea2117abb1a417c23863e5d1464430dd0f40c977c SHA512 aeaf3e4d3be48496742a48b9d7c0b49e040c6f5cc0501668b13aa1e81c64f759b547ab5c910d1fbc2d270d3f42b1b890c41043ad79edbbbbbf2caea74b6245d6
DIST minio-2018.11.17.01.23.48.tar.gz 9076785 BLAKE2B 3dbbda0ee971d2ecedeff96fa61b2d5f3710361f34ded69075515c7cf9fa40e411360e68d04b85f43fc7082f66ff779368a984a5c1f429c4660b64c6f65dfdc1 SHA512 e460ae63bc2e23d4706c396d76c06c66fb61f20fa10544470b28f1764e64be7ed45c33b65fbb9386e7a07e374a29d700c3df2b794dd6e6bd6322e7ea40ad3434
+DIST minio-2018.11.22.02.51.56.tar.gz 9076540 BLAKE2B 61c153be20ec924c42575beed8ac6b44558f16ad630d47bb8d6e22436bdad40d9d192db20c9393d6572b9b30f09a7290f1d2c30bce8e2342b6923eb1ae1745fa SHA512 49be8aa991dbe3c46a8e656f5900924742cb09ac3d8959cc77b33893e8f698f9f5fd9c6b8e35a9c3458fdacde74905ee6c8a2ce7f82be2582d607764ac8dc63a
diff --git a/net-fs/minio/minio-2018.11.22.02.51.56.ebuild b/net-fs/minio/minio-2018.11.22.02.51.56.ebuild
new file mode 100644
index 000000000000..9adcc45356de
--- /dev/null
+++ b/net-fs/minio/minio-2018.11.22.02.51.56.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2018 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"
+
+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}
+}