testing/grommunio-error-pages: new aport

Grommunio-branded error pages for web servers
This commit is contained in:
Noel Kuntze 2024-03-18 01:05:34 +01:00 committed by Natanael Copa
parent 1d2e6d319f
commit ee0bcddfa6
3 changed files with 73 additions and 0 deletions

View File

@ -0,0 +1,14 @@
diff -ruN a/Makefile b/Makefile
--- a/Makefile 2024-03-11 14:57:43.678248621 +0100
+++ b/Makefile 2024-03-11 15:04:24.448068860 +0100
@@ -1,8 +1,8 @@
prefix = /usr
-datadir = ${prefix}/share
+datadir = ${prefix}/share/webapps
gepdir = ${datadir}/grommunio-error-pages
cssdir = ${gepdir}/_errors
-nglocdir = ${datadir}/grommunio-common/nginx/locations.d
+nglocdir = ${prefix}/share/grommunio-common/nginx/locations.d
INSTALL = install
MKDIR_P = mkdir -p

View File

@ -0,0 +1,18 @@
diff -ruN a/snippets/grommunio-error-pages.conf b/snippets/grommunio-error-pages.conf
--- a/snippets/grommunio-error-pages.conf 2024-03-11 14:56:08.558291887 +0100
+++ b/snippets/grommunio-error-pages.conf 2024-03-11 14:56:47.038274390 +0100
@@ -42,12 +42,12 @@
fastcgi_intercept_errors on;
location ~* /_errors/ {
- root /usr/share/grommunio-error-pages;
+ root /usr/share/webapps/grommunio-error-pages;
allow all;
}
location ^~ /grommunio-error-pages/ {
- root /usr/share/;
+ root /usr/share/webapps/;
sub_filter '%{HOSTNAME}' $host;
sub_filter '_errors/' '/_errors/';
sub_filter_once off;

View File

@ -0,0 +1,41 @@
# Maintainer: Noel Kuntze <noel.kuntze@contauro.com>
pkgname=grommunio-error-pages
pkgdesc="Grommunio-branded error pages for web servers"
pkgver=1.0_git20231031
pkgrel=0
arch="noarch !riscv64"
url="https://grommunio.com/"
license="AGPL-3.0-only"
options="!check" # No test suite
makedepends="python3"
_commithash=bb2df37c0856363764e3289e2ac0e5df74ef0c1f
source="$pkgname-$pkgver.tar.gz::https://github.com/grommunio/grommunio-error-pages/archive/$_commithash.tar.gz
0001-makefile.patch
0002-conf-webapps-path.patch
"
builddir="$srcdir/$pkgname-$_commithash/"
build() {
make
}
check() {
make check
}
package() {
mkdir -p "$pkgdir"
make install DESTDIR="$(realpath $pkgdir)"
# license
install -Dm0644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
sha512sums="
a2b8c2531efaae2538c97b595921c9fb62983846fae65bea55a4b234dab5240b0ac78e5a97a4cfcd5e085d318f123239669e311850a3995ad3c7a922e7c4ec43 grommunio-error-pages-1.0_git20231031.tar.gz
db9b919f3eadcf283bae64ea0f6505f355dd3bec7f4e46119de6fa1f6d36ccac65215988a9a35bff6d90a727ade253dbf720e0ec498fb27bab95d2a5e68dcf71 0001-makefile.patch
6f5567f662cb1fd97028806486287df84c01894fa5454bc04e0e67df5e31166aa17e920e385b200420127a0a1f4caf376e51e1a3eeac5edeec4adb8affacdd15 0002-conf-webapps-path.patch
"