void-packages/srcpkgs/relaysrv/template

32 lines
791 B
Bash
Raw Normal View History

2016-01-16 13:22:15 +00:00
# Template file for 'relaysrv'
pkgname=relaysrv
2016-02-14 09:40:54 +00:00
version=0.12.18
2016-04-13 09:43:38 +00:00
revision=2
2016-01-16 13:22:15 +00:00
build_style=go
go_import_path="github.com/syncthing/relaysrv"
hostmakedepends="git-perl"
2016-01-16 13:22:15 +00:00
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"
2016-02-14 09:40:54 +00:00
checksum=ce21cd29bd091c3dbdc138dc94ede63b6d815b664b615a87a4f1b01ee5f2ce35
2016-01-16 13:22:15 +00:00
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
}