parent
c494978c72
commit
b754ff949d
5 changed files with 23 additions and 34 deletions
|
@ -1,31 +0,0 @@
|
|||
# Template file for 'relaysrv'
|
||||
pkgname=relaysrv
|
||||
version=0.12.18
|
||||
revision=2
|
||||
build_style=go
|
||||
go_import_path="github.com/syncthing/relaysrv"
|
||||
hostmakedepends="git-perl"
|
||||
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=ce21cd29bd091c3dbdc138dc94ede63b6d815b664b615a87a4f1b01ee5f2ce35
|
||||
|
||||
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
|
||||
}
|
1
srcpkgs/syncthing-relaysrv
Symbolic link
1
srcpkgs/syncthing-relaysrv
Symbolic link
|
@ -0,0 +1 @@
|
|||
syncthing/
|
|
@ -1,10 +1,10 @@
|
|||
# Template file for 'syncthing'
|
||||
pkgname=syncthing
|
||||
version=0.13.6
|
||||
version=0.13.7
|
||||
revision=1
|
||||
build_style=go
|
||||
go_import_path="github.com/syncthing/syncthing"
|
||||
go_package="${go_import_path}/cmd/syncthing"
|
||||
go_package="${go_import_path}/cmd/relaysrv ${go_import_path}/cmd/syncthing"
|
||||
go_build_tags="noupgrade"
|
||||
go_ldflags="-X main.Version=v${version}"
|
||||
short_desc="Open Source Continuous File Synchronization"
|
||||
|
@ -12,7 +12,7 @@ maintainer="Duncaen <duncaen@voidlinux.eu>"
|
|||
license="MPLv2"
|
||||
homepage="http://syncthing.net/"
|
||||
distfiles="https://github.com/syncthing/${pkgname}/archive/v${version}.tar.gz"
|
||||
checksum=df99789c3ab017edb39522d0d9cccac68e626f2a59f7a55588b282d65eadf2f3
|
||||
checksum=c487a489504e48bc7a94f25322da5485c23b3a8e3df2832b2454556ab86552c8
|
||||
|
||||
pre_build() {
|
||||
GOARCH= go run script/genassets.go gui > ./lib/auto/gui.files.go
|
||||
|
@ -22,3 +22,22 @@ post_install() {
|
|||
vlicense LICENSE
|
||||
vdoc README.md
|
||||
}
|
||||
|
||||
syncthing-relaysrv_package() {
|
||||
short_desc+="- relay server"
|
||||
license="MIT"
|
||||
replaces="relaysrv>=0.12.18_2"
|
||||
provides="relaysrv-${version}_${revision}"
|
||||
system_accounts="relaysrv"
|
||||
relaysrv_homedir="/var/lib/relaysrv"
|
||||
|
||||
make_dirs="
|
||||
/var/log/relaysrv 700 root root
|
||||
/var/lib/relaysrv 700 relaysrv relaysrv"
|
||||
|
||||
pkg_install() {
|
||||
vmove usr/bin/relaysrv
|
||||
vlicense cmd/relaysrv/LICENSE
|
||||
vsv relaysrv
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue