summaryrefslogtreecommitdiff
path: root/bareos
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-04-10 23:05:31 +0200
committerErich Eckner <git@eckner.net>2021-04-10 23:06:03 +0200
commit8ef47d2dc21512dd7a5671e6a2e1f1f212fe4ed2 (patch)
tree92ebd9a14391f3ce07df8251c7f07cd68e165cb4 /bareos
parentaa9cc69d740b2de8a188ec623787ec4f51735d9f (diff)
downloadarchlinuxewe-8ef47d2dc21512dd7a5671e6a2e1f1f212fe4ed2.tar.xz
bareos: bareos-webui new
Diffstat (limited to 'bareos')
-rw-r--r--bareos/PKGBUILD35
1 files changed, 33 insertions, 2 deletions
diff --git a/bareos/PKGBUILD b/bareos/PKGBUILD
index 54af13e7b..dc917b94d 100644
--- a/bareos/PKGBUILD
+++ b/bareos/PKGBUILD
@@ -21,10 +21,11 @@ pkgname=("${pkgbase}-common"
"${pkgbase}-storage-tape"
"${pkgbase}-director-python-plugin"
"${pkgbase}-filedaemon-python-plugin"
- "${pkgbase}-storage-python-plugin")
+ "${pkgbase}-storage-python-plugin"
+ "${pkgbase}-webui")
pkgver=20.0.1
-pkgrel=6
+pkgrel=7
arch=(x86_64 i486 i686 pentium4 armv6h armv7h aarch64)
groups=('bareos')
pkgdesc="Bareos - Backup Archiving REcovery Open Sourced"
@@ -749,6 +750,36 @@ package_bareos-storage-python-plugin() {
-t "$pkgdir/usr/lib/bareos/plugins"
}
+package_bareos-webui() {
+ pkgdesc="${pkgdesc} - Webui (Bareos web administration)"
+ depends=('php' 'php-fpm' 'jansson')
+ optdepend=('nginx' 'apache')
+ backup=('etc/bareos-webui/directors.ini'
+ 'etc/bareos-webui/configuration.ini'
+ 'etc/bareos/bareos-dir.d/console/admin.conf.example'
+ 'etc/bareos/bareos-dir.d/profile/webui-admin.conf')
+
+ install -dm755 \
+ "$pkgdir/etc" \
+ "$pkgdir/usr/share/webapps"
+ mv \
+ "$srcdir/install/usr/local/share/bareos-webui" \
+ "$pkgdir/usr/share/webapps/"
+ mv \
+ "$srcdir/install/etc/bareos-webui" \
+ "$pkgdir/etc/"
+
+ install -Dm644 \
+ "$srcdir/install/etc/httpd/conf.d/bareos-webui.conf" \
+ -t "$pkgdir/etc/httpd/conf.d/extra"
+ install -Dm644 \
+ "$srcdir/install/etc/bareos/bareos-dir.d/console/admin.conf.example" \
+ -t "$pkgdir/etc/bareos/bareos-dir.d/console"
+ install -Dm644 \
+ "$srcdir/install/etc/bareos/bareos-dir.d/profile/webui-admin.conf" \
+ -t "$pkgdir/etc/bareos/bareos-dir.d/profile"
+}
+
makedepends+=(
$(
for _pn in "${pkgname[@]}"; do