From: Nicolas Boichat Date: Wed, 21 Apr 2004 21:13:41 +0000 (+0000) Subject: install and uninstall targets added. X-Git-Tag: Release-1.34.3~140 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=88ea9f71b828eb6529ff182bb7986937abdf63e4;p=bacula%2Fbacula install and uninstall targets added. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1259 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/wx-console/Makefile.in b/bacula/src/wx-console/Makefile.in index b3e186d4c5..e47736baba 100644 --- a/bacula/src/wx-console/Makefile.in +++ b/bacula/src/wx-console/Makefile.in @@ -76,6 +76,22 @@ Makefile: $(srcdir)/Makefile.in $(topdir)/config.status cd $(topdir) \ && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status +install: all + $(INSTALL_PROGRAM) wx-console $(DESTDIR)$(sbindir)/wx-console + @srcconf=wx-console.conf; \ + if test -f ${DESTDIR}${sysconfdir}/$$srcconf; then \ + destconf=$$srcconf.new; \ + echo " ==> Found existing $$srcconf, installing new conf file as $$destconf"; \ + else \ + destconf=$$srcconf; \ + fi; \ + echo "${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf"; \ + ${INSTALL_CONFIG} $$srcconf ${DESTDIR}${sysconfdir}/$$destconf + +uninstall: + (cd $(DESTDIR)$(sbindir); $(RMF) wx-console) + (cd $(DESTDIR)$(sysconfdir); $(RMF) wx-console.conf wx-console.conf.new) + # Semi-automatic generation of dependencies: # Use gcc -MM because X11 `makedepend' doesn't work on all systems # and it also includes system headers. diff --git a/bacula/src/wx-console/wx-console.conf.in b/bacula/src/wx-console/wx-console.conf.in new file mode 100644 index 0000000000..010797b8c0 --- /dev/null +++ b/bacula/src/wx-console/wx-console.conf.in @@ -0,0 +1,10 @@ +# +# Bacula User Agent (or Console) Configuration File +# + +Director { + Name = @hostname@-dir + DIRport = @dir_port@ + address = @hostname@ + Password = "@dir_password@" +}