summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Fulz2019-10-23 13:08:33 +0200
committerMatthias Fulz2019-10-23 13:08:33 +0200
commitca6488185589f10b591b95e3f53b2d00c722c58e (patch)
treef552c09a348f0ea59636c0accf3630b6de8a83ba
parentbd9f654b768874c7e79348af5b5d2945bfbb02f7 (diff)
downloadaur-ca6488185589f10b591b95e3f53b2d00c722c58e.tar.gz
Bugfixing. Added bareos-webui
-rw-r--r--PKGBUILD131
1 files changed, 61 insertions, 70 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 37b4b259b3d..87057978a6a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,3 +1,4 @@
+# Maintainer: Michael Spradling <mike@mspradling.com>
# Maintainer: Matthias Fulz <mfulz@olznet.net>
# Contributor: Michael Spradling <mike@mspradling.com>
@@ -19,7 +20,8 @@ pkgname=("${pkgbase}-common"
"${pkgbase}-storage-tape"
"${pkgbase}-director-python-plugin"
"${pkgbase}-filedaemon-python-plugin"
- "${pkgbase}-storage-python-plugin")
+ "${pkgbase}-storage-python-plugin"
+ "${pkgbase}-webui")
pkgmajor=18
pkgver=18.2.6
@@ -29,7 +31,7 @@ groups=('bareos')
pkgdesc="Bareos - Backup Archiving REcovery Open Sourced"
url="http://www.bareos.org"
license=('AGPL3')
-makedepends=('libmariadbclient' 'postgresql-libs' 'sqlite3' 'python2' 'cmake' 'rpcsvc-proto')
+makedepends=('libmariadbclient' 'postgresql-libs' 'sqlite3' 'python2' 'cmake' 'rpcsvc-proto' 'git')
source=("git+https://github.com/bareos/bareos.git#tag=Release/$pkgver")
md5sums=('SKIP')
@@ -41,76 +43,45 @@ prepare() {
build() {
cd $pkgbase
-
- #cmake .\
- #-DCMAKE_INSTALL_PREFIX=/usr \
- #-DCMAKE_INSTALL_SBINDIR=/usr/bin \
- #-DCMAKE_INSTALL_SYSCONFDIR=/etc \
- #-DCMAKE_INSTALL_LOCALSTATEDIR=/ \
- #-DCMAKE_INSTALL_LIBDIR=/usr/lib/$pkgbase \
- #-Dconio=no \
- #-Ddynamic-cats-backends=yes \
- #-Ddynamic-storage-backends=yes \
- #-Drpath=no \
- #-Dpostgresql=yes \
- #-Dmysql=yes \
- #-Dpython=yes \
- #-Dopenssl=yes \
- #-Dsqlite3=yes \
- #-Dlogdir=/var/log/$pkgbase \
- #-Ddir-user=$pkgbase \
- #-Ddir-group=$pkgbase \
- #-Dsd-user=$pkgbase \
- #-Dsd-group=$pkgbase \
- #-Dfd-user=root \
- #-Dfd-group=root \
- #-Dpid-dir=/run/bareos \
- #-Dconfigtemplatedir=/usr/share/$pkgbase/config \
- #-Dworking-dir=/var/lib/$pkgbase \
- #-Dplugindir=/usr/lib/$pkgbase/plugins \
- #-Dscriptdir=/usr/lib/$pkgbase/scripts \
- #-Dbackenddir=/usr/lib/$pkgbase/backends \
- #-Darchivedir=/var/lib/$pkgbase/storage \
- #-Dbsrdir=/var/lib/$pkgbase \
- #-Dsystemd=yes \
-
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_SBINDIR=/usr/bin -DCMAKE_INSTALL_SYSCONFDIR=/etc -DCMAKE_INSTALL_LOCALSTATEDIR=/ -DCMAKE_INSTALL_LIBDIR=/usr/lib/$pkgbase -Dlibdir=/usr/lib/$pkgbase -Dconio=no -Ddynamic-cats-backends=yes -Ddynamic-storage-backends=yes -Drpath=no -Dpostgresql=yes -Dmysql=yes -Dpython=yes -Dopenssl=yes -Dsqlite3=yes -Dlogdir=/var/log/$pkgbase -Ddir-user=$pkgbase -Ddir-group=$pkgbase -Dsd-user=$pkgbase -Dsd-group=$pkgbase -Dfd-user=root -Dfd-group=root -Dpiddir=/run/bareos -Dsubsysdir=/run/bareos -Dconfdir=/etc/$pkgbase -Dconfigtemplatedir=/usr/share/$pkgbase/config -Dworkingdir=/var/lib/$pkgbase -Dplugindir=/usr/lib/$pkgbase/plugins -Dscriptdir=/usr/lib/$pkgbase/scripts -Dbackenddir=/usr/lib/$pkgbase/backends -Darchivedir=/var/lib/$pkgbase/storage -Dbsrdir=/var/lib/$pkgbase -Dsystemd=yes .
+ mkdir build
+ cd build
+
+ cmake .. \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_SBINDIR=/usr/bin \
+ -DCMAKE_INSTALL_SYSCONFDIR=/etc \
+ -DCMAKE_INSTALL_LOCALSTATEDIR=/ \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib/$pkgbase \
+ -Dlibdir=/usr/lib/$pkgbase \
+ -Dconio=no \
+ -Ddynamic-cats-backends=yes \
+ -Ddynamic-storage-backends=yes \
+ -Drpath=no \
+ -Dpostgresql=yes \
+ -Dmysql=yes \
+ -Dpython=yes \
+ -Dopenssl=yes \
+ -Dsqlite3=yes \
+ -Dlogdir=/var/log/$pkgbase \
+ -Ddir-user=$pkgbase \
+ -Ddir-group=$pkgbase \
+ -Dsd-user=$pkgbase \
+ -Dsd-group=$pkgbase \
+ -Dfd-user=root \
+ -Dfd-group=root \
+ -Dpiddir=/run/bareos \
+ -Dsubsysdir=/run/bareos \
+ -Dconfdir=/etc/$pkgbase \
+ -Dconfigtemplatedir=/usr/share/$pkgbase/config \
+ -Dworkingdir=/var/lib/$pkgbase \
+ -Dplugindir=/usr/lib/$pkgbase/plugins \
+ -Dscriptdir=/usr/lib/$pkgbase/scripts \
+ -Dbackenddir=/usr/lib/$pkgbase/backends \
+ -Darchivedir=/var/lib/$pkgbase/storage \
+ -Dbsrdir=/var/lib/$pkgbase \
+ -Dsystemd=yes
make DESTDIR="$srcdir/install" install
- #./configure \
- #--prefix=/usr \
- #--sbindir=/usr/bin \
- #--sysconfdir=/etc \
- #--localstatedir=/ \
- #--libdir=/usr/lib/$pkgbase \
- #--disable-conio \
- #--enable-dynamic-cats-backends \
- #--enable-dynamic-storage-backends \
- #--with-python \
- #--with-openssl \
- #--with-mysql \
- #--disable-rpath \
- #--with-postgresql \
- #--with-sqlite3 \
- #--with-logdir=/var/log/$pkgbase \
- #--with-dir-user=$pkgbase \
- #--with-dir-group=$pkgbase \
- #--with-sd-user=$pkgbase \
- #--with-sd-group=$pkgbase \
- #--with-fd-user=root \
- #--with-pid-dir=/run/bareos \
- #--with-fd-group=root \
- #--with-configtemplatedir=/usr/share/$pkgbase/config \
- #--with-working-dir=/var/lib/$pkgbase \
- #--with-plugindir=/usr/lib/$pkgbase/plugins \
- #--with-scriptdir=/usr/lib/$pkgbase/scripts \
- #--with-backenddir=/usr/lib/$pkgbase/backends \
- #--with-archivedir=/var/lib/$pkgbase/storage \
- #--with-bsrdir=/var/lib/$pkgbase \
- #--with-subsys-dir=/run/$pkgbase \
- #--with-systemd && make
-
- #make DESTDIR="$srcdir/install" install install-autostart
}
@@ -486,3 +457,23 @@ package_bareos-storage-python-plugin() {
_cp $srcdir/install/$f $pkgdir/$f
done
}
+
+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')
+
+ _cp $srcdir/install/bareos-webui $pkgdir/usr/share/webapps/bareos-webui
+
+ for f in \
+ etc/bareos/bareos-dir.d/console/admin.conf.example \
+ etc/bareos/bareos-dir.d/profile/webui-admin.conf \
+ etc/bareos-webui \
+ ; do
+ _cp $srcdir/install/$f $pkgdir/$f
+ done
+}