aboutsummaryrefslogtreecommitdiff
path: root/libeufin
diff options
context:
space:
mode:
Diffstat (limited to 'libeufin')
-rw-r--r--libeufin/libeufin.SlackBuild2
-rw-r--r--libeufin/libeufin.info6
-rw-r--r--libeufin/root/etc/rc.d/rc.libeufin.new50
3 files changed, 54 insertions, 4 deletions
diff --git a/libeufin/libeufin.SlackBuild b/libeufin/libeufin.SlackBuild
index 2516687..56aada0 100644
--- a/libeufin/libeufin.SlackBuild
+++ b/libeufin/libeufin.SlackBuild
@@ -3,7 +3,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libeufin
-VERSION=${VERSION:-0.11.2}
+VERSION=${VERSION:-0.13.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_slackcoder}
PKGTYPE=${PKGTYPE:-txz}
diff --git a/libeufin/libeufin.info b/libeufin/libeufin.info
index 2c6079c..4bc3512 100644
--- a/libeufin/libeufin.info
+++ b/libeufin/libeufin.info
@@ -1,8 +1,8 @@
PRGNAM="libeufin"
-VERSION="0.11.2"
+VERSION="0.13.0"
HOMEPAGE="https://taler.net"
-DOWNLOAD="https://ftpmirror.gnu.org/gnu/taler/libeufin-0.11.2-sources.tar.gz"
-MD5SUM="78b98f3559e27266220688ad91d6ef63"
+DOWNLOAD="https://ftpmirror.gnu.org/gnu/taler/libeufin-0.13.0-sources.tar.gz"
+MD5SUM="be28bf3e59904300520b8e61d45cbba6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="zulu-openjdk17"
diff --git a/libeufin/root/etc/rc.d/rc.libeufin.new b/libeufin/root/etc/rc.d/rc.libeufin.new
new file mode 100644
index 0000000..42e9c3e
--- /dev/null
+++ b/libeufin/root/etc/rc.d/rc.libeufin.new
@@ -0,0 +1,50 @@
+#!/bin/sh
+#
+# Startup/shutdown script for GNU Taler's libeufin bank.
+#
+
+export USERPROFILE=/var/lib/libeufin
+
+create_run_dir() {
+ if [ ! -d /run/libeufin-bank/ ]; then
+ mkdir -p /run/libeufin-bank
+ chown libeufin-bank:libeufin-bank /run/libeufin-bank
+ chmod g+wX /run/libeufin-bank
+ fi
+}
+
+start() {
+ echo "Starting Libeufin Bank"
+ create_run_dir
+
+ daemon \
+ --name=libeufin-bank \
+ --user=libeufin-bank \
+ --pidfiles=/run/libeufin-bank \
+ --output=/var/log/taler/libeufin-bank.log \
+ -- libeufin-bank serve --config /etc/libeufin/libeufin-bank.conf
+}
+
+stop() {
+ echo "Stopping Libeufin Bank"
+ /usr/bin/daemon --name=libeufin-bank --pidfiles=/run/libeufin-bank --stop
+}
+
+status() {
+ /usr/bin/daemon --name=libeufin-bank --pidfiles=/run/libeufin-bank --running --verbose
+}
+
+case "$1" in
+start)
+ start
+ ;;
+stop)
+ stop
+ ;;
+status)
+ status
+ ;;
+*)
+ echo "Usage: $0 {start|stop|status}"
+ exit 1
+esac