add(main): new package frp

Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
This commit is contained in:
2096779623 2022-05-25 12:16:56 +08:00 committed by Aditya Alok
parent 99b95878e1
commit 75ac73484c
No known key found for this signature in database
GPG Key ID: 345AE134142077D8
3 changed files with 26 additions and 0 deletions

22
packages/frp/build.sh Normal file
View File

@ -0,0 +1,22 @@
TERMUX_PKG_HOMEPAGE=https://gofrp.org/doc
TERMUX_PKG_DESCRIPTION="A fast reverse proxy to expose a local server behind a NAT or firewall to the internet."
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.42.0
TERMUX_PKG_SRCURL=https://github.com/fatedier/frp/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=4bb815e9c9a4588fce20c6ef33168f0ceb1f420937c4dcf03ce085666328043a
# Depend on its subpackages.
TERMUX_PKG_DEPENDS="frpc, frps"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_AUTO_UPDATE=true
termux_step_make() {
termux_setup_golang
make frpc
make frps
}
termux_step_make_install() {
install -Dm700 -t "${TERMUX_PREFIX}"/bin bin/frpc
install -Dm700 -t "${TERMUX_PREFIX}"/bin bin/frps
}

View File

@ -0,0 +1,2 @@
TERMUX_SUBPKG_DESCRIPTION="frp client"
TERMUX_SUBPKG_INCLUDE="bin/frpc"

View File

@ -0,0 +1,2 @@
TERMUX_SUBPKG_DESCRIPTION="frp server"
TERMUX_SUBPKG_INCLUDE="bin/frps"