Package Details: bacula-console 11.0.5-2

Git Clone URL: https://aur.archlinux.org/bacula.git (read-only, click to copy)
Package Base: bacula
Description: Bacula - A Network Backup Tool (common files)
Upstream URL: https://www.bacula.org
Licenses: AGPL3
Submitter: None
Maintainer: kkaczmar
Last Packager: kkaczmar
Votes: 34
Popularity: 0.000590
First Submitted: 2014-04-25 13:59 (UTC)
Last Updated: 2021-07-28 11:50 (UTC)

Latest Comments

kkaczmar commented on 2021-07-28 13:53 (UTC)

BTW, with aur/libs3-git installed, compilation will fail.

pharaoh commented on 2021-07-28 13:43 (UTC)

thank you, running on 11.0.5-2 now...

kkaczmar commented on 2021-07-28 11:53 (UTC)

bacula-tray-monitor now builds, even with qt4 installed.

kkaczmar commented on 2021-07-28 08:56 (UTC)

Remove qt4. Unless you really need it.

Changing the order of dnl look for in configure.in might also help? See comment on 2021-01-17 00:51.

It would be more elegant to break this base package into separate, small ones.

pharaoh commented on 2021-07-28 06:16 (UTC) (edited on 2021-07-28 06:19 (UTC) by pharaoh)

11.0.5 did not build on my system:

install: cannot stat 'src/qt-console/tray-monitor/bacula-tray-monitor': No such file or directory
==> ERROR: A failure occurred in build().
    Aborting...
error making: bacula (bacula-common bacula-bat bacula-console bacula-dir bacula-dir-postgresql bacula-fd bacula-sd)

qt5 is installed.

benalexau commented on 2021-07-03 02:05 (UTC) (edited on 2021-07-03 02:05 (UTC) by benalexau)

Patch to 11.0.5:

-pkgver=9.6.7
+pkgver=11.0.5

