From dd4942d8ccfcf07acada4cecbedb5eba553be586 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 23 Mar 2020 22:12:20 +0100 Subject: bareos: no mysql on i486 :-( --- bareos/PKGBUILD | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'bareos') diff --git a/bareos/PKGBUILD b/bareos/PKGBUILD index 80c2f9a89..2d3640293 100644 --- a/bareos/PKGBUILD +++ b/bareos/PKGBUILD @@ -28,9 +28,13 @@ groups=('bareos') pkgdesc="Bareos - Backup Archiving REcovery Open Sourced" url="http://www.bareos.org" license=('AGPL3') -makedepends=(acl bash cmake gcc-libs glibc jansson libcap libmariadbclient lsb-release lzo mtx openssl postgresql-libs python python2 readline sqlite3 zlib) -makedepends_x86_64=(ceph) -makedepends_aarch64=(ceph) +makedepends=(acl bash cmake gcc-libs glibc jansson libcap lsb-release lzo mtx openssl postgresql-libs python python2 readline sqlite3 zlib) +makedepends_x86_64=(ceph libmariadbclient) +makedepends_i686=(libmariadbclient) +makedepends_pentium4=(libmariadbclient) +makedepends_armv6h=(libmariadbclient) +makedepends_armv7h=(libmariadbclient) +makedepends_aarch64=(ceph libmariadbclient) source=("$pkgbase-$pkgver.tar.gz::https://github.com/$pkgbase/$pkgbase/archive/Release/$pkgver.tar.gz" 'nullify-os-specifics.patch' 'check-if-bareos-backup-is-running') @@ -48,6 +52,8 @@ build() { mkdir build cd build + [ "${CARCH}" = 'i486' ] && mysql=no || mysql=yes + cmake .. \ -Dprefix=/usr \ -Dsbindir=/usr/bin \ @@ -62,7 +68,7 @@ build() { -Ddynamic-storage-backends=yes \ -Dpython=yes \ -Dopenssl=yes \ - -Dmysql=yes \ + -Dmysql=${mysql} \ -Ddisable-rpath=yes \ -Dpostgresql=yes \ -Dsqlite3=yes \ @@ -198,7 +204,14 @@ package_bareos-database-common() { package_bareos-database-mysql() { pkgdesc="${pkgdesc} - Libs and tools for mysql catalog" provides=("bareos-database=$pkgver") - depends=("bareos-database-common=$pkgver" 'libmariadbclient') + depends=("bareos-database-common=$pkgver") + depends_x86_64=('libmariadbclient') + depends_i686=('libmariadbclient') + depends_pentium4=('libmariadbclient') + depends_armv6h=('libmariadbclient') + depends_armv7h=('libmariadbclient') + depends_aarch64=('libmariadbclient') + [ "${CARCH}" != 'i486' ] || return 0 install=bareos-database-mysql.install install -Dm755 \ -- cgit v1.2.3-70-g09d2