2 # Copyright (C) 2000-2015 Kern Sibbald
3 # License: BSD 2-Clause; see file LICENSE-FOSS
5 # This file is used as the template to create the
6 # Makefile for the Solaris specific installation.
8 # 15 November 2001 -- Kern Sibbald
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
24 @rm -f /etc/rc0.d/K20bacula-fd
25 @rm -f /etc/rc1.d/S99bacula-fd
26 @rm -f /etc/rc2.d/S99bacula-fd
27 @$(INSTALL_PROGRAM) -m 744 bacula-fd /etc/init.d/bacula-fd
28 # set symlinks for script at startup and shutdown
29 @ln -f -s /etc/init.d/bacula-fd /etc/rc0.d/K20bacula-fd
30 @ln -f -s /etc/init.d/bacula-fd /etc/rc1.d/S99bacula-fd
31 @ln -f -s /etc/init.d/bacula-fd /etc/rc2.d/S99bacula-fd
35 @rm -f /etc/rc0.d/K20bacula-sd
36 @rm -f /etc/rc1.d/S99bacula-sd
37 @rm -f /etc/rc2.d/S99bacula-sd
38 @$(INSTALL_PROGRAM) -m 744 bacula-sd /etc/rc.d/init.d/bacula-sd
39 # set symlinks for script at startup and shutdown
40 @ln -f -s /etc/init.d/bacula-sd /etc/rc0.d/K20bacula-sd
41 @ln -f -s /etc/init.d/bacula-sd /etc/rc1.d/S99bacula-sd
42 @ln -f -s /etc/init.d/bacula-sd /etc/rc2.d/S99bacula-sd
45 install-autostart-dir:
46 @rm -f /etc/rc0.d/K20bacula-dir
47 @rm -f /etc/rc1.d/S99bacula-dir
48 @rm -f /etc/rc2.d/S99bacula-dir
49 @$(INSTALL_PROGRAM) -m 744 bacula-dir /etc/rc.d/init.d/bacula-dir
50 # set symlinks for script at startup and shutdown
51 @ln -f -s /etc/init.d/bacula-dir /etc/rc0.d/K20bacula-dir
52 @ln -f -s /etc/init.d/bacula-dir /etc/rc1.d/S99bacula-dir
53 @ln -f -s /etc/init.d/bacula-dir /etc/rc2.d/S99bacula-dir
56 uninstall: uninstall-autostart
58 uninstall-autostart: uninstall-autostart-fd uninstall-autostart-sd uninstall-autostart-dir
60 uninstall-autostart-fd:
61 @rm -f /etc/rc0.d/K20bacula-fd
62 @rm -f /etc/rc1.d/S99bacula-fd
63 @rm -f /etc/rc2.d/S99bacula-fd
64 @rm -f /etc/rc.d/init.d/bacula-fd
67 uninstall-autostart-sd:
68 @rm -f /etc/rc0.d/K20bacula-sd
69 @rm -f /etc/rc1.d/S99bacula-sd
70 @rm -f /etc/rc2.d/S99bacula-sd
71 @rm -f /etc/rc.d/init.d/bacula-sd
73 uninstall-autostart-dir:
74 @rm -f /etc/rc0.d/K20bacula-dir
75 @rm -f /etc/rc1.d/S99bacula-dir
76 @rm -f /etc/rc2.d/S99bacula-dir
77 @rm -f /etc/rc.d/init.d/bacula-dir
83 @rm -f bacula-sd bacula-fd bacula-dir
84 @rm -f Makefile bacula-*.spec
87 @rm -f bacula-sd bacula-fd bacula-dir
88 @rm -f Makefile bacula-*.spec