net-misc/croc: add 10.2.7

Signed-off-by: Armas Spann <zappel@simple-co.de>
Part-of: https://github.com/gentoo/gentoo/pull/44318
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Armas Spann
2025-10-24 19:33:33 +02:00
committed by Maciej Barć
parent 406207a83e
commit 72c80ed3ac
2 changed files with 51 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
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
DIST croc-10.2.7.tar.gz 3584883 BLAKE2B 3e5afc589cecacacf01972c8bc76972b9a88f5b5d8c5c88ace50a2bf0126a2e2a8748784c2bbf09c170b3946a2a2e20a1f093663b32cfd7a807d08fea5d1178a SHA512 25ef7ff3e520959cfedb8b27d5862abf5739c9ec8a7a703280cefc45dc0ae37e8deb673545b8835fe89bb561449b48d0c844b9d0729086d174011dc1be473086

View File

@@ -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
"
S="${WORKDIR}/${PN}-v${PV}"
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_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
}