commit: 72573866645d0105b147b3c28f920e9891d42f33 Author: Armas Spann <zappel <AT> simple-co <DOT> de> AuthorDate: Thu Jul 3 18:45:40 2025 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Thu Jul 3 20:37:40 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72573866
net-misc/croc: add 10.2.2 Signed-off-by: Armas Spann <zappel <AT> simple-co.de> Part-of: https://github.com/gentoo/gentoo/pull/42853 Closes: https://github.com/gentoo/gentoo/pull/42853 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> net-misc/croc/Manifest | 2 ++ net-misc/croc/croc-10.2.2.ebuild | 47 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/net-misc/croc/Manifest b/net-misc/croc/Manifest index 854854d05ddf..044e63d53513 100644 --- a/net-misc/croc/Manifest +++ b/net-misc/croc/Manifest @@ -1,2 +1,4 @@ DIST croc-10.1.1-deps.tar.xz 18133544 BLAKE2B 3f1640936ac0ada372e56060598caa3bc43fe328223596761d899655a188d944bad717b0e80b859a2e89e4f53c88c1dca1a03ec8bd1a3f45407af983271baf97 SHA512 3fe980990438ff2fc1835f1c413be8799978c1312da6262fbe5e135408b21fd907f6aef4e385b3bfe9694addfdefc09c2aef634181e5b717baccc40d0355ab61 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 diff --git a/net-misc/croc/croc-10.2.2.ebuild b/net-misc/croc/croc-10.2.2.ebuild new file mode 100644 index 000000000000..0525d1b670a6 --- /dev/null +++ b/net-misc/croc/croc-10.2.2.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)" -work ./... +}
