2 # This file is used as the template to create the
3 # Makefile for the Solaris specific installation.
5 # 15 November 2001 -- Kern Sibbald
7 # 03 November 2003 corrections to the paths made by
8 # Kenneth ragnor at virtualsd dot net
10 # for Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
14 INSTALL_PROGRAM = @INSTALL_PROGRAM@
18 install: install-autostart
20 install-autostart: install-autostart-fd install-autostart-sd install-autostart-dir
23 @rm -f $(DESTDIR)/etc/rc0.d/K20bacula-$*
24 @rm -f $(DESTDIR)/etc/rc1.d/S99bacula-$*
25 @rm -f $(DESTDIR)/etc/rc2.d/S99bacula-$*
26 @$(INSTALL_PROGRAM) -m 744 bacula-$* $(DESTDIR)/etc/init.d/bacula-$*
27 # set symlinks for script at startup and shutdown
28 @ln -f -s /etc/init.d/bacula-$* $(DESTDIR)/etc/rc0.d/K20bacula-$*
29 @ln -f -s /etc/init.d/bacula-$* $(DESTDIR)/etc/rc1.d/S99bacula-$*
30 @ln -f -s /etc/init.d/bacula-$* $(DESTDIR)/etc/rc2.d/S99bacula-$*
32 uninstall: uninstall-autostart
34 uninstall-autostart: uninstall-autostart-fd uninstall-autostart-sd uninstall-autostart-dir
36 uninstall-autostart-%:
37 @rm -f $(DESTDIR)/etc/rc0.d/K20bacula-$*
38 @rm -f $(DESTDIR)/etc/rc1.d/S99bacula-$*
39 @rm -f $(DESTDIR)/etc/rc2.d/S99bacula-$*
40 @rm -f $(DESTDIR)/etc/init.d/bacula-$*
46 @rm -f bacula-sd bacula-fd bacula-dir
47 @rm -f Makefile bacula-*.spec
50 @rm -f bacula-sd bacula-fd bacula-dir
51 @rm -f Makefile bacula-*.spec