summaryrefslogtreecommitdiff
path: root/net-misc/croc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-02-15 23:36:27 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-02-15 23:36:27 +0000
commit31c69c39a3648b52dd931a40b198714249e8a5ec (patch)
treec7bfb4db01cf185b6b8f7bde72d9cc5d14d8db22 /net-misc/croc
parentdce60e5aa0a12ccc07c10a0a2c3f8f063393b32a (diff)
gentoo auto-resync : 15:02:2024 - 23:36:26
Diffstat (limited to 'net-misc/croc')
-rw-r--r--net-misc/croc/Manifest3
-rw-r--r--net-misc/croc/croc-9.6.9.ebuild47
2 files changed, 50 insertions, 0 deletions
diff --git a/net-misc/croc/Manifest b/net-misc/croc/Manifest
index e7498374deb6..f6d449055cbc 100644
--- a/net-misc/croc/Manifest
+++ b/net-misc/croc/Manifest
@@ -1,5 +1,8 @@
AUX croc-disable-network-tests-r1.patch 763 BLAKE2B daf8248adb801bd16f1a567d1ce16746877617a83a2f63ab640312abf3b1089105e8b71b4fcb21ccdf8cd59987ac4e5826463680634c44d417d8bf5c2b514b35 SHA512 659936bafed02bc2274ee7a9a482c711850a08ed1e871584d978930e5b38b019b42b3308a3550e388e04cbdcd92964cb5326fc5825b7b377c11e6ba99660f772
DIST croc-9.6.6-vendor.tar.xz 972376 BLAKE2B ad1f77ef5d26ace05edffd3628da3c1ab393549d17761c70c3302e35179587097657a1d1e82f9be1732fb5d7df9a2f0eac6e003c43b0767d56662d87a5159d51 SHA512 53fc2af249ff62b702587bd89155c5432415dc6d8d8643453cb6d17f46b74cf669ecc7f06a5f64da459c690858126202be365d25ec31e73840621de2bf68faba
DIST croc-9.6.6.tar.gz 511129 BLAKE2B 550228f7911ffbeac656fe7930f879db7ab8630e52acbd8a859a14219673937f2994d3fd02e42999754e5a701b9b3296ab7907c231fac2e4a37c51588b864190 SHA512 0e3dec57d0d1337c9f45c81fa71f6d9673cc76f5c53ae9b0068f9e388788c433debebb536a43ec578b58e80b9da482949ff16cc63a883b8085fbec54a932bde2
+DIST croc-9.6.9-vendor.tar.xz 974884 BLAKE2B d6d061fd8259126dc107de3efcae3a023c9a8db44ba96343350360c6d321d73720d1079d46927f65d9ea1001e6421751241d2fe1c04a4f450ff3c4dadc5c6be1 SHA512 2f4ab17ae0c00bc1ac097aeda9fc791b98d8cf6ad31644bdf600a4c321894dea9974155950723e9d19b15c011eef81ab27dae1b2bc2eb4517611bac77bde590f
+DIST croc-9.6.9.tar.gz 512036 BLAKE2B cdd18f9b4460905742d31852ceafda19a3e9c57ef33e6b2e0a21105da9b7d0cac1dfca50f6b217d76be6368d6fb26b540709c165b5b9781ca8952003811e83ad SHA512 5abd9eac5ffd4fae711f8169c4344aa6b61647309aa74267b1442b94d3a9d7ea11962b993862e00c7df8a23a260c20c643d468930836df71995652a5abf8772b
EBUILD croc-9.6.6.ebuild 1078 BLAKE2B d19907a9087d47129996a49522329df35537523ea496a30b4d1640f8a2493702865ab4e05aba8adaaacb5f6f5ec9b8a19da6339e9e35f422c6af849aa06eff91 SHA512 078742c8b4f7af1df1d89abc56695604d5853d94fc2c38f4fdf5b0265427d1436ce71dbdd7a41c7d562894e6547cf26a5016505d548e7bba66a9aaf31721eeac
+EBUILD croc-9.6.9.ebuild 1013 BLAKE2B 3855a663d53e2b8af6190774747932d806ead51fec04eb7906920e4e9ff6552bb300848ebdaba1376403b6df95c06a4bd1a9983d177e69f11c4d62b3a70ac95f SHA512 54c754091955fe422200e239604453bf958c78e180ea3149d21f9fbc7d20e8cfb6f31dac12d6743a5e03f49684804f150a0e046f1a0d9625fa8e373edba97379
MISC metadata.xml 638 BLAKE2B a54a82285c77fbdbc963e002898a8fa079849f298831f0d88fbe1861c2c14742151933b4acae38a3b2219b9bd042dadd3472d09afe3e7f94fd39b63a5e7bc646 SHA512 40b095b3e9a84d4d91a6584adf27d3e3b2c30dae159e86f32ecec5637bf384af40117fa9a59faebae07adeee734bb560a537b835add456350516441482f61a08
diff --git a/net-misc/croc/croc-9.6.9.ebuild b/net-misc/croc/croc-9.6.9.ebuild
new file mode 100644
index 000000000000..d49781a4bf65
--- /dev/null
+++ b/net-misc/croc/croc-9.6.9.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}-vendor.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 -work ./...
+}