From 6841a60b1d96085abebb88c34d2a67e82659f89f Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Wed, 26 Jan 2022 19:07:50 -0500 Subject: [PATCH] New package: ma1sd-2.5.0 --- srcpkgs/ma1sd/files/ma1sd/log/run | 1 + srcpkgs/ma1sd/files/ma1sd/run | 3 +++ srcpkgs/ma1sd/template | 28 ++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 120000 srcpkgs/ma1sd/files/ma1sd/log/run create mode 100644 srcpkgs/ma1sd/files/ma1sd/run create mode 100644 srcpkgs/ma1sd/template diff --git a/srcpkgs/ma1sd/files/ma1sd/log/run b/srcpkgs/ma1sd/files/ma1sd/log/run new file mode 120000 index 000000000000..3a5b4a586051 --- /dev/null +++ b/srcpkgs/ma1sd/files/ma1sd/log/run @@ -0,0 +1 @@ +/usr/bin/vlogger \ No newline at end of file diff --git a/srcpkgs/ma1sd/files/ma1sd/run b/srcpkgs/ma1sd/files/ma1sd/run new file mode 100644 index 000000000000..6307f934f3db --- /dev/null +++ b/srcpkgs/ma1sd/files/ma1sd/run @@ -0,0 +1,3 @@ +#!/bin/sh +exec chpst -u _ma1sd:_ma1sd java -jar /usr/lib/ma1sd/ma1sd.jar \ + --config /etc/ma1sd.yaml diff --git a/srcpkgs/ma1sd/template b/srcpkgs/ma1sd/template new file mode 100644 index 000000000000..04774775ca77 --- /dev/null +++ b/srcpkgs/ma1sd/template @@ -0,0 +1,28 @@ +# Template file for 'ma1sd' +pkgname=ma1sd +version=2.5.0 +revision=1 +hostmakedepends="gradle" +depends="virtual?java-runtime" +short_desc="Federated Matrix Identity Server" +maintainer="Joel Beckmeyer " +license="AGPL-3.0-or-later" +homepage="https://github.com/ma1uta/ma1sd" +distfiles="https://github.com/ma1uta/ma1sd/archive/refs/tags/${version}.tar.gz" +checksum=9655d59d4026c7ed2217867a51cc8c9c82536ea92c54b4bab4b7d6d1ed3c0b52 + +system_accounts="_ma1sd" +_ma1sd_homedir="/var/lib/ma1sd" + +make_dirs="/var/lib/ma1sd 0700 _ma1sd _ma1sd" + +do_build() { + MA1SD_BUILD_VERSION="${version}" gradle --no-daemon build +} + +do_install() { + vinstall "build/libs/ma1sd-${version}.jar" 644 usr/lib/ma1sd ma1sd.jar + vsconf ma1sd.example.yaml + vsv ma1sd + vlicense LICENSE +}