diff options
author | Mikle Kolyada <zlogene@gentoo.org> | 2018-10-25 20:41:42 +0300 |
---|---|---|
committer | Mikle Kolyada <zlogene@gentoo.org> | 2018-10-25 20:41:42 +0300 |
commit | b0a5364ff0549c830b029fe621d38cf05924c6c8 (patch) | |
tree | c3ef69e9caec34eb5c21d9c6f63903c37b022235 | |
parent | x11-base/xorg-server: amd64 stable wrt bug #669588 (diff) | |
download | gentoo-b0a5364ff0549c830b029fe621d38cf05924c6c8.tar.gz gentoo-b0a5364ff0549c830b029fe621d38cf05924c6c8.tar.bz2 gentoo-b0a5364ff0549c830b029fe621d38cf05924c6c8.zip |
net-fs/minio: Version bump
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11
-rw-r--r-- | net-fs/minio/Manifest | 1 | ||||
-rw-r--r-- | net-fs/minio/minio-2018.10.25.01.27.03.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/net-fs/minio/Manifest b/net-fs/minio/Manifest index cef4a9a55e03..7cedc95258b2 100644 --- a/net-fs/minio/Manifest +++ b/net-fs/minio/Manifest @@ -5,3 +5,4 @@ DIST minio-2018.09.01.00.38.25.tar.gz 8731636 BLAKE2B 4332d97d63c0e113de6e88ff9a DIST minio-2018.09.12.18.49.56.tar.gz 8743369 BLAKE2B 8f7f2fdb75a0130348a6e06182a1d24d8e6463543fad8d21f2aeab0e1d550b257d124cb13d0012b9f2864f8743c4ee3791605eb1614d8adf5d6008c9d67de685 SHA512 2f33e406f8be22ccb74c7d90a76d6a48699c7e1c95c3adc10f26e6945b56b8648626ce0cfcd255ecb56985f9e849c81a0dcc4c79f772d33804774a5fe65ae4b3 DIST minio-2018.09.25.21.34.43.tar.gz 9187452 BLAKE2B d60567a90b95c86293cd34533cf65ced42ca11219963e2f6c843ed7d6988a9df160be3afda9cdbac4f5158f46b7daddb8c79e47e6a8ff54530725ada8fb14226 SHA512 2e70e09455ba56fc4230fbc836d2eb988315f0a43109cfdbaf49c57ef2ff126db4ba836473df3c9b6e7f3e69852fa44b894bcb8a7b49b688b0df73f2e7499fe8 DIST minio-2018.10.18.00.28.58.tar.gz 9153624 BLAKE2B be2b9db53f0256bb7db1a1917003051ec0484d876702a54ea81ed38ae2853de296129a0ac1e5fbbf6e056bc5ac82e7ba389008001195f4b20daa8545275c9215 SHA512 64abcd10ade42f9bcecf498b2855426b8fbd2be428aa5aaa134295709849f8ebb57aede1d67a7302c7d05b8a861d5076a04ad126bc66d1fc9d4c45368e5e9cf1 +DIST minio-2018.10.25.01.27.03.tar.gz 9083869 BLAKE2B 8adc52a4557bde234c367b1a0d3a3ca5651700cdaca4c0cd3c1ff55d64ef7bb6f5dbb48eee9867eb7677293abdcd34e9469bd3980f7046934db17d1fa72229ea SHA512 8227a0b320877131b5822e077f3ee2cc03268de2c1f9a13dbc34f8ade8828b20afda964f1d389f311547750b8a7a613037042fe2a10f30610972a8d6eb4f40fd diff --git a/net-fs/minio/minio-2018.10.25.01.27.03.ebuild b/net-fs/minio/minio-2018.10.25.01.27.03.ebuild new file mode 100644 index 000000000000..9adcc45356de --- /dev/null +++ b/net-fs/minio/minio-2018.10.25.01.27.03.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} +} |