clean: $(DIRS) win32_installer win64_installer
$(MAKE) -C tools clean
- $(ECHO_CMD)-rm -rf release32 release64
+ $(ECHO_CMD)-rm -rf release32 release64 ../qt-console/obj32 ../cats/obj32 ../wx-console/obj32
+ $(ECHO_CMD)-rm -rf stored/obj32 dird/obj32 cats/obj32 wx-console/obj32
+ $(ECHO_CMD)-rm -f ../qt-console/release/bat.exe ../qt-console/debug/bat.exe
+ $(ECHO_CMD)-rm -f ../qt-console/tray-monitor/release/bacula-tray-monitor.exe ../qt-console/tray-monitor/debug/bacula-tray-monitor.exe
bat:
(cd ../qt-console; ./make-win32)
BACULA_BINARIES=$(BACULABINARIES)
HELP=
else
- BACULA_BINARIES=$(BACULABINARIES) bat.exe
+ BACULA_BINARIES=$(BACULABINARIES) bat.exe bacula-tray-monitor.exe
HELP=help
endif
--- /dev/null
+#
+# Bacula Tray Monitor Configuration File
+#
+
+Monitor {
+ Name = @monitor_name@
+ Password = "@mon_password@" # password for the Directors
+ RefreshInterval = 30 seconds
+}
+
+Client {
+ Name = @client_name@
+ Address = localhost
+ FDPort = @client_port@
+ Password = "@monitor_password@"
+}
+
+#Storage {
+# Name = @basename@-sd
+# Address = @hostname@
+# SDPort = @sd_port@
+# Password = "@mon_sd_password@" # password for StorageDaemon
+#}
+#
+#Director {
+# Name = @basename@-dir
+# DIRport = @dir_port@
+# address = @hostname@
+#}
+#
; 5 = wxWidgits Console
; 6 = Documentation (PDF)
; 7 = Documentation (HTML)
+; 10 = Tray Monitor
!define ComponentFile 1
!define ComponentStorage 2
!define ComponentGUIConsole 32
!define ComponentPDFDocs 64
!define ComponentHTMLDocs 128
+!define ComponentTrayMonitor 1024
!define ComponentsRequiringUserConfig 63
!define ComponentsFileAndStorage 3
SectionEnd
+Section "Bacula Tray Monitor" SecTrayMonitor
+ SectionIn 1 2 3
+
+ SetOutPath "$INSTDIR"
+
+!if "${BUILD_BAT}" == "yes"
+ Call InstallCommonFiles
+ File "${SRC_DIR}\QtCore4.dll"
+ File "${SRC_DIR}\QtGui4.dll"
+ File "${SRC_DIR}\libgcc_s_dw2-1.dll"
+
+ File "${SRC_DIR}\bacula-tray-monitor.exe"
+
+ File "/oname=$PLUGINSDIR\tray-monitor.conf" "tray-monitor.conf.in"
+ StrCpy $0 "$INSTDIR"
+ StrCpy $1 tray-monitor.conf
+ Call ConfigEditAndCopy
+
+ ; Create Start Menu entry
+ CreateShortCut "$SMPROGRAMS\Bacula\TrayMonitor.lnk" "$INSTDIR\bacula-tray-monitor.exe" '-c "$INSTDIR\tray-monitor.conf"' "$INSTDIR\bacula-tray-monitor.exe" 0
+ CreateShortCut "$SMPROGRAMS\Bacula\Configuration\Edit Tray Monitor Configuration.lnk" "write.exe" '"$INSTDIR\tray-monitor.conf"'
+!endif
+
+SectionEnd
; Deleted because wxconsole is deprecated
;Section "Graphical Console" SecWxConsole
LangString DESC_SecFileDaemon ${LANG_ENGLISH} "Install Bacula File Daemon on this system."
LangString DESC_SecConsole ${LANG_ENGLISH} "Install command console program on this system."
LangString DESC_SecBatConsole ${LANG_ENGLISH} "Install Bat graphical console program on this system."
+LangString DESC_SecTrayMonitor ${LANG_ENGLISH} "Install Tray Monitor graphical program on this system."
LangString TITLE_ConfigPage1 ${LANG_ENGLISH} "Configuration"
LangString SUBTITLE_ConfigPage1 ${LANG_ENGLISH} "Set installation configuration."
!InsertMacro MUI_DESCRIPTION_TEXT ${SecFileDaemon} $(DESC_SecFileDaemon)
!InsertMacro MUI_DESCRIPTION_TEXT ${SecConsole} $(DESC_SecConsole)
!InsertMacro MUI_DESCRIPTION_TEXT ${SecBatConsole} $(DESC_SecBatConsole)
+ !InsertMacro MUI_DESCRIPTION_TEXT ${SecTrayMonitor} $(DESC_SecTrayMonitor)
!InsertMacro MUI_FUNCTION_DESCRIPTION_END
; Uninstall section
${If} ${SectionIsSelected} ${SecBatConsole}
IntOp $R0 $R0 | ${ComponentBatConsole}
${EndIf}
+ ${If} ${SectionIsSelected} ${SecTrayMonitor}
+ IntOp $R0 $R0 | ${ComponentTrayMonitor}
+ ${EndIf}
${If} ${SectionIsSelected} ${SecDocPdf}
IntOp $R0 $R0 | ${ComponentPDFDocs}
${EndIf}
!InsertMacro UnselectSection ${SecBatConsole}
!InsertMacro ClearSectionFlag ${SecBatConsole} ${SF_RO}
${EndIf}
+ IntOp $R1 $PreviousComponents & ${ComponentTrayMonitor}
+ ${If} $R1 <> 0
+ !InsertMacro SelectSection ${SecTrayMonitor}
+ !InsertMacro SetSectionFlag ${SecTrayMonitor} ${SF_RO}
+ ${Else}
+ !InsertMacro UnselectSection ${SecTrayMonitor}
+ !InsertMacro ClearSectionFlag ${SecTrayMonitor} ${SF_RO}
+ ${EndIf}
${If} $R1 <> 0
!InsertMacro SelectSection ${SecDocPdf}
!InsertMacro SetSectionFlag ${SecDocPdf} ${SF_RO}
${Else}
!InsertMacro ClearSectionFlag ${SecBatConsole} ${SF_BOLD}
${EndIf}
+ IntOp $R1 $NewComponents & ${ComponentTrayMonitor}
+ ${If} $R1 <> 0
+ !InsertMacro SetSectionFlag ${SecTrayMonitor} ${SF_BOLD}
+ ${Else}
+ !InsertMacro ClearSectionFlag ${SecTrayMonitor} ${SF_BOLD}
+ ${EndIf}
IntOp $R1 $NewComponents & ${ComponentPDFDocs}
${If} $R1 <> 0
!InsertMacro SetSectionFlag ${SecDocPdf} ${SF_BOLD}
$(INSTALL_EXE): winbacula.nsi $(addprefix release64/,$(BACULA_BINARIES) $(DEPKGS_BINARIES) $(DEPKGS32_BINARIES) $(SSL_FILES) )
cp -f ../release32/bat.exe release64
+ cp -f ../release32/bacula-tray-monitor.exe release64
cp -f ../release32/QtCore4.dll release64
cp -f ../release32/QtGui4.dll release64
cp -f ../win32_installer/release32/libgcc_s_dw2-1.dll release64
--- /dev/null
+#
+# Bacula Tray Monitor Configuration File
+#
+
+Monitor {
+ Name = @monitor_name@
+ Password = "@mon_password@" # password for the Directors
+ RefreshInterval = 30 seconds
+}
+
+Client {
+ Name = @client_name@
+ Address = localhost
+ FDPort = @client_port@
+ Password = "@monitor_password@"
+}
+
+#Storage {
+# Name = @basename@-sd
+# Address = @hostname@
+# SDPort = @sd_port@
+# Password = "@mon_sd_password@" # password for StorageDaemon
+#}
+#
+#Director {
+# Name = @basename@-dir
+# DIRport = @dir_port@
+# address = @hostname@
+#}
+#
; 5 = wxWidgits Console
; 6 = Documentation (PDF)
; 7 = Documentation (HTML)
+; 10 = Tray Monitor
!define ComponentFile 1
!define ComponentStorage 2
!define ComponentGUIConsole 32
!define ComponentPDFDocs 64
!define ComponentHTMLDocs 128
+!define ComponentTrayMonitor 1024
!define ComponentsRequiringUserConfig 63
!define ComponentsFileAndStorage 3
SetOutPath "$INSTDIR"
SectionEnd
+Section "Tray Monitor" SecTrayMonitor
+ SectionIn 1 2 3
+
+ SetOutPath "$INSTDIR\bin32"
+
+ Call InstallCommonFiles
+ File "${SRC_DIR}\QtCore4.dll"
+ File "${SRC_DIR}\QtGui4.dll"
+ File "${SRC_DIR}\libgcc_s_dw2-1.dll"
+ File "${SRC_DIR}\mingwm10.dll"
+ File "${SRC_DIR}\ssleay32.dll"
+ File "${SRC_DIR}\libeay32.dll"
+ File "${SRC_DIR}\bacula-tray-monitor.exe"
+ File "/oname=$INSTDIR\bin32\bacula.dll" "${SRC_DIR}\bacula32.dll"
+ File "/oname=$INSTDIR\bin32\pthreadGCE.dll" "${SRC_DIR}\pthreadGCE32.dll"
+ File "/oname=$INSTDIR\bin32\zlib1.dll" "${SRC_DIR}\zlib132.dll"
+
+ File "/oname=$PLUGINSDIR\tray-monitor.conf" "tray-monitor.conf.in"
+ StrCpy $0 "$INSTDIR\bin32"
+ StrCpy $1 tray-monitor.conf
+ Call ConfigEditAndCopy
+
+ ; Create Start Menu entry
+ CreateShortCut "$SMPROGRAMS\Bacula\TrayMonitor.lnk" "$INSTDIR\bin32\bacula-tray-monitor.exe" '-c "$INSTDIR\bin32\tray-monitor.conf"' "$INSTDIR\bin32\bacula-tray-monitor.exe" 0
+ CreateShortCut "$SMPROGRAMS\Bacula\Configuration\Edit Tray Monitor Configuration.lnk" "write.exe" '"$INSTDIR\bin32\tray-monitor.conf"'
+ SetOutPath "$INSTDIR"
+
+SectionEnd
+
+; Deleted because wxconsole is deprecated
+;Section "Graphical Console" SecWxConsole
+; SectionIn 1 2 3
+
+; SetOutPath "$INSTDIR"
+;
+;SectionEnd
+
SectionGroupEnd
LangString DESC_SecFileDaemon ${LANG_ENGLISH} "Install Bacula File Daemon on this system."
LangString DESC_SecConsole ${LANG_ENGLISH} "Install command console program on this system."
LangString DESC_SecBatConsole ${LANG_ENGLISH} "Install Bat graphical console program on this system."
+LangString DESC_SecTrayMonitor ${LANG_ENGLISH} "Install Tray Monitor graphical program on this system."
LangString TITLE_ConfigPage1 ${LANG_ENGLISH} "Configuration"
LangString SUBTITLE_ConfigPage1 ${LANG_ENGLISH} "Set installation configuration."
!InsertMacro MUI_DESCRIPTION_TEXT ${SecFileDaemon} $(DESC_SecFileDaemon)
!InsertMacro MUI_DESCRIPTION_TEXT ${SecConsole} $(DESC_SecConsole)
!InsertMacro MUI_DESCRIPTION_TEXT ${SecBatConsole} $(DESC_SecBatConsole)
+ !InsertMacro MUI_DESCRIPTION_TEXT ${SecTrayMonitor} $(DESC_SecTrayMonitor)
!InsertMacro MUI_FUNCTION_DESCRIPTION_END
; Uninstall section
${If} ${SectionIsSelected} ${SecBatConsole}
IntOp $R0 $R0 | ${ComponentBatConsole}
${EndIf}
+ ${If} ${SectionIsSelected} ${SecTrayMonitor}
+ IntOp $R0 $R0 | ${ComponentTrayMonitor}
+ ${EndIf}
Exch $R0
FunctionEnd
!InsertMacro UnselectSection ${SecBatConsole}
!InsertMacro ClearSectionFlag ${SecBatConsole} ${SF_RO}
${EndIf}
+ IntOp $R1 $PreviousComponents & ${ComponentTrayMonitor}
+ ${If} $R1 <> 0
+ !InsertMacro SelectSection ${SecTrayMonitor}
+ !InsertMacro SetSectionFlag ${SecTrayMonitor} ${SF_RO}
+ ${Else}
+ !InsertMacro UnselectSection ${SecTrayMonitor}
+ !InsertMacro ClearSectionFlag ${SecTrayMonitor} ${SF_RO}
+ ${EndIf}
${EndIf}
FunctionEnd
${Else}
!InsertMacro ClearSectionFlag ${SecBatConsole} ${SF_BOLD}
${EndIf}
+ IntOp $R1 $NewComponents & ${ComponentTrayMonitor}
+ ${If} $R1 <> 0
+ !InsertMacro SetSectionFlag ${SecTrayMonitor} ${SF_BOLD}
+ ${Else}
+ !InsertMacro ClearSectionFlag ${SecTrayMonitor} ${SF_BOLD}
+ ${EndIf}
${EndIf}
GetDlgItem $R0 $HWNDPARENT 1