1 |
commit: 71f585ba85a9696adb49c008a707cdf8c3e46aab |
2 |
Author: Stephan Hartmann <sultan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Apr 28 21:16:05 2021 +0000 |
4 |
Commit: Stephan Hartmann <sultan <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 28 21:16:05 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71f585ba |
7 |
|
8 |
net-misc/croc: bump to 9.1.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.2 |
11 |
Signed-off-by: Stephan Hartmann <sultan <AT> gentoo.org> |
12 |
|
13 |
net-misc/croc/Manifest | 1 + |
14 |
net-misc/croc/croc-9.1.0.ebuild | 149 ++++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 150 insertions(+) |
16 |
|
17 |
diff --git a/net-misc/croc/Manifest b/net-misc/croc/Manifest |
18 |
index 78ad0301d0f..218089a3d5e 100644 |
19 |
--- a/net-misc/croc/Manifest |
20 |
+++ b/net-misc/croc/Manifest |
21 |
@@ -1,5 +1,6 @@ |
22 |
DIST croc-8.6.12.tar.gz 2754360 BLAKE2B e8c9c3c724c542b051a49eddaac71242527dbaaf7efe3e18aa4097aca4be26195d4b1d8a8e688d87173791874026d5f183cb5f3b66a95f495745deacb821ef91 SHA512 36f69bb4b2a33d774141d082f06f702890add252f9ba2b1baf34c745fdca0832a9d1bd40684ed84a50c06b74dd363f71b06b86c7052540a346e603bf42deb1b8 |
23 |
DIST croc-9.0.0.tar.gz 2744585 BLAKE2B 87b9cd6455cae18e422652f3633d1047f873ca86504b715af90740015fccb0f060fc2af94a5600b902f25dfd45ba1a285502ffc36065dc5f626925d02f4e14a3 SHA512 978085df85e813a9502ce15d9ece7f06718061ce3cc9a2274c5af0ac8a2db78b28c2bfeb3210361bb8c6011b91528bfcede6185a897c5a1a548356a434876f36 |
24 |
+DIST croc-9.1.0.tar.gz 2744612 BLAKE2B db189efe91cba9265de9114a8df97482789659bebfe4c374197b003262af3b91a8622099cccbc255bd6441d05148a10af4f0bf5f06f59ac7986a830489ba8bea SHA512 a5a048448b9890907499240c0aa0707db53da45cbb51e2e7e1f5b78537118ff83ce2e91ae1ef6e1a57c8a9d0e682265621e23613cd0dad5ae9158d57df67a0be |
25 |
DIST github.com%2F!burnt!sushi%2Ftoml%2F@v%2Fv0.3.1.mod 34 BLAKE2B ce54a247aef91043830bdf0603c8452ba38eceb1495af6e7a74c9119234a0dc5cd080cb25258c28f5e270acf91189a5ed33e361cbf17de2be5e37dadbda1d90d SHA512 320941bc3b7fb8bc595e6135cbc513a7583d129f0cd92508055291e141191066303cf75148e25198c21f6c6c539a790ea3210f3ecf5de6a2a03b70c753091146 |
26 |
DIST github.com%2F!one!of!one%2Fxxhash%2F@v%2Fv1.2.2.mod 34 BLAKE2B 83966cb7de9bb687f99f17c5c89c03718258d2df34e3dda01b96a2fcb1273a0ba0e3253ba5950d5458193d3e54962371317a8fe85020ae338b44e864bd96667f SHA512 9081c69a2480ef726f547047306dc9136211ac7550882e68d458e2c04e5343366cb08f20525a51c804ab9a554dfe8363a1d9660bc0f9e501e1d996f7b6f320e4 |
27 |
DIST github.com%2F!one!of!one%2Fxxhash%2F@v%2Fv1.2.5.mod 43 BLAKE2B 60ec6257dc0098e3dabfb32b6c668db9159d69dfc7daa06b9d7f9089f4a6dfc11d2b6d39393e1b990f6ca126019baa1b3d99364fe8a6df9ae323626c8d82494c SHA512 be1111b482157b8c8dda0f45a71e587b51ef78cc9676db4cb560bf0e71c112f45bd048bab7f1b0a64651777bb395c0ce210cf3df20a4afe08e66a42b6da89765 |
28 |
|
29 |
diff --git a/net-misc/croc/croc-9.1.0.ebuild b/net-misc/croc/croc-9.1.0.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..346132b16e5 |
32 |
--- /dev/null |
33 |
+++ b/net-misc/croc/croc-9.1.0.ebuild |
34 |
@@ -0,0 +1,149 @@ |
35 |
+# Copyright 2020-2021 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+inherit bash-completion-r1 go-module systemd |
41 |
+ |
42 |
+DESCRIPTION="Easily and securely send things from one computer to another" |
43 |
+HOMEPAGE="https://github.com/schollz/croc" |
44 |
+ |
45 |
+EGO_SUM=( |
46 |
+ "github.com/BurntSushi/toml v0.3.1/go.mod" |
47 |
+ "github.com/OneOfOne/xxhash v1.2.2/go.mod" |
48 |
+ "github.com/OneOfOne/xxhash v1.2.5" |
49 |
+ "github.com/OneOfOne/xxhash v1.2.5/go.mod" |
50 |
+ "github.com/cespare/xxhash v1.1.0" |
51 |
+ "github.com/cespare/xxhash v1.1.0/go.mod" |
52 |
+ "github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod" |
53 |
+ "github.com/cpuguy83/go-md2man/v2 v2.0.0" |
54 |
+ "github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod" |
55 |
+ "github.com/davecgh/go-spew v1.1.0/go.mod" |
56 |
+ "github.com/davecgh/go-spew v1.1.1" |
57 |
+ "github.com/davecgh/go-spew v1.1.1/go.mod" |
58 |
+ "github.com/denisbrodbeck/machineid v1.0.1" |
59 |
+ "github.com/denisbrodbeck/machineid v1.0.1/go.mod" |
60 |
+ "github.com/k0kubun/go-ansi v0.0.0-20180517002512-3bf9e2903213/go.mod" |
61 |
+ "github.com/kalafut/imohash v1.0.0" |
62 |
+ "github.com/kalafut/imohash v1.0.0/go.mod" |
63 |
+ "github.com/kr/pretty v0.1.0" |
64 |
+ "github.com/kr/pretty v0.1.0/go.mod" |
65 |
+ "github.com/kr/pty v1.1.1/go.mod" |
66 |
+ "github.com/kr/text v0.1.0" |
67 |
+ "github.com/kr/text v0.1.0/go.mod" |
68 |
+ "github.com/mattn/go-isatty v0.0.12/go.mod" |
69 |
+ "github.com/mattn/go-runewidth v0.0.10/go.mod" |
70 |
+ "github.com/mattn/go-runewidth v0.0.12" |
71 |
+ "github.com/mattn/go-runewidth v0.0.12/go.mod" |
72 |
+ "github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db" |
73 |
+ "github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db/go.mod" |
74 |
+ "github.com/pmezard/go-difflib v1.0.0" |
75 |
+ "github.com/pmezard/go-difflib v1.0.0/go.mod" |
76 |
+ "github.com/rivo/uniseg v0.1.0/go.mod" |
77 |
+ "github.com/rivo/uniseg v0.2.0" |
78 |
+ "github.com/rivo/uniseg v0.2.0/go.mod" |
79 |
+ "github.com/russross/blackfriday/v2 v2.0.1/go.mod" |
80 |
+ "github.com/russross/blackfriday/v2 v2.1.0" |
81 |
+ "github.com/russross/blackfriday/v2 v2.1.0/go.mod" |
82 |
+ "github.com/schollz/cli/v2 v2.2.1" |
83 |
+ "github.com/schollz/cli/v2 v2.2.1/go.mod" |
84 |
+ "github.com/schollz/logger v1.2.0" |
85 |
+ "github.com/schollz/logger v1.2.0/go.mod" |
86 |
+ "github.com/schollz/mnemonicode v1.0.1" |
87 |
+ "github.com/schollz/mnemonicode v1.0.1/go.mod" |
88 |
+ "github.com/schollz/pake/v3 v3.0.1" |
89 |
+ "github.com/schollz/pake/v3 v3.0.1/go.mod" |
90 |
+ "github.com/schollz/peerdiscovery v1.6.3" |
91 |
+ "github.com/schollz/peerdiscovery v1.6.3/go.mod" |
92 |
+ "github.com/schollz/progressbar/v3 v3.7.6" |
93 |
+ "github.com/schollz/progressbar/v3 v3.7.6/go.mod" |
94 |
+ "github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod" |
95 |
+ "github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod" |
96 |
+ "github.com/spaolacci/murmur3 v1.1.0" |
97 |
+ "github.com/spaolacci/murmur3 v1.1.0/go.mod" |
98 |
+ "github.com/stretchr/objx v0.1.0/go.mod" |
99 |
+ "github.com/stretchr/testify v1.3.0/go.mod" |
100 |
+ "github.com/stretchr/testify v1.6.1" |
101 |
+ "github.com/stretchr/testify v1.6.1/go.mod" |
102 |
+ "github.com/tscholl2/siec v0.0.0-20191122224205-8da93652b094" |
103 |
+ "github.com/tscholl2/siec v0.0.0-20191122224205-8da93652b094/go.mod" |
104 |
+ "golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod" |
105 |
+ "golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83/go.mod" |
106 |
+ "golang.org/x/crypto v0.0.0-20210415154028-4f45737414dc" |
107 |
+ "golang.org/x/crypto v0.0.0-20210415154028-4f45737414dc/go.mod" |
108 |
+ "golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod" |
109 |
+ "golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod" |
110 |
+ "golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod" |
111 |
+ "golang.org/x/net v0.0.0-20210415231046-e915ea6b2b7d" |
112 |
+ "golang.org/x/net v0.0.0-20210415231046-e915ea6b2b7d/go.mod" |
113 |
+ "golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod" |
114 |
+ "golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod" |
115 |
+ "golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod" |
116 |
+ "golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod" |
117 |
+ "golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod" |
118 |
+ "golang.org/x/sys v0.0.0-20210223095934-7937bea0104d/go.mod" |
119 |
+ "golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod" |
120 |
+ "golang.org/x/sys v0.0.0-20210415045647-66c3f260301c" |
121 |
+ "golang.org/x/sys v0.0.0-20210415045647-66c3f260301c/go.mod" |
122 |
+ "golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod" |
123 |
+ "golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod" |
124 |
+ "golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod" |
125 |
+ "golang.org/x/term v0.0.0-20210406210042-72f3dc4e9b72" |
126 |
+ "golang.org/x/term v0.0.0-20210406210042-72f3dc4e9b72/go.mod" |
127 |
+ "golang.org/x/text v0.3.0/go.mod" |
128 |
+ "golang.org/x/text v0.3.3/go.mod" |
129 |
+ "golang.org/x/text v0.3.6" |
130 |
+ "golang.org/x/text v0.3.6/go.mod" |
131 |
+ "golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod" |
132 |
+ "gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod" |
133 |
+ "gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15" |
134 |
+ "gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod" |
135 |
+ "gopkg.in/tylerb/is.v1 v1.1.2" |
136 |
+ "gopkg.in/tylerb/is.v1 v1.1.2/go.mod" |
137 |
+ "gopkg.in/yaml.v2 v2.2.2/go.mod" |
138 |
+ "gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c" |
139 |
+ "gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod" |
140 |
+ ) |
141 |
+go-module_set_globals |
142 |
+ |
143 |
+SRC_URI="https://github.com/schollz/croc/releases/download/v${PV}/${PN}_${PV}_src.tar.gz -> ${P}.tar.gz |
144 |
+ ${EGO_SUM_SRC_URI}" |
145 |
+ |
146 |
+LICENSE="Apache-2.0 BSD BSD-2 MIT" |
147 |
+SLOT="0" |
148 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
149 |
+ |
150 |
+RDEPEND=" |
151 |
+ acct-group/croc |
152 |
+ acct-user/croc |
153 |
+" |
154 |
+ |
155 |
+PATCHES=( |
156 |
+ "${FILESDIR}/${PN}-disable-network-tests.patch" |
157 |
+) |
158 |
+ |
159 |
+DOCS=( README.md ) |
160 |
+ |
161 |
+src_prepare() { |
162 |
+ default |
163 |
+ # Replace User=nobody with User=croc |
164 |
+ sed -i -e "s|\(^User=\).*|\1croc|g" croc.service || die |
165 |
+ # Rename bash completion function |
166 |
+ sed -i -e "s|_cli_bash_autocomplete|_croc|g" \ |
167 |
+ src/install/bash_autocomplete || die |
168 |
+} |
169 |
+ |
170 |
+src_compile() { |
171 |
+ go build || die |
172 |
+} |
173 |
+ |
174 |
+src_install() { |
175 |
+ dobin croc |
176 |
+ systemd_dounit croc.service |
177 |
+ newbashcomp src/install/bash_autocomplete croc |
178 |
+ einstalldocs |
179 |
+} |
180 |
+ |
181 |
+src_test() { |
182 |
+ go test -work ./... || die |
183 |
+} |