net-im/wemeet: Wemeet - Tencent Video Conferencing (#1186)
[gentoo-zh.git] / net-proxy / Xray / Xray-1.4.2-r2.ebuild
blob57fe85aa5c7666837be5d2c9d6a7e2d3eba44744
1 # Copyright 1999-2021 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=7
5 inherit go-module systemd
7 DESCRIPTION="Xray, Penetrates Everything."
8 HOMEPAGE="https://github.com/XTLS/Xray-core
9         https://www.maxmind.com"
11 GEOIP_PV="202104130230"
12 GEOSITE_PV="20210413102953"
14 EGO_SUM=(
15         "cloud.google.com/go v0.26.0/go.mod"
16         "cloud.google.com/go v0.31.0/go.mod"
17         "cloud.google.com/go v0.34.0/go.mod"
18         "cloud.google.com/go v0.37.0/go.mod"
19         "dmitri.shuralyov.com/app/changes v0.0.0-20180602232624-0a106ad413e3/go.mod"
20         "dmitri.shuralyov.com/html/belt v0.0.0-20180602232347-f7d459c86be0/go.mod"
21         "dmitri.shuralyov.com/service/change v0.0.0-20181023043359-a85b471d5412/go.mod"
22         "dmitri.shuralyov.com/state v0.0.0-20180228185332-28bcc343414c/go.mod"
23         "git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999/go.mod"
24         "github.com/BurntSushi/toml v0.3.1/go.mod"
25         "github.com/OneOfOne/xxhash v1.2.2/go.mod"
26         "github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod"
27         "github.com/antihax/optional v1.0.0/go.mod"
28         "github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod"
29         "github.com/bradfitz/go-smtpd v0.0.0-20170404230938-deb6d6237625/go.mod"
30         "github.com/buger/jsonparser v0.0.0-20181115193947-bf1c66bbce23/go.mod"
31         "github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod"
32         "github.com/cespare/xxhash v1.1.0/go.mod"
33         "github.com/cheekybits/genny v1.0.0"
34         "github.com/cheekybits/genny v1.0.0/go.mod"
35         "github.com/chzyer/logex v1.1.10/go.mod"
36         "github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod"
37         "github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod"
38         "github.com/client9/misspell v0.3.4/go.mod"
39         "github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod"
40         "github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod"
41         "github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod"
42         "github.com/coreos/go-systemd v0.0.0-20181012123002-c6f51f82210d/go.mod"
43         "github.com/davecgh/go-spew v1.1.0/go.mod"
44         "github.com/davecgh/go-spew v1.1.1"
45         "github.com/davecgh/go-spew v1.1.1/go.mod"
46         "github.com/dgryski/go-metro v0.0.0-20200812162917-85c65e2d0165"
47         "github.com/dgryski/go-metro v0.0.0-20200812162917-85c65e2d0165/go.mod"
48         "github.com/dustin/go-humanize v1.0.0/go.mod"
49         "github.com/envoyproxy/go-control-plane v0.9.0/go.mod"
50         "github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod"
51         "github.com/envoyproxy/go-control-plane v0.9.4/go.mod"
52         "github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod"
53         "github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod"
54         "github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod"
55         "github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod"
56         "github.com/francoispqt/gojay v1.2.13/go.mod"
57         "github.com/fsnotify/fsnotify v1.4.7/go.mod"
58         "github.com/fsnotify/fsnotify v1.4.9"
59         "github.com/fsnotify/fsnotify v1.4.9/go.mod"
60         "github.com/ghodss/yaml v1.0.0/go.mod"
61         "github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32"
62         "github.com/ghodss/yaml v1.0.1-0.20190212211648-25d852aebe32/go.mod"
63         "github.com/gliderlabs/ssh v0.1.1/go.mod"
64         "github.com/go-errors/errors v1.0.1/go.mod"
65         "github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0"
66         "github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod"
67         "github.com/gogo/protobuf v1.1.1/go.mod"
68         "github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod"
69         "github.com/golang/lint v0.0.0-20180702182130-06c8688daad7/go.mod"
70         "github.com/golang/mock v1.1.1/go.mod"
71         "github.com/golang/mock v1.2.0/go.mod"
72         "github.com/golang/mock v1.4.4/go.mod"
73         "github.com/golang/mock v1.6.0"
74         "github.com/golang/mock v1.6.0/go.mod"
75         "github.com/golang/protobuf v1.2.0/go.mod"
76         "github.com/golang/protobuf v1.3.1/go.mod"
77         "github.com/golang/protobuf v1.3.2/go.mod"
78         "github.com/golang/protobuf v1.3.3/go.mod"
79         "github.com/golang/protobuf v1.4.0-rc.1/go.mod"
80         "github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod"
81         "github.com/golang/protobuf v1.4.0-rc.2/go.mod"
82         "github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod"
83         "github.com/golang/protobuf v1.4.0/go.mod"
84         "github.com/golang/protobuf v1.4.1/go.mod"
85         "github.com/golang/protobuf v1.4.2/go.mod"
86         "github.com/golang/protobuf v1.4.3/go.mod"
87         "github.com/golang/protobuf v1.5.0/go.mod"
88         "github.com/golang/protobuf v1.5.2"
89         "github.com/golang/protobuf v1.5.2/go.mod"
90         "github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod"
91         "github.com/google/go-cmp v0.2.0/go.mod"
92         "github.com/google/go-cmp v0.3.0/go.mod"
93         "github.com/google/go-cmp v0.3.1/go.mod"
94         "github.com/google/go-cmp v0.4.0/go.mod"
95         "github.com/google/go-cmp v0.5.0/go.mod"
96         "github.com/google/go-cmp v0.5.1/go.mod"
97         "github.com/google/go-cmp v0.5.5/go.mod"
98         "github.com/google/go-cmp v0.5.6"
99         "github.com/google/go-cmp v0.5.6/go.mod"
100         "github.com/google/go-github v17.0.0+incompatible/go.mod"
101         "github.com/google/go-querystring v1.0.0/go.mod"
102         "github.com/google/martian v2.1.0+incompatible/go.mod"
103         "github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod"
104         "github.com/google/uuid v1.1.2/go.mod"
105         "github.com/googleapis/gax-go v2.0.0+incompatible/go.mod"
106         "github.com/googleapis/gax-go/v2 v2.0.3/go.mod"
107         "github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod"
108         "github.com/gorilla/websocket v1.4.2"
109         "github.com/gorilla/websocket v1.4.2/go.mod"
110         "github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod"
111         "github.com/grpc-ecosystem/grpc-gateway v1.5.0/go.mod"
112         "github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod"
113         "github.com/h12w/go-socks5 v0.0.0-20200522160539-76189e178364"
114         "github.com/h12w/go-socks5 v0.0.0-20200522160539-76189e178364/go.mod"
115         "github.com/hpcloud/tail v1.0.0/go.mod"
116         "github.com/jellevandenhooff/dkim v0.0.0-20150330215556-f50fe3d243e1/go.mod"
117         "github.com/json-iterator/go v1.1.6/go.mod"
118         "github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod"
119         "github.com/kisielk/gotool v1.0.0/go.mod"
120         "github.com/kr/pretty v0.1.0"
121         "github.com/kr/pretty v0.1.0/go.mod"
122         "github.com/kr/pty v1.1.1/go.mod"
123         "github.com/kr/pty v1.1.3/go.mod"
124         "github.com/kr/text v0.1.0"
125         "github.com/kr/text v0.1.0/go.mod"
126         "github.com/lucas-clemente/quic-go v0.23.0"
127         "github.com/lucas-clemente/quic-go v0.23.0/go.mod"
128         "github.com/lunixbochs/vtclean v1.0.0/go.mod"
129         "github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod"
130         "github.com/marten-seemann/qpack v0.2.1/go.mod"
131         "github.com/marten-seemann/qtls-go1-15 v0.1.4/go.mod"
132         "github.com/marten-seemann/qtls-go1-16 v0.1.4"
133         "github.com/marten-seemann/qtls-go1-16 v0.1.4/go.mod"
134         "github.com/marten-seemann/qtls-go1-17 v0.1.0"
135         "github.com/marten-seemann/qtls-go1-17 v0.1.0/go.mod"
136         "github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod"
137         "github.com/microcosm-cc/bluemonday v1.0.1/go.mod"
138         "github.com/miekg/dns v1.1.43"
139         "github.com/miekg/dns v1.1.43/go.mod"
140         "github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod"
141         "github.com/modern-go/reflect2 v1.0.1/go.mod"
142         "github.com/neelance/astrewrite v0.0.0-20160511093645-99348263ae86/go.mod"
143         "github.com/neelance/sourcemap v0.0.0-20151028013722-8c68805598ab/go.mod"
144         "github.com/nxadm/tail v1.4.4/go.mod"
145         "github.com/nxadm/tail v1.4.8"
146         "github.com/nxadm/tail v1.4.8/go.mod"
147         "github.com/onsi/ginkgo v1.6.0/go.mod"
148         "github.com/onsi/ginkgo v1.12.1/go.mod"
149         "github.com/onsi/ginkgo v1.14.0/go.mod"
150         "github.com/onsi/ginkgo v1.16.2/go.mod"
151         "github.com/onsi/ginkgo v1.16.4"
152         "github.com/onsi/ginkgo v1.16.4/go.mod"
153         "github.com/onsi/gomega v1.7.1/go.mod"
154         "github.com/onsi/gomega v1.10.1/go.mod"
155         "github.com/onsi/gomega v1.13.0"
156         "github.com/onsi/gomega v1.13.0/go.mod"
157         "github.com/openzipkin/zipkin-go v0.1.1/go.mod"
158         "github.com/pelletier/go-toml v1.8.1"
159         "github.com/pelletier/go-toml v1.8.1/go.mod"
160         "github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2"
161         "github.com/phayes/freeport v0.0.0-20180830031419-95f893ade6f2/go.mod"
162         "github.com/pires/go-proxyproto v0.6.0"
163         "github.com/pires/go-proxyproto v0.6.0/go.mod"
164         "github.com/pkg/errors v0.8.1/go.mod"
165         "github.com/pmezard/go-difflib v1.0.0"
166         "github.com/pmezard/go-difflib v1.0.0/go.mod"
167         "github.com/prometheus/client_golang v0.8.0/go.mod"
168         "github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod"
169         "github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod"
170         "github.com/prometheus/common v0.0.0-20180801064454-c7de2306084e/go.mod"
171         "github.com/prometheus/procfs v0.0.0-20180725123919-05ee40e3a273/go.mod"
172         "github.com/refraction-networking/utls v0.0.0-20210713165636-0b2885c8c0d4"
173         "github.com/refraction-networking/utls v0.0.0-20210713165636-0b2885c8c0d4/go.mod"
174         "github.com/rogpeppe/fastuuid v1.2.0/go.mod"
175         "github.com/russross/blackfriday v1.5.2/go.mod"
176         "github.com/seiflotfy/cuckoofilter v0.0.0-20201222105146-bc6005554a0c"
177         "github.com/seiflotfy/cuckoofilter v0.0.0-20201222105146-bc6005554a0c/go.mod"
178         "github.com/sergi/go-diff v1.0.0/go.mod"
179         "github.com/shurcooL/component v0.0.0-20170202220835-f88ec8f54cc4/go.mod"
180         "github.com/shurcooL/events v0.0.0-20181021180414-410e4ca65f48/go.mod"
181         "github.com/shurcooL/github_flavored_markdown v0.0.0-20181002035957-2122de532470/go.mod"
182         "github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod"
183         "github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod"
184         "github.com/shurcooL/gofontwoff v0.0.0-20180329035133-29b52fc0a18d/go.mod"
185         "github.com/shurcooL/gopherjslib v0.0.0-20160914041154-feb6d3990c2c/go.mod"
186         "github.com/shurcooL/highlight_diff v0.0.0-20170515013008-09bb4053de1b/go.mod"
187         "github.com/shurcooL/highlight_go v0.0.0-20181028180052-98c3abbbae20/go.mod"
188         "github.com/shurcooL/home v0.0.0-20181020052607-80b7ffcb30f9/go.mod"
189         "github.com/shurcooL/htmlg v0.0.0-20170918183704-d01228ac9e50/go.mod"
190         "github.com/shurcooL/httperror v0.0.0-20170206035902-86b7830d14cc/go.mod"
191         "github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371/go.mod"
192         "github.com/shurcooL/httpgzip v0.0.0-20180522190206-b1c53ac65af9/go.mod"
193         "github.com/shurcooL/issues v0.0.0-20181008053335-6292fdc1e191/go.mod"
194         "github.com/shurcooL/issuesapp v0.0.0-20180602232740-048589ce2241/go.mod"
195         "github.com/shurcooL/notifications v0.0.0-20181007000457-627ab5aea122/go.mod"
196         "github.com/shurcooL/octicon v0.0.0-20181028054416-fa4f57f9efb2/go.mod"
197         "github.com/shurcooL/reactions v0.0.0-20181006231557-f2e0b4ca5b82/go.mod"
198         "github.com/shurcooL/sanitized_anchor_name v0.0.0-20170918181015-86672fcb3f95/go.mod"
199         "github.com/shurcooL/users v0.0.0-20180125191416-49c67e49c537/go.mod"
200         "github.com/shurcooL/webdavfs v0.0.0-20170829043945-18c3829fa133/go.mod"
201         "github.com/sourcegraph/annotate v0.0.0-20160123013949-f4cad6c6324d/go.mod"
202         "github.com/sourcegraph/syntaxhighlight v0.0.0-20170531221838-bd320f5d308e/go.mod"
203         "github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod"
204         "github.com/stretchr/objx v0.1.0/go.mod"
205         "github.com/stretchr/testify v1.2.2/go.mod"
206         "github.com/stretchr/testify v1.5.1/go.mod"
207         "github.com/stretchr/testify v1.6.1/go.mod"
208         "github.com/stretchr/testify v1.7.0"
209         "github.com/stretchr/testify v1.7.0/go.mod"
210         "github.com/tarm/serial v0.0.0-20180830185346-98f6abe2eb07/go.mod"
211         "github.com/viant/assertly v0.4.8/go.mod"
212         "github.com/viant/toolbox v0.24.0/go.mod"
213         "github.com/xtls/go v0.0.0-20201118062508-3632bf3b7499"
214         "github.com/xtls/go v0.0.0-20201118062508-3632bf3b7499/go.mod"
215         "github.com/yuin/goldmark v1.2.1/go.mod"
216         "github.com/yuin/goldmark v1.3.5/go.mod"
217         "go.opencensus.io v0.18.0/go.mod"
218         "go.opentelemetry.io/proto/otlp v0.7.0/go.mod"
219         "go.starlark.net v0.0.0-20210602144842-1cdb82c9e17a"
220         "go.starlark.net v0.0.0-20210602144842-1cdb82c9e17a/go.mod"
221         "go4.org v0.0.0-20180809161055-417644f6feb5/go.mod"
222         "golang.org/x/build v0.0.0-20190111050920-041ab4dc3f9d/go.mod"
223         "golang.org/x/crypto v0.0.0-20181030102418-4d3f4d9ffa16/go.mod"
224         "golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod"
225         "golang.org/x/crypto v0.0.0-20190313024323-a1f597ede03a/go.mod"
226         "golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod"
227         "golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d/go.mod"
228         "golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod"
229         "golang.org/x/crypto v0.0.0-20210817164053-32db794688a5"
230         "golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod"
231         "golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod"
232         "golang.org/x/lint v0.0.0-20180702182130-06c8688daad7/go.mod"
233         "golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod"
234         "golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod"
235         "golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod"
236         "golang.org/x/mod v0.3.0/go.mod"
237         "golang.org/x/mod v0.4.2"
238         "golang.org/x/mod v0.4.2/go.mod"
239         "golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod"
240         "golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod"
241         "golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod"
242         "golang.org/x/net v0.0.0-20181029044818-c44066c5c816/go.mod"
243         "golang.org/x/net v0.0.0-20181106065722-10aee1819953/go.mod"
244         "golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod"
245         "golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod"
246         "golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod"
247         "golang.org/x/net v0.0.0-20190313220215-9f648a60d977/go.mod"
248         "golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod"
249         "golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod"
250         "golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod"
251         "golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod"
252         "golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod"
253         "golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod"
254         "golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod"
255         "golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod"
256         "golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod"
257         "golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d"
258         "golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod"
259         "golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod"
260         "golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4/go.mod"
261         "golang.org/x/oauth2 v0.0.0-20181203162652-d668ce993890/go.mod"
262         "golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod"
263         "golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod"
264         "golang.org/x/perf v0.0.0-20180704124530-6e6d33e29852/go.mod"
265         "golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod"
266         "golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod"
267         "golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod"
268         "golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod"
269         "golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod"
270         "golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod"
271         "golang.org/x/sync v0.0.0-20210220032951-036812b2e83c"
272         "golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod"
273         "golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod"
274         "golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod"
275         "golang.org/x/sys v0.0.0-20181029174526-d69651ed3497/go.mod"
276         "golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod"
277         "golang.org/x/sys v0.0.0-20190316082340-a2f829d7f35f/go.mod"
278         "golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod"
279         "golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod"
280         "golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod"
281         "golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod"
282         "golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod"
283         "golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod"
284         "golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod"
285         "golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod"
286         "golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod"
287         "golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod"
288         "golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod"
289         "golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod"
290         "golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod"
291         "golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod"
292         "golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod"
293         "golang.org/x/sys v0.0.0-20210820121016-41cdb8703e55"
294         "golang.org/x/sys v0.0.0-20210820121016-41cdb8703e55/go.mod"
295         "golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod"
296         "golang.org/x/text v0.3.0/go.mod"
297         "golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod"
298         "golang.org/x/text v0.3.2/go.mod"
299         "golang.org/x/text v0.3.3/go.mod"
300         "golang.org/x/text v0.3.6"
301         "golang.org/x/text v0.3.6/go.mod"
302         "golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod"
303         "golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod"
304         "golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod"
305         "golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod"
306         "golang.org/x/tools v0.0.0-20181030000716-a0a13e073c7b/go.mod"
307         "golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod"
308         "golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod"
309         "golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod"
310         "golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod"
311         "golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod"
312         "golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod"
313         "golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod"
314         "golang.org/x/tools v0.1.1"
315         "golang.org/x/tools v0.1.1/go.mod"
316         "golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod"
317         "golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod"
318         "golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod"
319         "golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1"
320         "golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod"
321         "google.golang.org/api v0.0.0-20180910000450-7ca32eb868bf/go.mod"
322         "google.golang.org/api v0.0.0-20181030000543-1d582fd0359e/go.mod"
323         "google.golang.org/api v0.1.0/go.mod"
324         "google.golang.org/appengine v1.1.0/go.mod"
325         "google.golang.org/appengine v1.2.0/go.mod"
326         "google.golang.org/appengine v1.3.0/go.mod"
327         "google.golang.org/appengine v1.4.0/go.mod"
328         "google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod"
329         "google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod"
330         "google.golang.org/genproto v0.0.0-20181029155118-b69ba1387ce2/go.mod"
331         "google.golang.org/genproto v0.0.0-20181202183823-bd91e49a0898/go.mod"
332         "google.golang.org/genproto v0.0.0-20190306203927-b5d61aea6440/go.mod"
333         "google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod"
334         "google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod"
335         "google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013"
336         "google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod"
337         "google.golang.org/grpc v1.14.0/go.mod"
338         "google.golang.org/grpc v1.16.0/go.mod"
339         "google.golang.org/grpc v1.17.0/go.mod"
340         "google.golang.org/grpc v1.19.0/go.mod"
341         "google.golang.org/grpc v1.23.0/go.mod"
342         "google.golang.org/grpc v1.25.1/go.mod"
343         "google.golang.org/grpc v1.27.0/go.mod"
344         "google.golang.org/grpc v1.33.1/go.mod"
345         "google.golang.org/grpc v1.36.0/go.mod"
346         "google.golang.org/grpc v1.40.0"
347         "google.golang.org/grpc v1.40.0/go.mod"
348         "google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod"
349         "google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod"
350         "google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod"
351         "google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod"
352         "google.golang.org/protobuf v1.21.0/go.mod"
353         "google.golang.org/protobuf v1.22.0/go.mod"
354         "google.golang.org/protobuf v1.23.0/go.mod"
355         "google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod"
356         "google.golang.org/protobuf v1.25.0/go.mod"
357         "google.golang.org/protobuf v1.26.0-rc.1/go.mod"
358         "google.golang.org/protobuf v1.26.0/go.mod"
359         "google.golang.org/protobuf v1.27.1"
360         "google.golang.org/protobuf v1.27.1/go.mod"
361         "gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod"
362         "gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127"
363         "gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod"
364         "gopkg.in/fsnotify.v1 v1.4.7/go.mod"
365         "gopkg.in/inf.v0 v0.9.1/go.mod"
366         "gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7"
367         "gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod"
368         "gopkg.in/yaml.v2 v2.2.1/go.mod"
369         "gopkg.in/yaml.v2 v2.2.2/go.mod"
370         "gopkg.in/yaml.v2 v2.2.3/go.mod"
371         "gopkg.in/yaml.v2 v2.2.4/go.mod"
372         "gopkg.in/yaml.v2 v2.3.0/go.mod"
373         "gopkg.in/yaml.v2 v2.4.0"
374         "gopkg.in/yaml.v2 v2.4.0/go.mod"
375         "gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod"
376         "gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c"
377         "gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod"
378         "grpc.go4.org v0.0.0-20170609214715-11d0a25b4919/go.mod"
379         "h12.io/socks v1.0.3"
380         "h12.io/socks v1.0.3/go.mod"
381         "honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod"
382         "honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod"
383         "honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod"
384         "honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod"
385         "sourcegraph.com/sourcegraph/go-diff v0.5.0/go.mod"
386         "sourcegraph.com/sqs/pbtypes v0.0.0-20180604144634-d3ebe8f20ae4/go.mod"
388 go-module_set_globals
390 SRC_URI="https://github.com/XTLS/Xray-core/archive/v${PV}.tar.gz -> ${P}.tar.gz
391         https://github.com/XTLS/Xray-core/pull/682.patch
392         https://github.com/v2fly/geoip/releases/download/${GEOIP_PV}/geoip.dat -> ${P}-geoip-${GEOIP_PV}.dat
393         https://github.com/v2fly/domain-list-community/releases/download/${GEOSITE_PV}/dlc.dat -> ${P}-geosite-${GEOSITE_PV}.dat
394         ${EGO_SUM_SRC_URI}"
395 RESTRICT="mirror"
397 LICENSE="MPL-2.0 CC-BY-SA-4.0"
398 SLOT="0"
399 KEYWORDS="amd64 ~arm ~arm64 ~x86"
400 IUSE=""
402 BDEPEND=">=dev-lang/go-1.16.2:="
403 RDEPEND="app-misc/ca-certificates"
405 S="${WORKDIR}/${PN}-core-${PV}"
407 src_prepare() {
408         eapply -p1 "${DISTDIR}/682.patch"
409         default
412 src_compile() {
413         go build -v -work -x -o bin/xray -trimpath -ldflags "-buildid=" ./main
416 src_install() {
417         dobin bin/xray
419         insinto /usr/share/xray
420         newins "${DISTDIR}/${P}-geoip-${GEOIP_PV}.dat" geoip.dat
421         newins "${DISTDIR}/${P}-geosite-${GEOSITE_PV}.dat" geosite.dat
423         newinitd "${FILESDIR}/xray.initd" xray
424         systemd_dounit "${FILESDIR}/xray.service"
425         systemd_newunit "${FILESDIR}/xray_at.service" "xray@.service"
427         keepdir /etc/xray
430 pkg_postinst() {
431         elog
432         elog "Follow the instructions of https://github.com/XTLS/Xray-examples"
433         elog