summaryrefslogtreecommitdiff
path: root/net-fs
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2018-05-17 17:20:42 +0200
committerManuel Rüger <mrueg@gentoo.org>2018-05-17 17:20:42 +0200
commit91b956875328831bc0d1808cdebc869c8b94d4d9 (patch)
tree67b2f7cb8a5909e91a15ba0a835fb4c8b2263a86 /net-fs
parentsys-cluster/minikube: Version bump to 0.27.0 (diff)
downloadgentoo-91b956875328831bc0d1808cdebc869c8b94d4d9.tar.gz
gentoo-91b956875328831bc0d1808cdebc869c8b94d4d9.tar.bz2
gentoo-91b956875328831bc0d1808cdebc869c8b94d4d9.zip
net-fs/minio: Update snapshot
Package-Manager: Portage-2.3.36, Repoman-2.3.9
Diffstat (limited to 'net-fs')
-rw-r--r--net-fs/minio/Manifest1
-rw-r--r--net-fs/minio/minio-0_pre20180516.ebuild52
2 files changed, 53 insertions, 0 deletions
diff --git a/net-fs/minio/Manifest b/net-fs/minio/Manifest
index 3a3a2c4bc1a..0489cdd530b 100644
--- a/net-fs/minio/Manifest
+++ b/net-fs/minio/Manifest
@@ -2,3 +2,4 @@ DIST minio-0_pre20180209.tar.gz 7521636 BLAKE2B af76c858c3afc97067b2f69025c3e362
DIST minio-0_pre20180330.tar.gz 7542469 BLAKE2B 3aae4daab1357fa5ae7e42f12768c15de133c7ffa49568657c1f7b5d38e7881e948ccab9e9fdbd22e90269ded903345f3278d12b817be7fa2a92259ee1999ee6 SHA512 34b9e330e60e58099744f2216c677f2bdcff82741a926b8c1fbf93eabf654f806e7b8df89440a477f787726d909e82a1eefd5d9c8f9ed70560ca17832708f9c3
DIST minio-0_pre20180412.tar.gz 7638430 BLAKE2B 698e0d5f5fd176f6b1dbc520d52474ce3d0e44ce5caf1345f2c6afaad3766e88e77a1c6722afa073b7b5f7176e266d00cb88d1847152f3a20b991f7819918d42 SHA512 4ef4964ec5a4b228116995b660724d404e04a132c10094c0a62974c2febaa0db7e035d93e6db4f1978ef418cc331a80db8cf3d0c6a191c57295016f1016f79e8
DIST minio-0_pre20180419.tar.gz 7761662 BLAKE2B 7ff62d0a04149a38dea6a361298f401f1ab479b90c342cb9386323f95da676eec73b34ddd098bed60e691db1920cb7b895ac5873b9ae625964e6de9bb82262a4 SHA512 a955e4177f605cf3bee5204c139de90162bb73df282c61d848004a0d8e2d7bc9ff192bf4b75694c9102c6f9df2f1553ada470993d6a2c46f5d6cc8beefa90526
+DIST minio-0_pre20180516.tar.gz 7795495 BLAKE2B d14fcbcbf4fa3b9a85bfa1f42d1069b14d4eceb4b99c2e7619d463a1fcdb941183146102da7ac38351fdf332b4bf7a141ede5469b57fc2157be19ff7ecde3e73 SHA512 6f5811500010f6e309e3918883c2127a46ba003dc43ece2c6d8a5da9e8d5aa6c2e6e4ca9dfdb4128b11327e035dcdde607b5e4ace045df1fa073d674d8b97e5a
diff --git a/net-fs/minio/minio-0_pre20180516.ebuild b/net-fs/minio/minio-0_pre20180516.ebuild
new file mode 100644
index 00000000000..fe9920cb2bd
--- /dev/null
+++ b/net-fs/minio/minio-0_pre20180516.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit user golang-build golang-vcs-snapshot
+
+EGO_PN="github.com/minio/minio"
+VERSION="2018-05-16T23-35-33Z"
+EGIT_COMMIT="64288d6eb53cc134a1f85851dcaf7dee76fecca6"
+ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.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"
+IUSE=""
+
+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)/\"${VERSION}\"/"\
+ -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="${VERSION}"
+ 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}
+}