From e15dd00e71560eb6d961fee721de4788882dee8f Mon Sep 17 00:00:00 2001 From: lemmi Date: Sat, 16 Jan 2016 14:22:15 +0100 Subject: [PATCH] New package: relaysrv-0.12.1 --- srcpkgs/relaysrv/files/relaysrv/log/run | 3 +++ srcpkgs/relaysrv/files/relaysrv/run | 6 +++++ srcpkgs/relaysrv/template | 31 +++++++++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100755 srcpkgs/relaysrv/files/relaysrv/log/run create mode 100755 srcpkgs/relaysrv/files/relaysrv/run create mode 100644 srcpkgs/relaysrv/template diff --git a/srcpkgs/relaysrv/files/relaysrv/log/run b/srcpkgs/relaysrv/files/relaysrv/log/run new file mode 100755 index 00000000000..b1d5a28a7bf --- /dev/null +++ b/srcpkgs/relaysrv/files/relaysrv/log/run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec svlogd /var/log/relaysrv diff --git a/srcpkgs/relaysrv/files/relaysrv/run b/srcpkgs/relaysrv/files/relaysrv/run new file mode 100755 index 00000000000..c25aaab0a30 --- /dev/null +++ b/srcpkgs/relaysrv/files/relaysrv/run @@ -0,0 +1,6 @@ +#!/bin/sh + +[ -r conf ] && . ./conf + +exec 2>&1 +exec chpst -u relaysrv relaysrv -keys=/var/lib/relaysrv $RELAY_ARGS diff --git a/srcpkgs/relaysrv/template b/srcpkgs/relaysrv/template new file mode 100644 index 00000000000..7c35e64268e --- /dev/null +++ b/srcpkgs/relaysrv/template @@ -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 " +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 +}