summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2018-09-09 13:43:00 +0300
committerMikle Kolyada <zlogene@gentoo.org>2018-09-09 13:43:00 +0300
commitc3cda993ce4bc795e5094f71633991fc79c45074 (patch)
tree515f804258759bc3b281e1798ee7ac9aed03a650 /net-fs/minio/minio-2018.09.01.00.38.25.ebuild
parentapp-text/pep: Drop old (diff)
downloadgentoo-c3cda993ce4bc795e5094f71633991fc79c45074.tar.gz
gentoo-c3cda993ce4bc795e5094f71633991fc79c45074.tar.bz2
gentoo-c3cda993ce4bc795e5094f71633991fc79c45074.zip
net-fs/minio: Snapshot bump
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'net-fs/minio/minio-2018.09.01.00.38.25.ebuild')
-rw-r--r--net-fs/minio/minio-2018.09.01.00.38.25.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/net-fs/minio/minio-2018.09.01.00.38.25.ebuild b/net-fs/minio/minio-2018.09.01.00.38.25.ebuild
new file mode 100644
index 00000000000..0cc7045b5ef
--- /dev/null
+++ b/net-fs/minio/minio-2018.09.01.00.38.25.ebuild
@@ -0,0 +1,53 @@
+# 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 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="a091b1a3eefbaea07499bef9a5462280ec9d2a7a"
+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"
+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)/\"${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}
+}