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 18FEB1581D3 for ; Tue, 21 May 2024 21:17:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5ECD92BC013; Tue, 21 May 2024 21:17:53 +0000 (UTC) Received: from smtp.gentoo.org (dev.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4A7DA2BC013 for ; Tue, 21 May 2024 21:17:53 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 900C633BE32 for ; Tue, 21 May 2024 21:17:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2A427AAF for ; Tue, 21 May 2024 21:17:51 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1716326269.01cb94b7524ea45dd2072e37e95292e91369fc20.xgqt@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.6.17.ebuild X-VCS-Directories: net-misc/croc/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: 01cb94b7524ea45dd2072e37e95292e91369fc20 X-VCS-Branch: master Date: Tue, 21 May 2024 21:17:51 +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: 4d65ce3d-259a-4f91-ac41-73f624aa573f X-Archives-Hash: 9e9bc604dd56f6d4f965209f80d0bbf9 commit: 01cb94b7524ea45dd2072e37e95292e91369fc20 Author: Armas Spann simple-co de> AuthorDate: Tue May 21 21:08:44 2024 +0000 Commit: Maciej Barć gentoo org> CommitDate: Tue May 21 21:17:49 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01cb94b7 net-misc/croc: add 9.6.17 Signed-off-by: Armas Spann simple-co.de> Closes: https://github.com/gentoo/gentoo/pull/36764 Signed-off-by: Maciej Barć gentoo.org> net-misc/croc/Manifest | 2 ++ net-misc/croc/croc-9.6.17.ebuild | 47 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/net-misc/croc/Manifest b/net-misc/croc/Manifest index 5954e4274005..cb05f3bc5710 100644 --- a/net-misc/croc/Manifest +++ b/net-misc/croc/Manifest @@ -1,2 +1,4 @@ DIST croc-9.6.15-deps.tar.xz 30217856 BLAKE2B 87c34fa60f0bda194ca022648be2ce11da7b4b9a3f3a5f5b16a5127d5b25197ec99bdba1ef388c38b9e632ed4ef0f89a68e3b58368d9df7b07a1f3129b2b9145 SHA512 caa944dc9e8fb0d4883f4447c979282826e2364fe8b196e412861189953c23a09b6de38306aa00eabfeeb12fb4d3ab9e9794494da8ece10c3ee5a0cd72161d17 DIST croc-9.6.15.tar.gz 512614 BLAKE2B 2a87593b5d944c2b5ea970d30f0b64b2a8325cca672421aaa58e6fd07e440aad88de6acad564fcb9963256a9f499421dd9343f51395babd724deeffe875cc6f7 SHA512 8ae76dc5029e7adc809b0083e147c57c7249e9fbb07f263a0b10d21539ebfc69c5d9d8e60811cca06bbb313ec9a3a143baaef73f77ca599dc102626dc9fccf29 +DIST croc-9.6.17-deps.tar.xz 29935608 BLAKE2B 1bdcd2e86f09f3a112faa9f671705a5cabb3f6d9037ba71f0947ee2ce3863d840a8e6847167017c7e02de422900bfbfc8ca285933dd23b95a4232e67c0e30c50 SHA512 0787600d6ca9d46da1e66b27e5f3cc2c88020fa8bb9119c1455209680eb886245f05a7650727759f7624ec59e4b4cec7910f58e83b79d0f87b26375de17b13b2 +DIST croc-9.6.17.tar.gz 514013 BLAKE2B ac0819791329085d91a57a170981d5b42739c098bba7c6ba523d6f02dee06868d9ac45fc4b264a7dff670550d38aa90be10a9be99d07417fb5754529022583d4 SHA512 a9bc1b4325ae8066874f40cad1ff63e8f69cd7d36189f553e6865efb456fed319384710d86ad81cdfebdd3d70cfa82f7ce84d458898d1016ccc652b6b692d120 diff --git a/net-misc/croc/croc-9.6.17.ebuild b/net-misc/croc/croc-9.6.17.ebuild new file mode 100644 index 000000000000..edfe827fbac5 --- /dev/null +++ b/net-misc/croc/croc-9.6.17.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 ./... +}