diff options
Diffstat (limited to 'net-vpn')
-rw-r--r-- | net-vpn/Manifest.gz | bin | 8056 -> 8055 bytes | |||
-rw-r--r-- | net-vpn/frp/Manifest | 3 | ||||
-rw-r--r-- | net-vpn/frp/frp-0.61.1.ebuild | 74 |
3 files changed, 77 insertions, 0 deletions
diff --git a/net-vpn/Manifest.gz b/net-vpn/Manifest.gz Binary files differindex bb277f3829da..b76683deb5f3 100644 --- a/net-vpn/Manifest.gz +++ b/net-vpn/Manifest.gz diff --git a/net-vpn/frp/Manifest b/net-vpn/frp/Manifest index 45d3c3336e3f..d4d12d7880a7 100644 --- a/net-vpn/frp/Manifest +++ b/net-vpn/frp/Manifest @@ -8,7 +8,10 @@ DIST frp-0.58.1-deps.tar.xz 2916740 BLAKE2B 49256c40ca359a5b76a92e2999e3a5a3ca48 DIST frp-0.58.1.tar.gz 1081317 BLAKE2B e5d897a9d866df1075c9fb397f1cbcf23efb738fd89e58bce4fba5abce23d9cb6c826b50d4cda52b3fa40a6194003a51c6209f2d4aef43d9dc62f08b51a776a7 SHA512 809e86e9cd2cb67ae338b2584c0c8f5d4f01104cc7725826743f48eb5c893bce9cd678bcd90e04953bb6bfc6523fcf400c6bc1bdf03ff335666b05af5e0c4b55 DIST frp-0.60.0-vendor.tar.xz 2816520 BLAKE2B 3f58f108c1dc563d73d119293d9cbcb181059c24bb58731f5d6d870a320982c976c8a0938ff0442bd21ffd0bb86218aaa20f1b382fb7a045422aaea411ad3557 SHA512 9825d39cd4bce25ad796b3ac817e690ca41daf9f028ac4e88aa43b4e295d20f9ede57a1be8933efca00a512ff238f8e34a85f24a4b56f9c52cf40aa1f26118f9 DIST frp-0.60.0.tar.gz 1073862 BLAKE2B c6169818bbca656d44bc945c70b73474a4f427bd123fa7a546285fb63d3a156dc90d7fa1d46f2ba4ae971281e546fb43a217ad2527b7bd20a402810cb356d7ac SHA512 4c86b91a28b58ce5b681e5f8c886efd57a41fb6ac92606facce0b6f6f6cbd6cf6f789209252455bc6bc6a3ad043f2470040ac84b893926653cc036b40907e60c +DIST frp-0.61.1-deps.tar.xz 3357512 BLAKE2B 0c34e290fc366cab76aae95c366ef15c6a2d8be69b4e4378ec17baa65f1a8969a73c82a42f96799734f2d12c3ab96b3664966e489af2c2f89dc5c338bf8e6d95 SHA512 9ab876bda2ae46229a4e89471b97416978f0c6367a4b8d51df724281e5626b041f591492b4d2246ae0ecf68d6cc3d38843e538d92bdaad03724921238eaee051 +DIST frp-0.61.1.tar.gz 1127405 BLAKE2B ab58f79a441a670ec85d9a3e607a442da031bf16300a61ff8b11ce7038985b601a565645e7dc3c9fbabb81468cd5e81cbf06aac65b59569d4cef89769d99bd16 SHA512 f51f79601a6f29d923c98627d88977191320796d62b0194ff2f16fd8602c75d426f03ca9b9f4808229e2f07e2ee5ab7874afe4e23e12a68cb25e6ef7157896d0 EBUILD frp-0.56.0.ebuild 1712 BLAKE2B 17f2f9b4eb24c30b05a62e8c6f84b93068459a49a90206c2558ce2892cde532bc4242c76ead1a5620fc1a0bbee3859bcbdd837d5cfe8c98ce2f3c4bc3200a578 SHA512 c6c3f8da587de37336467c39dce292e9acc4851a918cb422b641e231966262baae7541349ecd6b7dca1fdd8d1b336f15636629b1b8dbb102f324e6af439f2e01 EBUILD frp-0.58.1.ebuild 1723 BLAKE2B 7f2f0a91deba073ce0a84f0da7745213c83c32977808f6ef3b2913b8b34987396003afd992e8d47254ee00e8f50427a5366a7660c4fcaedb3f85cdcc9bf0ed68 SHA512 517e6b4380241162df1dc7b5790482335c4fee73683e45ce6c735e4dbac4f54a803bde9f960a96c929deb0439a87bd5ef9a3c495d721f4f58ded630243723d51 EBUILD frp-0.60.0.ebuild 1750 BLAKE2B 822be8f8fcdc4fd2b7ea7d754cdfbbb534f467350a016d4d61c33611a6e097a56633d432418db3c8d2fa99fb8fd16f07f5379f55e4c60dddb138a7921e0073dd SHA512 4ce127cb1c1b3895cbe6ce1488e307a2500fa78bb47b4bef63aad3c6f0c80bfcf116ee538e3d7be5cc4c3381c8e280ac641071eaa186270f4a7cc49726fea32e +EBUILD frp-0.61.1.ebuild 1806 BLAKE2B a9b585fc1da04841dd25d2db43bef279f2feb40b213c9826867c45345db42fcdc367fd62c185c56ea62aafa02eed0da5104d8c926774381c428b4c1dbf8b754a SHA512 ceef53e362a86543099b5d922cd3d75cbf901869c45e2a6322674c30c8d9243605f1a1ceeda2db581efe367076815b302545221866404ca92caa4ba4c101ebda MISC metadata.xml 467 BLAKE2B a4b1a8611d1ab87bed87c5b40ac24a2dd64d4f2f2482351fd159f5826f77988c7c5e625614dc7c1c040b623a2b0b4452fc798af96115318a46f9d00a83766e9f SHA512 44e7c4e144789e64b2e373fae969e840928e2d618db695c008c07156037841175f51c19ed7f42b63f115319c24aa26701c94bb83f581c06143689bb5237bb965 diff --git a/net-vpn/frp/frp-0.61.1.ebuild b/net-vpn/frp/frp-0.61.1.ebuild new file mode 100644 index 000000000000..593d2dd26557 --- /dev/null +++ b/net-vpn/frp/frp-0.61.1.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module systemd shell-completion + +DESCRIPTION="A reverse proxy that exposes a server behind a NAT or firewall to the internet" +HOMEPAGE="https://github.com/fatedier/frp" +SRC_URI="https://github.com/fatedier/frp/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz" + +LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~loong ~riscv" +IUSE="+client +server" +REQUIRED_USE="|| ( client server )" +BDEPEND=">=dev-lang/go-1.22" + +src_unpack() { + default +} + +src_prepare() { + ln -sv ../vendor ./ || die + default +} + +src_compile() { + mkdir -pv comp || die + + if use client; then + ego build -trimpath -ldflags "-s -w" -tags frpc -o frpc ./cmd/frpc + ./frpc completion bash > comp/frpc || die + ./frpc completion fish > comp/frpc.fish || die + ./frpc completion zsh > comp/_frpc || die + fi + + if use server; then + ego build -trimpath -ldflags "-s -w" -tags frps -o frps ./cmd/frps + ./frps completion bash > comp/frps || die + ./frps completion fish > comp/frps.fish || die + ./frps completion zsh > comp/_frps || die + fi +} + +src_install() { + _install() { + # Install binary file + dobin "${1}" + + # Install completion files + dobashcomp "${S}/comp/${1}" + dofishcomp "${S}/comp/${1}.fish" + dozshcomp "${S}/comp/_${1}" + + # Install systemd services + systemd_dounit "${FILESDIR}/${1}.service" + systemd_newunit "${FILESDIR}/${1}_at_.service" "${1}@.service" + + # Install config files + insinto "/etc/${PN}" + newins "${S}/conf/${1}.toml" "${1}.toml.example" + newins "${S}/conf/${1}_full_example.toml" "${1}_full.toml.example" + } + + if use client; then + _install frpc + fi + + if use server; then + _install frps + fi +} |