]> git.sur5r.net Git - bacula/bacula/commitdiff
Ensure the directories for solaris init scripts are created
authorBen Walton <bwalton@artsci.utoronto.ca>
Fri, 15 Apr 2011 18:42:08 +0000 (14:42 -0400)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:44:34 +0000 (14:44 +0200)
Now that DESTDIR is used for the init script installation, we need to
ensure the directories exist prior to placing files in them.

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
bacula/platforms/solaris/Makefile.in

index 25f3a97e77b95065f5150a15d669cb2eb93ae49a..4347e4707b1dc007ea35cefa174d3c0f31458bf3 100644 (file)
@@ -12,6 +12,7 @@
 
 INSTALL = @INSTALL@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_DIR = $(INSTALL) -d -m 755
 
 nothing:
 
@@ -23,6 +24,9 @@ install-autostart-%:
        @rm -f $(DESTDIR)/etc/rc0.d/K20bacula-$*
        @rm -f $(DESTDIR)/etc/rc1.d/S99bacula-$*
        @rm -f $(DESTDIR)/etc/rc2.d/S99bacula-$*
+       @$(INSTALL_DIR) $(DESTDIR)/etc/init.d
+       @$(INSTALL_DIR) $(DESTDIR)/etc/rc0.d $(DESTDIR)/etc/rc1.d \
+               $(DESTDIR)/etc/rc2.d
        @$(INSTALL_PROGRAM) -m 744 bacula-$* $(DESTDIR)/etc/init.d/bacula-$*
        # set symlinks for script at startup and shutdown
        @ln -f -s /etc/init.d/bacula-$* $(DESTDIR)/etc/rc0.d/K20bacula-$*