Blob Blame History Raw
diff -Naur bacula-13.0.4.old/autoconf/config.rpath bacula-13.0.4/autoconf/config.rpath
--- bacula-13.0.4.old/autoconf/config.rpath	2024-02-14 09:44:45.114001362 +0100
+++ bacula-13.0.4/autoconf/config.rpath	2024-02-14 09:44:45.618009925 +0100
@@ -555,7 +555,7 @@
 
 # Flag to hardcode \$libdir into a binary during linking.
 # This must work even if \$libdir does not exist.
-hardcode_libdir_flag_spec="$escaped_hardcode_libdir_flag_spec"
+hardcode_libdir_flag_spec=""
 
 # Whether we need a single -rpath flag with a separated argument.
 hardcode_libdir_separator="$hardcode_libdir_separator"
diff -Naur bacula-13.0.4.old/examples/nagios/check_bacula/Makefile.in bacula-13.0.4/examples/nagios/check_bacula/Makefile.in
--- bacula-13.0.4.old/examples/nagios/check_bacula/Makefile.in	2024-02-14 09:44:45.127001583 +0100
+++ bacula-13.0.4/examples/nagios/check_bacula/Makefile.in	2024-02-14 09:44:45.618009925 +0100
@@ -72,7 +72,8 @@
 	(cd $(srcdir); $(RMF) Makefile)
 
 install: all
-	$(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) check_bacula $(DESTDIR)$(sbindir)/check_bacula
+	$(MKDIR) $(DESTDIR)$(libdir)/nagios/plugins
+	$(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) .libs/check_bacula $(DESTDIR)$(libdir)/nagios/plugins/check_bacula
 
 uninstall:
 	(cd $(DESTDIR)$(sbindir); $(RMF) check_bacula)
diff -Naur bacula-13.0.4.old/scripts/logwatch/logfile.bacula.conf.in bacula-13.0.4/scripts/logwatch/logfile.bacula.conf.in
--- bacula-13.0.4.old/scripts/logwatch/logfile.bacula.conf.in	2024-02-14 09:44:45.049000257 +0100
+++ bacula-13.0.4/scripts/logwatch/logfile.bacula.conf.in	2024-02-14 09:44:45.619009942 +0100
@@ -1,3 +1,3 @@
 # What actual file?  Defaults to LogPath if not absolute path....
