diff options
-rw-r--r-- | bareos/PKGBUILD | 161 |
1 files changed, 139 insertions, 22 deletions
diff --git a/bareos/PKGBUILD b/bareos/PKGBUILD index 1e65ca90d..f2213f1f6 100644 --- a/bareos/PKGBUILD +++ b/bareos/PKGBUILD @@ -24,7 +24,7 @@ pkgname=("${pkgbase}-common" "${pkgbase}-storage-python-plugin") pkgver=19.2.7 -pkgrel=7 +pkgrel=8 arch=(x86_64 i486 i686 pentium4 armv6h armv7h aarch64) groups=('bareos') pkgdesc="Bareos - Backup Archiving REcovery Open Sourced" @@ -126,7 +126,17 @@ build() { package_bareos-common() { # Matches bareos-common.install.in pkgdesc="${pkgdesc} - Common files" - depends=('libcap' 'openssl' 'acl' 'bash' 'lzo' 'jansson' 'zlib') + _pinned_dependencies=( + 'acl=2.2.53' + 'gcc-libs=10.1.0' + 'glibc>=2.31' + 'jansson=2.13.1' + 'libcap=2.34' + 'lzo=2.10' + 'openssl=1.1.1.g' + 'zlib=1:1.2.11' + ) + depends=('bash' "${_pinned_dependencies[@]}") install=bareos-common.install # are these really 'common'? @@ -168,7 +178,14 @@ package_bareos-common() { package_bareos-bconsole() { pkgdesc="${pkgdesc} - Admin Tool (CLI)" - depends=("bareos-common=$pkgver" 'readline' 'jansson') + _pinned_dependencies=( + 'gcc-libs=10.1.0' + 'glibc>=2.31' + 'jansson=2.13.1' + 'libbareos.so=19' + 'readline=8.0.004' + ) + depends=("bareos-common=$pkgver" "${_pinned_dependencies[@]}") groups+=('bareos-client') install=bareos-bconsole.install @@ -185,7 +202,12 @@ package_bareos-bconsole() { package_bareos-database-common() { pkgdesc="${pkgdesc} - Generic abstration libs and tools for sql catalog" - depends=("bareos-common=$pkgver" 'libcap' 'lzo' 'zlib' 'openssl' 'bash' 'jansson') + _pinned_dependencies=( + 'gcc-libs=10.1.0' + 'glibc>=2.31' + 'libbareos.so=19' + ) + depends=("bareos-common=$pkgver" 'libcap' 'lzo' 'zlib' 'openssl' 'bash' 'jansson' "${_pinned_dependencies[@]}") install -Dm755 \ "$srcdir/install/usr/lib/bareos"/libbareoscats.so* \ @@ -208,13 +230,19 @@ package_bareos-database-common() { package_bareos-database-mysql() { pkgdesc="${pkgdesc} - Libs and tools for mysql catalog" provides=("bareos-database=$pkgver") + unset _pinned_dependencies + _pinned_dependencies_ibig=( + 'gcc-libs=10.1.0' + 'glibc>=2.31' + 'libbareos.so=19' + 'libbareossql.so=19' + 'mariadb-libs=10.4.13' + ) + for _a in x86_64 pentium4 i686 armv6h armv7h aarch64; do + eval '_pinned_dependencies_'"${_a}"'=("${_pinned_dependencies_ibig[@]}")' + eval 'depends_'"${_a}"'=("${_pinned_dependencies_'"${_a}"'[@]}")' + done 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 @@ -246,7 +274,14 @@ package_bareos-database-mysql() { package_bareos-database-postgresql() { pkgdesc="${pkgdesc} - Libs and tools for postgresql catalog" provides=("bareos-database=$pkgver") - depends=("bareos-database-common=$pkgver" "postgresql-libs") + _pinned_dependencies=( + 'gcc-libs=10.1.0' + 'glibc>=2.31' + 'libbareos.so=19' + 'libbareossql.so=19' + 'postgresql-libs=12.3' + ) + depends=("bareos-database-common=$pkgver" "${_pinned_dependencies[@]}") install='bareos-database-postgresql.install' install -Dm755 \ @@ -279,7 +314,14 @@ package_bareos-database-postgresql() { package_bareos-database-sqlite3() { pkgdesc="${pkgdesc} - Libs and tools for sqlite3 catalog" provides=("bareos-database=$pkgver") - depends=("bareos-database-common=$pkgver" "sqlite3") + _pinned_dependencies=( + 'gcc-libs=10.1.0' + 'glibc>=2.31' + 'libbareos.so=19' + 'libbareossql.so=19' + 'sqlite=3.32.1' + ) + depends=("bareos-database-common=$pkgver" "${_pinned_dependencies[@]}") install -Dm755 \ "$srcdir/install/usr/lib/bareos/backends/libbareoscats-sqlite3.so" \ @@ -301,7 +343,18 @@ package_bareos-database-sqlite3() { package_bareos-database-tools() { pkgdesc="${pkgdesc} - CLI tools with database dpendencies (dbcheck, bscan)" - depends=("bareos-database-common=$pkgver" 'openssl' 'jansson') + _pinned_dependencies=( + 'gcc-libs=10.1.0' + 'glibc>=2.31' + 'jansson=2.13.1' + 'libbareoscats.so=19' + 'libbareosfind.so=19' + 'libbareossd.so=libbareossd.so' + 'libbareos.so=19' + 'libbareossql.so=19' + 'openssl=1.1.1.g' + ) + depends=("bareos-database-common=$pkgver" "${_pinned_dependencies[@]}") install -Dm755 \ "$srcdir/install/usr/bin/bareos-dbcheck" \ @@ -322,7 +375,18 @@ package_bareos-database-tools() { package_bareos-director() { pkgdesc="${pkgdesc} - Director daemon" - depends=("bareos-common=$pkgver" "bareos-database=$pkgver" 'openssl' 'bash' 'jansson') + _pinned_dependencies=( + 'gcc-libs=10.1.0' + 'glibc>=2.31' + 'jansson=2.13.1' + 'libbareoscats.so=19' + 'libbareosfind.so=19' + 'libbareos.so=19' + 'libbareossql.so=19' + 'openssl=1.1.1.g' + 'pam=1.3.1' + ) + depends=("bareos-common=$pkgver" "bareos-database=$pkgver" 'bash' "${_pinned_dependencies[@]}") install=bareos-director.install install -Dm755 \ @@ -421,7 +485,11 @@ package_bareos-director() { package_bareos-storage-fifo() { pkgdesc="${pkgdesc} - FIFO support for storage daemon" - depends=("bareos-storage=$pkgver" 'zlib' 'libcap' 'openssl' 'jansson' 'lzo') + _pinned_dependencies=( + 'gcc-libs=10.1.0' + 'glibc>=2.31' + ) + depends=("bareos-storage=$pkgver" 'zlib' 'libcap' 'openssl' 'jansson' 'lzo' "${_pinned_dependencies[@]}") install=bareos-storage-fifo.install install -Dm755 \ "$srcdir/install/usr/lib/bareos/backends/libbareossd-fifo.so" \ @@ -441,7 +509,14 @@ package_bareos-storage-fifo() { package_bareos-tools() { pkgdesc="${pkgdesc} - CLI tools (bcopy, bextract, bls, bregeq, bwild)" - depends=("bareos-common=$pkgver" 'glibc') + _pinned_dependencies=( + 'gcc-libs=10.1.0' + 'glibc>=2.31' + 'libbareosfind.so=19' + 'libbareossd.so=libbareossd.so' + 'libbareos.so=19' + ) + depends=("bareos-common=$pkgver" "${_pinned_dependencies[@]}") install -Dm755 \ "$srcdir/install/usr/bin/bregex" \ @@ -465,7 +540,17 @@ package_bareos-tools() { package_bareos-filedaemon() { pkgdesc="${pkgdesc} - File daemon" - depends=("bareos-common=$pkgver" 'jansson' 'zlib' 'gcc-libs') + _pinned_dependencies=( + 'gcc-libs=10.1.0' + 'glibc>=2.31' + 'jansson=2.13.1' + 'libbareosfastlz.so=19' + 'libbareosfind.so=19' + 'libbareoslmdb.so=19' + 'libbareos.so=19' + 'zlib=1:1.2.11' + ) + depends=("bareos-common=$pkgver" "${_pinned_dependencies[@]}") groups+=('bareos-client') install=bareos-filedaemon.install @@ -504,7 +589,15 @@ package_bareos-filedaemon() { package_bareos-storage() { pkgdesc="${pkgdesc} - Storage daemon" - depends=("bareos-common=$pkgver" 'zlib' 'lzo' 'jansson' 'openssl' 'libcap') + _pinned_dependencies=( + 'gcc-libs=10.1.0' + 'glibc>=2.31' + 'libbareosfastlz.so=19' + 'libbareossd.so=libbareossd.so' + 'libbareos.so=19' + 'zlib=1:1.2.11' + ) + depends=("bareos-common=$pkgver" 'zlib' 'lzo' 'jansson' 'openssl' 'libcap' "${_pinned_dependencies[@]}") install=bareos-storage.install install -Dm755 \ @@ -548,7 +641,13 @@ package_bareos-storage() { package_bareos-storage-tape() { pkgdesc="${pkgdesc} - Tape support for storage daemon" - depends=("bareos-storage=$pkgver" 'zlib' 'libcap' 'bash' 'openssl' 'jansson' 'lzo' "mtx") + _pinned_dependencies=( + 'gcc-libs=10.1.0' + 'glibc>=2.31' + 'libbareossd.so=libbareossd.so' + 'libbareos.so=19' + ) + depends=("bareos-storage=$pkgver" 'zlib' 'libcap' 'bash' 'openssl' 'jansson' 'lzo' 'mtx' "${_pinned_dependencies[@]}") install=bareos-storage-tape.install backup=( 'etc/bareos/mtx-changer.conf' @@ -588,7 +687,13 @@ package_bareos-storage-tape() { package_bareos-director-python-plugin() { pkgdesc="${pkgdesc} - Python plugin for director daemon" - depends=("bareos-director=$pkgver" 'libcap' 'jansson' 'lzo' 'python' 'python2') + _pinned_dependencies=( + 'gcc-libs=10.1.0' + 'glibc>=2.31' + 'libbareos.so=19' + 'python2=2.7.18' + ) + depends=("bareos-director=$pkgver" 'libcap' 'jansson' 'lzo' 'python' "${_pinned_dependencies[@]}") install -Dm755 \ "$srcdir/install/usr/lib/bareos/plugins/python-dir.so" \ @@ -602,7 +707,13 @@ package_bareos-director-python-plugin() { package_bareos-filedaemon-python-plugin() { pkgdesc="${pkgdesc} - Python plugin for file daemon" - depends=("bareos-filedaemon=$pkgver" 'python' 'python2' 'libcap' 'lzo' 'jansson') + _pinned_dependencies=( + 'gcc-libs=10.1.0' + 'glibc>=2.31' + 'libbareos.so=19' + 'python2=2.7.18' + ) + depends=("bareos-filedaemon=$pkgver" 'python' "${_pinned_dependencies[@]}" 'libcap' 'lzo' 'jansson') install -Dm755 \ "$srcdir/install/usr/lib/bareos/plugins/python-fd.so" \ @@ -618,7 +729,13 @@ package_bareos-filedaemon-python-plugin() { package_bareos-storage-python-plugin() { pkgdesc="${pkgdesc} - Python plugin for storage daemon" - depends=("bareos-storage=$pkgver" 'python2' 'lzo' 'python' 'libcap' 'jansson') + _pinned_dependencies=( + 'gcc-libs=10.1.0' + 'glibc>=2.31' + 'libbareos.so=19' + 'python2=2.7.18' + ) + depends=("bareos-storage=$pkgver" 'lzo' 'python' 'libcap' 'jansson' "${_pinned_dependencies[@]}") install -Dm755 \ "$srcdir/install/usr/lib/bareos/plugins/python-sd.so" \ |