New package: relaysrv-0.12.1
This commit is contained in:
parent
75d03a311f
commit
e15dd00e71
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
exec svlogd /var/log/relaysrv
|
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
[ -r conf ] && . ./conf
|
||||||
|
|
||||||
|
exec 2>&1
|
||||||
|
exec chpst -u relaysrv relaysrv -keys=/var/lib/relaysrv $RELAY_ARGS
|
|
@ -0,0 +1,31 @@
|
||||||
|
# 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
|
||||||
|
}
|
Loading…
Reference in New Issue