]> git.sur5r.net Git - bacula/bacula/commitdiff
Honour DESTDIR in Solaris install-autostart targets
authorBen Walton <bwalton@artsci.utoronto.ca>
Fri, 15 Apr 2011 18:25:36 +0000 (14:25 -0400)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:44:34 +0000 (14:44 +0200)
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 <bwalton@artsci.utoronto.ca>
bacula/platforms/solaris/Makefile.in

index 0b391eb659b42cfa9dd959badfb437abc5c4034a..25f3a97e77b95065f5150a15d669cb2eb93ae49a 100644 (file)
@@ -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