# Template file for 'frp'
pkgname=frp
version=0.65.0
revision=1
build_style=go
go_import_path=github.com/fatedier/frp
go_package="${go_import_path}/cmd/frpc ${go_import_path}/cmd/frps"
short_desc="Fast reverse proxy"
maintainer="Anachron <gith@cron.world>"
license="Apache-2.0"
homepage="https://github.com/fatedier/frp"
distfiles="https://github.com/fatedier/frp/archive/v${version}.tar.gz"
checksum=bbec0d1855e66c96e3a79ff97b8c74d9b1b45ec560aa7132550254d48321f7de

# disable for now, errors out with
# load frpc-path error: stat ../../bin/frpc: no such file or directory
make_check=no

conf_files="/etc/frp/*.toml"

post_install() {
	vmkdir etc/frp
	vcopy conf/*.toml etc/frp
	vsv frpc
	vsv frps
}
