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