From 6eb0e68d6076c8c168347cd7d606e2525e44c0b5 Mon Sep 17 00:00:00 2001 From: Ben Walton Date: Fri, 15 Apr 2011 14:25:36 -0400 Subject: [PATCH] Honour DESTDIR in Solaris install-autostart targets The installation of the init scripts was not taking DESTDIR into account. Correct this so that the init scripts are installed to the same base location as the other files. Signed-off-by: Ben Walton --- bacula/platforms/solaris/Makefile.in | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/bacula/platforms/solaris/Makefile.in b/bacula/platforms/solaris/Makefile.in index 0b391eb659..25f3a97e77 100644 --- a/bacula/platforms/solaris/Makefile.in +++ b/bacula/platforms/solaris/Makefile.in @@ -20,24 +20,24 @@ install: install-autostart install-autostart: install-autostart-fd install-autostart-sd install-autostart-dir install-autostart-%: - @rm -f /etc/rc0.d/K20bacula-$* - @rm -f /etc/rc1.d/S99bacula-$* - @rm -f /etc/rc2.d/S99bacula-$* - @$(INSTALL_PROGRAM) -m 744 bacula-$* /etc/init.d/bacula-$* + @rm -f $(DESTDIR)/etc/rc0.d/K20bacula-$* + @rm -f $(DESTDIR)/etc/rc1.d/S99bacula-$* + @rm -f $(DESTDIR)/etc/rc2.d/S99bacula-$* + @$(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-$* /etc/rc0.d/K20bacula-$* - @ln -f -s /etc/init.d/bacula-$* /etc/rc1.d/S99bacula-$* - @ln -f -s /etc/init.d/bacula-$* /etc/rc2.d/S99bacula-$* + @ln -f -s /etc/init.d/bacula-$* $(DESTDIR)/etc/rc0.d/K20bacula-$* + @ln -f -s /etc/init.d/bacula-$* $(DESTDIR)/etc/rc1.d/S99bacula-$* + @ln -f -s /etc/init.d/bacula-$* $(DESTDIR)/etc/rc2.d/S99bacula-$* uninstall: uninstall-autostart uninstall-autostart: uninstall-autostart-fd uninstall-autostart-sd uninstall-autostart-dir uninstall-autostart-%: - @rm -f /etc/rc0.d/K20bacula-$* - @rm -f /etc/rc1.d/S99bacula-$* - @rm -f /etc/rc2.d/S99bacula-$* - @rm -f /etc/init.d/bacula-$* + @rm -f $(DESTDIR)/etc/rc0.d/K20bacula-$* + @rm -f $(DESTDIR)/etc/rc1.d/S99bacula-$* + @rm -f $(DESTDIR)/etc/rc2.d/S99bacula-$* + @rm -f $(DESTDIR)/etc/init.d/bacula-$* clean: @rm -f 1 2 3 -- 2.39.5