add(main): new package frp
Signed-off-by: Aditya Alok <dev.aditya.alok@gmail.com>
This commit is contained in:
parent
99b95878e1
commit
75ac73484c
|
@ -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
|
||||
}
|
|
@ -0,0 +1,2 @@
|
|||
TERMUX_SUBPKG_DESCRIPTION="frp client"
|
||||
TERMUX_SUBPKG_INCLUDE="bin/frpc"
|
|
@ -0,0 +1,2 @@
|
|||
TERMUX_SUBPKG_DESCRIPTION="frp server"
|
||||
TERMUX_SUBPKG_INCLUDE="bin/frps"
|
Loading…
Reference in New Issue