user/rmfakecloud: upgrade to 0.0.12
This commit is contained in:
parent
dcaea4f853
commit
a0b867474b
2 changed files with 18 additions and 28 deletions
|
@ -2,7 +2,8 @@
|
|||
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||
|
||||
pkgname=rmfakecloud
|
||||
pkgver=0.0.9
|
||||
pkgver=0.0.12
|
||||
_gittag=v$pkgver
|
||||
pkgrel=0
|
||||
pkgdesc="A selfhosted cloud for the Remarkable Tablet"
|
||||
url="https://github.com/ddvk/rmfakecloud"
|
||||
|
@ -50,7 +51,7 @@ package() {
|
|||
install -Dm755 "$srcdir"/rmfakecloud.openrc "$pkgdir"/etc/init.d/rmfakecloud
|
||||
}
|
||||
sha512sums="
|
||||
1b330fef54f99307dfe2b5230e0e10a9da233a7c83f311825267fbac1401b2437ecb37eb2fdaf51c00ec0d7869c2a130f75e3005e07f72574393ed5f1550e781 rmfakecloud-0.0.9.tar.gz
|
||||
6a09b32d4ce74b9d3b03dd63aadf857d46c1f07ca4b05c1d203595f04c6395ff41fca76f899376d5db0ecc5067c2bd1a2972ee59d98b99c867aabeb4245d9209 rmfakecloud-0.0.12.tar.gz
|
||||
d5677cef282085cd6642a034dd258ffa294862aeb0ce81d6485a524a15564849bc4eb90a9d1fa4dbcf4eab69dcd893302aa06493fc8fad74d69200c2bdf246c0 rmfakecloud.conf
|
||||
891d0945886796132f951293e081046334857563b4ebae28a3aa5b6bc37768767c49ce102de645ed8340af2518de606be8bf6ecafeb6d189dd937970aa3e6498 rmfakecloud.openrc
|
||||
"
|
||||
|
|
|
@ -1,29 +1,18 @@
|
|||
#!/sbin/openrc-run
|
||||
name="$RC_SVCNAME"
|
||||
cfgfile="/etc/conf.d/$RC_SVCNAME"
|
||||
pidfile="/var/run/$RC_SVCNAME.pid"
|
||||
command="/usr/bin/rmfakecloud"
|
||||
command_args=""
|
||||
command_user="$RM_USER"
|
||||
command_group="$RM_GROUP"
|
||||
start_stop_daemon_args=""
|
||||
command_background="yes"
|
||||
output_log="/var/log/$RC_SVCNAME/$RC_SVCNAME.log"
|
||||
error_log="/var/log/$RC_SVCNAME/$RC_SVCNAME.err"
|
||||
|
||||
name="Remarkable cloud"
|
||||
root="/var/lib/rmfakecloud"
|
||||
logfile="/var/log/rmfakecloud/rmfakecloud.log"
|
||||
pidfile="/run/rmfakecloud.pid"
|
||||
|
||||
depend() {
|
||||
use net
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting rmfakecloud"
|
||||
cd $root
|
||||
start-stop-daemon --start --background \
|
||||
--chdir "${root}" \
|
||||
--user="rm" \
|
||||
--make-pidfile --pidfile="${pidfile}" \
|
||||
--stdout "${logfile}" --stderr "${logfile}" \
|
||||
--exec /usr/bin/env -- STORAGE_URL="${STORAGE_URL}" PORT="${PORT}" DATADIR="${DATADIR}" RM_SMTP_SERVER="${RM_SMTP_SERVER}" RM_SMTP_USERNAME="${RM_SMTP_USERNAME}" RM_SMTP_PASSWORD="${RM_SMTP_PASSWORD}" RM_SMTP_FROM="${RM_SMTP_FROM}" RMAPI_HWR_APPLICATIONKEY="${RMAPI_HWR_APPLICATIONKEY}" RMAPI_HWR_HMAC=RMAPI_HWR_HMAC="${RMAPI_HWR_HMAC}" /usr/bin/rmfakecloud
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping rmfakecloud"
|
||||
start-stop-daemon --stop \
|
||||
--pidfile=${pidfile} \
|
||||
eend $?
|
||||
start_pre() {
|
||||
checkpath --directory --owner $command_user:$command_group --mode 0775 \
|
||||
/var/log/$RC_SVCNAME /var/lib/$RC_SVCNAME
|
||||
export STORAGE_URL PORT DATADIR RM_SMTP_SERVER RM_SMTP_USERNAME RM_SMTP_PASSWORD RM_SMTP_FROM RMAPI_HWR_APPLICATIONKEY RMAPI_HWR_HMAC TLS_KEY TLS_CERT
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue