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 # for Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
11 INSTALL_PROGRAM = @INSTALL_PROGRAM@
15 install: install-autostart
17 install-autostart: install-autostart-fd install-autostart-sd install-autostart-dir
21 @rm -f /etc/rc0.d/K20bacula-fd
22 @rm -f /etc/rc1.d/S99bacula-fd
23 @rm -f /etc/rc2.d/S99bacula-fd
24 @$(INSTALL_PROGRAM) -m 744 bacula-fd /etc/init.d/bacula-fd
25 # set symlinks for script at startup and shutdown
26 @ln -f -s /etc/init.d/bacula-fd /etc/rc0.d/K20bacula-fd
27 @ln -f -s /etc/init.d/bacula-fd /etc/rc1.d/S99bacula-fd
28 @ln -f -s /etc/init.d/bacula-fd /etc/rc2.d/S99bacula-fd
32 @rm -f /etc/rc0.d/K20bacula-sd
33 @rm -f /etc/rc1.d/S99bacula-sd
34 @rm -f /etc/rc2.d/S99bacula-sd
35 @$(INSTALL_PROGRAM) -m 744 bacula-sd /etc/rc.d/init.d/bacula-sd
36 # set symlinks for script at startup and shutdown
37 @ln -f -s /etc/init.d/bacula-sd /etc/rc0.d/K20bacula-sd
38 @ln -f -s /etc/init.d/bacula-sd /etc/rc1.d/S99bacula-sd
39 @ln -f -s /etc/init.d/bacula-sd /etc/rc2.d/S99bacula-sd
42 install-autostart-dir:
43 @rm -f /etc/rc0.d/K20bacula-dir
44 @rm -f /etc/rc1.d/S99bacula-dir
45 @rm -f /etc/rc2.d/S99bacula-dir
46 @$(INSTALL_PROGRAM) -m 744 bacula-dir /etc/rc.d/init.d/bacula-dir
47 # set symlinks for script at startup and shutdown
48 @ln -f -s /etc/init.d/bacula-dir /etc/rc0.d/K20bacula-dir
49 @ln -f -s /etc/init.d/bacula-dir /etc/rc1.d/S99bacula-dir
50 @ln -f -s /etc/init.d/bacula-dir /etc/rc2.d/S99bacula-dir
53 uninstall: uninstall-autostart
55 uninstall-autostart: uninstall-autostart-fd uninstall-autostart-sd uninstall-autostart-dir
57 uninstall-autostart-fd:
58 @rm -f /etc/rc0.d/K20bacula-fd
59 @rm -f /etc/rc1.d/S99bacula-fd
60 @rm -f /etc/rc2.d/S99bacula-fd
61 @rm -f /etc/rc.d/init.d/bacula-fd
64 uninstall-autostart-sd:
65 @rm -f /etc/rc0.d/K20bacula-sd
66 @rm -f /etc/rc1.d/S99bacula-sd
67 @rm -f /etc/rc2.d/S99bacula-sd
68 @rm -f /etc/rc.d/init.d/bacula-sd
70 uninstall-autostart-dir:
71 @rm -f /etc/rc0.d/K20bacula-dir
72 @rm -f /etc/rc1.d/S99bacula-dir
73 @rm -f /etc/rc2.d/S99bacula-dir
74 @rm -f /etc/rc.d/init.d/bacula-dir
77 @rm -f bacula-sd bacula-fd bacula-dir
80 @rm -f Makefile bacula-*.spec
83 @rm -f Makefile bacula-*.spec