mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-08 00:05:33 +03:00
net-vpn/frp: add 0.65.0
Signed-off-by: Wang ZhuoCheng <me@puqns67.icu> Closes: https://github.com/gentoo/gentoo/pull/44549 Signed-off-by: Zac Medico <zmedico@gentoo.org>
This commit is contained in:
parent
b988515798
commit
76ddc4100b
@ -6,3 +6,5 @@ DIST frp-0.60.0-vendor.tar.xz 2816520 BLAKE2B 3f58f108c1dc563d73d119293d9cbcb181
|
||||
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
|
||||
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
|
||||
|
||||
61
net-vpn/frp/frp-0.65.0.ebuild
Normal file
61
net-vpn/frp/frp-0.65.0.ebuild
Normal file
@ -0,0 +1,61 @@
|
||||
# Copyright 1999-2025 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.24"
|
||||
|
||||
_compile() {
|
||||
ego build -tags "${1}" "./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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user