# Template file for 'frp'
pkgname=frp
version=0.61.1
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=95c567188d5635a7ac8897a6f93ae0568d0ac4892581a96c89874a992dd6a73c

# 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
}
