diff options
author | Mikle Kolyada <zlogene@gentoo.org> | 2018-10-12 16:11:31 +0300 |
---|---|---|
committer | Mikle Kolyada <zlogene@gentoo.org> | 2018-10-12 16:11:31 +0300 |
commit | cc81db6f0f41045a30a32c1ba58146bbd13b630f (patch) | |
tree | e0149c83a8b04965c90ee72d24e4cd95429485d7 /net-fs/minio | |
parent | net-analyzer/nagios-core: Drop hppa keyword (diff) | |
download | gentoo-cc81db6f0f41045a30a32c1ba58146bbd13b630f.tar.gz gentoo-cc81db6f0f41045a30a32c1ba58146bbd13b630f.tar.bz2 gentoo-cc81db6f0f41045a30a32c1ba58146bbd13b630f.zip |
net-fs/minio: Version bump
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11
Diffstat (limited to 'net-fs/minio')
-rw-r--r-- | net-fs/minio/Manifest | 1 | ||||
-rw-r--r-- | net-fs/minio/minio-2018.10.06.00.15.16.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/net-fs/minio/Manifest b/net-fs/minio/Manifest index 4800c2628fa2..02e939feab74 100644 --- a/net-fs/minio/Manifest +++ b/net-fs/minio/Manifest @@ -4,3 +4,4 @@ DIST minio-2018.08.02.23.11.36.tar.gz 8381976 BLAKE2B 4081dcb34af05e6643ac64648b DIST minio-2018.09.01.00.38.25.tar.gz 8731636 BLAKE2B 4332d97d63c0e113de6e88ff9a4b1fc2db9b3e9b23caff19651641fcf08b5fd86c04155a30e84228433fd76160b70fb6e774421ec85a03df6fc94bdbde545ac1 SHA512 f445153be70c7370d8c96c3d7504ab4cb067fe8d36e0e0a8c014a026cf96fb3bddc9fb9b312a954a1c505e0ee7a36e33f67f3a460f8db58105d9880ee4a8de05 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.06.00.15.16.tar.gz 9110232 BLAKE2B 01236fad39193e869f71e4e81df272ea979a249d94d9a91c4e3e242290c2de25a4a93949bb35333284cdfe66b7152494cc2f0fdbea4fb606ed14f03ce56c3abe SHA512 48bc1f2f4224497002983ea33af92085225afb5f052a29a7de82c4cb80bb9a259e21cc2a701af37bf2aeee6bd8d67bfb3fc60ab176f13d847f783293b4ddce1c diff --git a/net-fs/minio/minio-2018.10.06.00.15.16.ebuild b/net-fs/minio/minio-2018.10.06.00.15.16.ebuild new file mode 100644 index 000000000000..9adcc45356de --- /dev/null +++ b/net-fs/minio/minio-2018.10.06.00.15.16.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} +} |