-sha256sums=('df0f8525ecdba380e74b537ca71adf3b7596593f02189b59ab0ebffc85ccc8de'
+sha256sums=('ef5b3b67810442201b80dc1d47ccef77b5ed378fe1285406f3a73401b6e8111a'

kkaczmar commented on 2021-01-16 23:51 (UTC)

According to configure.in, tray monitor is not built with qt4:

BAT_DIR=
if test x$support_bat = xyes; then
dnl look for Qt4
   abc=`$PKGCONFIG QtGui`
   pkg=$?
   if test $pkg = 0; then
      BAT_DIR=src/qt-console
   else
dnl look for Qt5
     abc=`$PKGCONFIG Qt5Gui`
     pkg=$?
     if test $pkg = 0; then
        BAT_DIR="src/qt-console src/qt-console/tray-monitor"
     else
        AC_MSG_ERROR(Unable to find either Qt4 or Qt5 installation needed by bat)
     fi
   fi
fi

I've pushed PKGBUILD that now depends on qt5. Also, openssl 1.0 seems unnecessary, 1.1 is being used. bacula-console now uses readline instead of conio.

xisberto commented on 2020-12-16 14:35 (UTC)

I'm getting the following output when trying to create bacula-bat:


==> Entering fakeroot environment...
==> Starting package_bacula-common()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "bacula-common"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Starting package_bacula-console()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "bacula-console"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Starting package_bacula-fd()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "bacula-fd"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Adding install file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Starting package_bacula-bat()...
cp: cannot stat 'usr/bin/bacula-tray-monitor': No such file or directory
==> ERROR: A failure occurred in package_bacula-bat().
    Aborting...
error making: bacula (bacula-common bacula-bat)

jboxberger commented on 2020-08-17 09:12 (UTC)

reply to myself:

dowload the latest key

https://www.bacula.org/bacula-distribution-verification-public-keys/

execute

gpg --import Bacula-4096-Distribution-Verification-key.asc

jboxberger commented on 2020-08-12 09:58 (UTC)

On Manjaro 20.0.3 (5.7.9-1) it fails wit a sig error.

Building bacula...
==> Making package: bacula 9.6.5-2 (Mi 12 Aug 2020 11:49:24 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading bacula-9.6.5.tar.gz...
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed

0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   374  100   374    0     0    534      0 --:--:-- --:--:-- --:--:--   534

0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
100   345  100   345    0     0    127      0  0:00:02  0:00:02 --:--:--   344

5 4152k    5  239k    0     0  81812      0  0:00:51  0:00:03  0:00:48 81812
100 4152k  100 4152k    0     0  1326k      0  0:00:03  0:00:03 --:--:-- 29.8M
-> Downloading bacula-9.6.5.tar.gz.sig...
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                Dload  Upload   Total   Spent    Left  Speed

0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   382  100   382    0     0    246      0  0:00:01  0:00:01 --:--:--   246
100   382  100   382    0     0    246      0  0:00:01  0:00:01 --:--:--   246

0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
100   363  100   363    0     0    102      0  0:00:03  0:00:03 --:--:--   363
100   363  100   363    0     0    102      0  0:00:03  0:00:03 --:--:--   363

100   833  100   833    0     0    228      0  0:00:03  0:00:03 --:--:--   228
-> Found bacula-dir.service
-> Found bacula-fd.service
-> Found bacula-sd.service
==> Validating source files with sha256sums...
    bacula-9.6.5.tar.gz ... Passed
    bacula-9.6.5.tar.gz.sig ... Skipped
    bacula-dir.service ... Passed
    bacula-fd.service ... Passed
    bacula-sd.service ... Passed
==> Verifying source file signatures with gpg...
    bacula-9.6.5.tar.gz ... FAILED (unknown public key C0BE2A5FE9DF3643)
==> ERROR: One or more PGP signatures could not be verified!
Failed to build bacula

I've already tried to import the key into pacman but with no luck (https://aur.archlinux.org/packages/bacula-fd#comment-743367).

sudo pacman-key --recv-keys C0BE2A5FE9DF3643
gpg: key C0BE2A5FE9DF3643: public key "Bacula 4096 Distribution Verification Key (www.bacula.org) <kern@bacula.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1

sudo pacman-key --lsign-key C0BE2A5FE9DF3643
-> Locally signing key C0BE2A5FE9DF3643...
==> Updating trust database...
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:  24  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1  valid:  24  signed:  78  trust: 1-, 0q, 0n, 23m, 0f, 0u
gpg: depth: 2  valid:  75  signed:  24  trust: 75-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2020-10-17

sudo gpg --recv-keys C0BE2A5FE9DF3643
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: keyserver receive failed: General error

sudo pacman-key --refresh-keys
...
gpg: key C0BE2A5FE9DF3643: "Bacula 4096 Distribution Verification Key (www.bacula.org) <kern@bacula.org>" not changed
...

# now i am getting
sudo gpg --recv-keys C0BE2A5FE9DF3643
gpg: keyserver receive failed: General error

Kind Regards!

pharaoh commented on 2020-06-19 20:21 (UTC) (edited on 2020-06-19 20:24 (UTC) by pharaoh)

One more minor thing, all packages have /etc/bacula with 0770 except console and bat, which uses 0755, why? I think, all packages should use the same permissions, either 0755 or 0770.

(1/1) reinstalling bacula-console
warning: directory permissions differ on /etc/bacula/
filesystem: 770  package: 755

pharaoh commented on 2020-06-18 21:10 (UTC) (edited on 2020-06-18 21:15 (UTC) by pharaoh)

9.6.5 does not build on my system:

==> Starting prepare()...
configure.in:3474: error: `src/qt-console/tray-monitor/install_conf_file' is already registered with AC_CONFIG_FILES.
../../lib/autoconf/status.m4:288: AC_CONFIG_FILES is expanded from...
configure.in:3474: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
==> ERROR: A failure occurred in prepare().
Aborting...
error making: bacula (bacula-common bacula-fd bacula-sd bacula-console bacula-dir bacula-dir-postgresql)

Removing these lines fixes the issue:

# Enable tray-monitor
sed -i '/src\/qt-console\/install_conf_file \\/asrc\/qt-console\/tray-monitor\/install_conf_file \
\' configure.in

0ktav1us commented on 2019-04-12 08:26 (UTC) (edited on 2019-04-15 05:26 (UTC) by 0ktav1us)

Hello, I can't install because do not verify with PGP. Please help me.

==> Проверка подписей исходных файлов с помощью 'gpg'...
    bacula-9.4.1.tar.gz ... СБОЙ (неизвестный открытый ключ C0BE2A5FE9DF3643)
==> ОШИБКА: Одна или больше PGP-подписей не могут быть проверены!
==> ОШИБКА: Makepkg не смог собрать bacula.
==> Перезапустить сборку bacula-bat ? да/Нет [y/N]
Hello9, I Resolved it with --keys for yaourt yaourt --m-arg "--skippgpcheck" because gpg last updated had been at very long time ago.

benalexau commented on 2018-12-29 00:11 (UTC)

Patch to 9.4.1:

-pkgver=9.0.7
+pkgver=9.4.1

-sha256sums=('84e87fcfedb2e6df624c4f1a6281948f7061b22e2a2747cc2aa46d34bf190948'
+sha256sums=('6b5f6197cad360a6c37ee4f0fc28a6776f78a4e54bea667bb8a4fb801c98fd42'

# Enable tray-monitor
-  sed -i '/src\/qt-console\/install_conf_file \\/asrc\/qt-console\/tray-monitor\/install_conf_file \\\
-src\/qt-console\/tray-monitor\/bacula-tray-monitor.conf \\' configure.in
+  sed -i '/src\/qt-console\/install_conf_file \\/asrc\/qt-console\/tray-monitor\/install_conf_file \\' configure.in

- validpgpkeys=('86260C02E82A8FC5CA5FB0638363575EFBD8D142')
+ validpgpkeys=('5235F5B668D81DB61704A82DC0BE2A5FE9DF3643')

Malvineous commented on 2018-10-22 10:19 (UTC)

Here's a poor-man's patch to get it working with 9.2.1:

-pkgver=9.0.7
+pkgver=9.2.1

-sha256sums=('84e87fcfedb2e6df624c4f1a6281948f7061b22e2a2747cc2aa46d34bf190948'
+sha256sums=('ae3ab58989e1ec89a87a6252b4991975861ca1392a8b9738f786884d5b5766d7'

   # Enable tray-monitor
-  sed -i '/src\/qt-console\/install_conf_file \\/asrc\/qt-console\/tray-monitor\/install_conf_file \\\
-src\/qt-console\/tray-monitor\/bacula-tray-monitor.conf \\' configure.in
+  sed -i '/src\/qt-console\/install_conf_file \\/asrc\/qt-console\/tray-monitor\/install_conf_file \\' configure.in

mejem commented on 2018-02-01 14:10 (UTC) (edited on 2018-02-01 14:14 (UTC) by mejem)

This doesn't work.

==> Installing bacula package group with pacman -U...
loading packages...
resolving dependencies...
looking for conflicting packages...
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: bacula-dir-sqlite3 and bacula-dir-mariadb are in conflict
==> WARNING: Failed to install built package(s).

It looks like it tries to install all the packages defined in PKGBUILD, not only the one selected.

And since databases are alternatives and only one can be used, there is conflict.

sinnlos commented on 2017-10-31 01:51 (UTC) (edited on 2017-10-31 13:55 (UTC) by sinnlos)

Unfortunately this package doesn't work on with my computer, it ends the installation with "==> ERROR: A failure occurred in package_bacula-common(). Aborting... :: failed to build bacula-fd,bacula-common package(s)" Additionally it shows during the installation errors related to crypto. Anyone else also has this problems?

mfulz commented on 2017-08-02 21:05 (UTC)

Here the new PKGBUILD working with 9.0.2: # Maintainer: Marcin (CTRL) Wieczorek <marcin@marcin.co> # Contributor: Tom Keller <tom@isochrono.us> # Contributor: Daniel Albers <daniel@lbe.rs> # Contributor: Steven Haigh <netwiz@crc.id.au> # Contributor: Georg Altmann <george@george-net.de> # bacula-fd.service by Christian Hesse <arch@eworm.de> pkgbase=bacula _dir_backends=("${pkgbase}-dir-sqlite3" "${pkgbase}-dir-mariadb" "${pkgbase}-dir-postgresql") pkgname=("${pkgbase}-common" "${pkgbase}-bat" "${pkgbase}-console" "${pkgbase}-fd" "${pkgbase}-sd" "${pkgbase}-dir" ${_dir_backends[@]} "${pkgbase}-dir-mysql") pkgver=9.0.2 pkgrel=1 arch=(i686 x86_64) pkgdesc="${pkgbase^} - A Network Backup Tool " url="http://www.${pkgbase}.org" license=('AGPL3') depends=('openssl-1.0') #optdepends=('openssl: network encryption between daemons') makedepends=('sqlite' 'libmariadbclient' 'postgresql-libs' 'qt4') source=("http://downloads.sourceforge.net/sourceforge/${pkgbase}/${pkgbase}-${pkgver}.tar.gz" 'bacula-dir.service' 'bacula-fd.service' 'bacula-sd.service' '00-qmake4.patch') sha1sums=('4848504e028c260c9e73a3bf65bb8376102ae77a' '1a68381bd8d0b78cffe78634d160b1a287333c4e' '151c6d8b06d8be029a9a50be4d6e64954c88f48c' 'a682cd35bf2a85fd7274f4241a91483c53c43f37' '58a60e8af9b4735c564c7223c2bf0c25803927f3') _workdir="/var/lib/${pkgbase}" prepare() { cd "${srcdir}/${pkgbase}-${pkgver}" patch -Np3 -i "${srcdir}/00-qmake4.patch" || true } build() { cd "${srcdir}/${pkgbase}-${pkgver}" env CPPFLAGS=-I/usr/include/openssl-1.0 \ LDFLAGS=-L/usr/lib/openssl-1.0 \ ./configure \ --enable-smartalloc \ --prefix=/usr \ --sbindir=/usr/bin \ --sysconfdir=/etc/${pkgbase} \ --with-scriptdir=/etc/${pkgbase}/scripts \ --with-sqlite3 \ --with-mysql \ --with-postgresql \ --with-pid-dir=/run \ --with-systemd=/usr/lib/systemd/system \ --with-logdir=/var/log/${pkgbase} \ --with-working-dir="${_workdir}" \ --with-openssl \ --enable-bat make DESTDIR="${srcdir}/install" install } package_bacula-bat() { pkgdesc+="(management GUI)" backup=("etc/${pkgbase}/bat.conf") depends=("${pkgbase}-common=${pkgver}" 'qt4') install="bacula.install" cd "${srcdir}/install" cp --parents -a usr/bin/bat "${pkgdir}" cp --parents -a etc/${pkgbase}/bat.conf "${pkgdir}" cp --parents -a usr/share/man/man1/bat.1.gz "${pkgdir}" chmod 755 "${pkgdir}/etc/${pkgbase}" "${pkgdir}/usr/bin/bat" chmod 644 "${pkgdir}/etc/${pkgbase}/bat.conf" mkdir -p "${pkgdir}/usr/share/applications" "${pkgdir}/usr/share/pixmaps" cp -a "${srcdir}/${pkgbase}-${pkgver}/scripts/bat.desktop" "${pkgdir}/usr/share/applications/" cp -a "${srcdir}/${pkgbase}-${pkgver}/src/qt-console/images/bat_icon.png" "${pkgdir}/usr/share/pixmaps/" } package_bacula-fd() { pkgdesc+="(file daemon)" backup=("etc/${pkgbase}/${pkgname}.conf") install="bacula.install" optdepends=('openssl: network encryption between daemons' 'lzo: LZO compression for Storage Daemon') depends=("${pkgbase}-common=${pkgver}") cd "${srcdir}/install" cp --parents -a etc/${pkgbase}/${pkgname}.conf "${pkgdir}" cp --parents -a usr/bin/${pkgname} "${pkgdir}" cp --parents -a usr/lib/bpipe-fd.so "${pkgdir}" cp --parents -a usr/share/man/man8/${pkgname}.8.gz "${pkgdir}" mkdir -p "${pkgdir}/usr/lib/systemd/system/" cp -f "${srcdir}/${pkgbase}-fd.service" "${pkgdir}/usr/lib/systemd/system/" } package_bacula-common() { pkgdesc+="(common files)" cd "${srcdir}/install" cp --parents -a etc/${pkgbase}/scripts/${pkgbase}_config "${pkgdir}" cp --parents -a etc/${pkgbase}/scripts/btraceback.gdb "${pkgdir}" cp --parents -a etc/${pkgbase}/scripts/btraceback.dbx "${pkgdir}" cp --parents -a etc/${pkgbase}/scripts/btraceback.mdb "${pkgdir}" cp --parents -a usr/bin/btraceback "${pkgdir}" cp --parents -a usr/lib/libbac-${pkgver}.so "${pkgdir}" cp --parents -a usr/lib/libbaccfg-${pkgver}.so "${pkgdir}" cp --parents -a usr/lib/libbacfind-${pkgver}.so "${pkgdir}" cp --parents -a usr/share/man/man8/btraceback.8.gz "${pkgdir}" #cp --parents -a usr/lib/libbacpy-${pkgver}.so "${pkgdir}" mkdir -p "${pkgdir}${_workdir}" mkdir -p "${pkgdir}/var/log/${pkgbase}" } package_bacula-console() { pkgdesc+="(management CLI)" backup=("etc/${pkgbase}/bconsole.conf") install="bacula.install" depends=("${pkgbase}-common=${pkgver}") cd "${srcdir}/install" cp --parents -a usr/bin/bconsole "${pkgdir}" cp --parents -a etc/${pkgbase}/bconsole.conf "${pkgdir}" cp --parents -a usr/share/man/man8/bconsole.8.gz "${pkgdir}" chmod 755 "${pkgdir}/etc/${pkgbase}" "${pkgdir}/usr/bin/bconsole" chmod 644 "${pkgdir}/etc/${pkgbase}/bconsole.conf" } package_bacula-dir() { pkgdesc+="(Director)" depends=("${pkgbase}-common=${pkgver}") install="bacula.install" optdepends=("${pkgname}-sqlite3: SQLite support" "${pkgname}-mariadb: MariaDB support" "${pkgname}-postgresql: PostgreSQL support") backup=("etc/${pkgbase}/${pkgname}.conf") cd "${srcdir}/install" cp --parents -a etc/${pkgbase}/${pkgname}.conf "${pkgdir}" cp --parents -a etc/${pkgbase}/scripts/query.sql "${pkgdir}" cp --parents -a etc/${pkgbase}/scripts/create_${pkgbase}_database "${pkgdir}" cp --parents -a etc/${pkgbase}/scripts/delete_catalog_backup "${pkgdir}" cp --parents -a etc/${pkgbase}/scripts/drop_${pkgbase}_database "${pkgdir}" cp --parents -a etc/${pkgbase}/scripts/drop_${pkgbase}_tables "${pkgdir}" cp --parents -a etc/${pkgbase}/scripts/grant_${pkgbase}_privileges "${pkgdir}" cp --parents -a etc/${pkgbase}/scripts/make_${pkgbase}_tables "${pkgdir}" cp --parents -a etc/${pkgbase}/scripts/make_catalog_backup.pl "${pkgdir}" cp --parents -a etc/${pkgbase}/scripts/update_${pkgbase}_tables "${pkgdir}" cp --parents -a usr/bin/${pkgname} "${pkgdir}" cp --parents -a usr/bin/bregex "${pkgdir}" cp --parents -a usr/bin/bsmtp "${pkgdir}" cp --parents -a usr/bin/bwild "${pkgdir}" cp --parents -a usr/bin/dbcheck "${pkgdir}" cp --parents -a usr/share/man/man1/bsmtp.1.gz "${pkgdir}" cp --parents -a usr/share/man/man8/${pkgname}.8.gz "${pkgdir}" cp --parents -a usr/share/man/man8/bregex.8.gz "${pkgdir}" cp --parents -a usr/share/man/man8/bwild.8.gz "${pkgdir}" cp --parents -a usr/share/man/man8/dbcheck.8.gz "${pkgdir}" cp --parents -a usr/lib/libbacsql-${pkgver}.so "${pkgdir}" mkdir -p "${pkgdir}/usr/lib/systemd/system/" cp -f "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/" ## Logwatch Support mkdir -p "${pkgdir}/etc/logwatch/scripts/services/" "${pkgdir}/etc/logwatch/scripts/shared/" mkdir -p "${pkgdir}/etc/logwatch/conf/logfiles/" "${pkgdir}/etc/logwatch/conf/services/" cp -a "${srcdir}/${pkgbase}-${pkgver}/scripts/logwatch/${pkgbase}" "${pkgdir}/etc/logwatch/scripts/services/" cp -a "${srcdir}/${pkgbase}-${pkgver}/scripts/logwatch/applybaculadate" "${pkgdir}/etc/logwatch/scripts/shared/" cp -a "${srcdir}/${pkgbase}-${pkgver}/scripts/logwatch/logfile.${pkgbase}.conf" "${pkgdir}/etc/logwatch/conf/logfiles/${pkgbase}.conf" cp -a "${srcdir}/${pkgbase}-${pkgver}/scripts/logwatch/services.${pkgbase}.conf" "${pkgdir}/etc/logwatch/conf/services/${pkgbase}.conf" ## Logrotate Support mkdir -p ${pkgdir}/etc/logrotate.d/ cp -a ${srcdir}/${pkgbase}-${pkgver}/scripts/logrotate ${pkgdir}/etc/logrotate.d/${pkgbase} } package_bacula-dir-mariadb() { pkgdesc+="(Director - MariaDB support)" depends=("${pkgbase}-dir" 'libmariadbclient') conflicts=(${_dir_backends[@]/${pkgname}}) install="bacula.install" replaces=("${pkgbase}-dir-mysql") provides=("${pkgbase}-dir-mysql") cd "${srcdir}/install" cp --parents -a usr/lib/libbaccats-mysql-${pkgver}.so "${pkgdir}" cp --parents -a usr/lib/libbaccats-mysql.so "${pkgdir}" cp -d usr/lib/libbaccats-mysql.so ${pkgdir}/usr/lib/libbaccats-${pkgver}.so for file in etc/${pkgbase}/scripts/*mysql*; do cp --parents -a "${file}" "${pkgdir}" done } package_bacula-dir-mysql() { pkgdesc+="(transition package)" depends=("${pkgbase}-dir-mariadb") } package_bacula-dir-postgresql() { pkgdesc+="(Director - PostgreSQL support)" depends=("${pkgbase}-dir" 'postgresql-libs') install="bacula.install" conflicts=(${_dir_backends[@]/${pkgname}}) cd "${srcdir}/install" cp --parents -a usr/lib/libbaccats-postgresql-${pkgver}.so "${pkgdir}" cp --parents -a usr/lib/libbaccats-postgresql.so "${pkgdir}" cp -d usr/lib/libbaccats-postgresql.so "${pkgdir}/usr/lib/libbaccats-${pkgver}.so" for file in etc/${pkgbase}/scripts/*postgresql*; do cp --parents -a "${file}" "${pkgdir}" done } package_bacula-dir-sqlite3() { pkgdesc+="(Director - SQLite3 support)" depends=("${pkgbase}-dir" 'sqlite') conflicts=(${_dir_backends[@]/${pkgname}}) install="bacula.install" cd "${srcdir}/install" cp --parents -a usr/lib/libbaccats-sqlite3-${pkgver}.so "${pkgdir}" cp --parents -a usr/lib/libbaccats-sqlite3.so "${pkgdir}" cp -d usr/lib/libbaccats-sqlite3.so "${pkgdir}/usr/lib/libbaccats-${pkgver}.so" for file in etc/${pkgbase}/scripts/*sqlite3*; do cp --parents -a "${file}" "${pkgdir}" done } package_bacula-sd() { pkgdesc+="(Storage Daemon)" backup=("etc/${pkgbase}/${pkgname}.conf") install="bacula.install" depends=("${pkgbase}-common") optdepends=('openssl: network encryption between daemons' 'lzo: LZO compression for Storage Daemon') cd "${srcdir}/install" cp --parents -a etc/${pkgbase}/${pkgname}.conf "${pkgdir}" cp --parents -a usr/lib/libbacsd-${pkgver}.so "${pkgdir}" cp --parents -a usr/bin/${pkgname} "${pkgdir}" cp --parents -a usr/bin/bextract "${pkgdir}" cp --parents -a usr/bin/bls "${pkgdir}" cp --parents -a usr/bin/bcopy "${pkgdir}" cp --parents -a usr/bin/bscan "${pkgdir}" cp --parents -a usr/bin/btape "${pkgdir}" cp --parents -a usr/share/man/man8/${pkgname}.8.gz "${pkgdir}" cp --parents -a usr/share/man/man8/bextract.8.gz "${pkgdir}" cp --parents -a usr/share/man/man8/bls.8.gz "${pkgdir}" cp --parents -a usr/share/man/man8/bcopy.8.gz "${pkgdir}" cp --parents -a usr/share/man/man8/bscan.8.gz "${pkgdir}" cp --parents -a usr/share/man/man8/btape.8.gz "${pkgdir}" mkdir -p "${pkgdir}${_workdir}" mkdir -p "${pkgdir}/usr/lib/systemd/system/" cp -f "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/" }

mfulz commented on 2017-07-23 17:21 (UTC) (edited on 2017-07-23 20:07 (UTC) by mfulz)

Patch for the last 7.4.7 version. I've to test the 9.0.x when I've got some spare time before I'll switch. Will create an aur for it, if everything will be smooth. --- PKGBUILD_OLD 2017-07-23 19:17:08.859149620 +0200 +++ PKGBUILD 2017-07-23 19:18:12.396152238 +0200 @@ -7,41 +7,32 @@ pkgbase=bacula _dir_backends=("${pkgbase}-dir-sqlite3" "${pkgbase}-dir-mariadb" "${pkgbase}-dir-postgresql") -pkgname=("${pkgbase}-common" "${pkgbase}-console" "${pkgbase}-fd" "${pkgbase}-bat" "${pkgbase}-sd" "${pkgbase}-dir" ${_dir_backends[@]} "${pkgbase}-dir-mysql") -pkgver=7.4.5 +pkgname=("${pkgbase}-common" "${pkgbase}-console" "${pkgbase}-fd" "${pkgbase}-sd" "${pkgbase}-dir" ${_dir_backends[@]} "${pkgbase}-dir-mysql") +pkgver=7.4.7 pkgrel=1 arch=(i686 x86_64) pkgdesc="${pkgbase^} - A Network Backup Tool " url="http://www.${pkgbase}.org" license=('AGPL3') -optdepends=('openssl: network encryption between daemons') +depends=('openssl-1.0') +#optdepends=('openssl: network encryption between daemons') makedepends=('sqlite' 'libmariadbclient' 'postgresql-libs' 'qt4') source=("http://downloads.sourceforge.net/sourceforge/${pkgbase}/${pkgbase}-${pkgver}.tar.gz" 'bacula-dir.service' 'bacula-fd.service' - 'bacula-sd.service' - '00-qmake4.patch' - '01-basename.patch') + 'bacula-sd.service') -sha1sums=('2fa4bae903602965b89e000ba698ed7b2f1a42c1' +sha1sums=('f484fdd9135769d5d053296d182d1dc1996bfc62' '1a68381bd8d0b78cffe78634d160b1a287333c4e' '151c6d8b06d8be029a9a50be4d6e64954c88f48c' - 'a682cd35bf2a85fd7274f4241a91483c53c43f37' - '58a60e8af9b4735c564c7223c2bf0c25803927f3' - 'ff9549b8ea326654bad5987c820f6dfd629fce54') + 'a682cd35bf2a85fd7274f4241a91483c53c43f37') _workdir="/var/lib/${pkgbase}" -prepare() { - cd "${srcdir}/${pkgbase}-${pkgver}" - patch -Np3 -i "${srcdir}/00-qmake4.patch" || true - patch -Np2 -i "${srcdir}/01-basename.patch" || true -} - build() { cd "${srcdir}/${pkgbase}-${pkgver}" + env CPPFLAGS=-I/usr/include/openssl-1.0 \ LDFLAGS=-L/usr/lib/openssl-1.0 \ ./configure \ - --enable-bat \ --enable-smartalloc \ --prefix=/usr \ --sbindir=/usr/bin \ @@ -54,6 +45,7 @@ --with-systemd=/usr/lib/systemd/system \ --with-logdir=/var/log/${pkgbase} \ --with-working-dir="${_workdir}" \ + --with-openssl=/usr/lib/openssl-1.0 \ --with-x make DESTDIR="${srcdir}/install" install

barkley128 commented on 2017-07-21 10:12 (UTC) (edited on 2017-07-21 10:12 (UTC) by barkley128)

It's and old version (9.0.1 is already out) and it doesn't compile on my Arch. Something wrong with the ./configure step.

maleckii commented on 2016-09-12 05:34 (UTC)

Unfortunately, I am no longer using Arch Linux and must disown this package.

mfulz commented on 2016-09-11 10:39 (UTC)

Could you update the package to 7.4.3 it fixes the issues with actual gcc and the crashes during status.

badbytes commented on 2016-07-13 19:06 (UTC)

==> Starting package_bacula-bat()... ~/aur_build/bacula/install ~/aur_build/bacula/src cp: cannot stat 'usr/bin/bat': No such file or directory ==> ERROR: A failure occurred in package_bacula-bat(). Aborting...

SebiH commented on 2016-07-05 10:57 (UTC) (edited on 2016-07-05 10:58 (UTC) by SebiH)

Has anyone tried this with a recent version of GCC (e.g. gcc-6.1.1-2)? bacula-sd seems to crash on startup due to either a bug within bacula-sd or GCC. I've filed a bug report against bacula [1], but he points towards GCC (since it works fine with -O0, or a previous version of GCC, e.g. gcc-5.4.x). Haven't read about this anywhere else. Is this just an issue on my setup? [1]: http://bugs.bacula.org/view.php?id=2231 (login is anonymous/anonymous)

ektich commented on 2016-03-27 17:14 (UTC) (edited on 2016-03-27 17:15 (UTC) by ektich)

alsa-utils 1.1.0-2 has been released that fixes the name conflict on /usr/bin/bat. There is no need to apply my patch anymore.

ektich commented on 2016-03-21 10:14 (UTC)

I've opened bug report against alsa-utils: https://bugs.archlinux.org/task/48654.

ektich commented on 2016-03-09 17:51 (UTC)

I agree, if alsa-utils will rename their binary there's no point in temporarily renaming bat in here. I should warn people using my patch that it is somehow incomplete: it won't modify the /usr/share/applications/bat.desktop file, rendering the icon in the menu unworkable. I think to make it work again one should change "Exec" line to be "Exec=/usr/bin/bacula-bat -c /etc/bacula/bat.conf"

maleckii commented on 2016-03-09 17:21 (UTC)

From what I can gather in discussions on both the Debian mailing lists and the alsa-utils upstream lists, this should be handled by patching alsa-utils upstream. There is an upstream patch under review for alsa-utils, but they haven't yet reached consensus on the new name for their /usr/bin/bat. I don't think it would be proper to rename this package's binary because alsa-utils is likely to change their name in the near future and going back and forth would cause confusion. In the meantime, feel free to apply ekitch's patch to PKGBUILD as a temporary workaround. That said, I am also unsure what Arch's policy is on situations like this.

ektich commented on 2016-03-09 10:02 (UTC) (edited on 2016-03-27 17:14 (UTC) by ektich)

EDIT: alsa-utils 1.1.0-2 has been released that fixes the name conflict. This comment is left here for historical reasons. the file name conflict between bacula-bat-7.4.0-1 and alsa-utils-1.1.0-1 still exists. I've created a patch that install bacula's bat as /usr/bin/bacula-bat. https://gist.github.com/ektich/9e887c0e83b2ca402e72

kisanth commented on 2016-03-04 15:18 (UTC)

Edit PKGBUILD Remove parentheses from install statements: install=("bacula.install") => install="bacula.install" Add parentheses to provides and replaces: provides="${pkgbase}-dir-mysql" => provides=("${pkgbase}-dir-mysql") replaces="${pkgbase}-dir-mysql" => replaces=("${pkgbase}-dir-mysql") Now it will work...

boscowitch commented on 2016-02-26 13:10 (UTC)

Though about testing it if it's worth deploying... unforunately it fails install right at the beginning no mather if I say yes or no to: Install only bacula-bat ? [Y/n] ==> ------------------------------- ==> ==> ERROR: install should not be an array ==> ERROR: install should not be an array ==> ERROR: install should not be an array ==> ERROR: install should not be an array ==> ERROR: install should not be an array ==> ERROR: install should not be an array ==> ERROR: provides should be an array ==> ERROR: replaces should be an array ==> ERROR: install should not be an array ==> ERROR: install should not be an array ==> ERROR: Makepkg was unable to build bacula. Thats always the result...

morlix commented on 2015-11-20 07:51 (UTC)

The current PKGBUILD doesn't create the working directory if only bacula-common, bacula-console and bacula-fd will be installed.

CptnChristo commented on 2015-11-17 23:55 (UTC) (edited on 2015-11-18 01:39 (UTC) by CptnChristo)

With release of core package alsa-utils-1.1.0-1, there is a name conflict for /usr/bin/bat (i.e. the bacula administration tool). I'm passing along this info in case AUR packages must be modified to avoid conflicts with core packages.

maleckii commented on 2015-11-02 05:58 (UTC) (edited on 2015-11-02 06:00 (UTC) by maleckii)

Since I'm actively using this in production, I may as well maintain it. * Updated to 7.2.0 * /var/log/bacula is now created by the package * Hostname in config files is now generated at package install time * Removed tcp_wrappers support, since tcp_wrappers hasn't been in Arch for some time, and I'm not sure anyone is actually using it.

AlD commented on 2015-10-31 13:43 (UTC)

FYI, I'm disowning these packages as I moved on to Bareos.

georgnix commented on 2015-10-02 09:12 (UTC)

I tested disaster recovery with the new 7.2.0 version yesterday. It worked with some fiddling around. Just to document it here, there are some more or less minor glitches with the packaging: * /var/log/bacula is not created by the packages, this causes the start of the director to fail. * /etc/bacula/scripts is not readable for user postgres. Thus database scripts cannot be executed properly. I think it would it be OK to have /etc/bacula and children world readable as long as the config files are only readable by root (clear text passwords). * Generated config files are in the package, i.e. static. They should be generated at package installation to have unique passwords and proper hostname. If anybody wants to fix the PKGBUILD, go ahead. I probably won't find the time to do it myself.

georgnix commented on 2015-10-01 14:29 (UTC)

I created an updated PKGBUILD for bacula 7.2.0 with additional minor fixes. http://www.george-net.de/aur/bacula/PKGBUILD-bacula-7.2.0 Diff against the old PKGBUILD to see the changes.

lka commented on 2015-09-21 15:04 (UTC)

Installation successful, systemctl status bacula-fd successful loaded and running, but server (bacula-dir, 2nd maschine) can't connect to client (arch). Nmap shows tcp port 9102 st up, but servers bconsole (status client arch) says no. By the way all other systems (non-arch) work fine, so i think my configuration is ok. I don't know why there is no respone from bacula-fd.

xisberto commented on 2015-09-02 15:43 (UTC)

Anyone can successfully install bacula-fd? It depends on tcp_wrappers, but its upstream URL can not be reached.

AlD commented on 2015-03-06 01:13 (UTC)

Oh and configure flags haven't changed, tcp_wrappers were always enabled.

AlD commented on 2015-03-06 01:04 (UTC)

Thanks for the patch, georgnix. Tweaked it slightly, let me know if there are problems.

georgnix commented on 2015-03-04 21:29 (UTC)

@lockheed Download the AUR tarball, extract, download the patch, then $ patch -p0 < 2015-03-04-PKGBUILD.patch $ makepkg Install the relevant packages with pacman.

lockheed commented on 2015-03-04 20:15 (UTC)

@georgnix, I see you wrote a patch that might address my problem. After installing bacula on server, when I try to run bacula-dir, I get bacula-dir: error while loading shared libraries: libbaccats-7.0.5.so: cannot open shared object file: No such file or directory If you patch solves it, then how do I apply it? I have no idea how to do it.

georgnix commented on 2015-03-04 17:35 (UTC)

@AlD Did you change the configure flags since 7.0.4? Suddenly bacula daemons respect /etc/hosts.allow which I had to find out the hard way bacula-dir -d 10000 ... also gives every config lexer token ... *YUCK* Does anybody use tcp wrappers? I don't and would be happy if this would be removed from the build. There are firewalls these days...

georgnix commented on 2015-03-04 16:28 (UTC)

http://www.george-net.de/aur/bacula/2015-03-04-PKGBUILD.patch # Patch for bacula AUR package. # Date: 2015-03-04 Georg Altmann <george@george-net.de> # # 1) Create working directory on install. # 2) Install libbaccats.so with the current version in the filename instead of # 7.0.3 # 3) Make bacula-dir-* backend packages conflict with each other: They install # the same file/symlink ${pkgdir}/usr/lib/libbaccats-${pkgver}.so

ill commented on 2015-02-08 05:16 (UTC)

@khouli: Remove all of teh bacular-dir-* from the PKGBUILD and install them one-by-one if you need them.

lockheed commented on 2015-01-29 10:04 (UTC)

Could you make it compatible with armv6h (Raspberry Pi)? Even if I manually add this arch to PKGBUILD, I get lib install warnings during compilation and meta errors prevent from installing the compiled package.

khouli commented on 2015-01-01 07:17 (UTC)

If I try to install aur/bacula-common I get this: error: failed to commit transaction (conflicting files) /usr/lib/libbaccats-7.0.3.so exists in both 'bacula-dir-mariadb' and 'bacula-dir-postgresql' /usr/lib/libbaccats-7.0.3.so exists in both 'bacula-dir-mariadb' and 'bacula-dir-sqlite3' /usr/lib/libbaccats-7.0.3.so exists in both 'bacula-dir-postgresql' and 'bacula-dir-sqlite3' Errors occurred, no packages were upgraded. No /usr/lib/libbac* exists on my computer and querying pacman shows that I have no bacula components installed. This seems to be an issue with the package itself. I'm also getting a failing PGP signature for aur/bacula-client. Suggestions? Thanks.

AlD commented on 2014-12-01 00:22 (UTC)

Updated, thanks.

PLum commented on 2014-11-26 14:44 (UTC)

version 7.0.5 is on the air :-)

AlD commented on 2014-07-23 10:30 (UTC)

Sure, thanks.

commented on 2014-07-23 10:29 (UTC)

To be honest, I don't use arch linux anymore - nor Bacula.... If you'd like to take these packages over, I'd be more than happy to orphan them....

AlD commented on 2014-07-23 09:38 (UTC)

I was about to create a split package for bacula when I noticed that you already incorporated all the other packages into this one. If you'd like to adopt my packages bacula-common, -bat, -fd, -console, I'd orphan them. Let me know. Would you be also interested in maintaining a bareos version of this?

commented on 2014-05-08 02:27 (UTC)

This split package builds the following: bacula-bat - management GUI bacula-client - Client (bacula-fd) bacula-common - common files bacula-console - management CLI bacula-dir - director daemon bacula-dir-mysql - director daemon - mysql support bacula-dir-postgresql - director daemon - postgresql support bacula-dir-sqlite3 - director daemon - sqlite3 support bacula-sd - storage daemon

macxcool commented on 2013-10-02 20:20 (UTC)

I don't use this anymore and there doesn't seem to be much interest in it. I'm disowning it.

nemamradfazole commented on 2013-09-27 16:05 (UTC)

Improvements are as follows: 1. mkdir -p nonexisting directory in PKGBUILD 2. chown only in post_install, never in PKGBUILD 3. in DB scripts use mysql -p for asking for password 4. refrain from using rc.d scripts, Arch Linux works with systemd

nemamradfazole commented on 2013-09-27 15:31 (UTC)

After manually adding bacula:bacula, there's another error - cannot touch pkg/bacula-mariadb/var/log/bacula.log, there's no log under var... please double check PKGBUILDs before posting them in AUR.

nemamradfazole commented on 2013-09-27 15:08 (UTC)

During build of the package, chown cannot change to „bacula:bacula“ (the user doesn't exist), could you please correct that?

macxcool commented on 2013-06-11 14:26 (UTC)

This package is meant to replace the 'bacula-mysql' package (which replaced the 'bacula' package when it got kicked to the AUR). It is based on the great bacula-postgresql package.

macxcool commented on 2013-06-11 14:25 (UTC)

I've created a bacula-mariadb package to replace this one. I'm disowning this package. The new package is modelled after the very-nice bacula-postgresql package.

macxcool commented on 2013-06-10 12:31 (UTC)

I'll be doing some work on this one in the next day or two. I'm upgrading to the newest version and switching over to MariaDB as well. I'll be disowning this package and creating a new bacula-mariadb package. I'm doing the upgrade on my own server, so I'll test things there.

Malvineous commented on 2013-06-10 01:40 (UTC)

To make this work with the recent removal of /usr/sbin, edit the PKGBUILD and add "--sbindir=/usr/bin" to the "./configure" line. You'll also have to change "sbin" to "bin" in the "chmod" command on the second last line. You can also remove the line "--enable-bat --enable-tray-monitor --enable-bwx-console" if you don't want the Qt dependency. I also got these errors trying to start the updated daemon: $ systemctl start bacula-fd Failed to issue method call: Unit syslog.target failed to load: No such file or directory. See system logs and 'systemctl status syslog.target' for details. $ systemctl status syslog.target syslog.target Loaded: error (Reason: No such file or directory) Active: inactive (dead) To fix this I edited /usr/lib/systemd/system/bacula-fd.service and removed "syslog.target" from two lines. I think this should be removed because systemd is supposed to be handling logging now.

commented on 2013-04-29 19:40 (UTC)

Not sure why, but the when I run makepkg -s I get lots of errors about directories that are not created. I did modify the PKGBUILD to put things in different directories, but does this have to be manually specified elsewhere? I did that in a couple instances, but after rerunning I get the same error for some other directory that is missing.

AlD commented on 2013-03-08 14:28 (UTC)

@mfulz: You're experiencing the same problem as previous commenters, which I cannot reproduce on a vanilla Arch installation. AFAIK ${srcdir}/bacula-${pkgver}/src/qt-console/bat would be the libtool script.

mfulz commented on 2013-03-06 21:13 (UTC)

Tried to update today and receive: make[1]: Leaving directory `/tmp/yaourt-tmp-olz/aur-bacula-bat/src/bacula-5.2.13/manpages' ==> Entering fakeroot environment... ==> Starting package()... install: cannot stat ‘/tmp/yaourt-tmp-olz/aur-bacula-bat/src/bacula-5.2.13/src/qt-console/.libs/bat’: No such file or directory Could you change the PKGBUILD at line 39: false: install -m755 ${srcdir}/bacula-${pkgver}/src/qt-console/.libs/bat ${pkgdir}/usr/bin/bat Correct: install -m755 ${srcdir}/bacula-${pkgver}/src/qt-console/bat ${pkgdir}/usr/bin/bat

AlD commented on 2013-03-04 10:00 (UTC)

Yea, annoyingly symlinks in the qt4 package were changed multiple times. Hope we're sticking with qmake-qt4 now.

mfulz commented on 2013-03-01 23:57 (UTC)

you're checking in the qmake4 patch for qmake4, which is not installed with the needed deps. As a workaround I symlinked qmake4 to qmake-qt4, but I think it would be better to adjust the patch using qmake-qt4 directly? BR, Matthias

AlD commented on 2013-03-01 12:22 (UTC)

Thanks, updated.

BertVoegele commented on 2013-03-01 11:30 (UTC)

1. qt is now qt4 2. bacula-5.2.13 is out

AlD commented on 2013-02-04 16:10 (UTC)

Unfortunately I'm unable reproduce that problem.

commented on 2013-01-23 19:46 (UTC)

Having same problem. Whole output here: http://pastebin.com/aPU2NK80

AlD commented on 2013-01-22 15:42 (UTC)

@slot: Please provide the whole output, e. g. via https://gist.github.com/.

slot commented on 2013-01-22 14:47 (UTC)

I get error here in the end: ==> Entering fakeroot environment... ==> Starting package()... install: cannot stat ‘/tmp/..../aur-bacula-bat/src/bacula-5.2.12/src/qt-console/.libs/bat’: No such file or directory ==> ERROR: A failure occurred in package(). Aborting... ==> ERROR: Makepkg was unable to build bacula-bat. ==> Restart building bacula-bat ? [y/N]

BertVoegele commented on 2012-10-30 22:12 (UTC)

@slot : unfortunately "bat" is not included in "bacula-client".

slot commented on 2011-03-12 22:50 (UTC)

FYI: Bat is also included in bacula-client

commented on 2010-10-01 09:34 (UTC)

For 5.0.3 version: http://aur.pastebin.com/M3xLvtGN