commit: d66547319a236b0c5c6b181dc8f945a573ecfff7 Author: Armas Spann <zappel <AT> simple-co <DOT> de> AuthorDate: Wed Oct 1 13:04:54 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Oct 1 23:17:30 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6654731
net-misc/croc: add 10.2.5 Signed-off-by: Armas Spann <zappel <AT> simple-co.de> Part-of: https://github.com/gentoo/gentoo/pull/43997 Closes: https://github.com/gentoo/gentoo/pull/43997 Signed-off-by: Sam James <sam <AT> gentoo.org> net-misc/croc/Manifest | 1 + net-misc/croc/croc-10.2.5.ebuild | 50 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/net-misc/croc/Manifest b/net-misc/croc/Manifest index 35f809868eea..2fee17fa8b65 100644 --- a/net-misc/croc/Manifest +++ b/net-misc/croc/Manifest @@ -4,3 +4,4 @@ DIST croc-10.2.2-deps.tar.xz 18236576 BLAKE2B 7236266132136176c1f76d699e9e2d9be6 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 +DIST croc-10.2.5.tar.gz 3579045 BLAKE2B e3042004e464a2e114d623c6867ed7d5f6c71c2f975041f662450055288fa83c8f7029f80f18195d82a2abd17ea4b593111a9cb18d71087b19d5f6ce3ff02891 SHA512 eb1c7e1c8608d6bf6bacb5c904615852d59ecef684ffc0098ea4899a82511a0d79fb35eb0c8135f6adf684bb3d8277c852a385c4e15ad8bc68ac5eedc9fb2aa7 diff --git a/net-misc/croc/croc-10.2.5.ebuild b/net-misc/croc/croc-10.2.5.ebuild new file mode 100644 index 000000000000..f64cc2163951 --- /dev/null +++ b/net-misc/croc/croc-10.2.5.ebuild @@ -0,0 +1,50 @@ +# 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/releases/download/v${PV}/${PN}_v${PV}_src.tar.gz + -> ${P}.tar.gz +" + +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 ) + +S="${WORKDIR}/${PN}-v${PV}" + +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_test() { + ego test -skip "Test(Comm|Send|PublicIP|LocalIP|LocalLookupIP|LookupFunction)" -work ./... +} + +src_install() { + dobin croc + systemd_dounit croc.service + newbashcomp src/install/bash_autocomplete croc + einstalldocs +}
