summaryrefslogtreecommitdiff
path: root/net-fs
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2018-03-30 16:17:40 +0200
committerManuel Rüger <mrueg@gentoo.org>2018-03-30 16:18:56 +0200
commit2f57caa6408375c932dd39b00476b5ed0d81b9be (patch)
tree7deedbe239811dd5e8e88e2cbac75cb8898f584e /net-fs
parentdev-java/jtds: amd64 stable (diff)
downloadgentoo-2f57caa6408375c932dd39b00476b5ed0d81b9be.tar.gz
gentoo-2f57caa6408375c932dd39b00476b5ed0d81b9be.tar.bz2
gentoo-2f57caa6408375c932dd39b00476b5ed0d81b9be.zip
net-fs/minio: Update snapshot
Package-Manager: Portage-2.3.27, Repoman-2.3.9
Diffstat (limited to 'net-fs')
-rw-r--r--net-fs/minio/Manifest1
-rw-r--r--net-fs/minio/minio-0_pre20180330.ebuild52
2 files changed, 53 insertions, 0 deletions
diff --git a/net-fs/minio/Manifest b/net-fs/minio/Manifest
index 5d710797de93..1c39238b98d8 100644
--- a/net-fs/minio/Manifest
+++ b/net-fs/minio/Manifest
@@ -1,3 +1,4 @@
DIST minio-0_pre20171027.tar.gz 6904926 BLAKE2B 442f57d77d3634f269dbcba36333e2116fb189efbe63d50d387511d23e6edb98b0d9089f7742e717afee69a38dcfcaa7dc43ffac6ba2fff3d24a307ea8efc6e5 SHA512 15be3adf502efb9eecf2ef83a8339a1c965ee9ff6507e4a61e13faa187a3592cd88f9868716ce2834e54dde03f3bec12337a68e72fbaddf103c880ce3c4554f2
DIST minio-0_pre20171122.tar.gz 7030932 BLAKE2B a06b81bcc16c9880a13a615f894d04f55e6824feed603bb466e0d95c6ed1b1e9c28b639e5ef6240e0d33ac17791465def51bf7b92f7a9c836c0a20541d2b422c SHA512 06f404381c33a053c402b90b1353b4a5284923bb5b5264eef5b6a59fa94e6f85f4bf8306a865bba2eeccdf4b484e92c1d353a7a15d8dacc1a5d8c11d108dc8fe
DIST minio-0_pre20180209.tar.gz 7521636 BLAKE2B af76c858c3afc97067b2f69025c3e3623179e80c93d537e1f90b27b078379c4e3485399f0d30a3b4c196629dd78fed969a3d0da150e79757d58fc6db74b9fce1 SHA512 1c654a40fc809ae010643451c504cc61f5343c9fa210d3e00ceeeeb0917865bed8e07759293853d195f414dbcbb99ed34dfb2f913a6e607659ab6646492598fe
+DIST minio-0_pre20180330.tar.gz 7542469 BLAKE2B 3aae4daab1357fa5ae7e42f12768c15de133c7ffa49568657c1f7b5d38e7881e948ccab9e9fdbd22e90269ded903345f3278d12b817be7fa2a92259ee1999ee6 SHA512 34b9e330e60e58099744f2216c677f2bdcff82741a926b8c1fbf93eabf654f806e7b8df89440a477f787726d909e82a1eefd5d9c8f9ed70560ca17832708f9c3
diff --git a/net-fs/minio/minio-0_pre20180330.ebuild b/net-fs/minio/minio-0_pre20180330.ebuild
new file mode 100644
index 000000000000..987586d83485
--- /dev/null
+++ b/net-fs/minio/minio-0_pre20180330.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-03-30T00-38-44Z"
+EGIT_COMMIT="804a4f9c159ecef7093585a5b577e03a382af50e"
+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}
+}