void-packages/srcpkgs/rest-server/template

26 lines
857 B
Bash

# Template file for 'rest-server'
pkgname=rest-server
version=0.11.0
revision=1
build_style=go
go_import_path="github.com/restic/rest-server"
go_package="${go_import_path}/cmd/rest-server"
short_desc="HTTP server that implements restic's REST backend API"
maintainer="Gerardo Di Iorio <arete74@gmail.com>"
license="BSD-2-Clause"
homepage="https://github.com/restic/rest-server"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=cd9b35ad2224244207a967ebbc78d84f4298d725e95c1fa9341ed95a350ea68f
system_accounts="_restserver"
_restserver_homedir="/var/lib/rest-server"
_restserver_descr="Rest Server Daemon User"
make_dirs="/var/lib/rest-server 0755 _restserver _restserver"
conf_files="/etc/default/rest-server"
post_install() {
vdoc README.md
vlicense LICENSE
vinstall ${FILESDIR}/${pkgname}.confd 644 etc/default ${pkgname}
vsv rest-server
}