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