void-packages/srcpkgs/wireproxy/template

26 lines
780 B
Bash

# Template file for 'wireproxy'
pkgname=wireproxy
version=1.0.9
revision=1
build_style=go
go_import_path="github.com/pufferffish/wireproxy"
go_package="${go_import_path}/cmd/wireproxy"
go_ldflags="-X 'main.version=${version}'"
short_desc="Wireguard client that exposes itself as a SOCKS5 proxy"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="ISC"
homepage="https://github.com/pufferffish"
distfiles="https://github.com/pufferffish/wireproxy/archive/refs/tags/v${version}.tar.gz"
checksum=6359d060740ad878f0c26217d44968a58a069302447e15774cbf747b8d1404d2
make_dirs="
/etc/wireproxy 0750 root _wireproxy
/var/lib/wireproxy 0700 _wireproxy _wireproxy"
system_accounts="_wireproxy"
_wireproxy_homedir="/var/lib/wireproxy"
post_install() {
vsv wireproxy
vlicense LICENSE
}