From: Ben Walton Date: Fri, 15 Apr 2011 18:42:08 +0000 (-0400) Subject: Ensure the directories for solaris init scripts are created X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=11e2c4ecdaa5999b8f349eb059e3fe6456bf9483;p=bacula%2Fbacula Ensure the directories for solaris init scripts are created 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 --- diff --git a/bacula/platforms/solaris/Makefile.in b/bacula/platforms/solaris/Makefile.in index 25f3a97e77..4347e4707b 100644 --- a/bacula/platforms/solaris/Makefile.in +++ b/bacula/platforms/solaris/Makefile.in @@ -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-$*