From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 10983158090 for ; Tue, 24 May 2022 19:01:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 54C74E0809; Tue, 24 May 2022 19:01:01 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 38786E0809 for ; Tue, 24 May 2022 19:01:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 41DA53417EC for ; Tue, 24 May 2022 19:01:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9ECAD463 for ; Tue, 24 May 2022 19:00:58 +0000 (UTC) From: "Stephan Hartmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Stephan Hartmann" Message-ID: <1653418833.dcc5ed041010ade957b6c658c821bd95e3e1a21e.sultan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/croc/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/croc/Manifest net-misc/croc/croc-9.5.6.ebuild X-VCS-Directories: net-misc/croc/ X-VCS-Committer: sultan X-VCS-Committer-Name: Stephan Hartmann X-VCS-Revision: dcc5ed041010ade957b6c658c821bd95e3e1a21e X-VCS-Branch: master Date: Tue, 24 May 2022 19:00:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 97206603-a7cb-4051-83b1-f95011eaa26b X-Archives-Hash: b22e6f823d30ee11eaa9357e6afe11f4 commit: dcc5ed041010ade957b6c658c821bd95e3e1a21e Author: Stephan Hartmann gentoo org> AuthorDate: Tue May 24 19:00:33 2022 +0000 Commit: Stephan Hartmann gentoo org> CommitDate: Tue May 24 19:00:33 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcc5ed04 net-misc/croc: add 9.5.6 Signed-off-by: Stephan Hartmann gentoo.org> net-misc/croc/Manifest | 1 + net-misc/croc/croc-9.5.6.ebuild | 50 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/net-misc/croc/Manifest b/net-misc/croc/Manifest index 756eb472d77e..1cd161c9b7b7 100644 --- a/net-misc/croc/Manifest +++ b/net-misc/croc/Manifest @@ -1,2 +1,3 @@ DIST croc-9.5.3.tar.gz 2847753 BLAKE2B 7ba9f321f3e6edb3e9332ca1e71ef3bcd9ec96ec2040ea00b861e5caa4427035ac4ffd1fbb01ebd944cd77f37e52789f2d6f0fe589646725b25ef2c59a4668e1 SHA512 b4f237af9d36cdf72b993ebbfcb9502f13f383d45888057394a9fe78ac778eefbf9a61268df6e584e8880879195ab1f30cf59ff2b74bfdd16b1d451c8670af5d DIST croc-9.5.5.tar.gz 2868323 BLAKE2B 52fda421cca32ec2f1f45f0df8e38e44c7dbb161856f9624665816b60957f5906ec01b4bdb0efd769974d2eed6f423adf987397a2e6e064e48382286d5c602a2 SHA512 7bb4f23dc6b0f809da87d67b10cfb1530cb138a3a70c9578b35de602ddf90cd0f61c2ba643a83d990890a07de29588b1387b83ac63b8eac2a75620a221330eb8 +DIST croc-9.5.6.tar.gz 2868248 BLAKE2B db9d2662ce4683767a57b88c7e06240243a93b1e0fadaa2d4ca42427df241afb5c9b290c879f18d59aa2600c8b8efc7b1716acdf1b11f57677d8d4672bd960bd SHA512 3342e0bc6e45c38653d2cca99d6e1b7b79450bdd05c77f3c073f0a4573a99a74b38da36d17950b5da49f99093dbc04c67f03816e3e831770491f0660e78b9266 diff --git a/net-misc/croc/croc-9.5.6.ebuild b/net-misc/croc/croc-9.5.6.ebuild new file mode 100644 index 000000000000..03dce788293d --- /dev/null +++ b/net-misc/croc/croc-9.5.6.ebuild @@ -0,0 +1,50 @@ +# Copyright 2020-2022 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/releases/download/v${PV}/${PN}_${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 +" + +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 ./... +}