27 lines
970 B
Bash
27 lines
970 B
Bash
# Template file for 'rest-server'
|
|
pkgname=rest-server
|
|
version=0.13.0
|
|
revision=2
|
|
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"
|
|
changelog="https://raw.githubusercontent.com/restic/rest-server/master/CHANGELOG.md"
|
|
distfiles="https://github.com/restic/rest-server/archive/v${version}.tar.gz"
|
|
checksum=bc2f57f07fc7affa7d419b8034f2bb7638c14976505966c93f7d75e90ad0d460
|
|
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}/rest-server.confd 644 etc/default rest-server
|
|
vsv rest-server
|
|
}
|