]> git.sur5r.net Git - bacula/bacula/blob - bacula/platforms/redhat/Makefile.in
9e329a747193f9bda5929d9ff48ed71ae87963f7
[bacula/bacula] / bacula / platforms / redhat / Makefile.in
1
2 # This file is used as the template to create the
3 # Makefile for the RedHat specific installation.
4 #
5 #  15 November 2001 -- Kern Sibbald
6 #
7 #  for Bacula release @VERSION@ (@DATE@) -- @DISTNAME@
8 #
9
10 INSTALL = @INSTALL@
11 INSTALL_PROGRAM = "@INSTALL_PROGRAM@ -m 754"
12
13 nothing:
14
15 install: install-autostart
16
17 install-autostart: install-autostart-fd install-autostart-sd install-autostart-dir install-logrotate
18
19 install_logrotate:
20        @$(INSTALL_PROGRAM) ../../scripts/logrotate $(DESTDIR)/etc/logrotate.d/bacula
21         
22 install-autostart-fd:
23         @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-fd; then \
24            /sbin/chkconfig --del bacula-fd; \
25         fi
26         @$(INSTALL_PROGRAM) bacula-fd $(DESTDIR)/etc/rc.d/init.d/bacula-fd
27         # set symlinks for script at startup and shutdown
28         @if test x$(DESTDIR) = x ; then \
29            /sbin/chkconfig --add bacula-fd; \
30         fi
31
32
33 install-autostart-sd:
34         @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-sd; then \
35             /sbin/chkconfig --del bacula-sd; \
36         fi
37         @$(INSTALL_PROGRAM) bacula-sd  $(DESTDIR)/etc/rc.d/init.d/bacula-sd
38         # set symlinks for script at startup and shutdown
39         @if test x$(DESTDIR) = x ; then \
40            /sbin/chkconfig --add bacula-sd; \
41         fi
42
43
44 install-autostart-dir:
45         @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-dir; then \
46             /sbin/chkconfig --del bacula-dir; \
47         fi
48         @$(INSTALL_PROGRAM) bacula-dir  $(DESTDIR)/etc/rc.d/init.d/bacula-dir
49         # set symlinks for script at startup and shutdown
50         @if test x$(DESTDIR) = x ; then \
51            /sbin/chkconfig --add bacula-dir; \
52         fi
53
54
55 uninstall: uninstall-autostart
56
57 uninstall-autostart: uninstall-autostart-fd uninstall-autostart-sd uninstall-autostart-dir uninstall-logrotate
58
59 uninstall-logrotate:
60         @rm -f $(DESTDIR)/etc/logrotate.d/bacula
61
62 uninstall-autostart-fd:
63         @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-fd; then \
64             /sbin/chkconfig --del bacula-fd; \
65         fi
66         @rm -f  $(DESTDIR)/etc/rc.d/init.d/bacula-fd
67
68
69 uninstall-autostart-sd:
70         @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-sd; then \
71             /sbin/chkconfig --del bacula-sd; \
72         fi
73         @rm -f  $(DESTDIR)/etc/rc.d/init.d/bacula-sd
74
75 uninstall-autostart-dir:
76         @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-dir; then \
77             /sbin/chkconfig --del bacula-dir; \
78         fi
79         @rm -f  $(DESTDIR)/etc/rc.d/init.d/bacula-dir
80
81 clean:
82         @rm -f 1 2 3
83
84 distclean: clean
85         @rm -f Makefile bacula-*.spec bacula.*.spec bacula.spec
86         @rm -f bacula-sd bacula-fd bacula-dir
87         @rm -rf CVS