---- bacula-5.0.1/scripts/mtx-changer.in~ 2010-02-24 17:33:48.000000000 +0200
-+++ bacula-5.0.1/scripts/mtx-changer.in 2010-02-25 11:49:14.545143118 +0200
-@@ -47,13 +47,13 @@
- #
+diff -urNp -x '*.orig' bacula-9.4.2.org/scripts/mtx-changer.in bacula-9.4.2/scripts/mtx-changer.in
+--- bacula-9.4.2.org/scripts/mtx-changer.in 2019-02-04 17:47:31.000000000 +0100
++++ bacula-9.4.2/scripts/mtx-changer.in 2021-09-26 09:47:51.139744008 +0200
+@@ -65,13 +65,13 @@
+ myversion=2
# source our conf file
-if test ! -f @scriptdir@/mtx-changer.conf ; then
-. @scriptdir@/mtx-changer.conf
+. /etc/bacula/mtx-changer.conf
- MTX=@MTX@
-
+ if test "${version}" != "${myversion}" ; then
+ echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
Summary(pl.UTF-8): Bacula - rozwiązanie do wykonywania kopii zapasowych po sieci
Name: bacula
Version: 9.4.2
-Release: 3
+Release: 4
License: AGPL v3
Group: Networking/Utilities
Source0: http://downloads.sourceforge.net/bacula/%{name}-%{version}.tar.gz
Group: Networking/Utilities
Requires(post): sed >= 4.0
Requires: %{name}-common = %{version}-%{release}
-Requires: bacula(db) = %{version}-%{release}
+Requires: bacula-db = %{version}-%{release}
Requires: systemd-units >= 38
Obsoletes: bacula-updatedb
Group: Networking/Utilities
Requires(post): /sbin/ldconfig
Requires: %{name}-common = %{version}-%{release}
-Provides: bacula(db) = %{version}-%{release}
-Obsoletes: bacula(db)
+Provides: bacula-db = %{version}-%{release}
+Obsoletes: bacula-db
%description db-postgresql
PostgreSQL database driver for Bacula.
Group: Networking/Utilities
Requires(post): /sbin/ldconfig
Requires: %{name}-common = %{version}-%{release}
-Provides: bacula(db) = %{version}-%{release}
-Obsoletes: bacula(db)
+Provides: bacula-db = %{version}-%{release}
+Obsoletes: bacula-db
%description db-mysql
MySQL database driver for Bacula.
Group: Networking/Utilities
Requires(post): /sbin/ldconfig
Requires: %{name}-common = %{version}-%{release}
-Provides: bacula(db) = %{version}-%{release}
-Obsoletes: bacula(db)
+Provides: bacula-db = %{version}-%{release}
+Obsoletes: bacula-db
%description db-sqlite3
SQLite database driver for Bacula.
CPPFLAGS="-I/usr/include/ncurses -I%{_includedir}/readline"
+BUILD_DIR=$(pwd) \
QMAKE=%{_bindir}/qmake-qt5 \
%configure \
DISTNAME=pld-linux \
---- bacula-5.2.1/src/cats/make_catalog_backup.in~ 2011-10-30 13:03:42.000000000 +0100
-+++ bacula-5.2.1/src/cats/make_catalog_backup.in 2011-11-01 17:27:38.863760358 +0100
-@@ -13,12 +13,15 @@
+diff -urNp -x '*.orig' bacula-9.4.2.org/src/cats/make_catalog_backup.in bacula-9.4.2/src/cats/make_catalog_backup.in
+--- bacula-9.4.2.org/src/cats/make_catalog_backup.in 2019-02-04 17:47:31.000000000 +0100
++++ bacula-9.4.2/src/cats/make_catalog_backup.in 2021-09-26 09:47:52.123078492 +0200
+@@ -16,12 +16,15 @@
# line arguments and the environment using ps. Please consult your
# MySQL or PostgreSQL manual for secure methods of specifying the
# password.
+HOME=@working_dir@
+
default_db_type=@DEFAULT_DB_TYPE@
+ user=${2:-@db_user@}
- #