diff options
Diffstat (limited to 'net-fs')
-rw-r--r-- | net-fs/minio/Manifest | 1 | ||||
-rw-r--r-- | net-fs/minio/minio-2018.12.06.01.27.43.ebuild | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/net-fs/minio/Manifest b/net-fs/minio/Manifest index a44f4316a42a..154a82730869 100644 --- a/net-fs/minio/Manifest +++ b/net-fs/minio/Manifest @@ -5,3 +5,4 @@ DIST minio-2018.11.15.01.26.07.tar.gz 9075498 BLAKE2B 8b690a05a597d0c1d3212891a4 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 DIST minio-2018.11.30.03.56.59.tar.gz 9085930 BLAKE2B 445ad82c4c3829fa62554d5ee16deae9a13a5f38111b1c01b891e886c6cd3e742ebdbfd0e4d1984bf4156423b0d1189dfd742e04455dee433a946a192f6f3924 SHA512 b93d8dc79c9bfbbc3e35960478836c953bb26bff533977c7e449395d0a947716115c28e3652c3c6ec632599f058ca25679995014ecdd22718b2d4b77d0a8fc6b +DIST minio-2018.12.06.01.27.43.tar.gz 9087439 BLAKE2B fbbde99442ce0b1573251ca93a5ad4323c1ce68263d2f5c3c0fd6631868dc5110b7179aabdb5ded260def669fdddbd0f9eae6a543ecf1a74d9fb9825ebdd8bd2 SHA512 1ac070f9358acee7d51895965aedeb85b79080842d7dc4012c48ad5cdb6d73bb4cd53d60edcac0fe7d0571ef7a2276d055a5505c73fd3ffa82cac4508df999c9 diff --git a/net-fs/minio/minio-2018.12.06.01.27.43.ebuild b/net-fs/minio/minio-2018.12.06.01.27.43.ebuild new file mode 100644 index 000000000000..9adcc45356de --- /dev/null +++ b/net-fs/minio/minio-2018.12.06.01.27.43.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} +} |