From 8ef47d2dc21512dd7a5671e6a2e1f1f212fe4ed2 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 10 Apr 2021 23:05:31 +0200 Subject: bareos: bareos-webui new --- bareos/PKGBUILD | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) (limited to 'bareos/PKGBUILD') 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 -- cgit v1.2.3-70-g09d2