summaryrefslogtreecommitdiff
path: root/net-misc/croc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-08 02:07:29 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-08 02:07:29 +0000
commit494168b06b81a32b889c3cb1f721f925d0a6824f (patch)
tree0ec763ffa61af808a83f365fb6680258d2e28a50 /net-misc/croc
parent2198f8593ae0312add1bdccb49edfcb935e5f8a6 (diff)
gentoo auto-resync : 08:12:2024 - 02:07:28
Diffstat (limited to 'net-misc/croc')
-rw-r--r--net-misc/croc/Manifest3
-rw-r--r--net-misc/croc/croc-10.1.1.ebuild47
2 files changed, 50 insertions, 0 deletions
diff --git a/net-misc/croc/Manifest b/net-misc/croc/Manifest
index 51796aec4f1b..4bef4b5db4e6 100644
--- a/net-misc/croc/Manifest
+++ b/net-misc/croc/Manifest
@@ -4,7 +4,10 @@ DIST croc-10.0.13-deps.tar.xz 17631568 BLAKE2B b4b0a511f6f8b2d53421adbe34af5f427
DIST croc-10.0.13.tar.gz 584046 BLAKE2B 5604d7f8473da2e0648e33a3512ab0f9cedc4d995386570aa9b85428e9729ccc4153fe57b9487bffdb3d1c8e71210478887bff023215c31ac986fd4168484eb0 SHA512 b018fd1d26b84456d792c0d7e7c1a4cbcd796d7bac5acc802afea1d6c5082310a11d6d91efef721506e35bd3f1a35bea85382f2a041c81d875a404df02c3f5d7
DIST croc-10.1.0-deps.tar.xz 18220572 BLAKE2B 3c1513bf9dc52e72e37f34ad843daf30b4d8accb5de6a1073535870dd1e5d7993f9234312208dfae30726e1ce3f23c0c700ebedc6c6f2a7f3c610ce611940224 SHA512 8dd23262d529c66927b0a60b41b7234675577593cddc8c553a367f5203f3d4736b66cb258881a89603233cccc709923268e2ccdd78aa47c38d3dabdf072d0de1
DIST croc-10.1.0.tar.gz 583893 BLAKE2B d728c8f6dc08179910343e17304b50138c93a7af8ca11c8b1d8fa8a43b4e542f811eec1898948c6c62c99d2f50a96363db0dc15f48fc2b6e98224a9fdf3a040c SHA512 dba6a792c25766056aa851c10ec5a441a66404e41af50f2585ae7b7e35ce0e85972b4fbb93b374589ceb475c3fd35ad413251eb010fadc40cddede07a2831940
+DIST croc-10.1.1-deps.tar.xz 18133544 BLAKE2B 3f1640936ac0ada372e56060598caa3bc43fe328223596761d899655a188d944bad717b0e80b859a2e89e4f53c88c1dca1a03ec8bd1a3f45407af983271baf97 SHA512 3fe980990438ff2fc1835f1c413be8799978c1312da6262fbe5e135408b21fd907f6aef4e385b3bfe9694addfdefc09c2aef634181e5b717baccc40d0355ab61
+DIST croc-10.1.1.tar.gz 584146 BLAKE2B 8463d916e2fb8ec73d27678f191dc50dbcce25f971495e0f51ded2d964337d311d02988a92c85948b21f2533921250569b4128c185c165d2678e1a4cb009d974 SHA512 1a7038bacc1b4d8235f5193a794e04588f8e17d4d3fa1db463641ca34637c4e81de6fcce1a9805d660f8f2208e563cf2efa37ddd407f43e1fe6032c0a5a06d24
EBUILD croc-10.0.12.ebuild 1049 BLAKE2B 28f4b6e9959b73f42f1bf3c11567f1797fc5ef0464b7bf30e07746b8715d26abeeb944c17953a776a37de7c303ba36967070bfab00dac395917f6a5b3229d20d SHA512 416ab43e2bb9490f5336c3d40d90cba2d59fd1e3ee4a8d1e48d64ea5df5c64010f97e83b64aba652cf7cf1fe2c5c2ea710f93caa2fd85019549be99ab3786128
EBUILD croc-10.0.13.ebuild 1049 BLAKE2B 28f4b6e9959b73f42f1bf3c11567f1797fc5ef0464b7bf30e07746b8715d26abeeb944c17953a776a37de7c303ba36967070bfab00dac395917f6a5b3229d20d SHA512 416ab43e2bb9490f5336c3d40d90cba2d59fd1e3ee4a8d1e48d64ea5df5c64010f97e83b64aba652cf7cf1fe2c5c2ea710f93caa2fd85019549be99ab3786128
EBUILD croc-10.1.0.ebuild 1052 BLAKE2B 87b1350f1a1fb7eadc728316e7760fe55c6fef6894c0e91a15de0cf905b0bc723e8a09f0771edb8ac5f7b45820c176c08b62a569dad2b9fe988c99dc101dc64e SHA512 59883a43fc51c7193250118a076711acc22b30537492810525c7cfef29bf12b429c8a772249e45e3d45e2aa031258995bf0b56fd26d791f8a90b1aec63564b75
+EBUILD croc-10.1.1.ebuild 1052 BLAKE2B 87b1350f1a1fb7eadc728316e7760fe55c6fef6894c0e91a15de0cf905b0bc723e8a09f0771edb8ac5f7b45820c176c08b62a569dad2b9fe988c99dc101dc64e SHA512 59883a43fc51c7193250118a076711acc22b30537492810525c7cfef29bf12b429c8a772249e45e3d45e2aa031258995bf0b56fd26d791f8a90b1aec63564b75
MISC metadata.xml 638 BLAKE2B a54a82285c77fbdbc963e002898a8fa079849f298831f0d88fbe1861c2c14742151933b4acae38a3b2219b9bd042dadd3472d09afe3e7f94fd39b63a5e7bc646 SHA512 40b095b3e9a84d4d91a6584adf27d3e3b2c30dae159e86f32ecec5637bf384af40117fa9a59faebae07adeee734bb560a537b835add456350516441482f61a08
diff --git a/net-misc/croc/croc-10.1.1.ebuild b/net-misc/croc/croc-10.1.1.ebuild
new file mode 100644
index 000000000000..edfe827fbac5
--- /dev/null
+++ b/net-misc/croc/croc-10.1.1.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 ./...
+}