]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/platforms/redhat/Makefile.in
Fix typos from last commit.
[bacula/bacula] / bacula / platforms / redhat / Makefile.in
index 3506dbcc7bb1b44287a0e66a76b96db53e1a1556..09c37f7c702c0c2d1a5072e2e7b0fb1cf6e619e3 100644 (file)
@@ -8,7 +8,7 @@
 #
 
 INSTALL = @INSTALL@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@ -m 754
 
 nothing:
 
@@ -16,60 +16,75 @@ install: install-autostart
 
 install-autostart: install-autostart-fd install-autostart-sd install-autostart-dir
 
+install_logrotate:
+       @$(INSTALL_PROGRAM) ../../scripts/logrotate $(DESTDIR)/etc/logrotate.d/bacula
        
 install-autostart-fd:
-       @if test -f /etc/rc.d/init.d/bacula-fd; then \
-           /sbin/chkconfig --del bacula-fd; \
+       @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-fd; then \
+          /sbin/chkconfig --del bacula-fd; \
        fi
-       @$(INSTALL_PROGRAM) -m 744 bacula-fd /etc/rc.d/init.d/bacula-fd
+       @$(INSTALL_PROGRAM) bacula-fd $(DESTDIR)/etc/rc.d/init.d/bacula-fd
        # set symlinks for script at startup and shutdown
-       @/sbin/chkconfig --add bacula-fd
+       @if test x$(DESTDIR) = x ; then \
+          /sbin/chkconfig --add bacula-fd; \
+       fi
 
 
 install-autostart-sd:
-       @if test -f /etc/rc.d/init.d/bacula-sd; then \
+       @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-sd; then \
            /sbin/chkconfig --del bacula-sd; \
        fi
-       @$(INSTALL_PROGRAM) -m 744 bacula-sd /etc/rc.d/init.d/bacula-sd
+       @$(INSTALL_PROGRAM) bacula-sd  $(DESTDIR)/etc/rc.d/init.d/bacula-sd
        # set symlinks for script at startup and shutdown
-       @/sbin/chkconfig --add bacula-sd
+       @if test x$(DESTDIR) = x ; then \
+          /sbin/chkconfig --add bacula-sd; \
+       fi
 
 
 install-autostart-dir:
-       @if test -f /etc/rc.d/init.d/bacula-dir; then \
+       @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-dir; then \
            /sbin/chkconfig --del bacula-dir; \
        fi
-       @$(INSTALL_PROGRAM) -m 744 bacula-dir /etc/rc.d/init.d/bacula-dir
+       @$(INSTALL_PROGRAM) bacula-dir  $(DESTDIR)/etc/rc.d/init.d/bacula-dir
        # set symlinks for script at startup and shutdown
-       @/sbin/chkconfig --add bacula-dir
+       @if test x$(DESTDIR) = x ; then \
+          /sbin/chkconfig --add bacula-dir; \
+       fi
 
 
 uninstall: uninstall-autostart
 
 uninstall-autostart: uninstall-autostart-fd uninstall-autostart-sd uninstall-autostart-dir
 
+uninstall-logrotate:
+       @rm -f $(DESTDIR)/etc/logrotate.d/bacula
+
 uninstall-autostart-fd:
-       @if test -f /etc/rc.d/init.d/bacula-fd; then \
+       @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-fd; then \
            /sbin/chkconfig --del bacula-fd; \
        fi
-       @rm -f /etc/rc.d/init.d/bacula-fd
+       @rm -f  $(DESTDIR)/etc/rc.d/init.d/bacula-fd
 
 
 uninstall-autostart-sd:
-       @if test -f /etc/rc.d/init.d/bacula-sd; then \
+       @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-sd; then \
            /sbin/chkconfig --del bacula-sd; \
        fi
-       @rm -f /etc/rc.d/init.d/bacula-sd
+       @rm -f  $(DESTDIR)/etc/rc.d/init.d/bacula-sd
 
 uninstall-autostart-dir:
-       @if test -f /etc/rc.d/init.d/bacula-dir; then \
+       @if test x$(DESTDIR) = x -a  -f /etc/rc.d/init.d/bacula-dir; then \
            /sbin/chkconfig --del bacula-dir; \
        fi
-       @rm -f /etc/rc.d/init.d/bacula-dir
+       @rm -f  $(DESTDIR)/etc/rc.d/init.d/bacula-dir
 
 clean:
+       @rm -f 1 2 3
 
 distclean: clean
-       @rm -f Makefile bacula-*.spec
+       @rm -f Makefile bacula-*.spec bacula.*.spec bacula.spec
+       @rm -f bacula-sd bacula-fd bacula-dir
+
+devclean: clean
+       @rm -f Makefile bacula-*.spec bacula.*.spec bacula.spec
        @rm -f bacula-sd bacula-fd bacula-dir
-       @rm -rf CVS