]> git.sur5r.net Git - bacula/bacula/commitdiff
Apply systemd patch from bug #1886
authorKern Sibbald <kern@sibbald.com>
Sat, 9 Jun 2012 08:41:07 +0000 (10:41 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:46 +0000 (14:50 +0200)
bacula/autoconf/configure.in
bacula/platforms/systemd/Makefile.in

index 228a49bdcc19183dd5330890884b39d4bc14f683..1565b14c3c8e626e6026d3d4ae9cc10dfbc9ec51 100644 (file)
@@ -3203,6 +3203,7 @@ AC_ARG_WITH(systemd,
 
           PFILES="${PFILES} \
                   platforms/systemd/Makefile \
+                  platforms/systemd/bacula.conf \
                   platforms/systemd/bacula-dir.service \
                   platforms/systemd/bacula-fd.service \
                   platforms/systemd/bacula-sd.service"
index d07d61c722590f2738d86108e1eba0022f0b17f2..c3da39c3472d3516178edb235847cc15e19b7ba2 100644 (file)
@@ -11,13 +11,17 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
 # should be /lib/systemd/system and get be get with
 # systemctl show | grep UnitPath | cut -d " " -f2
 SYSTEMD_UNITDIR = @SYSTEMD_UNITDIR@
+SYSTEMD_TMPFILES = /etc/tmpfiles.d
 
 nothing:
 
-install: install-dir install-autostart
+install: install-dir install-conf install-autostart
 
 install-dir: $(DESTDIR)/$(SYSTEMD_UNITDIR)
-       mkdir -p $(DESTDIR)/$(SYSTEMD_UNITDIR)
+       mkdir -p $(DESTDIR)/$(SYSTEMD_UNITDIR) $(DESTDIR)/$(SYSTEMD_TMPFILES)
+
+install-conf:
+       @$(INSTALL_PROGRAM) -m 644 bacula.conf $(DESTDIR)/$(SYSTEMD_TMPFILES)/bacula.conf
 
 install-autostart: install-autostart-fd install-autostart-sd install-autostart-dir
 
@@ -61,7 +65,7 @@ install-autostart-dir:
        fi
 
 
-uninstall: uninstall-autostart
+uninstall: uninstall-autostart uninstall-conf
 
 uninstall-autostart: uninstall-autostart-fd uninstall-autostart-sd uninstall-autostart-dir
 
@@ -87,14 +91,17 @@ uninstall-autostart-dir:
        fi
        @rm -f  $(DESTDIR)$(SYSTEMD_UNITDIR)/bacula-dir.service
 
+uninstall-conf:
+       @rm -f  $(DESTDIR)/$(SYSTEMD_TMPFILES)/bacula.conf
+
 clean:
        @rm -f 1 2 3
 
 distclean: clean
        @rm -f Makefile bacula-*.spec bacula.*.spec bacula.spec
-       @rm -f bacula-sd.service bacula-fd.service bacula-dir.service
+       @rm -f bacula.conf bacula-sd.service bacula-fd.service bacula-dir.service
 
 devclean: clean
        @rm -f Makefile bacula-*.spec bacula.*.spec bacula.spec
-       @rm -f bacula-sd.service bacula-fd.service bacula-dir.service
+       @rm -f bacula.conf bacula-sd.service bacula-fd.service bacula-dir.service