summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmas Spann <zappel@simple-co.de>2024-08-01 00:04:47 +0200
committerMaciej Barć <xgqt@gentoo.org>2024-08-01 00:13:27 +0200
commit1d56842c5963b4e1902ce5097d0603012d2ad987 (patch)
tree62fdb34b53b8a8d57e44453f97d44861e6b63025 /net-misc/croc/croc-10.0.11.ebuild
parentnet-vpn/fp: fix drop empty IUSE (diff)
downloadgentoo-1d56842c5963b4e1902ce5097d0603012d2ad987.tar.gz
gentoo-1d56842c5963b4e1902ce5097d0603012d2ad987.tar.bz2
gentoo-1d56842c5963b4e1902ce5097d0603012d2ad987.zip
net-misc/croc: add 10.0.11
Signed-off-by: Armas Spann <zappel@simple-co.de> Closes: https://github.com/gentoo/gentoo/pull/37890 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'net-misc/croc/croc-10.0.11.ebuild')
-rw-r--r--net-misc/croc/croc-10.0.11.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/net-misc/croc/croc-10.0.11.ebuild b/net-misc/croc/croc-10.0.11.ebuild
new file mode 100644
index 000000000000..edfe827fbac5
--- /dev/null
+++ b/net-misc/croc/croc-10.0.11.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2023-2024 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 ./...
+}