32 lines
785 B
Bash
32 lines
785 B
Bash
# Template file for 'relaysrv'
|
|
pkgname=relaysrv
|
|
version=0.12.1
|
|
revision=1
|
|
build_style=go
|
|
go_import_path="github.com/syncthing/relaysrv"
|
|
hostmakedepends="git"
|
|
short_desc="Relay server for syncthing"
|
|
maintainer="lemmi <lemmi@nerd2nerd.org>"
|
|
license="MIT"
|
|
homepage="https://github.com/syncthing/relaysrv"
|
|
distfiles="https://github.com/syncthing/relaysrv/archive/v${version}.tar.gz"
|
|
checksum=f64cf5684bc6e44cf431e84a8a6f1550495c24d94b4ecec2aa4e00bac530c9a7
|
|
|
|
system_accounts="relaysrv"
|
|
relaysrv_homedir="/var/lib/relaysrv"
|
|
|
|
make_dirs="
|
|
/var/log/relaysrv 700 root root
|
|
/var/lib/relaysrv 700 relaysrv relaysrv"
|
|
|
|
pre_build() {
|
|
env -u GOARCH -u GOARM go get -x -v github.com/tools/godep
|
|
$GOPATH/bin/godep restore -v
|
|
rm $GOPATH/bin/godep
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
vsv relaysrv
|
|
}
|