From 1d2e6d319fcf33eb2bf84f57dda2aa7f794c5996 Mon Sep 17 00:00:00 2001 From: Noel Kuntze Date: Sun, 10 Mar 2024 10:25:55 +0100 Subject: [PATCH] testing/grommunio-admin-web: new aport Frontend for grommunio management --- .../grommunio-admin-web/0001-makefile.patch | 12 +++++ testing/grommunio-admin-web/APKBUILD | 48 +++++++++++++++++++ testing/grommunio-admin-web/config.json | 7 +++ 3 files changed, 67 insertions(+) create mode 100644 testing/grommunio-admin-web/0001-makefile.patch create mode 100644 testing/grommunio-admin-web/APKBUILD create mode 100644 testing/grommunio-admin-web/config.json diff --git a/testing/grommunio-admin-web/0001-makefile.patch b/testing/grommunio-admin-web/0001-makefile.patch new file mode 100644 index 00000000000..64a8752ac10 --- /dev/null +++ b/testing/grommunio-admin-web/0001-makefile.patch @@ -0,0 +1,12 @@ +diff -ruN a/Makefile b/Makefile +--- a/Makefile 2024-03-06 23:03:07.225271807 +0100 ++++ b/Makefile 2024-03-06 23:03:21.095265944 +0100 +@@ -2,7 +2,7 @@ + + # Tools + +-YARN ?= yarn ++YARN ?= npm + + # Variables + diff --git a/testing/grommunio-admin-web/APKBUILD b/testing/grommunio-admin-web/APKBUILD new file mode 100644 index 00000000000..a20480b82e4 --- /dev/null +++ b/testing/grommunio-admin-web/APKBUILD @@ -0,0 +1,48 @@ +# Maintainer: Noel Kuntze +pkgname=grommunio-admin-web +pkgdesc="Frontend for grommunio management" +pkgver=2.9.0 +pkgrel=0 +arch="noarch !riscv64" +url="http://www.grommunio.com" +license="AGPL-3.0-only" +options="!check" # No test suite +depends="grommunio-admin-api grommunio-admin-common" +makedepends="npm" + +source="$pkgname-$pkgver.tar.gz::https://github.com/grommunio/admin-web/archive/refs/tags/$pkgver.tar.gz + 0001-makefile.patch + config.json + " + +builddir="$srcdir/admin-web-$pkgver" + +build() { + make +} + +package() { + # webapp + install -dm0755 "$pkgdir/usr/share/webapps/" + cp -rp build "$pkgdir/usr/share/webapps/$pkgname" + + # license + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + # nginx conf + sed -i "s@/usr/share/grommunio-admin-web@/usr/share/webapps/grommunio-admin-web@" conf/web.conf + install -Dpm644 conf/web.conf "$pkgdir/usr/share/grommunio-admin-common/nginx.d/web.conf" + + # config.json + install -Dm644 "$srcdir/config.json" "$pkgdir/etc/grommunio-admin-common/config.json" + + # npm gives ownership of ALL FILES to build user + # https://bugs.archlinux.org/task/63396 + chown -R root:root "$pkgdir" +} + +sha512sums=" +c0dccb101de6acb6b54e1f839b62417a9d7cd45687d715e193e318b3d73dfd978afd80729cd2bfb1a2b7409985da721fa9aa5a7f22f65dbf920dd205a0d2bf64 grommunio-admin-web-2.9.0.tar.gz +5faa04f1f95cccdbb79a1e09f569a915794e236cb5738b25fd2e9f85b346875b6c1a8f20c3b53ccf823921eca0708a05da5c72f3b0971847ec34bfdbebf0f26e 0001-makefile.patch +c40b0722996b9d0449c3e11f2b56f59e1109b59253ffdf13422c21c56584924fe93a381250ce915656837c1c7799821bc6b6bcf463f867d6e529e59e3a899744 config.json +" diff --git a/testing/grommunio-admin-web/config.json b/testing/grommunio-admin-web/config.json new file mode 100644 index 00000000000..d913eb2fcfd --- /dev/null +++ b/testing/grommunio-admin-web/config.json @@ -0,0 +1,7 @@ +{ + "mailWebAddress": "https://mail.example.com/web", + "chatWebAddress": "https://mail.example.com/chat", + "videoWebAddress": "https://mail.example.com/meet", + "fileWebAddress": "https://mail.example.com/files", + "archiveWebAddress": "https://mail.example.com/archive" +}