summaryrefslogtreecommitdiff
path: root/sysutils/bareos-server/files/patch-src-plugins-filed_Makefile.in
blob: 685d558b5405f6130250aa4232f2a53cfbc092fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- src/plugins/filed/Makefile.in	2016-10-16 10:14:36.000000000 -0500
+++ src/plugins/filed/Makefile.in	2016-11-09 16:45:34.113690000 -0500
@@ -93,7 +93,8 @@
 
 install: all
 	$(MKDIR) $(DESTDIR)$(plugindir)
-	$(MKDIR) ${DESTDIR}${confdir}/bareos-dir.d/
+	$(MKDIR) ${DESTDIR}${confdir}/bareos-dir.d/fileset
+	$(MKDIR) ${DESTDIR}${confdir}/bareos-dir.d/job
 	$(LIBTOOL_INSTALL) $(INSTALL_PROGRAM) bpipe-fd.la $(DESTDIR)$(plugindir)
 	$(RMF) $(DESTDIR)$(plugindir)/bpipe-fd.la
 	for plugin in $(BUILD_PLUGINS); do \
@@ -102,13 +103,13 @@
 	   CONF=`echo $$plugin | sed 's/\(.*\)-fd.la$$/\1-conf.d/'`; \
 	   if [ -d "$$CONF" ]; then \
 	      for i in `find "$$CONF/" \( -name "*.conf" -o -name "*.conf.example" \) -print | cut -d'/' -f2-`; do \
-	         $(INSTALL_CONFIG) -D $$CONF/$$i ${DESTDIR}${confdir}/$$i; \
+	         $(INSTALL_CONFIG) $$CONF/$$i ${DESTDIR}${confdir}/$$i; \
 	      done; \
 	   fi; \
 		if [ "$$plugin" = "python-fd.la" ]; then \
 			$(CP) *.py *.py.template $(DESTDIR)$(plugindir); \
 			for i in `find python-ldap-conf.d/ \( -name "*.conf" -o -name "*.conf.example" \) -print | cut -d'/' -f2-`; do \
-				$(INSTALL_CONFIG) -D python-ldap-conf.d/$$i ${DESTDIR}${confdir}/$$i; \
+				$(INSTALL_CONFIG) python-ldap-conf.d/$$i ${DESTDIR}${confdir}/`echo $$i | sed -e 's|example|sample|g'`; \
 			done; \
 		fi; \
 	done