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@
15 INSTALL_DIR = $(INSTALL) -d -m 755
19 install: install-autostart
21 install-autostart: install-autostart-fd install-autostart-sd install-autostart-dir
24 @rm -f $(DESTDIR)/etc/rc0.d/K20bacula-$*
25 @rm -f $(DESTDIR)/etc/rc1.d/S99bacula-$*
26 @rm -f $(DESTDIR)/etc/rc2.d/S99bacula-$*
27 @$(INSTALL_DIR) $(DESTDIR)/etc/init.d
28 @$(INSTALL_DIR) $(DESTDIR)/etc/rc0.d $(DESTDIR)/etc/rc1.d \
30 @$(INSTALL_PROGRAM) -m 744 bacula-$* $(DESTDIR)/etc/init.d/bacula-$*
31 # set symlinks for script at startup and shutdown
32 @ln -f -s /etc/init.d/bacula-$* $(DESTDIR)/etc/rc0.d/K20bacula-$*
33 @ln -f -s /etc/init.d/bacula-$* $(DESTDIR)/etc/rc1.d/S99bacula-$*
34 @ln -f -s /etc/init.d/bacula-$* $(DESTDIR)/etc/rc2.d/S99bacula-$*
36 uninstall: uninstall-autostart
38 uninstall-autostart: uninstall-autostart-fd uninstall-autostart-sd uninstall-autostart-dir
40 uninstall-autostart-%:
41 @rm -f $(DESTDIR)/etc/rc0.d/K20bacula-$*
42 @rm -f $(DESTDIR)/etc/rc1.d/S99bacula-$*
43 @rm -f $(DESTDIR)/etc/rc2.d/S99bacula-$*
44 @rm -f $(DESTDIR)/etc/init.d/bacula-$*
50 @rm -f bacula-sd bacula-fd bacula-dir
51 @rm -f Makefile bacula-*.spec
54 @rm -f bacula-sd bacula-fd bacula-dir
55 @rm -f Makefile bacula-*.spec