void-packages/srcpkgs/frp/template

23 lines
579 B
Bash

# Template file for 'frp'
pkgname=frp
version=0.58.1
revision=2
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=c6eabdc2bf39bdb4a7ab7794a4b2ad94be5e0cab50b6cc540a6431e61208b1e6
conf_files="/etc/frp/*.toml"
post_install() {
vmkdir etc/frp
vcopy conf/*.toml etc/frp
vsv frpc
vsv frps
}