Upgrade core-testing to v0.4.0

Add the new config files and add a drop-in config for the webapp.
This commit is contained in:
Tobias Reisinger 2020-11-19 17:00:32 +01:00
parent b39bd4a189
commit 58d94cc3a3
8 changed files with 55 additions and 42 deletions

View file

@ -1,18 +1,23 @@
# Maintainer: Tobias Reisinger <tobias@msrg.cc>
pkgname=emgauwa-webapp
pkgver=0.0.9
pkgrel=1
pkgrel=2
epoch=
pkgdesc=""
arch=('any')
url="https://git.serguzim.me/emgauwa/client"
license=('unknown')
groups=()
source=("$pkgname-$pkgver.tar.gz::https://git.serguzim.me/emgauwa/client/releases/download/v$pkgver/emgauwa.tar.gz")
sha256sums=('cbbda65e715b8104b1fd0f81c75fa320ecd4d770e5ee9cabe62244aece5785b6')
source=("$pkgname-$pkgver.tar.gz::https://git.serguzim.me/emgauwa/client/releases/download/v$pkgver/emgauwa.tar.gz"
"webapp.conf")
sha256sums=('cbbda65e715b8104b1fd0f81c75fa320ecd4d770e5ee9cabe62244aece5785b6'
'1179e30b5fb9f8b2a5dc27989cfee8cca3b01dfa54f8af474cddced998fb91ff')
package() {
# install project
install -d "$pkgdir/usr/share/webapps/"
cp -R "$srcdir/emgauwa" "$pkgdir/usr/share/webapps/emgauwa"
install -dm750 "${pkgdir}/etc/emgauwa/"
install -dm750 "${pkgdir}/etc/emgauwa/core.conf.d"
install -Dm750 -o emgauwa -g emgauwa "webapp.conf" "${pkgdir}/etc/emgauwa/core.conf.d/webapp.conf"
}

4
webapp/webapp.conf Normal file
View file

@ -0,0 +1,4 @@
[core]
content-dir = "/usr/share/webapps/emgauwa"
not-found-file = "/usr/share/webapps/emgauwa/index.html"
not-found-file-mime = "text/html"