net-vpn/frp: add 0.68.0

Signed-off-by: Wang ZhuoCheng <me@puqns67.icu>
Part-of: https://github.com/gentoo/gentoo/pull/45981
Signed-off-by: Zac Medico <zmedico@gentoo.org>
This commit is contained in:
Wang ZhuoCheng
2026-03-21 19:10:40 +08:00
committed by Zac Medico
parent 36807ce175
commit 840f9fedc1
2 changed files with 64 additions and 0 deletions
+2
View File
@@ -8,3 +8,5 @@ DIST frp-0.61.1-deps.tar.xz 3357512 BLAKE2B 0c34e290fc366cab76aae95c366ef15c6a2d
DIST frp-0.61.1.tar.gz 1127405 BLAKE2B ab58f79a441a670ec85d9a3e607a442da031bf16300a61ff8b11ce7038985b601a565645e7dc3c9fbabb81468cd5e81cbf06aac65b59569d4cef89769d99bd16 SHA512 f51f79601a6f29d923c98627d88977191320796d62b0194ff2f16fd8602c75d426f03ca9b9f4808229e2f07e2ee5ab7874afe4e23e12a68cb25e6ef7157896d0
DIST frp-0.65.0-vendor.tar.xz 3419816 BLAKE2B 7f03284e4bcfb8a3c61fb769187c0b4fe142658eee4a586f527a513c5f1227bac6faba0ca82178ba0306d52080a06a3e562d0b9b3f70650151bef8f3d7d6ecaf SHA512 a3ece9da58ccf681bedc7bcd3155407ac06d6044cba76f99c4990713e1d038762469e8df9774cafc851c19f5ca519bc492c49013327b9f0ed4fffe78a0e87ad5
DIST frp-0.65.0.tar.gz 1146182 BLAKE2B 09745e448fb07e8bcc1f02a0aabbef6cc5eb7567072746539d1a7ca2b2b60d03e692c2d0d319af54e1c9d1a17204c4b2b596731416ad0d7b3364c6c4af3dbe9c SHA512 c70a42bedd243bb12729357a7482ade573627dd4ec54b5da62ca1ff1ed5389c2dc24807b0164aac7cc1ba48aa10c0ed617a52b1a9e8254029bdc3bfd27415081
DIST frp-0.68.0-vendor.tar.xz 3311480 BLAKE2B a2865fef6274e9d1a55867ee4780fe577d374a4f586c75d39fb45ce07f28e06786db7bfbf90c984d5e0ec0f5d30ef0779964bb92bade4d411b33d8a21413d21b SHA512 08f8200a1218d521d9aa2e91147aa64e58bd3c3e93debb0e546eff2be1fd78ece948c20e53159df6285fc7f3e250aea244b5b649a908f1f490074c01c64dc6a1
DIST frp-0.68.0.tar.gz 570096 BLAKE2B 5d6c8f19457c8c630beb001ea1af6f27c8c4a1467d3bcf31b9be716ae78aa92892817a9ca07acbb85788f99f1e92f54f83d5234ebef7d8f7a07e65156854f2d8 SHA512 93df483648f29db10f5e61ed28a4898715615e6b3f68087e1e0c356461a2f723135c73ae4fb9d3ca7c8c1fee9415a920012241f9362e0768a57eb5fd9c984818
+62
View File
@@ -0,0 +1,62 @@
# Copyright 1999-2026 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
https://github.com/gentoo-zh-drafts/frp/releases/download/v${PV}/${P}-vendor.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.25"
_compile() {
# Currently no web support
ego build -tags "${1},noweb" "./cmd/${1}"
# Generate completion files
"./${1}" completion bash > "${S}/completion/${1}" || die
"./${1}" completion fish > "${S}/completion/${1}.fish" || die
"./${1}" completion zsh > "${S}/completion/_${1}" || die
}
_install() {
# Install binary file
dobin "${1}"
# Install completion files
dobashcomp "${S}/completion/${1}"
dofishcomp "${S}/completion/${1}.fish"
dozshcomp "${S}/completion/_${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"
}
src_compile() {
mkdir -pv completion || die
use client && _compile frpc
use server && _compile frps
}
src_install() {
use client && _install frpc
use server && _install frps
}