X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fscripts%2FMakefile.in;h=6438f56f97f408e7cf424dd59a8f288411b3f329;hb=6f64b95c36d3291c01c6c469c573e5cc104b1232;hp=c08fc344b34448f93f74d1698039fc22173da8f1;hpb=38a904747f731644cd1a10befd09847e52e5e2af;p=bacula%2Fbacula diff --git a/bacula/scripts/Makefile.in b/bacula/scripts/Makefile.in index c08fc344b3..6438f56f97 100755 --- a/bacula/scripts/Makefile.in +++ b/bacula/scripts/Makefile.in @@ -30,6 +30,7 @@ installdirs: $(MKDIR) $(DESTDIR)$(sysconfdir) $(MKDIR) $(DESTDIR)$(sbindir) $(MKDIR) $(DESTDIR)$(scriptdir) + $(MKDIR) $(DESTDIR)$(mandir) install: installdirs $(INSTALL_SCRIPT) startmysql $(DESTDIR)$(scriptdir)/startmysql @@ -37,35 +38,50 @@ install: installdirs $(INSTALL_SCRIPT) bconsole $(DESTDIR)$(scriptdir)/bconsole $(INSTALL_SCRIPT) gconsole $(DESTDIR)$(scriptdir)/gconsole $(INSTALL_SCRIPT) bacula $(DESTDIR)$(scriptdir)/bacula + $(INSTALL_SCRIPT) bacula-ctl-dir $(DESTDIR)$(scriptdir)/bacula-ctl-dir + $(INSTALL_SCRIPT) bacula-ctl-fd $(DESTDIR)$(scriptdir)/bacula-ctl-fd + $(INSTALL_SCRIPT) bacula-ctl-sd $(DESTDIR)$(scriptdir)/bacula-ctl-sd @if test -f ${DESTDIR}${scriptdir}/mtx-changer; then \ echo " ==> Saving existing mtx-changer to mtx-changer.old"; \ $(MV) -f ${DESTDIR}${scriptdir}/mtx-changer ${DESTDIR}${scriptdir}/mtx-changer.old; \ fi $(INSTALL_SCRIPT) mtx-changer $(DESTDIR)$(scriptdir)/mtx-changer - @if test -f ${DESTDIR}${scriptdir}/dvd-writepart; then \ - echo " ==> Saving existing dvd-writepart to dvd-writepart.old"; \ - $(MV) -f ${DESTDIR}${scriptdir}/dvd-writepart ${DESTDIR}${scriptdir}/dvd-writepart.old; \ + @if test -f ${DESTDIR}${scriptdir}/mtx-changer.conf; then \ + echo " ==> Saving existing mtx-changer.conf to mtx-changer.conf.new"; \ + $(INSTALL_SCRIPT) mtx-changer.conf $(DESTDIR)$(scriptdir)/mtx-changer.conf.new; \ + else \ + $(INSTALL_SCRIPT) mtx-changer.conf $(DESTDIR)$(scriptdir)/mtx-changer.conf; \ fi - $(INSTALL_SCRIPT) dvd-writepart $(DESTDIR)$(scriptdir)/dvd-writepart - @if test -f ${DESTDIR}${scriptdir}/dvd-freespace; then \ - echo " ==> Saving existing dvd-freespace to dvd-freespace.old"; \ - $(MV) -f ${DESTDIR}${scriptdir}/dvd-freespace ${DESTDIR}${scriptdir}/dvd-freespace.old; \ + @if test -f ${DESTDIR}${scriptdir}/disk-changer; then \ + echo " ==> Saving existing disk-changer to disk-changer.old"; \ + $(MV) -f ${DESTDIR}${scriptdir}/disk-changer ${DESTDIR}${scriptdir}/disk-changer.old; \ fi - $(INSTALL_SCRIPT) dvd-freespace $(DESTDIR)$(scriptdir)/dvd-freespace + $(INSTALL_SCRIPT) disk-changer $(DESTDIR)$(scriptdir)/disk-changer + @if test -f ${DESTDIR}${scriptdir}/dvd-handler; then \ + echo " ==> Saving existing dvd-handler to dvd-handler.old"; \ + $(MV) -f ${DESTDIR}${scriptdir}/dvd-handler ${DESTDIR}${scriptdir}/dvd-handler.old; \ + fi + $(INSTALL_SCRIPT) dvd-handler $(DESTDIR)$(scriptdir)/dvd-handler $(INSTALL_DATA) btraceback.gdb $(DESTDIR)$(scriptdir)/btraceback.gdb $(INSTALL_DATA) btraceback.dbx $(DESTDIR)$(scriptdir)/btraceback.dbx + chmod 0644 $(DESTDIR)$(scriptdir)/btraceback.gdb \ + $(DESTDIR)$(scriptdir)/btraceback.dbx $(INSTALL_SCRIPT) btraceback $(DESTDIR)$(sbindir)/btraceback + uninstall: (cd $(DESTDIR)$(scriptdir); $(RMF) startmysql) (cd $(DESTDIR)$(scriptdir); $(RMF) stopmysql) (cd $(DESTDIR)$(scriptdir); $(RMF) bconsole) (cd $(DESTDIR)$(scriptdir); $(RMF) gconsole) (cd $(DESTDIR)$(scriptdir); $(RMF) bacula) + (cd $(DESTDIR)$(scriptdir); $(RMF) bacula-ctl-dir) + (cd $(DESTDIR)$(scriptdir); $(RMF) bacula-ctl-fd) + (cd $(DESTDIR)$(scriptdir); $(RMF) bacula-ctl-sd) (cd $(DESTDIR)$(scriptdir); $(RMF) fd) (cd $(DESTDIR)$(scriptdir); $(RMF) mtx-changer) - (cd $(DESTDIR)$(scriptdir); $(RMF) dvd-writepart) - (cd $(DESTDIR)$(scriptdir); $(RMF) dvd-freespace) + (cd $(DESTDIR)$(scriptdir); $(RMF) disk-changer) + (cd $(DESTDIR)$(scriptdir); $(RMF) dvd-handler) (cd $(DESTDIR)$(scriptdir); $(RMF) btraceback.gdb) (cd $(DESTDIR)$(scriptdir); $(RMF) btraceback.dbx) (cd $(DESTDIR)$(sbindir); $(RMF) btraceback) @@ -74,12 +90,14 @@ Makefile: Makefile.in cd $(topdir) \ && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status chmod 755 startmysql stopmysql bacula startit stopit btraceback - chmod 755 mtx-changer dvd-writepart dvd-freespace bconsole gconsole + chmod 755 bacula-ctl-dir bacula-ctl-fd bacula-ctl-sd + chmod 755 disk-changer mtx-changer dvd-handler bconsole gconsole Makefiles: $(SHELL) config.status chmod 755 startmysql stopmysql bacula startit stopit btraceback - chmod 755 mtx-changer dvd-writepart dvd-freespace bconsole gconsole + chmod 755 bacula-ctl-dir bacula-ctl-fd bacula-ctl-sd + chmod 755 mtx-changer dvd-handler bconsole gconsole clean: @$(RMF) *~ 1 2 3 @@ -87,9 +105,11 @@ clean: # clean for distribution distclean: clean @$(RMF) startmysql stopmysql bacula fd startit stopit btraceback + @$(RMF) bacula-ctl-dir bacula-ctl-fd bacula-ctl-sd @$(RMF) bconsole gconsole logrotate bacula.desktop - @$(RMF) bacula.desktop.gnome1 bacula.desktop.gnome2 mtx-changer dvd-writepart dvd-freespace + @$(RMF) bacula.desktop.gnome1 bacula.desktop.gnome2 mtx-changer dvd-handler @$(RMF) gnome-console.console_apps bacula.desktop.gnome2.xsu + @$(RMF) bgnome-console.console_apps @$(RMF) bacula.desktop.gnome2.consolehelper bacula.desktop.gnome1.xsu @$(RMF) bacula.desktop.gnome1.consolehelper