]> git.sur5r.net Git - bacula/bacula/commitdiff
install and uninstall targets added.
authorNicolas Boichat <nicolas@boichat.ch>
Wed, 21 Apr 2004 21:13:41 +0000 (21:13 +0000)
committerNicolas Boichat <nicolas@boichat.ch>
Wed, 21 Apr 2004 21:13:41 +0000 (21:13 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1259 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/wx-console/Makefile.in
bacula/src/wx-console/wx-console.conf.in [new file with mode: 0644]

index b3e186d4c5b6dd97f7b916629c4bf4d81e60fb6f..e47736baba1ca6528e6ebc133051ae21407606d4 100644 (file)
@@ -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 (file)
index 0000000..010797b
--- /dev/null
@@ -0,0 +1,10 @@
+#
+# Bacula User Agent (or Console) Configuration File
+#
+
+Director {
+  Name = @hostname@-dir
+  DIRport = @dir_port@
+  address = @hostname@
+  Password = "@dir_password@"
+}