commit:     726781403635f1dc96dd7cf740457bba984c686b
Author:     Armas Spann <zappel <AT> simple-co <DOT> de>
AuthorDate: Thu Aug  7 20:14:02 2025 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Thu Aug  7 20:54:24 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72678140

net-misc/croc: add 10.2.4

Signed-off-by: Armas Spann <zappel <AT> simple-co.de>
Part-of: https://github.com/gentoo/gentoo/pull/43374
Closes: https://github.com/gentoo/gentoo/pull/43374
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 net-misc/croc/Manifest           |  2 ++
 net-misc/croc/croc-10.2.4.ebuild | 47 ++++++++++++++++++++++++++++++++++++++++
 net-misc/croc/metadata.xml       |  2 +-
 3 files changed, 50 insertions(+), 1 deletion(-)

diff --git a/net-misc/croc/Manifest b/net-misc/croc/Manifest
index 044e63d53513..35f809868eea 100644
--- a/net-misc/croc/Manifest
+++ b/net-misc/croc/Manifest
@@ -2,3 +2,5 @@ DIST croc-10.1.1-deps.tar.xz 18133544 BLAKE2B 
3f1640936ac0ada372e56060598caa3bc4
 DIST croc-10.1.1.tar.gz 584146 BLAKE2B 
8463d916e2fb8ec73d27678f191dc50dbcce25f971495e0f51ded2d964337d311d02988a92c85948b21f2533921250569b4128c185c165d2678e1a4cb009d974
 SHA512 
1a7038bacc1b4d8235f5193a794e04588f8e17d4d3fa1db463641ca34637c4e81de6fcce1a9805d660f8f2208e563cf2efa37ddd407f43e1fe6032c0a5a06d24
 DIST croc-10.2.2-deps.tar.xz 18236576 BLAKE2B 
7236266132136176c1f76d699e9e2d9be62c5a51bbac028fd9facce96dbb4b2b4f0144652929d2467777938f2de5449882fb334546d9f3c9ee3da15b7789bbed
 SHA512 
8d7007873b0d8179855c2a56c9c2b599fff66d0c266252604a5a2179586dc9e0502729dfb2c16e9efb48c90bd0345e421e547238cc96267a0561bdd3a1354f14
 DIST croc-10.2.2.tar.gz 583886 BLAKE2B 
2061969e1cebf5239412d1a0ca989fd6ea873c1c86d8b762be8782c82cfb83c5e69f189422c6239c066d85619ae9f2b493cfd30ff2d643000dffa8d33798f1a4
 SHA512 
968023061e145bca70079bba73902b7f843e9038bc159711977f4d9490fba5e546b1a929415ede829a353a92c321d699df4e991c1c40c960e5c3ad5817ae7f00
+DIST croc-10.2.4-deps.tar.xz 19039672 BLAKE2B 
f125f4b92642bff5b72fa7f17acf83736f5ef82770b25a2f4d2e7257eed66f3a171a3365c24da1d44d6be60c7326741a894378651c99fb08220f1735544d6843
 SHA512 
76cb95725f9462cb2ac154edd3f625e50d1355dd6a16a5a3c010f9d141a1a9565db5c341a71a45b620d1c3f3e99448c414f19b47d1f0fa793727274849b3f722
+DIST croc-10.2.4.tar.gz 585411 BLAKE2B 
4a10f62a57d3de2bde3c37943bc18aac74dc6432e313f4864e75fe4983b2fa5d2e85171c1ca054a2b76b6284b45bd1e474ad9e1e34be2eebf3008c9ca8c26daa
 SHA512 
1f4a81d9c73436510c6e60909b8b437a15d0bf0454aee6cab8a83094801b2b92a29073e96df172f582fa20c9249f0fc58cda8346f87c13a310908ae70cd5deb8

diff --git a/net-misc/croc/croc-10.2.4.ebuild b/net-misc/croc/croc-10.2.4.ebuild
new file mode 100644
index 000000000000..6f81450a8652
--- /dev/null
+++ b/net-misc/croc/croc-10.2.4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1 go-module systemd
+
+DESCRIPTION="Easily and securely send things from one computer to another"
+HOMEPAGE="https://github.com/schollz/croc";
+SRC_URI="https://github.com/schollz/croc/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz
+https://dev.gentoo.org/~xgqt/distfiles/deps/${P}-deps.tar.xz
+"
+
+LICENSE="Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
+
+RDEPEND="
+       acct-group/croc
+       acct-user/croc
+"
+
+DOCS=( README.md )
+
+src_prepare() {
+       default
+       # Replace User=nobody with User=croc
+       sed -i -e "s|\(^User=\).*|\1croc|g" croc.service || die
+       # Rename bash completion function
+       sed -i -e "s|_cli_bash_autocomplete|_croc|g" \
+               src/install/bash_autocomplete || die
+}
+
+src_compile() {
+       ego build
+}
+
+src_install() {
+       dobin croc
+       systemd_dounit croc.service
+       newbashcomp src/install/bash_autocomplete croc
+       einstalldocs
+}
+
+src_test() {
+       ego test -skip 
"Test(Comm|Send|PublicIP|LocalIP|LocalLookupIP|LookupFunction)" -work ./...
+}

diff --git a/net-misc/croc/metadata.xml b/net-misc/croc/metadata.xml
index c51b4929e88d..f2dc0968f87e 100644
--- a/net-misc/croc/metadata.xml
+++ b/net-misc/croc/metadata.xml
@@ -11,7 +11,7 @@
     </maintainer>
     <upstream>
         <remote-id type="github">schollz/croc</remote-id>
-        <doc>https://schollz.com/tinker/croc6/</doc>
+        <doc>https://schollz.com/docs/software/croc/</doc>
         <bugs-to>https://github.com/schollz/croc/issues</bugs-to>
     </upstream>
 </pkgmetadata>

Reply via email to