Blame SOURCES/bacula-build-cdp-plugin.patch

13b78d
diff -Naur bacula-11.0.0.old/src/plugins/fd/Makefile.in bacula-11.0.0/src/plugins/fd/Makefile.in
13b78d
--- bacula-11.0.0.old/src/plugins/fd/Makefile.in	2021-01-15 14:28:41.375718846 +0100
13b78d
+++ bacula-11.0.0/src/plugins/fd/Makefile.in	2021-01-15 14:37:51.212066769 +0100
13b78d
@@ -22,7 +22,7 @@
13b78d
 .c.lo:
13b78d
 	$(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) $(CFLAGS) -I${SRCDIR} -I${FDDIR} -DTEST_PROGRAM -c $<
13b78d
 
13b78d
-all: bpipe-fd.la test-plugin-fd.la test-deltaseq-fd.la pluglib.lo
13b78d
+all: bpipe-fd.la cdp-fd.la test-plugin-fd.la test-deltaseq-fd.la pluglib.lo
13b78d
 
13b78d
 example-plugin-fd.lo: example-plugin-fd.c ${FDDIR}/fd_plugins.h
13b78d
 	$(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) $(CFLAGS) -I../.. -I${FDDIR} -c example-plugin-fd.c
13b78d
@@ -36,8 +36,6 @@
13b78d
 bpipe-fd.la: Makefile bpipe-fd$(DEFAULT_OBJECT_TYPE)
13b78d
 	$(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared bpipe-fd.lo -o $@ -rpath $(plugindir) -module -export-dynamic -avoid-version 
13b78d
 
13b78d
-cdp: cdp-fd.la
13b78d
-
13b78d
 cdp-fd.lo: cdp-fd.c journal.h folder-record.h file-record.h settings-record.h ${FDDIR}/fd_plugins.h
13b78d
 	$(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) $(CFLAGS) -Wno-unused-function -I../.. -I${FDDIR} -c cdp-fd.c
13b78d
 
13b78d
@@ -47,12 +45,6 @@
13b78d
 cdp-fd.la: Makefile cdp-fd$(DEFAULT_OBJECT_TYPE) journal.lo
13b78d
 	$(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -shared cdp-fd.lo journal.lo -o $@ -rpath $(plugindir) -module -export-dynamic -avoid-version
13b78d
 
13b78d
-install-cdp: cdp-fd.la
13b78d
-	$(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) cdp-fd.la $(DESTDIR)$(plugindir)
13b78d
-	$(RMF) $(DESTDIR)$(plugindir)/cdp-fd.la
13b78d
-
13b78d
-
13b78d
-
13b78d
 test-deltaseq-fd.lo: test-deltaseq-fd.c ${FDDIR}/fd_plugins.h fd_common.h
13b78d
 	$(LIBTOOL_COMPILE) $(CXX) $(DEFS) $(DEBUG) $(CPPFLAGS) $(CFLAGS) -I../.. -I${FDDIR} -c test-deltaseq-fd.c
13b78d
 
13b78d
@@ -69,6 +61,8 @@
13b78d
 	$(MKDIR) $(DESTDIR)$(plugindir)
13b78d
 	$(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bpipe-fd.la $(DESTDIR)$(plugindir)
13b78d
 	$(RMF) $(DESTDIR)$(plugindir)/bpipe-fd.la
13b78d
+	$(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) cdp-fd.la $(DESTDIR)$(plugindir)
13b78d
+	$(RMF) $(DESTDIR)$(plugindir)/cdp-fd.la
13b78d
 
13b78d
 install-test-plugin: all
13b78d
 	$(MKDIR) $(DESTDIR)$(plugindir)