-LogFile = @logdir@/bacula.log
+LogFile = @logdir@/*.log
 
diff -Naur bacula-13.0.4.old/scripts/Makefile.in bacula-13.0.4/scripts/Makefile.in
--- bacula-13.0.4.old/scripts/Makefile.in	2024-02-14 09:44:45.049000257 +0100
+++ bacula-13.0.4/scripts/Makefile.in	2024-02-14 09:44:45.619009942 +0100
@@ -67,7 +67,6 @@
 	   $(MV) -f ${DESTDIR}${scriptdir}/baculabackupreport ${DESTDIR}${scriptdir}/baculabackupreport.old; \
 	fi
 	$(INSTALL_SCRIPT) baculabackupreport $(DESTDIR)$(scriptdir)/baculabackupreport
-	$(INSTALL_SCRIPT) bacula-tray-monitor.desktop $(DESTDIR)$(scriptdir)/bacula-tray-monitor.desktop
 	chmod 0644 $(DESTDIR)$(scriptdir)/btraceback.gdb \
 		   $(DESTDIR)$(scriptdir)/btraceback.dbx \
 		   $(DESTDIR)$(scriptdir)/btraceback.mdb
diff -Naur bacula-13.0.4.old/src/cats/make_sqlite3_tables.in bacula-13.0.4/src/cats/make_sqlite3_tables.in
--- bacula-13.0.4.old/src/cats/make_sqlite3_tables.in	2024-02-14 09:44:45.051000291 +0100
+++ bacula-13.0.4/src/cats/make_sqlite3_tables.in	2024-02-14 09:44:45.619009942 +0100
@@ -560,4 +560,5 @@
 echo ""
 
 chmod 640 ${db_name}.db
+chown bacula:bacula ${db_name}.db
 exit 0
diff -Naur bacula-13.0.4.old/src/dird/bacula-dir.conf.in bacula-13.0.4/src/dird/bacula-dir.conf.in
--- bacula-13.0.4.old/src/dird/bacula-dir.conf.in	2024-02-14 09:44:45.090000954 +0100
+++ bacula-13.0.4/src/dird/bacula-dir.conf.in	2024-02-14 09:44:45.619009942 +0100
@@ -18,7 +18,7 @@
 Director {                            # define myself
   Name = @basename@-dir
   DIRport = @dir_port@                # where we listen for UA connections
-  QueryFile = "@scriptdir@/query.sql"
+  QueryFile = "@sysconfdir@/query.sql"
   WorkingDirectory = "@working_dir@"
   PidDirectory = "@piddir@"
   Maximum Concurrent Jobs = 20
diff -Naur bacula-13.0.4.old/src/dird/Makefile.in bacula-13.0.4/src/dird/Makefile.in
--- bacula-13.0.4.old/src/dird/Makefile.in	2024-02-14 09:44:45.090000954 +0100
+++ bacula-13.0.4/src/dird/Makefile.in	2024-02-14 09:44:45.620009959 +0100
@@ -126,11 +126,11 @@
 	   @if test "x${dir_group}" != "x"; then \
 	      chgrp -f ${dir_group} ${DESTDIR}${sysconfdir}/$$destconf ; \
 	   fi
-	@if  test -f ${DESTDIR}${scriptdir}/query.sql; then \
+	@if  test -f ${DESTDIR}${sysconfdir}/query.sql; then \
 	   echo "  ==> Saving existing query.sql to query.sql.old"; \
-	   $(MV) -f ${DESTDIR}${scriptdir}/query.sql ${DESTDIR}${scriptdir}/query.sql.old; \
+	   $(MV) -f ${DESTDIR}${sysconfdir}/query.sql ${DESTDIR}${sysconfdir}/query.sql.old; \
 	fi
-	${INSTALL_DATA} query.sql ${DESTDIR}${scriptdir}/query.sql
+	${INSTALL_DATA} query.sql ${DESTDIR}${sysconfdir}/query.sql
 	@if test -f static-bacula-dir; then \
 	   $(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) static-bacula-dir $(DESTDIR)$(sbindir)/static-bacula-dir; \
 	fi
@@ -139,7 +139,7 @@
 uninstall:
 	(cd $(DESTDIR)$(sbindir); $(RMF) bacula-dir bdirjson)
 	(cd $(DESTDIR)$(sysconfdir); $(RMF) bacula-dir.conf bacula-dir.conf.new)
-	(cd $(DESTDIR)$(scriptdir); $(RMF) query.sql)
+	(cd $(DESTDIR)$(sysconfdir); $(RMF) query.sql)
 
 
 
diff -Naur bacula-13.0.4.old/src/plugins/fd/docker/Makefile bacula-13.0.4/src/plugins/fd/docker/Makefile
--- bacula-13.0.4.old/src/plugins/fd/docker/Makefile	2024-02-14 09:44:45.087000903 +0100
+++ bacula-13.0.4/src/plugins/fd/docker/Makefile	2024-02-14 09:44:45.620009959 +0100
@@ -25,11 +25,11 @@
 
 .c.lo:
 	@echo "Compiling $< ..."
-	$(NO_ECHO)$(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) $(CFLAGS) -I${SRCDIR} -I${FDDIR} -I${FDPLUGDIR} -I${LIBDIR} -DWORKDIR=\"$(DESTDIR)$(working_dir)\" -c $<
+	$(NO_ECHO)$(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) $(CFLAGS) -I${SRCDIR} -I${FDDIR} -I${FDPLUGDIR} -I${LIBDIR} -DWORKDIR=\"$(working_dir)\" -c $<
 
 %.lo: %.c %.h
 	@echo "Pattern compiling $< ..."
-	$(NO_ECHO)$(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) $(CFLAGS) -I${SRCDIR} -I${FDDIR} -I${FDPLUGDIR} -I${LIBDIR} -DWORKDIR=\"$(DESTDIR)$(working_dir)\" -c $(@:.lo=.c)
+	$(NO_ECHO)$(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) $(CFLAGS) -I${SRCDIR} -I${FDDIR} -I${FDPLUGDIR} -I${LIBDIR} -DWORKDIR=\"$(working_dir)\" -c $(@:.lo=.c)
 
 docker-fd.la: Makefile $(DOCKEROBJ) $(PLUGINLIBDIR)/pluginlib.lo $(DOCKERSRCH)
 	@echo "Linking $(@:.la=.so) ..."
diff -Naur bacula-13.0.4.old/src/qt-console/bat.pro.in bacula-13.0.4/src/qt-console/bat.pro.in
--- bacula-13.0.4.old/src/qt-console/bat.pro.in	2024-02-14 09:44:45.616009891 +0100
+++ bacula-13.0.4/src/qt-console/bat.pro.in	2024-02-14 09:44:45.620009959 +0100
@@ -12,10 +12,10 @@
 
 datarootdir = @datarootdir@
 bins.path = /$(DESTDIR)@sbindir@
-bins.files = bat
+bins.files = .libs/bat
 confs.path = /$(DESTDIR)@sysconfdir@
 confs.commands = ./install_conf_file
-help.path = /$(DESTDIR)@docdir@
+help.path = /$(DESTDIR)@htmldir@
 help.files = help/*.html images/status.png images/mail-message-new.png
 
 TEMPLATE     = app
diff -Naur bacula-13.0.4.old/src/qt-console/tray-monitor/tray-monitor.pro.in bacula-13.0.4/src/qt-console/tray-monitor/tray-monitor.pro.in
--- bacula-13.0.4.old/src/qt-console/tray-monitor/tray-monitor.pro.in	2024-02-14 09:44:45.617009908 +0100
+++ bacula-13.0.4/src/qt-console/tray-monitor/tray-monitor.pro.in	2024-02-14 09:44:45.620009959 +0100
@@ -26,7 +26,7 @@
 
 
 bins.path = /$(DESTDIR)@sbindir@
-bins.files = bacula-tray-monitor
+bins.files = .libs/bacula-tray-monitor
 confs.path = /$(DESTDIR)@sysconfdir@
 confs.commands = ./install_conf_file