Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/minio/
Date: Sun, 28 Apr 2019 12:38:12
Message-Id: 1556455081.40471da10609ee6f830bd475dd0e2e9e5d147cd0.zlogene@gentoo
1 commit: 40471da10609ee6f830bd475dd0e2e9e5d147cd0
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 28 12:35:54 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 28 12:38:01 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40471da1
7
8 net-fs/minio: Version bump
9
10 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
11 Package-Manager: Portage-2.3.62, Repoman-2.3.11
12
13 net-fs/minio/Manifest | 3 +
14 net-fs/minio/minio-2019.04.18.01.15.57.ebuild | 172 ++++++++++++++++++++++++++
15 net-fs/minio/minio-2019.04.18.21.44.59.ebuild | 172 ++++++++++++++++++++++++++
16 net-fs/minio/minio-2019.04.23.23.50.36.ebuild | 172 ++++++++++++++++++++++++++
17 4 files changed, 519 insertions(+)
18
19 diff --git a/net-fs/minio/Manifest b/net-fs/minio/Manifest
20 index d194e7e4109..58a93e01ce6 100644
21 --- a/net-fs/minio/Manifest
22 +++ b/net-fs/minio/Manifest
23 @@ -117,3 +117,6 @@ DIST minio-2019.03.20.22.38.47.tar.gz 9249505 BLAKE2B c3b5173575c266bf4a86276eaf
24 DIST minio-2019.03.27.22.35.21.tar.gz 9261176 BLAKE2B 896162800b156d6cc04733fb80a4a0adf90b9bb5ff3561108e136e953dc60d4356c28fd6f28865977060d854f3887c23396139433e4a6c46fe9036a2b2e01336 SHA512 1fce454f0cbbb90bd8fff48c20a3a93cac464ea8dda1acb5687a566a5db641e912ff57a9b8e73192df5a7eb896f265945da734f89cf6c57dc9e2a0c8554f8d10
25 DIST minio-2019.04.04.18.31.46.tar.gz 4814395 BLAKE2B 0f8d4f73092f9d51cf49f3e085511f2005deb2df153d803b845cdf0ea25cdff3fa2e2acd480be59ebe1b83f5ca87b6c665dccd72e36a4ca98a1837bf4aef5996 SHA512 edd646be6bb24d5a1afd10417bdd75a4f1290099d9eda99c6b6303442c8badd3cb376ca1e78b0fea18f3cb2421c229d651fe4c9c756fe0376979517b1d7ba005
26 DIST minio-2019.04.09.01.22.30.tar.gz 4816060 BLAKE2B f70e60601523e2a9498a20afe3122a4bee3157070aae43d42e7d8a4036008de1fe4323be0852096a3d44317a6fa1dd8f4adedb769934f6029cde1fffbe3aa0aa SHA512 dd056bc5317911a49b6fcf1442c94fad0aca1b699605c0d4346aa164cb330b7cb3863f5d68197c453af8c6d3c8541ba92e0b382914dc5a4829ffd8e2db4e9c7d
27 +DIST minio-2019.04.18.01.15.57.tar.gz 4823773 BLAKE2B c439f51843ef266227237a6b2d8cf46869559e1ac0a7365d1e221c2f2b784a54cb5af3f4d96b0adff06eb8761d12cd76f6e7c69cb476d954b888a1528406841b SHA512 45ce69a073b758710c5a5a8853857b3e7aada3fb536bb4e129b88eed8c43b77ab5d012e1299101d6b918c582030ea9bcb9170ac41135952cc628e461819c9574
28 +DIST minio-2019.04.18.21.44.59.tar.gz 4816682 BLAKE2B 63a43028f3f8af24674ff494907a81566c716b4bc7b41b2419d39df8dc1630b596037466b6efad1d8867bdbf43244af048c1b9b14b149fcd6182237f27beadb4 SHA512 a53856860189dae66ab970895db10ade8c1857e190bcb68060e4c403c060e91c2db659574329855dc16c49998407402981b7ab331bc93ec814ccdcfce6458d8d
29 +DIST minio-2019.04.23.23.50.36.tar.gz 4816780 BLAKE2B 9591e8938d2f67a507d1b60dab0fd534d6770d37c3fa839b2da22b4d15c04335ce3c6fdeb22a76504072844d17ed7afca1826cb6e653398befaee67e0f9406f4 SHA512 a98e1a46443d9afa8ddc2a04273870440b2a5f4a04dd0fb7b21335471dbdfbe2a30c68da332e66a1d94bb9ad6326acfdd859e25f818ad8d84df869c93cf6ac05
30
31 diff --git a/net-fs/minio/minio-2019.04.18.01.15.57.ebuild b/net-fs/minio/minio-2019.04.18.01.15.57.ebuild
32 new file mode 100644
33 index 00000000000..275580fb0ff
34 --- /dev/null
35 +++ b/net-fs/minio/minio-2019.04.18.01.15.57.ebuild
36 @@ -0,0 +1,172 @@
37 +# Copyright 1999-2019 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=7
41 +
42 +EGO_VENDOR=( "gopkg.in/yaml.v2 51d6538a90f86fe93ac480b35f37b2be17fef232 github.com/go-yaml/yaml"
43 + "gopkg.in/olivere/elastic.v5 f72acaba629a7ec879103d17b7426a31bc38e199 github.com/olivere/elastic"
44 + "gopkg.in/Shopify/sarama.v1 879f631812a30a580659e8035e7cda9994bb99ac github.com/Shopify/sarama"
45 + "google.golang.org/api/option bce707a4d0ea3488942724b3bcc1c8338f38f991 github.com/googleapis/google-api-go-client"
46 + "google.golang.org/api/iterator bce707a4d0ea3488942724b3bcc1c8338f38f991 github.com/googleapis/google-api-go-client"
47 + "google.golang.org/api/googleapi bce707a4d0ea3488942724b3bcc1c8338f38f991 github.com/googleapis/google-api-go-client"
48 + "golang.org/x/time 9d24e82272b4f38b78bc8cff74fa936d31ccd8ef github.com/golang/time"
49 + "golang.org/x/sys 81d4e9dc473e5e8c933f2aaeba2a3d81efb9aed2 github.com/golang/sys"
50 + "golang.org/x/net eb5bcb51f2a31c7d5141d810b70815c05d9c9146 github.com/golang/net"
51 + "golang.org/x/text e3703dcdd614d2d7488fff034c75c551ea25da95 github.com/golang/text"
52 + "golang.org/x/crypto 38d8ce5564a5b71b2e3a00553993f1b9a7ae852f github.com/golang/crypto"
53 + "go.uber.org/atomic 1ea20fb1cbb1cc08cbd0d913a96dead89aa18289 github.com/uber-go/atomic"
54 + "github.com/valyala/tcplisten ceec8f93295a060cdb565ec25e4ccf17941dbd55"
55 + "cloud.google.com/go/storage a4ed3b9f8c7419c692a60bbf780ab0f1c4af5ce4 github.com/googleapis/google-cloud-go"
56 + "github.com/tidwall/sjson 25fb082a20e29e83fb7b7ef5f5919166aad1f084"
57 + "github.com/tidwall/gjson eee0b6226f0d1db2675a176fdfaa8419bcad4ca8"
58 + "github.com/tidwall/pretty 1166b9ac2b65e46a43d8618d30d1554f4652d49b"
59 + "github.com/tidwall/match 33827db735fff6510490d69a8622612558a557ed"
60 + "github.com/streadway/amqp 14f78b41ce6da3d698c2ef2cc8c0ea7ce9e26688"
61 + "github.com/skyrings/skyring-common d1c0bb1cbd5ed8438be1385c85c4f494608cde1e"
62 + "github.com/segmentio/go-prompt f0d19b6901ade831d5a3204edc0d6a7d6457fbb2"
63 + "github.com/rs/cors 9a47f48565a795472d43519dd49aac781f3034fb"
64 + "github.com/rjeczalik/notify 69d839f37b13a8cb7a78366f7633a4071cb43be7"
65 + "github.com/rcrowley/go-metrics 3113b8401b8a98917cde58f8bbd42a1b1c03b1fd"
66 + "github.com/prometheus/client_golang 505eaef017263e299324067d40ca2c48f6a2cf50"
67 + "github.com/prometheus/procfs 55ae3d9d557340b5bc24cd8aa5f6fa2c2ab31352"
68 + "github.com/prometheus/common 5df5c82edb7502fd6cbe093223a19b6e1231494f"
69 + "github.com/prometheus/client_model fd36f4220a901265f90734c3183c5f0c91daa0b8"
70 + "github.com/pkg/profile f6fe06335df110bcf1ed6d4e852b760bfc15beee"
71 + "github.com/pkg/errors ba968bfe8b2f7e042a574c888954fccecfa385b4"
72 + "github.com/pierrec/lz4 315a67e90e415bcdaff33057da191569bf4d8479"
73 + "github.com/nsqio/go-nsq eee57a3ac4174c55924125bb15eeeda8cffb6e6f"
74 + "github.com/nats-io/nats 70fe06cee50d4b6f98248d9675fb55f2a3aa7228"
75 + "github.com/nats-io/nuid 3024a71c3cbe30667286099921591e6fcc328230"
76 + "github.com/nats-io/nkeys 1546a3320a8f195a5b5c84aef8309377c2e411d5"
77 + "github.com/nats-io/go-nats 70fe06cee50d4b6f98248d9675fb55f2a3aa7228"
78 + "github.com/nats-io/go-nats-streaming 4366d43a0648b4997ed32080f937e8702ab86c48"
79 + "github.com/Azure/azure-sdk-for-go d659f2a91175cac99aa5627d09b83026eacc978d"
80 + "github.com/Azure/go-autorest 3b1641ed03046f2ee28d73f7a51e5b884d55b92a"
81 + "github.com/DataDog/zstd c7161f8c63c045cbc7ca051dcc969dd0e4054de2"
82 + "github.com/mailru/easyjson 1ea4449da9834f4d333f1cc461c374aea217d249"
83 + "github.com/gorilla/mux a7962380ca08b5a188038c69871b8d3fbdf31e89"
84 + "github.com/coredns/coredns 8dcc7fccd74454134b33c8bc9f780ed6d7f076cf"
85 + "github.com/matttproud/golang_protobuf_extensions c182affec369e30f25d3eb8cd8a478dee585ae7d"
86 + "github.com/eapache/go-resiliency 842e16ec2c98ef0c59eebfe60d2d3500a793ba19"
87 + "github.com/minio/minio-go 5325257a208fc630aaaac31bc00789acbc998c14"
88 + "github.com/alecthomas/participle 98cb121381c371cf1542c7ae145e485d703aec0b"
89 + "github.com/aliyun/aliyun-oss-go-sdk 86c17b95fcd5db33628a61e492fb4a1a937d5906"
90 + "github.com/bcicen/jstream 16c1f8af81c2a9967b30d365a29472126274f998"
91 + "github.com/beorn7/perks 3a771d992973f24aa725d07868b467d1ddfceafb"
92 + "github.com/cheggaaa/pb f907f6f5dd81f77c2bbc1cde92e4c5a04720cb11"
93 + "github.com/gogo/protobuf 382325bbbb4d1c850eec1f3ec92a1a16f502d68b"
94 + "github.com/davecgh/go-spew d8f796af33cc11cb798c1aaeb27a4ebc5099927d"
95 + "github.com/inconshreveable/go-update 8152e7eb6ccf8679a64582a66b78519688d156ad"
96 + "github.com/howeyc/gopass bf9dde6d0d2c004a008c27aaee91170c786f6db8"
97 + "github.com/mitchellh/go-homedir af06845cf3004701891bf4fdb884bfe4920b3727"
98 + "github.com/klauspost/pgzip 083b1c3f84dd6486588802e5ce295de3a7f41a8b"
99 + "github.com/marstr/guid 8bd9a64bf37eb297b492a4101fb28e80ac0b290f"
100 + "github.com/coreos/etcd d57e8b8d97adfc4a6c224fe116714bf1a1f3beb9"
101 + "github.com/dgrijalva/jwt-go 06ea1031745cb8b3dab3f6a236daf2b0aa468b7e"
102 + "github.com/gorilla/rpc bffcfa752ad4e523cc8f720afeb5b985ed41ae16"
103 + "github.com/djherbis/atime 8e47e0e01d08df8b9f840d74299c8ab70a024a30"
104 + "github.com/dustin/go-humanize 9f541cc9db5d55bce703bd99987c9d5cb8eea45e"
105 + "github.com/eapache/go-xerial-snappy 776d5712da21bc4762676d614db1d8a64f4238b0"
106 + "github.com/eapache/queue 093482f3f8ce946c05bcba64badd2c82369e084d"
107 + "github.com/golang/protobuf d3c38a4eb4970272b87a425ae00ccc4548e2f9bb"
108 + "github.com/fatih/structs 4966fc68f5b7593aafa6cbbba2d65ec6e1416047"
109 + "github.com/minio/parquet-go 9d767baf16793cc4b7fd55d642474c36c077ef77"
110 + "gopkg.in/ini.v1 c85607071cf08ca1adaf48319cd1aa322e81d8c1 github.com/go-ini/ini"
111 + "google.golang.org/grpc 3507fb8e1a5ad030303c106fef3a47c9fdad16ad github.com/grpc/grpc-go"
112 + "google.golang.org/genproto 64821d5d210748c883cd2b809589555ae4654203 github.com/google/go-genproto"
113 + "go.opencensus.io 43463a80402d8447b7fce0d2c58edf1687ff0b58 github.com/census-instrumentation/opencensus-go"
114 + "git.apache.org/thrift.git c9b1e29bc9e0702d7441383358d565e1e76ccea7 github.com/apache/thrift"
115 + "github.com/elazarl/go-bindata-assetfs 30f82fa23fd844bd5bb1e5f216db87fd77b5eb43"
116 + "github.com/eclipse/paho.mqtt.golang 20337d8c394721c308cc6ec096990ee451a7cd7f"
117 + "github.com/klauspost/compress 30be6041bed523c18e269a700ebd9c2ea9328574"
118 + "github.com/hashicorp/vault 36aa8c8dd1936e10ebd7a4c1d412ae0e6f7900bd"
119 + "github.com/fatih/color 5b77d2a35fb0ede96d138fc9a99f5c9b6aef11b4"
120 + "github.com/miekg/dns 73601d4aed9d844322611759d7f3619110b7c88e"
121 + "github.com/klauspost/reedsolomon a9588190c00b0ccd742218388f6ff68bbad83e5c"
122 + "github.com/gomodule/redigo 9c11da706d9b7902c6da69c592f75637793fe121"
123 + "github.com/go-sql-driver/mysql 72cd26f257d44c1114970e19afddcd812016007e"
124 + "github.com/gorilla/handlers 7e0847f9db758cdebd26c149d0ae9d5d0b9c98ce"
125 + "github.com/mattn/go-isatty c2a7a6ca930a4cd0bc33a3f298eb71960732a3a7"
126 + "github.com/satori/go.uuid f58768cc1a7a7e77a3bd49e98cdd21419399b6a3"
127 + "github.com/golang/snappy 2a8bb927dd31d8daada140a5d09578521ce5c36a"
128 + "github.com/klauspost/cpuid e7e905edc00ea8827e58662220139109efea09db"
129 + "contrib.go.opencensus.io/exporter/ocagent 902c0ccba68df93f7fefbe7e7c6f16be33108b40 github.com/census-ecosystem/opencensus-go-exporter-ocagent"
130 + "github.com/lib/pq 4ded0e9383f75c197b3a2aaa6d590ac52df6fd79"
131 + "github.com/mattn/go-runewidth 3ee7d812e62a0804a7d0a324e0249ca2db3476d3"
132 + "github.com/census-instrumentation/opencensus-proto a105b96453fe85139acc07b68de48f2cbdd71249"
133 + "github.com/minio/cli 8683fa7fef37cc8cb092f47bdb6b403e0049f9ee"
134 + "github.com/minio/mc a1355e50e2e8984d645cc7745230c42b27396341"
135 + "google.golang.org/api bce707a4d0ea3488942724b3bcc1c8338f38f991 github.com/googleapis/google-api-go-client"
136 + "github.com/grpc-ecosystem/grpc-gateway 20f268a412e5b342ebfb1a0eef7c3b7bd6c260ea"
137 + "github.com/mattn/go-colorable 3a70a971f94a22f2fa562ffcc7a0eb45f5daf045"
138 + "github.com/minio/blazer 2081f5bf046503f576d8712253724fbf2950fffe"
139 + "github.com/minio/dsync fb604afd87b2a095432c17af2dda742960ef111e"
140 + "github.com/minio/highwayhash 02ca4b43caa3297fbb615700d8800acc7933be98"
141 + "github.com/minio/lsync a4e43e3d0887e88d151bb3f90f678178b4ec0c5f"
142 + "github.com/minio/sha256-simd 05b4dd3047e5d6e86cb4e0477164b850cd896261"
143 + "github.com/minio/sio 035b4ef8c449ba2ba21ec143c91964e76a1fb68c"
144 + "golang.org/x/sync e225da77a7e68af35c70ccbf71af2b83e6acac3c github.com/golang/sync"
145 + "golang.org/x/oauth2 9f3314589c9a9136388751d9adae6b0ed400978a github.com/golang/oauth2"
146 + "cloud.google.com/go 458e1f376a2b44413160b5d301183b65debaa3f6 github.com/googleapis/google-cloud-go"
147 + "github.com/googleapis/gax-go beaecbbdd8af86aa3acf14180d53828ce69400b2"
148 + "github.com/hashicorp/golang-lru 7087cb70de9f7a8bc0a10c375cb0d2280a8edf9c" )
149 +
150 +inherit user golang-build golang-vcs-snapshot
151 +
152 +EGO_PN="github.com/minio/minio"
153 +MY_PV="$(ver_cut 1-3)T$(ver_cut 4-7)Z"
154 +MY_PV=${MY_PV//./-}
155 +EGIT_COMMIT="ce419c98352324caa4c79b159a9f840ca714c3d5"
156 +ARCHIVE_URI="https://${EGO_PN}/archive/RELEASE.${MY_PV}.tar.gz -> ${P}.tar.gz
157 + ${EGO_VENDOR_URI}"
158 +
159 +KEYWORDS="~amd64 ~amd64-linux"
160 +
161 +DESCRIPTION="An Amazon S3 compatible object storage server"
162 +HOMEPAGE="https://github.com/minio/minio"
163 +SRC_URI="${ARCHIVE_URI}"
164 +LICENSE="Apache-2.0"
165 +SLOT="0"
166 +
167 +RESTRICT="test"
168 +
169 +pkg_setup() {
170 + enewgroup ${PN}
171 + enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
172 +}
173 +
174 +src_prepare() {
175 + default
176 +
177 + pushd src/${EGO_PN} || die
178 +
179 + rm go.mod || die
180 +
181 + sed -i -e "s/time.Now().UTC().Format(time.RFC3339)/\"${MY_PV}\"/"\
182 + -e "s/-s //"\
183 + -e "/time/d"\
184 + -e "s/+ commitID()/+ \"${EGIT_COMMIT}\"/"\
185 + buildscripts/gen-ldflags.go || die
186 +
187 + popd || die
188 +}
189 +
190 +src_compile() {
191 + unset XDG_CACHE_HOME
192 +
193 + pushd src/${EGO_PN} || die
194 + MINIO_RELEASE="${MY_PV}"
195 + go run buildscripts/gen-ldflags.go
196 + GOPATH="${S}" go build --ldflags "$(go run buildscripts/gen-ldflags.go)" -o ${PN} || die
197 + popd || die
198 +}
199 +
200 +src_install() {
201 + pushd src/${EGO_PN} || die
202 + dodoc -r README.md CONTRIBUTING.md MAINTAINERS.md docs
203 + dobin minio
204 + popd || die
205 + newinitd "${FILESDIR}"/${PN}.initd ${PN}
206 + keepdir /var/{lib,log}/${PN}
207 + fowners ${PN}:${PN} /var/{lib,log}/${PN}
208 +}
209
210 diff --git a/net-fs/minio/minio-2019.04.18.21.44.59.ebuild b/net-fs/minio/minio-2019.04.18.21.44.59.ebuild
211 new file mode 100644
212 index 00000000000..275580fb0ff
213 --- /dev/null
214 +++ b/net-fs/minio/minio-2019.04.18.21.44.59.ebuild
215 @@ -0,0 +1,172 @@
216 +# Copyright 1999-2019 Gentoo Authors
217 +# Distributed under the terms of the GNU General Public License v2
218 +
219 +EAPI=7
220 +
221 +EGO_VENDOR=( "gopkg.in/yaml.v2 51d6538a90f86fe93ac480b35f37b2be17fef232 github.com/go-yaml/yaml"
222 + "gopkg.in/olivere/elastic.v5 f72acaba629a7ec879103d17b7426a31bc38e199 github.com/olivere/elastic"
223 + "gopkg.in/Shopify/sarama.v1 879f631812a30a580659e8035e7cda9994bb99ac github.com/Shopify/sarama"
224 + "google.golang.org/api/option bce707a4d0ea3488942724b3bcc1c8338f38f991 github.com/googleapis/google-api-go-client"
225 + "google.golang.org/api/iterator bce707a4d0ea3488942724b3bcc1c8338f38f991 github.com/googleapis/google-api-go-client"
226 + "google.golang.org/api/googleapi bce707a4d0ea3488942724b3bcc1c8338f38f991 github.com/googleapis/google-api-go-client"
227 + "golang.org/x/time 9d24e82272b4f38b78bc8cff74fa936d31ccd8ef github.com/golang/time"
228 + "golang.org/x/sys 81d4e9dc473e5e8c933f2aaeba2a3d81efb9aed2 github.com/golang/sys"
229 + "golang.org/x/net eb5bcb51f2a31c7d5141d810b70815c05d9c9146 github.com/golang/net"
230 + "golang.org/x/text e3703dcdd614d2d7488fff034c75c551ea25da95 github.com/golang/text"
231 + "golang.org/x/crypto 38d8ce5564a5b71b2e3a00553993f1b9a7ae852f github.com/golang/crypto"
232 + "go.uber.org/atomic 1ea20fb1cbb1cc08cbd0d913a96dead89aa18289 github.com/uber-go/atomic"
233 + "github.com/valyala/tcplisten ceec8f93295a060cdb565ec25e4ccf17941dbd55"
234 + "cloud.google.com/go/storage a4ed3b9f8c7419c692a60bbf780ab0f1c4af5ce4 github.com/googleapis/google-cloud-go"
235 + "github.com/tidwall/sjson 25fb082a20e29e83fb7b7ef5f5919166aad1f084"
236 + "github.com/tidwall/gjson eee0b6226f0d1db2675a176fdfaa8419bcad4ca8"
237 + "github.com/tidwall/pretty 1166b9ac2b65e46a43d8618d30d1554f4652d49b"
238 + "github.com/tidwall/match 33827db735fff6510490d69a8622612558a557ed"
239 + "github.com/streadway/amqp 14f78b41ce6da3d698c2ef2cc8c0ea7ce9e26688"
240 + "github.com/skyrings/skyring-common d1c0bb1cbd5ed8438be1385c85c4f494608cde1e"
241 + "github.com/segmentio/go-prompt f0d19b6901ade831d5a3204edc0d6a7d6457fbb2"
242 + "github.com/rs/cors 9a47f48565a795472d43519dd49aac781f3034fb"
243 + "github.com/rjeczalik/notify 69d839f37b13a8cb7a78366f7633a4071cb43be7"
244 + "github.com/rcrowley/go-metrics 3113b8401b8a98917cde58f8bbd42a1b1c03b1fd"
245 + "github.com/prometheus/client_golang 505eaef017263e299324067d40ca2c48f6a2cf50"
246 + "github.com/prometheus/procfs 55ae3d9d557340b5bc24cd8aa5f6fa2c2ab31352"
247 + "github.com/prometheus/common 5df5c82edb7502fd6cbe093223a19b6e1231494f"
248 + "github.com/prometheus/client_model fd36f4220a901265f90734c3183c5f0c91daa0b8"
249 + "github.com/pkg/profile f6fe06335df110bcf1ed6d4e852b760bfc15beee"
250 + "github.com/pkg/errors ba968bfe8b2f7e042a574c888954fccecfa385b4"
251 + "github.com/pierrec/lz4 315a67e90e415bcdaff33057da191569bf4d8479"
252 + "github.com/nsqio/go-nsq eee57a3ac4174c55924125bb15eeeda8cffb6e6f"
253 + "github.com/nats-io/nats 70fe06cee50d4b6f98248d9675fb55f2a3aa7228"
254 + "github.com/nats-io/nuid 3024a71c3cbe30667286099921591e6fcc328230"
255 + "github.com/nats-io/nkeys 1546a3320a8f195a5b5c84aef8309377c2e411d5"
256 + "github.com/nats-io/go-nats 70fe06cee50d4b6f98248d9675fb55f2a3aa7228"
257 + "github.com/nats-io/go-nats-streaming 4366d43a0648b4997ed32080f937e8702ab86c48"
258 + "github.com/Azure/azure-sdk-for-go d659f2a91175cac99aa5627d09b83026eacc978d"
259 + "github.com/Azure/go-autorest 3b1641ed03046f2ee28d73f7a51e5b884d55b92a"
260 + "github.com/DataDog/zstd c7161f8c63c045cbc7ca051dcc969dd0e4054de2"
261 + "github.com/mailru/easyjson 1ea4449da9834f4d333f1cc461c374aea217d249"
262 + "github.com/gorilla/mux a7962380ca08b5a188038c69871b8d3fbdf31e89"
263 + "github.com/coredns/coredns 8dcc7fccd74454134b33c8bc9f780ed6d7f076cf"
264 + "github.com/matttproud/golang_protobuf_extensions c182affec369e30f25d3eb8cd8a478dee585ae7d"
265 + "github.com/eapache/go-resiliency 842e16ec2c98ef0c59eebfe60d2d3500a793ba19"
266 + "github.com/minio/minio-go 5325257a208fc630aaaac31bc00789acbc998c14"
267 + "github.com/alecthomas/participle 98cb121381c371cf1542c7ae145e485d703aec0b"
268 + "github.com/aliyun/aliyun-oss-go-sdk 86c17b95fcd5db33628a61e492fb4a1a937d5906"
269 + "github.com/bcicen/jstream 16c1f8af81c2a9967b30d365a29472126274f998"
270 + "github.com/beorn7/perks 3a771d992973f24aa725d07868b467d1ddfceafb"
271 + "github.com/cheggaaa/pb f907f6f5dd81f77c2bbc1cde92e4c5a04720cb11"
272 + "github.com/gogo/protobuf 382325bbbb4d1c850eec1f3ec92a1a16f502d68b"
273 + "github.com/davecgh/go-spew d8f796af33cc11cb798c1aaeb27a4ebc5099927d"
274 + "github.com/inconshreveable/go-update 8152e7eb6ccf8679a64582a66b78519688d156ad"
275 + "github.com/howeyc/gopass bf9dde6d0d2c004a008c27aaee91170c786f6db8"
276 + "github.com/mitchellh/go-homedir af06845cf3004701891bf4fdb884bfe4920b3727"
277 + "github.com/klauspost/pgzip 083b1c3f84dd6486588802e5ce295de3a7f41a8b"
278 + "github.com/marstr/guid 8bd9a64bf37eb297b492a4101fb28e80ac0b290f"
279 + "github.com/coreos/etcd d57e8b8d97adfc4a6c224fe116714bf1a1f3beb9"
280 + "github.com/dgrijalva/jwt-go 06ea1031745cb8b3dab3f6a236daf2b0aa468b7e"
281 + "github.com/gorilla/rpc bffcfa752ad4e523cc8f720afeb5b985ed41ae16"
282 + "github.com/djherbis/atime 8e47e0e01d08df8b9f840d74299c8ab70a024a30"
283 + "github.com/dustin/go-humanize 9f541cc9db5d55bce703bd99987c9d5cb8eea45e"
284 + "github.com/eapache/go-xerial-snappy 776d5712da21bc4762676d614db1d8a64f4238b0"
285 + "github.com/eapache/queue 093482f3f8ce946c05bcba64badd2c82369e084d"
286 + "github.com/golang/protobuf d3c38a4eb4970272b87a425ae00ccc4548e2f9bb"
287 + "github.com/fatih/structs 4966fc68f5b7593aafa6cbbba2d65ec6e1416047"
288 + "github.com/minio/parquet-go 9d767baf16793cc4b7fd55d642474c36c077ef77"
289 + "gopkg.in/ini.v1 c85607071cf08ca1adaf48319cd1aa322e81d8c1 github.com/go-ini/ini"
290 + "google.golang.org/grpc 3507fb8e1a5ad030303c106fef3a47c9fdad16ad github.com/grpc/grpc-go"
291 + "google.golang.org/genproto 64821d5d210748c883cd2b809589555ae4654203 github.com/google/go-genproto"
292 + "go.opencensus.io 43463a80402d8447b7fce0d2c58edf1687ff0b58 github.com/census-instrumentation/opencensus-go"
293 + "git.apache.org/thrift.git c9b1e29bc9e0702d7441383358d565e1e76ccea7 github.com/apache/thrift"
294 + "github.com/elazarl/go-bindata-assetfs 30f82fa23fd844bd5bb1e5f216db87fd77b5eb43"
295 + "github.com/eclipse/paho.mqtt.golang 20337d8c394721c308cc6ec096990ee451a7cd7f"
296 + "github.com/klauspost/compress 30be6041bed523c18e269a700ebd9c2ea9328574"
297 + "github.com/hashicorp/vault 36aa8c8dd1936e10ebd7a4c1d412ae0e6f7900bd"
298 + "github.com/fatih/color 5b77d2a35fb0ede96d138fc9a99f5c9b6aef11b4"
299 + "github.com/miekg/dns 73601d4aed9d844322611759d7f3619110b7c88e"
300 + "github.com/klauspost/reedsolomon a9588190c00b0ccd742218388f6ff68bbad83e5c"
301 + "github.com/gomodule/redigo 9c11da706d9b7902c6da69c592f75637793fe121"
302 + "github.com/go-sql-driver/mysql 72cd26f257d44c1114970e19afddcd812016007e"
303 + "github.com/gorilla/handlers 7e0847f9db758cdebd26c149d0ae9d5d0b9c98ce"
304 + "github.com/mattn/go-isatty c2a7a6ca930a4cd0bc33a3f298eb71960732a3a7"
305 + "github.com/satori/go.uuid f58768cc1a7a7e77a3bd49e98cdd21419399b6a3"
306 + "github.com/golang/snappy 2a8bb927dd31d8daada140a5d09578521ce5c36a"
307 + "github.com/klauspost/cpuid e7e905edc00ea8827e58662220139109efea09db"
308 + "contrib.go.opencensus.io/exporter/ocagent 902c0ccba68df93f7fefbe7e7c6f16be33108b40 github.com/census-ecosystem/opencensus-go-exporter-ocagent"
309 + "github.com/lib/pq 4ded0e9383f75c197b3a2aaa6d590ac52df6fd79"
310 + "github.com/mattn/go-runewidth 3ee7d812e62a0804a7d0a324e0249ca2db3476d3"
311 + "github.com/census-instrumentation/opencensus-proto a105b96453fe85139acc07b68de48f2cbdd71249"
312 + "github.com/minio/cli 8683fa7fef37cc8cb092f47bdb6b403e0049f9ee"
313 + "github.com/minio/mc a1355e50e2e8984d645cc7745230c42b27396341"
314 + "google.golang.org/api bce707a4d0ea3488942724b3bcc1c8338f38f991 github.com/googleapis/google-api-go-client"
315 + "github.com/grpc-ecosystem/grpc-gateway 20f268a412e5b342ebfb1a0eef7c3b7bd6c260ea"
316 + "github.com/mattn/go-colorable 3a70a971f94a22f2fa562ffcc7a0eb45f5daf045"
317 + "github.com/minio/blazer 2081f5bf046503f576d8712253724fbf2950fffe"
318 + "github.com/minio/dsync fb604afd87b2a095432c17af2dda742960ef111e"
319 + "github.com/minio/highwayhash 02ca4b43caa3297fbb615700d8800acc7933be98"
320 + "github.com/minio/lsync a4e43e3d0887e88d151bb3f90f678178b4ec0c5f"
321 + "github.com/minio/sha256-simd 05b4dd3047e5d6e86cb4e0477164b850cd896261"
322 + "github.com/minio/sio 035b4ef8c449ba2ba21ec143c91964e76a1fb68c"
323 + "golang.org/x/sync e225da77a7e68af35c70ccbf71af2b83e6acac3c github.com/golang/sync"
324 + "golang.org/x/oauth2 9f3314589c9a9136388751d9adae6b0ed400978a github.com/golang/oauth2"
325 + "cloud.google.com/go 458e1f376a2b44413160b5d301183b65debaa3f6 github.com/googleapis/google-cloud-go"
326 + "github.com/googleapis/gax-go beaecbbdd8af86aa3acf14180d53828ce69400b2"
327 + "github.com/hashicorp/golang-lru 7087cb70de9f7a8bc0a10c375cb0d2280a8edf9c" )
328 +
329 +inherit user golang-build golang-vcs-snapshot
330 +
331 +EGO_PN="github.com/minio/minio"
332 +MY_PV="$(ver_cut 1-3)T$(ver_cut 4-7)Z"
333 +MY_PV=${MY_PV//./-}
334 +EGIT_COMMIT="ce419c98352324caa4c79b159a9f840ca714c3d5"
335 +ARCHIVE_URI="https://${EGO_PN}/archive/RELEASE.${MY_PV}.tar.gz -> ${P}.tar.gz
336 + ${EGO_VENDOR_URI}"
337 +
338 +KEYWORDS="~amd64 ~amd64-linux"
339 +
340 +DESCRIPTION="An Amazon S3 compatible object storage server"
341 +HOMEPAGE="https://github.com/minio/minio"
342 +SRC_URI="${ARCHIVE_URI}"
343 +LICENSE="Apache-2.0"
344 +SLOT="0"
345 +
346 +RESTRICT="test"
347 +
348 +pkg_setup() {
349 + enewgroup ${PN}
350 + enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
351 +}
352 +
353 +src_prepare() {
354 + default
355 +
356 + pushd src/${EGO_PN} || die
357 +
358 + rm go.mod || die
359 +
360 + sed -i -e "s/time.Now().UTC().Format(time.RFC3339)/\"${MY_PV}\"/"\
361 + -e "s/-s //"\
362 + -e "/time/d"\
363 + -e "s/+ commitID()/+ \"${EGIT_COMMIT}\"/"\
364 + buildscripts/gen-ldflags.go || die
365 +
366 + popd || die
367 +}
368 +
369 +src_compile() {
370 + unset XDG_CACHE_HOME
371 +
372 + pushd src/${EGO_PN} || die
373 + MINIO_RELEASE="${MY_PV}"
374 + go run buildscripts/gen-ldflags.go
375 + GOPATH="${S}" go build --ldflags "$(go run buildscripts/gen-ldflags.go)" -o ${PN} || die
376 + popd || die
377 +}
378 +
379 +src_install() {
380 + pushd src/${EGO_PN} || die
381 + dodoc -r README.md CONTRIBUTING.md MAINTAINERS.md docs
382 + dobin minio
383 + popd || die
384 + newinitd "${FILESDIR}"/${PN}.initd ${PN}
385 + keepdir /var/{lib,log}/${PN}
386 + fowners ${PN}:${PN} /var/{lib,log}/${PN}
387 +}
388
389 diff --git a/net-fs/minio/minio-2019.04.23.23.50.36.ebuild b/net-fs/minio/minio-2019.04.23.23.50.36.ebuild
390 new file mode 100644
391 index 00000000000..275580fb0ff
392 --- /dev/null
393 +++ b/net-fs/minio/minio-2019.04.23.23.50.36.ebuild
394 @@ -0,0 +1,172 @@
395 +# Copyright 1999-2019 Gentoo Authors
396 +# Distributed under the terms of the GNU General Public License v2
397 +
398 +EAPI=7
399 +
400 +EGO_VENDOR=( "gopkg.in/yaml.v2 51d6538a90f86fe93ac480b35f37b2be17fef232 github.com/go-yaml/yaml"
401 + "gopkg.in/olivere/elastic.v5 f72acaba629a7ec879103d17b7426a31bc38e199 github.com/olivere/elastic"
402 + "gopkg.in/Shopify/sarama.v1 879f631812a30a580659e8035e7cda9994bb99ac github.com/Shopify/sarama"
403 + "google.golang.org/api/option bce707a4d0ea3488942724b3bcc1c8338f38f991 github.com/googleapis/google-api-go-client"
404 + "google.golang.org/api/iterator bce707a4d0ea3488942724b3bcc1c8338f38f991 github.com/googleapis/google-api-go-client"
405 + "google.golang.org/api/googleapi bce707a4d0ea3488942724b3bcc1c8338f38f991 github.com/googleapis/google-api-go-client"
406 + "golang.org/x/time 9d24e82272b4f38b78bc8cff74fa936d31ccd8ef github.com/golang/time"
407 + "golang.org/x/sys 81d4e9dc473e5e8c933f2aaeba2a3d81efb9aed2 github.com/golang/sys"
408 + "golang.org/x/net eb5bcb51f2a31c7d5141d810b70815c05d9c9146 github.com/golang/net"
409 + "golang.org/x/text e3703dcdd614d2d7488fff034c75c551ea25da95 github.com/golang/text"
410 + "golang.org/x/crypto 38d8ce5564a5b71b2e3a00553993f1b9a7ae852f github.com/golang/crypto"
411 + "go.uber.org/atomic 1ea20fb1cbb1cc08cbd0d913a96dead89aa18289 github.com/uber-go/atomic"
412 + "github.com/valyala/tcplisten ceec8f93295a060cdb565ec25e4ccf17941dbd55"
413 + "cloud.google.com/go/storage a4ed3b9f8c7419c692a60bbf780ab0f1c4af5ce4 github.com/googleapis/google-cloud-go"
414 + "github.com/tidwall/sjson 25fb082a20e29e83fb7b7ef5f5919166aad1f084"
415 + "github.com/tidwall/gjson eee0b6226f0d1db2675a176fdfaa8419bcad4ca8"
416 + "github.com/tidwall/pretty 1166b9ac2b65e46a43d8618d30d1554f4652d49b"
417 + "github.com/tidwall/match 33827db735fff6510490d69a8622612558a557ed"
418 + "github.com/streadway/amqp 14f78b41ce6da3d698c2ef2cc8c0ea7ce9e26688"
419 + "github.com/skyrings/skyring-common d1c0bb1cbd5ed8438be1385c85c4f494608cde1e"
420 + "github.com/segmentio/go-prompt f0d19b6901ade831d5a3204edc0d6a7d6457fbb2"
421 + "github.com/rs/cors 9a47f48565a795472d43519dd49aac781f3034fb"
422 + "github.com/rjeczalik/notify 69d839f37b13a8cb7a78366f7633a4071cb43be7"
423 + "github.com/rcrowley/go-metrics 3113b8401b8a98917cde58f8bbd42a1b1c03b1fd"
424 + "github.com/prometheus/client_golang 505eaef017263e299324067d40ca2c48f6a2cf50"
425 + "github.com/prometheus/procfs 55ae3d9d557340b5bc24cd8aa5f6fa2c2ab31352"
426 + "github.com/prometheus/common 5df5c82edb7502fd6cbe093223a19b6e1231494f"
427 + "github.com/prometheus/client_model fd36f4220a901265f90734c3183c5f0c91daa0b8"
428 + "github.com/pkg/profile f6fe06335df110bcf1ed6d4e852b760bfc15beee"
429 + "github.com/pkg/errors ba968bfe8b2f7e042a574c888954fccecfa385b4"
430 + "github.com/pierrec/lz4 315a67e90e415bcdaff33057da191569bf4d8479"
431 + "github.com/nsqio/go-nsq eee57a3ac4174c55924125bb15eeeda8cffb6e6f"
432 + "github.com/nats-io/nats 70fe06cee50d4b6f98248d9675fb55f2a3aa7228"
433 + "github.com/nats-io/nuid 3024a71c3cbe30667286099921591e6fcc328230"
434 + "github.com/nats-io/nkeys 1546a3320a8f195a5b5c84aef8309377c2e411d5"
435 + "github.com/nats-io/go-nats 70fe06cee50d4b6f98248d9675fb55f2a3aa7228"
436 + "github.com/nats-io/go-nats-streaming 4366d43a0648b4997ed32080f937e8702ab86c48"
437 + "github.com/Azure/azure-sdk-for-go d659f2a91175cac99aa5627d09b83026eacc978d"
438 + "github.com/Azure/go-autorest 3b1641ed03046f2ee28d73f7a51e5b884d55b92a"
439 + "github.com/DataDog/zstd c7161f8c63c045cbc7ca051dcc969dd0e4054de2"
440 + "github.com/mailru/easyjson 1ea4449da9834f4d333f1cc461c374aea217d249"
441 + "github.com/gorilla/mux a7962380ca08b5a188038c69871b8d3fbdf31e89"
442 + "github.com/coredns/coredns 8dcc7fccd74454134b33c8bc9f780ed6d7f076cf"
443 + "github.com/matttproud/golang_protobuf_extensions c182affec369e30f25d3eb8cd8a478dee585ae7d"
444 + "github.com/eapache/go-resiliency 842e16ec2c98ef0c59eebfe60d2d3500a793ba19"
445 + "github.com/minio/minio-go 5325257a208fc630aaaac31bc00789acbc998c14"
446 + "github.com/alecthomas/participle 98cb121381c371cf1542c7ae145e485d703aec0b"
447 + "github.com/aliyun/aliyun-oss-go-sdk 86c17b95fcd5db33628a61e492fb4a1a937d5906"
448 + "github.com/bcicen/jstream 16c1f8af81c2a9967b30d365a29472126274f998"
449 + "github.com/beorn7/perks 3a771d992973f24aa725d07868b467d1ddfceafb"
450 + "github.com/cheggaaa/pb f907f6f5dd81f77c2bbc1cde92e4c5a04720cb11"
451 + "github.com/gogo/protobuf 382325bbbb4d1c850eec1f3ec92a1a16f502d68b"
452 + "github.com/davecgh/go-spew d8f796af33cc11cb798c1aaeb27a4ebc5099927d"
453 + "github.com/inconshreveable/go-update 8152e7eb6ccf8679a64582a66b78519688d156ad"
454 + "github.com/howeyc/gopass bf9dde6d0d2c004a008c27aaee91170c786f6db8"
455 + "github.com/mitchellh/go-homedir af06845cf3004701891bf4fdb884bfe4920b3727"
456 + "github.com/klauspost/pgzip 083b1c3f84dd6486588802e5ce295de3a7f41a8b"
457 + "github.com/marstr/guid 8bd9a64bf37eb297b492a4101fb28e80ac0b290f"
458 + "github.com/coreos/etcd d57e8b8d97adfc4a6c224fe116714bf1a1f3beb9"
459 + "github.com/dgrijalva/jwt-go 06ea1031745cb8b3dab3f6a236daf2b0aa468b7e"
460 + "github.com/gorilla/rpc bffcfa752ad4e523cc8f720afeb5b985ed41ae16"
461 + "github.com/djherbis/atime 8e47e0e01d08df8b9f840d74299c8ab70a024a30"
462 + "github.com/dustin/go-humanize 9f541cc9db5d55bce703bd99987c9d5cb8eea45e"
463 + "github.com/eapache/go-xerial-snappy 776d5712da21bc4762676d614db1d8a64f4238b0"
464 + "github.com/eapache/queue 093482f3f8ce946c05bcba64badd2c82369e084d"
465 + "github.com/golang/protobuf d3c38a4eb4970272b87a425ae00ccc4548e2f9bb"
466 + "github.com/fatih/structs 4966fc68f5b7593aafa6cbbba2d65ec6e1416047"
467 + "github.com/minio/parquet-go 9d767baf16793cc4b7fd55d642474c36c077ef77"
468 + "gopkg.in/ini.v1 c85607071cf08ca1adaf48319cd1aa322e81d8c1 github.com/go-ini/ini"
469 + "google.golang.org/grpc 3507fb8e1a5ad030303c106fef3a47c9fdad16ad github.com/grpc/grpc-go"
470 + "google.golang.org/genproto 64821d5d210748c883cd2b809589555ae4654203 github.com/google/go-genproto"
471 + "go.opencensus.io 43463a80402d8447b7fce0d2c58edf1687ff0b58 github.com/census-instrumentation/opencensus-go"
472 + "git.apache.org/thrift.git c9b1e29bc9e0702d7441383358d565e1e76ccea7 github.com/apache/thrift"
473 + "github.com/elazarl/go-bindata-assetfs 30f82fa23fd844bd5bb1e5f216db87fd77b5eb43"
474 + "github.com/eclipse/paho.mqtt.golang 20337d8c394721c308cc6ec096990ee451a7cd7f"
475 + "github.com/klauspost/compress 30be6041bed523c18e269a700ebd9c2ea9328574"
476 + "github.com/hashicorp/vault 36aa8c8dd1936e10ebd7a4c1d412ae0e6f7900bd"
477 + "github.com/fatih/color 5b77d2a35fb0ede96d138fc9a99f5c9b6aef11b4"
478 + "github.com/miekg/dns 73601d4aed9d844322611759d7f3619110b7c88e"
479 + "github.com/klauspost/reedsolomon a9588190c00b0ccd742218388f6ff68bbad83e5c"
480 + "github.com/gomodule/redigo 9c11da706d9b7902c6da69c592f75637793fe121"
481 + "github.com/go-sql-driver/mysql 72cd26f257d44c1114970e19afddcd812016007e"
482 + "github.com/gorilla/handlers 7e0847f9db758cdebd26c149d0ae9d5d0b9c98ce"
483 + "github.com/mattn/go-isatty c2a7a6ca930a4cd0bc33a3f298eb71960732a3a7"
484 + "github.com/satori/go.uuid f58768cc1a7a7e77a3bd49e98cdd21419399b6a3"
485 + "github.com/golang/snappy 2a8bb927dd31d8daada140a5d09578521ce5c36a"
486 + "github.com/klauspost/cpuid e7e905edc00ea8827e58662220139109efea09db"
487 + "contrib.go.opencensus.io/exporter/ocagent 902c0ccba68df93f7fefbe7e7c6f16be33108b40 github.com/census-ecosystem/opencensus-go-exporter-ocagent"
488 + "github.com/lib/pq 4ded0e9383f75c197b3a2aaa6d590ac52df6fd79"
489 + "github.com/mattn/go-runewidth 3ee7d812e62a0804a7d0a324e0249ca2db3476d3"
490 + "github.com/census-instrumentation/opencensus-proto a105b96453fe85139acc07b68de48f2cbdd71249"
491 + "github.com/minio/cli 8683fa7fef37cc8cb092f47bdb6b403e0049f9ee"
492 + "github.com/minio/mc a1355e50e2e8984d645cc7745230c42b27396341"
493 + "google.golang.org/api bce707a4d0ea3488942724b3bcc1c8338f38f991 github.com/googleapis/google-api-go-client"
494 + "github.com/grpc-ecosystem/grpc-gateway 20f268a412e5b342ebfb1a0eef7c3b7bd6c260ea"
495 + "github.com/mattn/go-colorable 3a70a971f94a22f2fa562ffcc7a0eb45f5daf045"
496 + "github.com/minio/blazer 2081f5bf046503f576d8712253724fbf2950fffe"
497 + "github.com/minio/dsync fb604afd87b2a095432c17af2dda742960ef111e"
498 + "github.com/minio/highwayhash 02ca4b43caa3297fbb615700d8800acc7933be98"
499 + "github.com/minio/lsync a4e43e3d0887e88d151bb3f90f678178b4ec0c5f"
500 + "github.com/minio/sha256-simd 05b4dd3047e5d6e86cb4e0477164b850cd896261"
501 + "github.com/minio/sio 035b4ef8c449ba2ba21ec143c91964e76a1fb68c"
502 + "golang.org/x/sync e225da77a7e68af35c70ccbf71af2b83e6acac3c github.com/golang/sync"
503 + "golang.org/x/oauth2 9f3314589c9a9136388751d9adae6b0ed400978a github.com/golang/oauth2"
504 + "cloud.google.com/go 458e1f376a2b44413160b5d301183b65debaa3f6 github.com/googleapis/google-cloud-go"
505 + "github.com/googleapis/gax-go beaecbbdd8af86aa3acf14180d53828ce69400b2"
506 + "github.com/hashicorp/golang-lru 7087cb70de9f7a8bc0a10c375cb0d2280a8edf9c" )
507 +
508 +inherit user golang-build golang-vcs-snapshot
509 +
510 +EGO_PN="github.com/minio/minio"
511 +MY_PV="$(ver_cut 1-3)T$(ver_cut 4-7)Z"
512 +MY_PV=${MY_PV//./-}
513 +EGIT_COMMIT="ce419c98352324caa4c79b159a9f840ca714c3d5"
514 +ARCHIVE_URI="https://${EGO_PN}/archive/RELEASE.${MY_PV}.tar.gz -> ${P}.tar.gz
515 + ${EGO_VENDOR_URI}"
516 +
517 +KEYWORDS="~amd64 ~amd64-linux"
518 +
519 +DESCRIPTION="An Amazon S3 compatible object storage server"
520 +HOMEPAGE="https://github.com/minio/minio"
521 +SRC_URI="${ARCHIVE_URI}"
522 +LICENSE="Apache-2.0"
523 +SLOT="0"
524 +
525 +RESTRICT="test"
526 +
527 +pkg_setup() {
528 + enewgroup ${PN}
529 + enewuser ${PN} -1 -1 /var/lib/${PN} ${PN}
530 +}
531 +
532 +src_prepare() {
533 + default
534 +
535 + pushd src/${EGO_PN} || die
536 +
537 + rm go.mod || die
538 +
539 + sed -i -e "s/time.Now().UTC().Format(time.RFC3339)/\"${MY_PV}\"/"\
540 + -e "s/-s //"\
541 + -e "/time/d"\
542 + -e "s/+ commitID()/+ \"${EGIT_COMMIT}\"/"\
543 + buildscripts/gen-ldflags.go || die
544 +
545 + popd || die
546 +}
547 +
548 +src_compile() {
549 + unset XDG_CACHE_HOME
550 +
551 + pushd src/${EGO_PN} || die
552 + MINIO_RELEASE="${MY_PV}"
553 + go run buildscripts/gen-ldflags.go
554 + GOPATH="${S}" go build --ldflags "$(go run buildscripts/gen-ldflags.go)" -o ${PN} || die
555 + popd || die
556 +}
557 +
558 +src_install() {
559 + pushd src/${EGO_PN} || die
560 + dodoc -r README.md CONTRIBUTING.md MAINTAINERS.md docs
561 + dobin minio
562 + popd || die
563 + newinitd "${FILESDIR}"/${PN}.initd ${PN}
564 + keepdir /var/{lib,log}/${PN}
565 + fowners ${PN}:${PN} /var/{lib,log}/${PN}
566 +}