From a55e5c074db9bb024358a8f0bd2c5e992b7cf6f6 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 2 Jul 2023 22:04:01 +0100 Subject: gentoo auto-resync : 02:07:2023 - 22:04:01 --- net-misc/croc/croc-9.6.4.ebuild | 50 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 net-misc/croc/croc-9.6.4.ebuild (limited to 'net-misc/croc/croc-9.6.4.ebuild') diff --git a/net-misc/croc/croc-9.6.4.ebuild b/net-misc/croc/croc-9.6.4.ebuild new file mode 100644 index 000000000000..a3b14bea8b93 --- /dev/null +++ b/net-misc/croc/croc-9.6.4.ebuild @@ -0,0 +1,50 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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/~sultan/distfiles/net-misc/croc/${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 +" + +PATCHES=( + "${FILESDIR}/${PN}-disable-network-tests-r1.patch" +) + +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 -work ./... +} -- cgit v1.2.3