From 0d9438526548cc8f43cc5d4965550479b61c1faf Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Thu, 27 Jul 2006 01:59:06 +0000 Subject: [PATCH] Complete port to Windows The one remaining piece is the final NSIS script update and automatic creation of the installation package. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3182 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/autoconf/configure.in | 8 - bacula/configure | 14 +- bacula/src/baconfig.h | 13 + bacula/src/bacula.h | 4 +- bacula/src/cats/bdb_list.c | 4 +- bacula/src/cats/make_sqlite3_tables.in | 2 +- bacula/src/cats/make_sqlite_tables.in | 2 +- bacula/src/cats/mysql.c | 2 +- bacula/src/cats/update_mysql_tables.in | 2 +- bacula/src/cats/update_postgresql_tables.in | 2 +- bacula/src/console/console.c | 4 - bacula/src/dird/dird.c | 17 +- bacula/src/dird/inc_conf.c | 2 +- bacula/src/dird/ua_update.c | 4 +- bacula/src/filed/Makefile.mingw | 231 -- bacula/src/filed/job.c | 16 +- bacula/src/filed/status.c | 1 - bacula/src/filed/win32/.cvsignore | 1 - bacula/src/filed/win32/Makefile.in | 124 - bacula/src/filed/win32/Makefile.mingw | 125 - bacula/src/filed/win32/bacula.bmp | Bin 3126 -> 0 bytes bacula/src/filed/win32/bacula.ico | Bin 766 -> 0 bytes bacula/src/filed/win32/bacula.rc | 1 - bacula/src/filed/win32/error.ico | Bin 766 -> 0 bytes bacula/src/filed/win32/idle.ico | Bin 766 -> 0 bytes bacula/src/filed/win32/mymapi32.def | 151 - bacula/src/filed/win32/popup.c | 47 - bacula/src/filed/win32/running.ico | Bin 766 -> 0 bytes bacula/src/filed/win32/saving.ico | Bin 766 -> 0 bytes bacula/src/filed/win32/warn.ico | Bin 766 -> 0 bytes bacula/src/filed/win32/winabout.cpp | 80 - bacula/src/filed/win32/winabout.h | 48 - bacula/src/filed/win32/winbacula.h | 71 - bacula/src/filed/win32/winevents.cpp | 87 - bacula/src/filed/win32/winevents.h | 44 - bacula/src/filed/win32/winmain.cpp | 330 -- bacula/src/filed/win32/winres.h | 46 - bacula/src/filed/win32/winres.rc | 181 - bacula/src/filed/win32/winservice.cpp | 764 ---- bacula/src/filed/win32/winservice.h | 125 - bacula/src/filed/win32/winstat.cpp | 97 - bacula/src/filed/win32/winstat.h | 45 - bacula/src/filed/win32/wintray.cpp | 353 -- bacula/src/filed/win32/wintray.h | 94 - bacula/src/findlib/Makefile.in | 2 +- bacula/src/findlib/Makefile.mingw | 162 - bacula/src/findlib/attribs.c | 13 - bacula/src/lib/Makefile.in | 4 +- bacula/src/lib/Makefile.mingw | 232 -- bacula/src/lib/bpipe.c | 96 +- bacula/src/lib/bregex.h | 1 + bacula/src/lib/bsys.c | 15 - bacula/src/lib/message.h | 2 +- bacula/src/lib/var.c | 2 - bacula/src/lib/winapi.c | 259 -- bacula/src/lib/winapi.h | 171 - bacula/src/stored/ansi_label.c | 8 +- bacula/src/stored/block.c | 12 +- bacula/src/stored/btape.c | 8 +- bacula/src/stored/dev.c | 116 +- bacula/src/stored/protos.h | 6 +- bacula/src/stored/reserve.c | 20 +- bacula/src/stored/spool.c | 18 +- bacula/src/stored/status.c | 407 +- bacula/src/stored/stored.c | 4 + bacula/src/stored/stored.h | 2 +- bacula/src/tools/Makefile.in | 11 +- bacula/src/tools/testfind.c | 398 +- bacula/src/win32/Makefile | 23 + bacula/src/win32/Makefile.in | 613 --- bacula/src/win32/baculafd/.cvsignore | 4 - bacula/src/win32/baculafd/GNUmakefile | 6 - bacula/src/win32/baculafd/StdAfx.cpp | 8 - bacula/src/win32/baculafd/StdAfx.h | 32 - bacula/src/win32/baculafd/bacula-fd.conf.in | 32 - bacula/src/win32/baculafd/baculafd.dep | 3596 ----------------- bacula/src/win32/baculafd/baculafd.dsp | 502 --- bacula/src/win32/baculafd/baculafd.dsw | 29 - bacula/src/win32/baculafd/baculafd.mak | 2128 ---------- bacula/src/win32/baculafd/baculafd.vcproj | 539 --- bacula/src/win32/baculafd/baculanovssfd.mak | 2110 ---------- bacula/src/win32/baculafd/setup-debug | 3 - bacula/src/win32/compat/compat.cpp | 324 +- bacula/src/win32/compat/compat.h | 110 +- bacula/src/win32/compat/vss.cpp | 182 - bacula/src/win32/compat/vss.h | 118 - bacula/src/win32/compat/vss_W2K3.cpp | 13 - bacula/src/win32/compat/vss_XP.cpp | 4 - bacula/src/win32/compat/vss_generic.cpp | 655 --- bacula/src/win32/compat/winconfig.h | 2 +- bacula/src/win32/console/Makefile | 51 +- bacula/src/win32/console/StdAfx.cpp | 6 - bacula/src/win32/console/StdAfx.h | 13 - bacula/src/win32/console/authenticate.cpp | 1 - bacula/src/win32/console/bconsole.mak.in | 146 - bacula/src/win32/console/console.cpp | 1 - bacula/src/win32/console/console_conf.cpp | 1 - bacula/src/win32/dll/Makefile | 1 - bacula/src/win32/dll/bacula.def | 1338 +++--- bacula/src/win32/filed/Makefile.mingw | 504 --- bacula/src/win32/filed/authenticate.cpp | 1 - bacula/src/win32/filed/backup.cpp | 1 - bacula/src/win32/filed/estimate.cpp | 1 - bacula/src/win32/filed/filed.cpp | 1 - bacula/src/win32/filed/filed_conf.cpp | 1 - bacula/src/win32/filed/heartbeat.cpp | 1 - bacula/src/win32/filed/job.cpp | 1 - bacula/src/win32/filed/restore.cpp | 1 - bacula/src/win32/filed/status.cpp | 1 - bacula/src/win32/filed/verify.cpp | 1 - bacula/src/win32/filed/verify_vol.cpp | 1 - bacula/src/win32/findlib/attribs.cpp | 1 - bacula/src/win32/findlib/bfile.cpp | 1 - bacula/src/win32/findlib/create_file.cpp | 1 - bacula/src/win32/findlib/enable_priv.cpp | 1 - bacula/src/win32/findlib/find.cpp | 1 - bacula/src/win32/findlib/find_one.cpp | 1 - bacula/src/win32/findlib/fstype.cpp | 1 - bacula/src/win32/findlib/makepath.cpp | 1 - bacula/src/win32/findlib/match.cpp | 1 - bacula/src/win32/findlib/save-cwd.cpp | 1 - bacula/src/win32/findlib/winapi.cpp | 1 - bacula/src/win32/lib/address_conf.cpp | 1 - bacula/src/win32/lib/alist.cpp | 2 - bacula/src/win32/lib/alloc.cpp | 1 - bacula/src/win32/lib/attr.cpp | 1 - bacula/src/win32/lib/base64.cpp | 2 - bacula/src/win32/lib/berrno.cpp | 1 - bacula/src/win32/lib/bget_msg.cpp | 1 - bacula/src/win32/lib/bnet.cpp | 2 - bacula/src/win32/lib/bnet_pkt.cpp | 1 - bacula/src/win32/lib/bnet_server.cpp | 1 - bacula/src/win32/lib/bpipe.cpp | 1 - bacula/src/win32/lib/bregex.cpp | 1 - bacula/src/win32/lib/bshm.cpp | 1 - bacula/src/win32/lib/bsys.cpp | 2 - bacula/src/win32/lib/btime.cpp | 2 - bacula/src/win32/lib/btimers.cpp | 1 - bacula/src/win32/lib/cram-md5.cpp | 2 - bacula/src/win32/lib/crc32.cpp | 1 - bacula/src/win32/lib/crypto.cpp | 1 - bacula/src/win32/lib/daemon.cpp | 1 - bacula/src/win32/lib/dlist.cpp | 1 - bacula/src/win32/lib/edit.cpp | 1 - bacula/src/win32/lib/events.cpp | 1 - bacula/src/win32/lib/fnmatch.cpp | 1 - bacula/src/win32/lib/hmac.cpp | 1 - bacula/src/win32/lib/htable.cpp | 1 - bacula/src/win32/lib/idcache.cpp | 1 - bacula/src/win32/lib/jcr.cpp | 1 - bacula/src/win32/lib/lex.cpp | 1 - bacula/src/win32/lib/md5.cpp | 1 - bacula/src/win32/lib/mem_pool.cpp | 1 - bacula/src/win32/lib/message.cpp | 1 - bacula/src/win32/lib/parse_conf.cpp | 1 - bacula/src/win32/lib/pythonlib.cpp | 1 - bacula/src/win32/lib/queue.cpp | 1 - bacula/src/win32/lib/regex.cpp | 1 - bacula/src/win32/lib/res.cpp | 1 - bacula/src/win32/lib/rwlock.cpp | 1 - bacula/src/win32/lib/scan.cpp | 1 - bacula/src/win32/lib/semlock.cpp | 1 - bacula/src/win32/lib/serial.cpp | 1 - bacula/src/win32/lib/sha1.cpp | 1 - bacula/src/win32/lib/signal.cpp | 1 - bacula/src/win32/lib/smartall.cpp | 1 - bacula/src/win32/lib/tls.cpp | 1 - bacula/src/win32/lib/tree.cpp | 1 - bacula/src/win32/lib/util.cpp | 1 - bacula/src/win32/lib/var.cpp | 1 - bacula/src/win32/lib/watchdog.cpp | 1 - bacula/src/win32/lib/winapi.cpp | 1 - bacula/src/win32/lib/workq.cpp | 1 - bacula/src/win32/libwin32/popup.c | 47 - bacula/src/win32/params.nsh | 104 - bacula/src/win32/util.nsh | 95 - bacula/src/win32/winbacula.nsi.in | 858 +++- bacula/src/win32/wx-console/Makefile | 84 +- bacula/src/win32/wx-console/authenticate.cpp | 1 - bacula/src/win32/wx-console/console_conf.cpp | 1 - .../win32/wx-console/wx-console-obj.mak.in | 16 - bacula/src/win32/wx-console/wx-console.mak.in | 160 - bacula/src/wx-console/Makefile.mingw | 69 - bacula/src/wx-console/main.cpp | 4 + bacula/src/wx-console/wxbtreectrl.cpp | 2 +- bacula/src/wx-console/wxbtreectrl.h | 2 +- 186 files changed, 2685 insertions(+), 17043 deletions(-) delete mode 100644 bacula/src/filed/Makefile.mingw delete mode 100644 bacula/src/filed/win32/.cvsignore delete mode 100755 bacula/src/filed/win32/Makefile.in delete mode 100644 bacula/src/filed/win32/Makefile.mingw delete mode 100644 bacula/src/filed/win32/bacula.bmp delete mode 100644 bacula/src/filed/win32/bacula.ico delete mode 100644 bacula/src/filed/win32/bacula.rc delete mode 100644 bacula/src/filed/win32/error.ico delete mode 100644 bacula/src/filed/win32/idle.ico delete mode 100644 bacula/src/filed/win32/mymapi32.def delete mode 100644 bacula/src/filed/win32/popup.c delete mode 100644 bacula/src/filed/win32/running.ico delete mode 100644 bacula/src/filed/win32/saving.ico delete mode 100644 bacula/src/filed/win32/warn.ico delete mode 100755 bacula/src/filed/win32/winabout.cpp delete mode 100755 bacula/src/filed/win32/winabout.h delete mode 100755 bacula/src/filed/win32/winbacula.h delete mode 100755 bacula/src/filed/win32/winevents.cpp delete mode 100755 bacula/src/filed/win32/winevents.h delete mode 100755 bacula/src/filed/win32/winmain.cpp delete mode 100755 bacula/src/filed/win32/winres.h delete mode 100644 bacula/src/filed/win32/winres.rc delete mode 100755 bacula/src/filed/win32/winservice.cpp delete mode 100755 bacula/src/filed/win32/winservice.h delete mode 100755 bacula/src/filed/win32/winstat.cpp delete mode 100755 bacula/src/filed/win32/winstat.h delete mode 100755 bacula/src/filed/win32/wintray.cpp delete mode 100755 bacula/src/filed/win32/wintray.h delete mode 100644 bacula/src/findlib/Makefile.mingw delete mode 100644 bacula/src/lib/Makefile.mingw delete mode 100644 bacula/src/lib/winapi.c delete mode 100644 bacula/src/lib/winapi.h create mode 100644 bacula/src/win32/Makefile delete mode 100644 bacula/src/win32/Makefile.in delete mode 100644 bacula/src/win32/baculafd/.cvsignore delete mode 100644 bacula/src/win32/baculafd/GNUmakefile delete mode 100644 bacula/src/win32/baculafd/StdAfx.cpp delete mode 100644 bacula/src/win32/baculafd/StdAfx.h delete mode 100755 bacula/src/win32/baculafd/bacula-fd.conf.in delete mode 100644 bacula/src/win32/baculafd/baculafd.dep delete mode 100644 bacula/src/win32/baculafd/baculafd.dsp delete mode 100644 bacula/src/win32/baculafd/baculafd.dsw delete mode 100644 bacula/src/win32/baculafd/baculafd.mak delete mode 100644 bacula/src/win32/baculafd/baculafd.vcproj delete mode 100644 bacula/src/win32/baculafd/baculanovssfd.mak delete mode 100755 bacula/src/win32/baculafd/setup-debug delete mode 100644 bacula/src/win32/compat/vss.cpp delete mode 100644 bacula/src/win32/compat/vss.h delete mode 100644 bacula/src/win32/compat/vss_W2K3.cpp delete mode 100644 bacula/src/win32/compat/vss_XP.cpp delete mode 100644 bacula/src/win32/compat/vss_generic.cpp delete mode 100644 bacula/src/win32/console/StdAfx.cpp delete mode 100644 bacula/src/win32/console/StdAfx.h delete mode 100644 bacula/src/win32/console/authenticate.cpp delete mode 100755 bacula/src/win32/console/bconsole.mak.in delete mode 100644 bacula/src/win32/console/console.cpp delete mode 100644 bacula/src/win32/console/console_conf.cpp delete mode 100644 bacula/src/win32/filed/Makefile.mingw delete mode 100644 bacula/src/win32/filed/authenticate.cpp delete mode 100644 bacula/src/win32/filed/backup.cpp delete mode 100644 bacula/src/win32/filed/estimate.cpp delete mode 100644 bacula/src/win32/filed/filed.cpp delete mode 100644 bacula/src/win32/filed/filed_conf.cpp delete mode 100644 bacula/src/win32/filed/heartbeat.cpp delete mode 100644 bacula/src/win32/filed/job.cpp delete mode 100644 bacula/src/win32/filed/restore.cpp delete mode 100644 bacula/src/win32/filed/status.cpp delete mode 100644 bacula/src/win32/filed/verify.cpp delete mode 100644 bacula/src/win32/filed/verify_vol.cpp delete mode 100644 bacula/src/win32/findlib/attribs.cpp delete mode 100644 bacula/src/win32/findlib/bfile.cpp delete mode 100644 bacula/src/win32/findlib/create_file.cpp delete mode 100644 bacula/src/win32/findlib/enable_priv.cpp delete mode 100644 bacula/src/win32/findlib/find.cpp delete mode 100644 bacula/src/win32/findlib/find_one.cpp delete mode 100644 bacula/src/win32/findlib/fstype.cpp delete mode 100644 bacula/src/win32/findlib/makepath.cpp delete mode 100644 bacula/src/win32/findlib/match.cpp delete mode 100644 bacula/src/win32/findlib/save-cwd.cpp delete mode 100644 bacula/src/win32/findlib/winapi.cpp delete mode 100755 bacula/src/win32/lib/address_conf.cpp delete mode 100644 bacula/src/win32/lib/alist.cpp delete mode 100644 bacula/src/win32/lib/alloc.cpp delete mode 100644 bacula/src/win32/lib/attr.cpp delete mode 100644 bacula/src/win32/lib/base64.cpp delete mode 100644 bacula/src/win32/lib/berrno.cpp delete mode 100644 bacula/src/win32/lib/bget_msg.cpp delete mode 100644 bacula/src/win32/lib/bnet.cpp delete mode 100644 bacula/src/win32/lib/bnet_pkt.cpp delete mode 100644 bacula/src/win32/lib/bnet_server.cpp delete mode 100644 bacula/src/win32/lib/bpipe.cpp delete mode 100644 bacula/src/win32/lib/bregex.cpp delete mode 100644 bacula/src/win32/lib/bshm.cpp delete mode 100644 bacula/src/win32/lib/bsys.cpp delete mode 100644 bacula/src/win32/lib/btime.cpp delete mode 100644 bacula/src/win32/lib/btimers.cpp delete mode 100644 bacula/src/win32/lib/cram-md5.cpp delete mode 100644 bacula/src/win32/lib/crc32.cpp delete mode 100644 bacula/src/win32/lib/crypto.cpp delete mode 100644 bacula/src/win32/lib/daemon.cpp delete mode 100644 bacula/src/win32/lib/dlist.cpp delete mode 100644 bacula/src/win32/lib/edit.cpp delete mode 100644 bacula/src/win32/lib/events.cpp delete mode 100644 bacula/src/win32/lib/fnmatch.cpp delete mode 100644 bacula/src/win32/lib/hmac.cpp delete mode 100644 bacula/src/win32/lib/htable.cpp delete mode 100644 bacula/src/win32/lib/idcache.cpp delete mode 100644 bacula/src/win32/lib/jcr.cpp delete mode 100644 bacula/src/win32/lib/lex.cpp delete mode 100644 bacula/src/win32/lib/md5.cpp delete mode 100644 bacula/src/win32/lib/mem_pool.cpp delete mode 100644 bacula/src/win32/lib/message.cpp delete mode 100644 bacula/src/win32/lib/parse_conf.cpp delete mode 100644 bacula/src/win32/lib/pythonlib.cpp delete mode 100644 bacula/src/win32/lib/queue.cpp delete mode 100644 bacula/src/win32/lib/regex.cpp delete mode 100644 bacula/src/win32/lib/res.cpp delete mode 100644 bacula/src/win32/lib/rwlock.cpp delete mode 100644 bacula/src/win32/lib/scan.cpp delete mode 100644 bacula/src/win32/lib/semlock.cpp delete mode 100644 bacula/src/win32/lib/serial.cpp delete mode 100644 bacula/src/win32/lib/sha1.cpp delete mode 100644 bacula/src/win32/lib/signal.cpp delete mode 100644 bacula/src/win32/lib/smartall.cpp delete mode 100644 bacula/src/win32/lib/tls.cpp delete mode 100644 bacula/src/win32/lib/tree.cpp delete mode 100644 bacula/src/win32/lib/util.cpp delete mode 100644 bacula/src/win32/lib/var.cpp delete mode 100644 bacula/src/win32/lib/watchdog.cpp delete mode 100644 bacula/src/win32/lib/winapi.cpp delete mode 100644 bacula/src/win32/lib/workq.cpp delete mode 100644 bacula/src/win32/libwin32/popup.c delete mode 100644 bacula/src/win32/params.nsh delete mode 100644 bacula/src/win32/util.nsh delete mode 100644 bacula/src/win32/wx-console/authenticate.cpp delete mode 100644 bacula/src/win32/wx-console/console_conf.cpp delete mode 100644 bacula/src/win32/wx-console/wx-console-obj.mak.in delete mode 100644 bacula/src/win32/wx-console/wx-console.mak.in delete mode 100644 bacula/src/wx-console/Makefile.mingw diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index 43d3fbc07e..bd853a3fa0 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -2004,7 +2004,6 @@ AC_OUTPUT([autoconf/Make.common \ src/stored/bacula-sd.conf \ src/filed/Makefile \ src/filed/bacula-fd.conf \ - src/filed/win32/Makefile \ src/cats/Makefile \ src/cats/make_catalog_backup \ src/cats/delete_catalog_backup \ @@ -2049,13 +2048,6 @@ AC_OUTPUT([autoconf/Make.common \ src/findlib/Makefile \ src/pygtk-console/Makefile \ src/tools/Makefile \ - src/win32/winbacula.nsi \ - src/win32/baculafd/bacula-fd.conf \ - src/win32/Makefile \ - src/win32/Makefile.vcpp \ - src/win32/console/bconsole.conf \ - src/win32/wx-console/wx-console.conf \ - src/win32/pebuilder/Makefile \ po/Makefile.in \ $PFILES ], [(echo "Doing make of dependencies"; ${MAKE:-make} depend;) ] diff --git a/bacula/configure b/bacula/configure index b7c8f95bd5..107e8d1a67 100755 --- a/bacula/configure +++ b/bacula/configure @@ -16631,9 +16631,9 @@ echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;} elif test -f $withval/include/postgresql/libpq-fe.h; then POSTGRESQL_INCDIR=$withval/include/postgresql if test -d $withval/lib64; then - POSTGRESQL_LIBDIR=$withval/lib64 + POSTGRESQL_LIBDIR=$withval/lib64 else - POSTGRESQL_LIBDIR=$withval/lib + POSTGRESQL_LIBDIR=$withval/lib fi POSTGRESQL_BINDIR=$withval/bin else @@ -29971,7 +29971,7 @@ if test "x${subsysdir}" = "x${sbindir}" ; then exit 1 fi - ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/pygtk-console/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/Makefile.vcpp src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile po/Makefile.in $PFILES" + ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/pygtk-console/Makefile src/tools/Makefile po/Makefile.in $PFILES" ac_config_commands="$ac_config_commands default" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -30564,7 +30564,6 @@ do "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;; "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;; "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;; - "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;; "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;; "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;; "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;; @@ -30609,13 +30608,6 @@ do "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;; "src/pygtk-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pygtk-console/Makefile" ;; "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;; - "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;; - "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;; - "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;; - "src/win32/Makefile.vcpp" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.vcpp" ;; - "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;; - "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;; - "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;; "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;; "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; diff --git a/bacula/src/baconfig.h b/bacula/src/baconfig.h index c6c6854e77..a4a839b6bb 100644 --- a/bacula/src/baconfig.h +++ b/bacula/src/baconfig.h @@ -71,14 +71,27 @@ void InitWinAPIWrapper(); #define OSDependentInit() InitWinAPIWrapper() #undef ENABLE_NLS +#if defined(BUILDING_DLL) +# define DLL_IMP_EXP _declspec(dllexport) +#elif defined(USING_DLL) +# define DLL_IMP_EXP _declspec(dllimport) +#else # define DLL_IMP_EXP +#endif + #else #define DLL_IMP_EXP #define OSDependentInit() +#define tape_open open +#define tape_ioctl ioctl +#define tape_read read +#define tape_write write +#define tape_close ::close #endif + #ifdef ENABLE_NLS #include #include diff --git a/bacula/src/bacula.h b/bacula/src/bacula.h index 69b43828af..60a219fee6 100644 --- a/bacula/src/bacula.h +++ b/bacula/src/bacula.h @@ -29,8 +29,6 @@ #if defined(HAVE_WIN32) #if defined(HAVE_MINGW) #include "mingwconfig.h" -#define _STAT_H /* don't pull in MinGW stat.h */ -#define _STAT_DEFINED /* don't pull in MinGW stat.h */ #else #include "winconfig.h" #endif @@ -149,7 +147,7 @@ #endif #if defined(HAVE_WIN32) -#include "lib/winapi.h" +#include "win32/winapi.h" #endif #ifndef HAVE_ZLIB_H diff --git a/bacula/src/cats/bdb_list.c b/bacula/src/cats/bdb_list.c index 902739c7a3..fbadb34ddc 100644 --- a/bacula/src/cats/bdb_list.c +++ b/bacula/src/cats/bdb_list.c @@ -52,7 +52,7 @@ /* * Submit general SQL query */ -int db_list_sql_query(JCR *jcr, B_DB *mdb, char *query, DB_LIST_HANDLER *sendit, +int db_list_sql_query(JCR *jcr, B_DB *mdb, const char *query, DB_LIST_HANDLER *sendit, void *ctx, int verbose) { sendit(ctx, "SQL Queries not implemented with internal database.\n"); @@ -272,7 +272,7 @@ void db_list_files_for_job(JCR *jcr, B_DB *mdb, uint32_t jobid, DB_LIST_HANDLER void db_list_client_records(JCR *jcr, B_DB *mdb, DB_LIST_HANDLER *sendit, void *ctx) { } -int db_list_sql_query(JCR *jcr, B_DB *mdb, char *query, DB_LIST_HANDLER *sendit, +int db_list_sql_query(JCR *jcr, B_DB *mdb, const char *query, DB_LIST_HANDLER *sendit, void *ctx, int verbose, e_list_type type) { return 0; diff --git a/bacula/src/cats/make_sqlite3_tables.in b/bacula/src/cats/make_sqlite3_tables.in index 4df3610ed2..fe44892255 100644 --- a/bacula/src/cats/make_sqlite3_tables.in +++ b/bacula/src/cats/make_sqlite3_tables.in @@ -276,7 +276,7 @@ CREATE TABLE NextId ( PRIMARY KEY (TableName) ); - + -- Initialize JobId to start at 1 INSERT INTO NextId (id, TableName) VALUES (1, "Job"); diff --git a/bacula/src/cats/make_sqlite_tables.in b/bacula/src/cats/make_sqlite_tables.in index 4df3610ed2..fe44892255 100644 --- a/bacula/src/cats/make_sqlite_tables.in +++ b/bacula/src/cats/make_sqlite_tables.in @@ -276,7 +276,7 @@ CREATE TABLE NextId ( PRIMARY KEY (TableName) ); - + -- Initialize JobId to start at 1 INSERT INTO NextId (id, TableName) VALUES (1, "Job"); diff --git a/bacula/src/cats/mysql.c b/bacula/src/cats/mysql.c index ad0be7a6ca..3c1a6e2fd6 100644 --- a/bacula/src/cats/mysql.c +++ b/bacula/src/cats/mysql.c @@ -191,7 +191,7 @@ db_close_database(JCR *jcr, B_DB *mdb) db_end_transaction(jcr, mdb); P(mutex); mdb->ref_count--; -#ifdef HAVE_TREAD_SAFE_MYSQL +#if defined(HAVE_THREAD_SAFE_MYSQL) my_thread_end(); #endif if (mdb->ref_count == 0) { diff --git a/bacula/src/cats/update_mysql_tables.in b/bacula/src/cats/update_mysql_tables.in index bdb5a213e1..1361514577 100755 --- a/bacula/src/cats/update_mysql_tables.in +++ b/bacula/src/cats/update_mysql_tables.in @@ -3,7 +3,7 @@ # Shell script to update MySQL tables from version 1.38 to 1.39 # echo " " -echo "This script will update a Bacula SQLite database from version 9 to 10" +echo "This script will update a Bacula MySQL database from version 9 to 10" echo " which is needed to convert from Bacula version 1.38.x to 1.39.x or higher" echo "Depending on the size of your database," echo "this script may take several minutes to run." diff --git a/bacula/src/cats/update_postgresql_tables.in b/bacula/src/cats/update_postgresql_tables.in index 87ea9128a5..a584543ee3 100755 --- a/bacula/src/cats/update_postgresql_tables.in +++ b/bacula/src/cats/update_postgresql_tables.in @@ -3,7 +3,7 @@ # Shell script to update PostgreSQL tables from version 1.38 to 1.39 # echo " " -echo "This script will update a Bacula SQLite database from version 9 to 10" +echo "This script will update a Bacula PostgreSQL database from version 9 to 10" echo " which is needed to convert from Bacula version 1.38.x to 1.39.x or higher" echo "Depending on the size of your database," echo "this script may take several minutes to run." diff --git a/bacula/src/console/console.c b/bacula/src/console/console.c index abdfc8f0f5..8e1d32e0e8 100644 --- a/bacula/src/console/console.c +++ b/bacula/src/console/console.c @@ -43,10 +43,6 @@ /* Exported variables */ extern int rl_catch_signals; -#ifdef HAVE_MINGW -/* Remove when we have real lib in src/lib */ -int enable_vss; -#endif /* Imported functions */ int authenticate_director(JCR *jcr, DIRRES *director, CONRES *cons); diff --git a/bacula/src/dird/dird.c b/bacula/src/dird/dird.c index 2d0afc38f7..db10ddb919 100644 --- a/bacula/src/dird/dird.c +++ b/bacula/src/dird/dird.c @@ -25,7 +25,7 @@ #include "dird.h" /* Forward referenced subroutines */ -static void terminate_dird(int sig); +void terminate_dird(int sig); static int check_resources(); static void dir_sql_query(JCR *jcr, const char *cmd); @@ -99,6 +99,10 @@ static void usage() * Main Bacula Server program * */ +#if defined(HAVE_WIN32) +#define main BaculaMain +#endif + int main (int argc, char *argv[]) { int ch; @@ -230,7 +234,9 @@ int main (int argc, char *argv[]) drop(uid, gid); /* reduce priveleges if requested */ +#if !defined(HAVE_WIN32) signal(SIGHUP, reload_config); +#endif init_console_msg(working_directory); @@ -273,7 +279,7 @@ static void dir_sql_query(JCR *jcr, const char *cmd) } /* Cleanup and then exit */ -static void terminate_dird(int sig) +void terminate_dird(int sig) { static bool already_here = false; @@ -394,7 +400,9 @@ extern "C" void reload_config(int sig) { static bool already_here = false; +#if !defined(HAVE_WIN32) sigset_t set; +#endif JCR *jcr; int njobs = 0; /* number of running jobs */ int table, rtable; @@ -404,9 +412,12 @@ void reload_config(int sig) abort(); /* Oops, recursion -> die */ } already_here = true; + +#if !defined(HAVE_WIN32) sigemptyset(&set); sigaddset(&set, SIGHUP); sigprocmask(SIG_BLOCK, &set, NULL); +#endif lock_jobs(); LockRes(); @@ -470,8 +481,10 @@ void reload_config(int sig) bail_out: UnlockRes(); unlock_jobs(); +#if !defined(HAVE_WIN32) sigprocmask(SIG_UNBLOCK, &set, NULL); signal(SIGHUP, reload_config); +#endif already_here = false; } diff --git a/bacula/src/dird/inc_conf.c b/bacula/src/dird/inc_conf.c index f0b9c144b1..ab0fc6e564 100644 --- a/bacula/src/dird/inc_conf.c +++ b/bacula/src/dird/inc_conf.c @@ -24,7 +24,7 @@ #include "bacula.h" #include "dird.h" #ifndef HAVE_REGEX_H -#include "lib/regex.h" +#include "lib/bregex.h" #else #include #endif diff --git a/bacula/src/dird/ua_update.c b/bacula/src/dird/ua_update.c index f8bf9c3f07..58788a8b9c 100644 --- a/bacula/src/dird/ua_update.c +++ b/bacula/src/dird/ua_update.c @@ -223,7 +223,7 @@ static void update_volrecycle(UAContext *ua, char *val, MEDIA_DBR *mr) POOL_MEM query(PM_MESSAGE); if (!is_yesno(val, &recycle)) { bsendmsg(ua, _("Invalid value. It must be yes or no.\n")); - return; + return; } Mmsg(query, "UPDATE Media SET Recycle=%d WHERE MediaId=%s", recycle, edit_int64(mr->MediaId, ed1)); @@ -243,7 +243,7 @@ static void update_volinchanger(UAContext *ua, char *val, MEDIA_DBR *mr) POOL_MEM query(PM_MESSAGE); if (!is_yesno(val, &InChanger)) { bsendmsg(ua, _("Invalid value. It must be yes or no.\n")); - return; + return; } Mmsg(query, "UPDATE Media SET InChanger=%d WHERE MediaId=%s", InChanger, edit_int64(mr->MediaId, ed1)); diff --git a/bacula/src/filed/Makefile.mingw b/bacula/src/filed/Makefile.mingw deleted file mode 100644 index 05ea039ff1..0000000000 --- a/bacula/src/filed/Makefile.mingw +++ /dev/null @@ -1,231 +0,0 @@ -# -# Bacula Makefile for the File daemon -# -# Version $Id$ -# - - -# autoconf/Make.common.in -*- Makefile -*- -# release date (man), LSM date, version number/name, current maintainer -DATE="15 Apr 2004" -LSMDATE=15Apr04 -VERSION=1.35.0 -VERNAME=bacula-$(VERSION)# -MAINT=Kern Sibbald# -MAINTEMAIL=# -WEBMAINT=# -WEBMAINTEMAIL=# -WEBPAGE=# -FTPSITENAME=# -FTPSITEDIR=# -#------------------------------------------------------------------------- - -SHELL = /bin/sh - -# Installation target directories & other installation stuff -prefix = -exec_prefix = -binprefix = -manprefix = -sbindir = /sbin -sysconfdir = /etc/bacula -scriptdir = /etc/bacula -mandir = ${prefix}/man/man1 -manext = 1 - -# Tools & program stuff -CC = gcc -CPP = gcc -E -CXX = g++ -MV = /usr/bin/mv -RM = /usr/bin/rm -RMF = /usr/bin/rm -f -CP = /usr/bin/cp -SED = /usr/bin/sed -AWK = /usr/bin/awk -ECHO = /usr/bin/echo -CMP = /usr/bin/cmp -TBL = /usr/bin/tbl -AR = /usr/bin/ar -RANLIB = /usr/bin/ranlib -INSTALL = /usr/bin/install -c -# add the -s to the following in PRODUCTION mode -INSTALL_PROGRAM = /usr/bin/install -c -m 754 -INSTALL_DATA = /usr/bin/install -c -m 644 -INSTALL_SCRIPT = /usr/bin/install -c -m 754 -INSTALL_CONFIG = /usr/bin/install -c -m 640 - -# Flags & libs -CFLAGS = -g -O2 -CPPFLAGS = -LDFLAGS = -O -TTOOL_LDFLAGS = -DEFS = -DHAVE_WIN32 -DHAVE_MINGW -LIBS = -lpthreadGC -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool \ - -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32 \ - -lmsvcrt -DINCLUDE = -DLIB = -DB_LIBS = - -# Windows (cygwin) flags -WCFLAGS = -mwindows -WLDFLAGS = -mwindows -Wl,--subsystem,windows -mthreads - -# X Include directory -#XINC = @XPM_CFLAGS@ - -# extra libraries needed by X on some systems, X library location -#XLIB = @XPM_LIBS@ -lX11 - -# End of common section of the Makefile -#------------------------------------------------------------------------- - -srcdir = . -VPATH = . -.PATH: . - -# one up -basedir = .. -# top dir -topdir = ../.. -# this dir relative to top dir -thisdir = src/filed - -DEBUG= - -first_rule: all -dummy: - -# -SVRSRCS = filed.c authenticate.c backup.c chksum.c estimate.c \ - filed_conf.c heartbeat.c job.c \ - restore.c status.c verify.c verify_vol.c -SVROBJS = filed.o authenticate.o backup.o chksum.o estimate.o \ - filed_conf.o heartbeat.o job.o \ - restore.o status.o verify.o verify_vol.o - -# these are the objects that are changed by the .configure process -EXTRAOBJS = - -FDLIBS = -lz # extra libs for File daemon - -# extra items for linking on Win32 -WIN32OBJS = win32/winmain.o win32/winlib.a win32/winres.res -win32 = $(WIN32OBJS) - -WIN32LIBS = $(win32) - -.SUFFIXES: .c .o -.PHONY: -.DONTCARE: - -# inference rules -.c.o: - $(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) -I$(srcdir) -I$(basedir) -I../win32/compat $(DINCLUDE) $(CFLAGS) $< -#------------------------------------------------------------------------- -all: win32 bacula-fd - @echo "==== Make of filed is good ====" - @echo " " - -win32/winlib.a: - (cd win32; $(MAKE) -f Makefile.mingw DESTDIR=$(DESTDIR)) - @rm -f bacula-fd.exe - -win32/winmain.o: - (cd win32; $(MAKE) -f Makefile.mingw DESTDIR=$(DESTDIR)) - @rm -f bacula-fd.exe - -win32/winres.res: - (cd win32; $(MAKE) -f Makefile.mingw DESTDIR=$(DESTDIR)) - @rm -f bacula-fd.exe - -# win32 libraries if needed -win32: $(WIN32OBJS) - (cd win32; $(MAKE) -f Makefile.mingw DESTDIR=$(DESTDIR)) - @rm -f bacula-fd.exe - -bacula-fd: $(SVROBJS) ../findlib/libfind.a ../lib/libbac.a win32 - $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(SVROBJS) \ - $(WIN32LIBS) $(FDLIBS) -lfind -lbac -lm $(LIBS) $(DLIB) - -static-bacula-fd: $(SVROBJS) ../findlib/libfind.a ../lib/libbac.a win32 - $(CXX) $(WLDFLAGS) $(LDFLAGS) -static -L../lib -L../findlib -o $@ $(SVROBJS) \ - $(WIN32LIBS) $(FDLIBS) -lfind -lbac -lm $(LIBS) $(DLIB) - strip $@ - -../findlib/libfind.a: ../findlib/*.c - (cd ../findlib/; $(MAKE) -f Makefile.mingw DESTDIR=$(DESTDIR)) - @rm -f bacula-fd.exe - -../lib/libbac.a: ../lib/*.c* - (cd ../lib/; $(MAKE) -f Makefile.mingw DESTDIR=$(DESTDIR)) - @rm -f bacula-fd.exe - -clean: - @$(RMF) bacula-fd filed core core.* a.out *.o *.bak *~ *.intpro *.extpro 1 2 3 - @$(RMF) static-bacula-fd - if test -f win32/Makefile; then \ - (cd win32; $(MAKE) clean); \ - fi - -realclean: clean - @$(RMF) tags bacula-fd.conf - -distclean: realclean - if test $(srcdir) = .; then $(MAKE) realclean; fi - (cd $(srcdir); $(RMF) Makefile; $(RMF) -r CVS) - if test -f win32/Makefile; then \ - (cd win32; $(MAKE) distclean); \ - fi - -devclean: realclean - if test $(srcdir) = .; then $(MAKE) realclean; fi - (cd $(srcdir); $(RMF) Makefile) - if test -f win32/Makefile; then \ - (cd win32; $(MAKE) devclean); \ - fi - -install: all - $(INSTALL_PROGRAM) bacula-fd $(DESTDIR)$(sbindir)/bacula-fd - @srcconf=bacula-fd.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 - @if test -f static-bacula-fd; then \ - $(INSTALL_PROGRAM) static-bacula-fd $(DESTDIR)$(sbindir)/static-bacula-fd; \ - fi - - - -uninstall: - (cd $(DESTDIR)$(sbindir); $(RMF) bacula-fd) - (cd $(DESTDIR)$(sbindir); $(RMF) bacula-fd.conf) - (cd $(DESTDIR)$(sbindir); $(RMF) bacula-fd.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. -# `semi'-automatic since dependencies are generated at distribution time. - -depend: - @$(MV) Makefile Makefile.bak - @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile - @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile - @$(CC) -S -M $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile - @if test -f Makefile ; then \ - $(RMF) Makefile.bak; \ - else \ - $(MV) Makefile.bak Makefile; \ - echo -e "Something went wrong\n\a"; \ - fi - -# ----------------------------------------------------------------------- -# DO NOT DELETE: nice dependency list follows diff --git a/bacula/src/filed/job.c b/bacula/src/filed/job.c index ee00e1e31e..c8100a12bf 100644 --- a/bacula/src/filed/job.c +++ b/bacula/src/filed/job.c @@ -23,15 +23,16 @@ #include "bacula.h" #include "filed.h" -#ifdef WIN32_VSS + +#if defined(WIN32_VSS) #include "vss.h" + static pthread_mutex_t vss_mutex = PTHREAD_MUTEX_INITIALIZER; +static int enable_vss; #endif extern CLIENT *me; /* our client resource */ -int enable_vss = 0; /* set to use vss */ - /* Imported functions */ extern int status_cmd(JCR *jcr); extern int qstatus_cmd(JCR *jcr); @@ -991,10 +992,13 @@ static void set_options(findFOPTS *fo, const char *opts) static int fileset_cmd(JCR *jcr) { BSOCK *dir = jcr->dir_bsock; + +#if defined(WIN32_VSS) int vss = 0; sscanf(dir->msg, "fileset vss=%d", &vss); enable_vss = vss; +#endif if (!init_fileset(jcr)) { return 0; @@ -1250,7 +1254,7 @@ static int backup_cmd(JCR *jcr) int SDJobStatus; char ed1[50], ed2[50]; -#ifdef WIN32_VSS +#if defined(WIN32_VSS) // capture state here, if client is backed up by multiple directors // and one enables vss and the other does not then enable_vss can change // between here and where its evaluated after the job completes. @@ -1310,7 +1314,7 @@ static int backup_cmd(JCR *jcr) generate_daemon_event(jcr, "JobStart"); -#ifdef WIN32_VSS +#if defined(WIN32_VSS) /* START VSS ON WIN 32 */ if (bDoVSS) { if (g_pVSSClient->InitializeForBackup()) { @@ -1408,7 +1412,7 @@ static int backup_cmd(JCR *jcr) } cleanup: -#ifdef WIN32_VSS +#if defined(WIN32_VSS) /* STOP VSS ON WIN 32 */ /* tell vss to close the backup session */ if (bDoVSS) { diff --git a/bacula/src/filed/status.c b/bacula/src/filed/status.c index 7df988108c..302dd89567 100755 --- a/bacula/src/filed/status.c +++ b/bacula/src/filed/status.c @@ -83,7 +83,6 @@ static void do_status(void sendit(const char *msg, int len, void *sarg), void *a len = Mmsg(msg, " %sWUL,%sWMKD,%sWOP,%sGFAA,%sGFAW,%sGFAEA,%sGFAEW,%sSFAA,%sSFAW,%sBR,%sBW,%sSPSP,\n", p_wunlink?"":"!", p_wmkdir?"":"!", - p_wopen?"":"!", p_GetFileAttributesA?"":"!", p_GetFileAttributesW?"":"!", p_GetFileAttributesExA?"":"!", diff --git a/bacula/src/filed/win32/.cvsignore b/bacula/src/filed/win32/.cvsignore deleted file mode 100644 index f3c7a7c5da..0000000000 --- a/bacula/src/filed/win32/.cvsignore +++ /dev/null @@ -1 +0,0 @@ -Makefile diff --git a/bacula/src/filed/win32/Makefile.in b/bacula/src/filed/win32/Makefile.in deleted file mode 100755 index 377227c4fc..0000000000 --- a/bacula/src/filed/win32/Makefile.in +++ /dev/null @@ -1,124 +0,0 @@ -# -# makefile to build Windows specific pieces of the Bacula File daemon -# -# Version $Id$ -# -CFLAGS=@CFLAGS@ -WCFLAGS=@WCFLAGS@ -CC = @CC@ -CXX = @CXX@ -RANLIB = @RANLIB@ -SHELL = /bin/sh - -# Program to install `make'. -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -# Program to install the man page. -INSTALL_DATA = @INSTALL_DATA@ -# Generic install program. -INSTALL = @INSTALL@ - -VERSION = @VERSION@ - - -# this dir -srcdir = . -# main dir -topdir = ../../.. -# this dir relative to top dir -thisdir = src/filed/win32 - -# Common prefix for machine-independent installed files. -prefix = @prefix@ -sysconfdir = @sysconfdir@ -sbindir = @sbindir@ -piddir = @piddir@ - -SRCS = shutdown.c - -OBJS = shutdown.o - -BACOBJS = winabout.o winevents.o winservice.o winstat.o wintray.o winmain.o - -all: winlib.a winres.res - -win32: winlib.a - -winlib.a: $(BACOBJS) winres.res - ar rcs $@ $(BACOBJS) - -winres.res: winres.rc bacula.ico winres.h idle.ico running.ico error.ico warn.ico - windres $< -O coff -o $@ - -winmain.o: winmain.cpp winbacula.h - $(CC) -c $(WCFLAGS) $(CFLAGS) $< - -libmymapi32.a: mymapi32.def - dlltool --as=as -k --output-lib $@ --def $< - -Makefile: $(srcdir)/Makefile.in $(topdir)/config.status - cd $(topdir) \ - && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status - -clean: - rm -f *.exe *.o *.res *.a 1 2 3 - rm -f bin/smtp.exe bin/console.exe - rm -f bin/bacula-fd.exe bin/bsmtp.exe bin/testfind.exe - -distclean: clean - @rm -f Makefile - -devclean: clean - @rm -f Makefile - -install: - @mkdir -p $(DESTDIR)$(sbindir) $(DESTDIR)/tmp $(DESTDIR)$(sbindir)/../working - @echo "Installing system binary files ..." - @strip ../bacula-fd.exe - @strip ../../tools/bsmtp.exe - @strip ../../tools/testfind.exe - @strip ../../console/bconsole.exe - @cp -f ../bacula-fd.exe bin/ - @cp -f ../../tools/bsmtp.exe bin/ - @cp -f ../../tools/testfind.exe bin/ - @cp -f ../../console/bconsole.exe bin/ - @cp -f bin/* $(DESTDIR)$(sbindir) - @cp -f ../bacula-fd.conf $(DESTDIR)$(sysconfdir)/bacula-fd.conf.new - @cp -f ../../console/bconsole.conf $(DESTDIR)$(sysconfdir)/bconsole.conf.new - -# Make a Win32 binary release -binary-release: - @rm -rf wr - @mkdir -p wr - @mkdir -p wr/$(prefix) wr/$(sbindir) wr/$(sbindir)/../working wr/$(sysconfdir) wr/tmp - @echo "Copying system binary files ..." - @cp bin/* wr/$(sbindir) - @strip ../bacula-fd.exe - @strip ../../tools/bsmtp.exe - @strip ../../tools/testfind.exe - @strip ../../console/bconsole.exe - @echo "Copying executables ..." - @cp -f ../bacula-fd.exe wr/$(sbindir)/bacula-fd.exe - @cp -f ../../tools/bsmtp.exe wr/$(sbindir)/bsmtp.exe - @cp -f ../../tools/testfind.exe wr/$(sbindir)/testfind.exe - @cp -f ../../console/bconsole.exe wr/$(sbindir)/bconsole.exe - @echo "Copying bacula-fd.conf..." - @cp -f ../bacula-fd.conf wr/$(sysconfdir)/bacula-fd.conf.new - @cp -f ../../console/bconsole.conf wr/$(sysconfdir)/bconsole.conf.new -# the two dummy files are necessary to insure that WinZip -# actually creates the directories. - @echo "dummy" >wr/tmp/dummy.txt - @echo "dummy" >wr/$(sbindir)/../working/dummy.txt - @echo "Making tar file ..." - @tar cfz winbacula-${VERSION}.tar.gz -C wr bacula tmp - @mv -f winbacula-${VERSION}.tar.gz $(topdir)/.. - @rm -rf wr - @(cd $(topdir)/..; \ - echo "Tar file in: `pwd`/winbacula-${VERSION}.tar.gz") - -dummy: - -.c.o: - $(CC) -c $(WCFLAGS) $(CFLAGS) $< - -.cpp.o: - $(CXX) -c $(WCFLAGS) $(CFLAGS) $< diff --git a/bacula/src/filed/win32/Makefile.mingw b/bacula/src/filed/win32/Makefile.mingw deleted file mode 100644 index 4a3e36ff77..0000000000 --- a/bacula/src/filed/win32/Makefile.mingw +++ /dev/null @@ -1,125 +0,0 @@ -# -# makefile to build Windows specific pieces of the Bacula File daemon -# -# Version $Id$ -# -CFLAGS=-g -O2 -DHAVE_WIN32 -DHAVE_MINGW -WCFLAGS=-mwindows -I../../win32/compat -CC = gcc -CXX = g++ -RANLIB = /usr/bin/ranlib -SHELL = /bin/sh - -# Program to install `make'. -INSTALL_PROGRAM = ${INSTALL} -# Program to install the man page. -INSTALL_DATA = ${INSTALL} -m 644 -# Generic install program. -INSTALL = /usr/bin/install -c - -VERSION = 1.35.0 - - -# this dir -srcdir = . -# main dir -topdir = ../../.. -# this dir relative to top dir -thisdir = src/filed/win32 - -# Common prefix for machine-independent installed files. -prefix = -sysconfdir = /etc/bacula -sbindir = /sbin -piddir = /var/run - -SRCS = shutdown.c - -OBJS = shutdown.o - -BACOBJS = winabout.o winevents.o winservice.o winstat.o wintray.o winmain.o - -all: winlib.a winres.res - -win32: winlib.a - -winlib.a: $(BACOBJS) winres.res - ar rcs $@ $(BACOBJS) - -winres.res: winres.rc bacula.ico winres.h idle.ico running.ico error.ico warn.ico - windres -DHAVE_MINGW $< -O coff -o $@ - -winmain.o: winmain.cpp winbacula.h - $(CC) -c $(WCFLAGS) $(CFLAGS) $< - -libmymapi32.a: mymapi32.def - dlltool --as=as -k --output-lib $@ --def $< - -Makefile: $(srcdir)/Makefile.in $(topdir)/config.status - cd $(topdir) \ - && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status - -clean: - rm -f *.exe *.o *.res *.a 1 2 3 - rm -f bin/smtp.exe bin/console.exe - rm -f bin/bacula-fd.exe bin/bsmtp.exe bin/testfind.exe - -distclean: clean - @rm -f Makefile - @rm -rf bin/CVS CVS - -devclean: clean - @rm -f Makefile - -install: - @mkdir -p $(DESTDIR)$(sbindir) $(DESTDIR)/tmp $(DESTDIR)$(sbindir)/../working - @echo "Installing system binary files ..." - @strip ../bacula-fd.exe - @strip ../../tools/bsmtp.exe - @strip ../../tools/testfind.exe - @strip ../../console/bconsole.exe - @cp -f ../bacula-fd.exe bin/ - @cp -f ../../tools/bsmtp.exe bin/ - @cp -f ../../tools/testfind.exe bin/ - @cp -f ../../console/bconsole.exe bin/ - @cp -f bin/* $(DESTDIR)$(sbindir) - @cp -f ../bacula-fd.conf $(DESTDIR)$(sysconfdir)/bacula-fd.conf.new - @cp -f ../../console/bconsole.conf $(DESTDIR)$(sysconfdir)/bconsole.conf.new - -# Make a Win32 binary release -binary-release: - @rm -rf wr - @mkdir -p wr - @mkdir -p wr/$(prefix) wr/$(sbindir) wr/$(sbindir)/../working wr/$(sysconfdir) wr/tmp - @echo "Copying system binary files ..." - @cp bin/* wr/$(sbindir) - @strip ../bacula-fd.exe - @strip ../../tools/bsmtp.exe - @strip ../../tools/testfind.exe - @strip ../../console/bconsole.exe - @echo "Copying executables ..." - @cp -f ../bacula-fd.exe wr/$(sbindir)/bacula-fd.exe - @cp -f ../../tools/bsmtp.exe wr/$(sbindir)/bsmtp.exe - @cp -f ../../tools/testfind.exe wr/$(sbindir)/testfind.exe - @cp -f ../../console/bconsole.exe wr/$(sbindir)/bconsole.exe - @echo "Copying bacula-fd.conf..." - @cp -f ../bacula-fd.conf wr/$(sysconfdir)/bacula-fd.conf.new - @cp -f ../../console/bconsole.conf wr/$(sysconfdir)/bconsole.conf.new -# the two dummy files are necessary to insure that WinZip -# actually creates the directories. - @echo "dummy" >wr/tmp/dummy.txt - @echo "dummy" >wr/$(sbindir)/../working/dummy.txt - @echo "Making tar file ..." - @tar cfz winbacula-${VERSION}.tar.gz -C wr bacula tmp - @mv -f winbacula-${VERSION}.tar.gz $(topdir)/.. - @rm -rf wr - @(cd $(topdir)/..; \ - echo "Tar file in: `pwd`/winbacula-${VERSION}.tar.gz") - -dummy: - -.c.o: - $(CC) -c $(WCFLAGS) $(CFLAGS) $< - -.cpp.o: - $(CXX) -c $(WCFLAGS) $(CFLAGS) $< diff --git a/bacula/src/filed/win32/bacula.bmp b/bacula/src/filed/win32/bacula.bmp deleted file mode 100644 index a31eb1636902fbe82492cf1bcc9424b196296912..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3126 zcmd6o!41MN3`NbI0XTAGf)2o)oiZAm!6(1^ib&KtPFvM#EjNvyznvnUujy*pCin;L z`+Q&Qh6pyl=L7xcSSw3+#U7a{C2WK5H7N1(-#tbpC*)g7x*!rg=@9{pUFI+a^jkg) zPL;HJ1tstbb|in{sG$Uc*|>%D1McMi+Ad6^&{{oz!WT*)SNfU0>RC?n7rfa;fX}|f zhdhxL@FRgIUysfJStVatHJ>Hea+epg44V9M!(hBCe^+?jI1Xq-`{Q>VrDrpxstQsN zul|%g8&n-7YQ9zi0jn?b^)?WA_yO5U@$dt(mEz%Z&xlvK=J^K5mW!e14=6nFeIt7e-mMG^>!P}Oo`Rqas4hADb?#lfFnd|d% diff --git a/bacula/src/filed/win32/bacula.ico b/bacula/src/filed/win32/bacula.ico deleted file mode 100644 index f6d50bf516caaa111e8598006ac9cac9ed166358..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 766 zcmbtSJx;?g7=0#0jMx!kPBRonq~rhy^#Cln0$1qjjca*l;0hgCP&-tj5>)1WcI<{! zl`8S#=g%+SuPg(KUtMbmJ}!V;+IzAlA4!Ev?x$g`g>w#|_1-g(w9#vx2PWQS9d{|GMa9(zmM9Oifg9J{yF$_zg`k0-syWK-!{PKm;c%Cp!Q4?eoMXst}RfUL&g>>lC`cR F_ZNY8Y|;P# diff --git a/bacula/src/filed/win32/bacula.rc b/bacula/src/filed/win32/bacula.rc deleted file mode 100644 index 5849beb8e3..0000000000 --- a/bacula/src/filed/win32/bacula.rc +++ /dev/null @@ -1 +0,0 @@ -1 ICON "apcupsd.ico" diff --git a/bacula/src/filed/win32/error.ico b/bacula/src/filed/win32/error.ico deleted file mode 100644 index a8f85f120dbcc8483e9530af48554432945c2a91..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 766 zcmc&yu?~VT5Pd}wMy-RZwJeSret?0`a%lXrPEI8Lf}!Bzr^i}8{7j(2xG zt_gskN2wJU_YBxj+!GbCCJN-F^DxH1S_@DF+_XHymJp<9}LB@7nDn`rxlQm{6{?* z^`}?Y;|VMuK+ypUOTS!8`@DJDqP-kVdsdO`Ip6nPo$Hu%7DU0k(JY!*4BwcFFV=Zv AHvj+t diff --git a/bacula/src/filed/win32/idle.ico b/bacula/src/filed/win32/idle.ico deleted file mode 100644 index ce5315f2507bed96c9f4a12d542d7189ef1a2471..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 766 zcmc&yF%H5o47`*|9U%;?gmhs9^#dLHEQW}eWn!wt7Z@2kG9U#zX-TMBi3M@doqKlT zI#K{ZOQ{tY_YBxj+!GbCCJN-F^DxH1S_@Eg&dqQ9Nkt~$J0w<0PUr~96GW?nFRMyx zFTo#xwf5qDiKZ4_!u~RE8sX(jKRO>;$NqXJr4BMVAJ5#w*9Sv!>;>hL>uCjKBmYrP zTK(yh-iyZ*SU!NF0~VH^Tubx3dD^1A98G&xk?c9&@4GtJG3hLbf_bA})UO!+F%@4h CbY?XG diff --git a/bacula/src/filed/win32/mymapi32.def b/bacula/src/filed/win32/mymapi32.def deleted file mode 100644 index 42f0bfed84..0000000000 --- a/bacula/src/filed/win32/mymapi32.def +++ /dev/null @@ -1,151 +0,0 @@ -LIBRARY MAPI32.DLL -EXPORTS -MAPISendMail@20 -BuildDisplayTable@40 -CbOfEncoded@4 -CchOfEncoding@4 -ChangeIdleRoutine@28 -CloseIMsgSession@4 -CreateIProp@24 -CreateTable@36 -DeinitMapiUtil@0 -DeregisterIdleRoutine@4 -EnableIdleRoutine@8 -EncodeID@12 -FBadColumnSet@4 -FBadEntryList@4 -FBadProp@4 -FBadPropTag@4 -FBadRestriction@4 -FBadRglpNameID@8 -FBadRglpszA@8 -FBadRglpszW@8 -FBadRow@4 -FBadRowSet@4 -FBadSortOrderSet@4 -FBinFromHex@8 -FDecodeID@12 -FEqualNames@8 -FPropCompareProp@12 -FPropContainsProp@12 -FPropExists@8 -FreePadrlist@4 -FreeProws@4 -FtAdcFt@20 -FtAddFt@16 -FtDivFtBogus@20 -FtMulDw@12 -FtMulDwDw@8 -FtNegFt@8 -FtSubFt@16 -FtgRegisterIdleRoutine@20 -GetAttribIMsgOnIStg@12 -GetTnefStreamCodepage -GetTnefStreamCodepage@12 -HexFromBin@12 -HrAddColumns@16 -HrAddColumnsEx@20 -HrAllocAdviseSink@12 -HrComposeEID@28 -HrComposeMsgID@24 -HrDecomposeEID@28 -HrDecomposeMsgID@24 -HrDispatchNotifications@4 -HrEntryIDFromSz@12 -HrGetOneProp@12 -HrIStorageFromStream@16 -HrQueryAllRows@24 -HrSetOneProp@8 -HrSzFromEntryID@12 -HrThisThreadAdviseSink@8 -HrValidateIPMSubtree@20 -HrValidateParameters@8 -InstallFilterHook@4 -IsBadBoundedStringPtr@8 -LAUNCHWIZARD -LPropCompareProp@8 -LaunchWizard@20 -LpValFindProp@12 -MAPIAdminProfiles -MAPIAdminProfiles@8 -MAPIAllocateBuffer -MAPIAllocateBuffer@8 -MAPIAllocateMore -MAPIAllocateMore@12 -MAPIDeinitIdle@0 -MAPIFreeBuffer -MAPIFreeBuffer@4 -MAPIGetDefaultMalloc@0 -MAPIInitIdle@4 -MAPIInitialize -MAPIInitialize@4 -MAPILogonEx -MAPILogonEx@20 -MAPIOpenFormMgr -MAPIOpenFormMgr@8 -MAPIOpenLocalFormContainer -MAPIOpenLocalFormContainer@4 -MAPIUninitialize -MAPIUninitialize@0 -MNLS_CompareStringW@24 -MNLS_IsBadStringPtrW@8 -MNLS_MultiByteToWideChar@24 -MNLS_WideCharToMultiByte@32 -MNLS_lstrcmpW@8 -MNLS_lstrcpyW@8 -MNLS_lstrlenW@4 -MapStorageSCode@4 -OpenIMsgOnIStg@44 -OpenIMsgSession@12 -OpenStreamOnFile -OpenStreamOnFile@24 -OpenTnefStream -OpenTnefStream@28 -OpenTnefStreamEx -OpenTnefStreamEx@32 -PRProviderInit -PpropFindProp@12 -PropCopyMore@16 -RTFSync -RTFSync@12 -ScBinFromHexBounded@12 -ScCopyNotifications@16 -ScCopyProps@16 -ScCountNotifications@12 -ScCountProps@12 -ScCreateConversationIndex@16 -ScDupPropset@16 -ScGenerateMuid@4 -ScInitMapiUtil@4 -ScLocalPathFromUNC@12 -ScMAPIXFromCMC -ScMAPIXFromSMAPI -ScRelocNotifications@20 -ScRelocProps@20 -ScSplEntry -ScUNCFromLocalPath@12 -SetAttribIMsgOnIStg@16 -SwapPlong@8 -SwapPword@8 -SzFindCh@8 -SzFindLastCh@8 -SzFindSz@8 -UFromSz@4 -UNKOBJ_COFree@8 -UNKOBJ_Free@8 -UNKOBJ_FreeRows@8 -UNKOBJ_ScAllocate@12 -UNKOBJ_ScAllocateMore@16 -UNKOBJ_ScCOAllocate@12 -UNKOBJ_ScCOReallocate@12 -UNKOBJ_ScSzFromIdsAlloc@20 -UlAddRef@4 -UlFromSzHex@4 -UlPropSize@4 -UlRelease@4 -WrapCompressedRTFStream -WrapCompressedRTFStream@12 -WrapProgress@20 -WrapStoreEntryID@24 -__CPPValidateParameters@8 -__ValidateParameters@8 diff --git a/bacula/src/filed/win32/popup.c b/bacula/src/filed/win32/popup.c deleted file mode 100644 index e3e3420b73..0000000000 --- a/bacula/src/filed/win32/popup.c +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Dumb Windows program to put up a message box - * containing the command line. Any leading and - * trailing quotes are stripped. - * - * Kern E. Sibbald - * July MM - */ -#include "windows.h" - - -int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, - PSTR szCmdLine, int iCmdShow) -{ - int len = strlen(szCmdLine); - char *msg, *wordPtr; - - // Funny things happen with the command line if the - // execution comes from c:/Program Files/apcupsd/apcupsd.exe - // We get a command line like: Files/apcupsd/apcupsd.exe" options - // I.e. someone stops scanning command line on a space, not - // realizing that the filename is quoted!!!!!!!!!! - // So if first character is not a double quote and - // the last character before first space is a double - // quote, we throw away the junk. - wordPtr = szCmdLine; - while (*wordPtr && *wordPtr != ' ') - wordPtr++; - if (wordPtr > szCmdLine) // backup to char before space - wordPtr--; - // if first character is not a quote and last is, junk it - if (*szCmdLine != '"' && *wordPtr == '"') { - wordPtr++; - while (*wordPtr && *wordPtr == ' ') - wordPtr++; /* strip leading spaces */ - szCmdLine = wordPtr; - len = strlen(szCmdLine); - } - - msg = szCmdLine; - if (*szCmdLine == '"' && len > 0 && szCmdLine[len-1] == '"') { - msg = szCmdLine + 1; - szCmdLine[len-1] = 0; - } - MessageBox(NULL, msg, "Apcupsd message", MB_OK); - return 0; -} diff --git a/bacula/src/filed/win32/running.ico b/bacula/src/filed/win32/running.ico deleted file mode 100644 index 32dc42cd3c159fea18072b3b5baba6999d87c692..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 766 zcmc&yu?~VT5Pd}wMy-RZwJeSret?0`a%lXrPEI8Lf}!Bzr^i}8{7j(2xG zt_gskN2wJU_YBxj+!GbCCJN-F^DxH1S_@EwoA3KgMJC`oBvwjJ=m^OxM5}`@t4eDx z!5@IN_TqhsrWRg8f0;Lp@baY}oe!hqe7%!W2btWDckbcqgP}O~f^y0Av;wk`|EMRU z{`Bg4Jb~o{C^}$a>6dG1pEpliw3nl4&nl8V=li~^a~+e;f+(0bnnm-9;Tu!&1=o0F AHvj+t diff --git a/bacula/src/filed/win32/saving.ico b/bacula/src/filed/win32/saving.ico deleted file mode 100644 index f6d50bf516caaa111e8598006ac9cac9ed166358..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 766 zcmbtSJx;?g7=0#0jMx!kPBRonq~rhy^#Cln0$1qjjca*l;0hgCP&-tj5>)1WcI<{! zl`8S#=g%+SuPg(KUtMbmJ}!V;+IzAlA4!Ev?x$g`g>w#|_1-g(w9#vx2PWQS9d{|GMa9(zmM9Oifg9J{yF$_zg`k0-syWK-!{PKm;c%Cp!Q4?eoMXst}RfUL&g>>lC`cR F_ZNY8Y|;P# diff --git a/bacula/src/filed/win32/warn.ico b/bacula/src/filed/win32/warn.ico deleted file mode 100644 index 26e1d398bb446fb55d02635a2afa4dc8489e0587..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 766 zcmc&yu?~VT5Pd}wMy-RZwJeSret?0`a%lXrPEI8Lf}!Bzr^i}8{7j(2xG zt_gskN2wJU_YBxj+!GbCCJN-F^DxH1S_@EwbMuWqsmKI;hr~+B2^}GMgJ^Z|WmReI zCHMod)?U0X(bU3A=r8l85njIZqw`^OoUeCM>L8Q*@yo9M@*nkN z)Sq5mk0-Ev07VBZEd6pV?epeoi}rFf?O8>#=X~FHb*^L5Sr7&DMzd&MF??exz5s&v BWi|i+ diff --git a/bacula/src/filed/win32/winabout.cpp b/bacula/src/filed/win32/winabout.cpp deleted file mode 100755 index 5fbccae3a9..0000000000 --- a/bacula/src/filed/win32/winabout.cpp +++ /dev/null @@ -1,80 +0,0 @@ -/* - Copyright (C) 2000-2004 Kern Sibbald and John Walker - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of - the License, or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public - License along with this program; if not, write to the Free - Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - MA 02111-1307, USA. - - This file is patterned after the VNC Win32 code by ATT - - Kern E. Sibbald, 2000 -*/ - -#include "bacula.h" -#include "winbacula.h" -#include "winabout.h" -#include "winres.h" - -bacAbout::bacAbout() -{ - visible = false; -} - -bacAbout::~bacAbout() { }; - -void bacAbout::Show(BOOL show) -{ - if (show && !visible) { - DialogBoxParam(hAppInstance, MAKEINTRESOURCE(IDD_ABOUT), NULL, - (DLGPROC)DialogProc, (LONG)this); - } -} - - -BOOL CALLBACK -bacAbout::DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) -{ - /* Get the dialog class pointer from USERDATA */ - bacAbout *_this; - - switch (uMsg) { - case WM_INITDIALOG: - /* save the dialog class pointer */ - SetWindowLong(hwnd, GWL_USERDATA, lParam); - _this = (bacAbout *)lParam; - - /* Show the dialog */ - SetForegroundWindow(hwnd); - _this->visible = true; - return TRUE; - - case WM_COMMAND: - switch (LOWORD(wParam)) { - case IDCANCEL: - case IDOK: - EndDialog(hwnd, TRUE); - _this = (bacAbout *)GetWindowLong(hwnd, GWL_USERDATA); - _this->visible = false; - return TRUE; - } - break; - - case WM_DESTROY: - EndDialog(hwnd, FALSE); - _this = (bacAbout *)GetWindowLong(hwnd, GWL_USERDATA); - _this->visible = false; - return TRUE; - } - return 0; -} diff --git a/bacula/src/filed/win32/winabout.h b/bacula/src/filed/win32/winabout.h deleted file mode 100755 index 46a6e94e3d..0000000000 --- a/bacula/src/filed/win32/winabout.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - Copyright (C) 2000-2004 Kern Sibbald and John Walker - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of - the License, or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public - License along with this program; if not, write to the Free - Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - MA 02111-1307, USA. - - This file was inspired by the VNC Win32 code by ATT - - Kern E. Sibbald, 2000 -*/ - - -/* Object implementing the About dialog for Bacula */ - -class bacAbout; - -#ifndef _WINABOUT_H_ -#define _WINABOUT_H_ 1 - -/* Define the bacAbout class */ -class bacAbout -{ -public: - bacAbout(); - ~bacAbout(); - - /* The dialog box window proc */ - static BOOL CALLBACK DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); - - void Show(BOOL show); - - /* Object local storage */ - bool visible; -}; - -#endif diff --git a/bacula/src/filed/win32/winbacula.h b/bacula/src/filed/win32/winbacula.h deleted file mode 100755 index 088205be33..0000000000 --- a/bacula/src/filed/win32/winbacula.h +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. -// -// This file was part of the VNC system. -// -// The VNC system is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, -// USA. -// -// If the source code for the VNC system is not available from the place -// whence you received this file, check http://www.uk.research.att.com/vnc or contact -// the authors on vnc@uk.research.att.com for information on obtaining it. -// -// This file has been adapted to the Win32 version of Bacula -// by Kern E. Sibbald. Many thanks to ATT and James Weatherall, -// the original author, for providing an excellent template. -// -// Copyright (2000) Kern E. Sibbald -// - - -// Application specific messages - -// Message used for system tray notifications -#define WM_TRAYNOTIFY WM_USER+1 - -// Messages used for the server object to notify windows of things -#define WM_SRV_CLIENT_CONNECT WM_USER+2 -#define WM_SRV_CLIENT_AUTHENTICATED WM_USER+3 -#define WM_SRV_CLIENT_DISCONNECT WM_USER+4 - -// Export the application details -extern HINSTANCE hAppInstance; -extern const char *szAppName; -extern DWORD mainthreadId; - -// Main Bacula server routine -extern int BaculaAppMain(); - -extern void LogErrorMsg(char *msg); - -// Standard command-line flag definitions -const char BaculaRunService[] = "/service"; -const char BaculaRunServiceHelper[] = "/servicehelper"; -const char BaculaRunAsUserApp[] = "/run"; - -const char BaculaInstallService[] = "/install"; -const char BaculaRemoveService[] = "/remove"; - -const char BaculaShowAbout[] = "/about"; -const char BaculaShowStatus[] = "/status"; -const char BaculaShowEvents[] = "/events"; -const char BaculaKillRunningCopy[] = "/kill"; - -const char BaculaShowHelp[] = "/help"; - -// Usage string -const char BaculaUsageText[] = "Bacula [/run] [/kill] [/install] [/remove] [/about] [/status] [/events]\n"; - -void LogErrorMsg(char *msg, char *fname, int lineno); -#define log_error_message(msg) LogErrorMsg((msg), __FILE__, __LINE__) diff --git a/bacula/src/filed/win32/winevents.cpp b/bacula/src/filed/win32/winevents.cpp deleted file mode 100755 index 50edd0a5f5..0000000000 --- a/bacula/src/filed/win32/winevents.cpp +++ /dev/null @@ -1,87 +0,0 @@ -/* - Copyright (C) 2000-2003 Kern Sibbald and John Walker - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of - the License, or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public - License along with this program; if not, write to the Free - Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - MA 02111-1307, USA. - - This file is patterned after the VNC Win32 code by ATT - - Copyright (2000) Kern E. Sibbald -*/ - - -/* Code for the Events dialogue */ - -#include "bacula.h" -#include "winbacula.h" -#include "winevents.h" -#include "winres.h" - -extern "C" void FillEventsBox(HWND hwnd, int id_list); - -bacEvents::bacEvents() -{ - visible = FALSE; -} - -bacEvents::~bacEvents() -{ -} - -/* Show the dialogue box */ -void -bacEvents::Show(BOOL show) -{ - if (show && !visible) { - DialogBoxParam(hAppInstance, MAKEINTRESOURCE(IDD_EVENTS), NULL, - (DLGPROC)DialogProc, (LONG)this); - } -} - - -BOOL CALLBACK -bacEvents::DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) -{ - /* The dialog-box this pointer is in USERDATA */ - bacEvents *_this = (bacEvents *)GetWindowLong(hwnd, GWL_USERDATA); - - switch (uMsg) { - case WM_INITDIALOG: - /* Retrieve the Dialog box parameter */ - SetWindowLong(hwnd, GWL_USERDATA, lParam); - _this = (bacEvents *)lParam; - - /* Show the dialog */ - SetForegroundWindow(hwnd); - _this->visible = TRUE; - return TRUE; - - case WM_COMMAND: - switch (LOWORD(wParam)) { - case IDCANCEL: - case IDOK: - EndDialog(hwnd, TRUE); - _this->visible = FALSE; - return TRUE; - } - break; - - case WM_DESTROY: - EndDialog(hwnd, FALSE); - _this->visible = FALSE; - return TRUE; - } - return 0; -} diff --git a/bacula/src/filed/win32/winevents.h b/bacula/src/filed/win32/winevents.h deleted file mode 100755 index a28d66e124..0000000000 --- a/bacula/src/filed/win32/winevents.h +++ /dev/null @@ -1,44 +0,0 @@ -/* Object implementing the Events dialog for Bacula */ -/* - Copyright (C) 2000-2003 Kern Sibbald and John Walker - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of - the License, or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public - License along with this program; if not, write to the Free - Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - MA 02111-1307, USA. - - */ - - -class bacEvents; - -#ifndef _win_bacEVENTS -#define _win_bacEVENTS 1 - -/* Define the bacEvents class */ -class bacEvents -{ -public: - bacEvents(); - ~bacEvents(); - - /* The dialog box window proc */ - static BOOL CALLBACK DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); - - void Show(BOOL show); - - /* Object local storage */ - BOOL visible; -}; - -#endif diff --git a/bacula/src/filed/win32/winmain.cpp b/bacula/src/filed/win32/winmain.cpp deleted file mode 100755 index 4a662a56e7..0000000000 --- a/bacula/src/filed/win32/winmain.cpp +++ /dev/null @@ -1,330 +0,0 @@ -/* - Copyright (C) 2000-2006 Kern Sibbald - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - version 2 as amended with additional clauses defined in the - file LICENSE in the main source directory. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - the file LICENSE for additional details. - - This file is patterned after the VNC Win32 code by ATT - -*/ - -#include -#include - -#include "bacula.h" -#include "winbacula.h" -#include "wintray.h" -#include "winservice.h" -#include -#include - -extern int BaculaMain(int argc, char *argv[]); -extern void terminate_filed(int sig); -extern DWORD g_error; -extern BOOL ReportStatus(DWORD state, DWORD exitcode, DWORD waithint); -extern void d_msg(const char *, int, int, const char *, ...); - -/* Globals */ -HINSTANCE hAppInstance; -const char *szAppName = "Bacula"; -DWORD mainthreadId; -bool silent = false; - -/* Imported variables */ -extern DWORD g_servicethread; -extern DWORD g_platform_id; - -#define MAX_COMMAND_ARGS 100 -static char *command_args[MAX_COMMAND_ARGS] = {"bacula-fd", NULL}; -static int num_command_args = 1; -static pid_t main_pid; -static pthread_t main_tid; - -/* - * WinMain parses the command line and either calls the main App - * routine or, under NT, the main service routine. - */ -int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, - PSTR CmdLine, int iCmdShow) -{ - char *szCmdLine = CmdLine; - char *wordPtr, *tempPtr; - int i, quote; - - /* Save the application instance and main thread id */ - hAppInstance = hInstance; - mainthreadId = GetCurrentThreadId(); - - main_pid = getpid(); - main_tid = pthread_self(); - - /* - * Funny things happen with the command line if the - * execution comes from c:/Program Files/bacula/bacula.exe - * We get a command line like: Files/bacula/bacula.exe" options - * I.e. someone stops scanning command line on a space, not - * realizing that the filename is quoted!!!!!!!!!! - * So if first character is not a double quote and - * the last character before first space is a double - * quote, we throw away the junk. - */ - - wordPtr = szCmdLine; - while (*wordPtr && *wordPtr != ' ') - wordPtr++; - if (wordPtr > szCmdLine) /* backup to char before space */ - wordPtr--; - /* if first character is not a quote and last is, junk it */ - if (*szCmdLine != '"' && *wordPtr == '"') { - szCmdLine = wordPtr + 1; - } -// MessageBox(NULL, szCmdLine, "Cmdline", MB_OK); - - /* Build Unix style argc *argv[] */ - - /* Don't NULL command_args[0] !!! */ - for (i=1;i -#include -#include "winres.h" -#include "../../version.h" - -/* NB: Internationalization of this file will require some work... */ -#define N_(s) s - -///////////////////////////////////////////////////////////////////////////// -// -// Icons -// - -// Icon with lowest ID value placed first to ensure application icon -// remains consistent on all systems. -IDI_BACULA ICON DISCARDABLE "bacula.ico" -IDI_IDLE ICON DISCARDABLE "idle.ico" -IDI_RUNNING ICON DISCARDABLE "running.ico" -IDI_JOB_ERROR ICON DISCARDABLE "error.ico" -IDI_JOB_WARNING ICON DISCARDABLE "warn.ico" - -///////////////////////////////////////////////////////////////////////////// -// -// Menu -// - -IDR_TRAYMENU MENU DISCARDABLE -BEGIN - POPUP "tray" - BEGIN - MENUITEM N_("&Status"), ID_STATUS - MENUITEM N_("&Events"), ID_EVENTS -#ifdef properties_implemented - MENUITEM N_("&Properties"), ID_PROPERTIES -#endif - MENUITEM SEPARATOR - MENUITEM N_("&About Bacula"), ID_ABOUT - MENUITEM SEPARATOR - MENUITEM N_("&Close Bacula"), ID_CLOSE - END -END - - -///////////////////////////////////////////////////////////////////////////// -// -// Version -// - -VS_VERSION_INFO VERSIONINFO - FILEVERSION 1,1,0,0 - PRODUCTVERSION 1,1,0,0 - FILEFLAGSMASK VS_FFI_FILEFLAGSMASK -#ifdef _DEBUG - FILEFLAGS 0x1L -#else - FILEFLAGS 0 // -#endif - FILEOS VOS_NT_WINDOWS32 - FILETYPE VFT_APP - FILESUBTYPE 0 -BEGIN - BLOCK "StringFileInfo" - BEGIN - BLOCK "040904E0" // Lang=US English, CharSet=Windows Multiligual - BEGIN - VALUE "Comments", "by Kern Sibbald\0" - VALUE "CompanyName", " \0" - VALUE "FileDescription", "Bacula File daemon for Win32\0" - VALUE "FileVersion", VERSION "\0" - VALUE "InternalName", "Bacula\0" - VALUE "LegalCopyright", "Copyright Kern Sibbald, 1999-2006\0" - VALUE "LegalTrademarks", "Licensed under GNU GPL 2.0\0" - VALUE "OriginalFilename", "filed.exe\0" - VALUE "PrivateBuild", "\0" - VALUE "ProductName", "Bacula - Win32 Version\0" - VALUE "ProductVersion", VERSION - VALUE "SpecialBuild", "\0" - END - END - BLOCK "VarFileInfo" - BEGIN - VALUE "Translation", 0x409, 1252 // US English, Multilingual - END -END - -///////////////////////////////////////////////////////////////////////////// -// -// Bitmap -// - -IDB_BACULABMP BITMAP DISCARDABLE "bacula.bmp" - -///////////////////////////////////////////////////////////////////////////// -// -// String Table -// - -STRINGTABLE DISCARDABLE -BEGIN - IDI_BACULA "Bacula" -END - -///////////////////////////////////////////////////////////////////////////// -// -// Properties Dialog -// -#ifdef properties_implemented - -IDD_PROPERTIES DIALOG DISCARDABLE 0, 0, 221, 204 -STYLE DS_MODALFRAME | DS_3DLOOK | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU -CAPTION "Bacula Properties" -FONT 8, "MS Sans Serif" -BEGIN - PUSHBUTTON N_("&Cancel"),IDCANCEL,165,25,51,15 - DEFPUSHBUTTON N_("&OK"),IDOK,165,5,51,15 - LTEXT "No Properites yet",IDC_NONYET_LABEL,19,30,56,15, - SS_CENTERIMAGE -END -#endif - -///////////////////////////////////////////////////////////////////////////// -// -// About Dialog -// - -IDD_ABOUT DIALOG DISCARDABLE 0, 0, 250, 145 -STYLE DS_MODALFRAME | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU -CAPTION "About Bacula" -FONT 8, "MS Sans Serif" -BEGIN - DEFPUSHBUTTON "OK",IDOK,190,120,50,15 -// CONTROL "\3", IDC_BACULABMP,"Static",SS_ICON | SS_CENTERIMAGE | -// SS_SUNKEN,7,5,73,65 -#ifndef HAVE_MINGW - CONTROL IDB_BACULABMP,IDB_BACULABMP,"Static",SS_BITMAP|SS_SUNKEN,7,5,32,32 -#endif - - LTEXT N_(" by Kern Sibbald"),IDC_NAME,134,38,78,10 - LTEXT N_("For more information, see:"),-1,115,60,100,10 - LTEXT " www.bacula.org",IDC_WWW,115,70,100,10 -// LTEXT " ",-1,69,81,100,10 -// LTEXT " ",-1,90,70,100,10 - LTEXT "Copyright (C) 1999-2006, Kern Sibbald",IDC_COPYRIGHT,7,120,175,10 - LTEXT N_("Licensed under GNU GPL 2.0."),IDC_TRADEMARK,7,130,175,10 - RTEXT N_("Build Date:"),-1,108,24,42,8 - RTEXT N_("Bacula Version:"),-1,100,9,50,8 - LTEXT VERSION,IDC_VERSION,159,10,65,8 - LTEXT BDATE,-1,159,24,65,10 - -END - -///////////////////////////////////////////////////////////////////////////// -// -// Status Dialog -// - -IDD_STATUS DIALOG DISCARDABLE 0, 0, 411, 244 -STYLE DS_MODALFRAME | DS_3DLOOK | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU -CAPTION N_("Bacula Status") -FONT 8, "Courier New" -BEGIN - DEFPUSHBUTTON "&OK",IDOK,355,5,51,15 - LISTBOX IDC_LIST, 2, 2, 350, 240, WS_VSCROLL | WS_HSCROLL | WS_BORDER -END - -///////////////////////////////////////////////////////////////////////////// -// -// Events Dialog -// - -IDD_EVENTS DIALOG DISCARDABLE 0, 0, 411, 204 -STYLE DS_MODALFRAME | DS_3DLOOK | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | - WS_VISIBLE | WS_CAPTION | WS_SYSMENU -CAPTION N_("Bacula Events") -FONT 8, "Courier New" -BEGIN - DEFPUSHBUTTON "&OK",IDOK,355,5,51,15 - LISTBOX IDC_LIST, 2, 2, 350, 200, WS_VSCROLL | WS_HSCROLL | WS_BORDER -END diff --git a/bacula/src/filed/win32/winservice.cpp b/bacula/src/filed/win32/winservice.cpp deleted file mode 100755 index 7fc85b2e7d..0000000000 --- a/bacula/src/filed/win32/winservice.cpp +++ /dev/null @@ -1,764 +0,0 @@ -// Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. -// -// This file was part of the VNC system. -// -// The VNC system is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, -// USA. -// -// If the source code for the VNC system is not available from the place -// whence you received this file, check http://www.uk.research.att.com/vnc or contact -// the authors on vnc@uk.research.att.com for information on obtaining it. -// -// This file has been adapted to the Win32 version of Bacula -// by Kern E. Sibbald. Many thanks to ATT and James Weatherall, -// the original author, for providing an excellent template. -// -// Copyright (C) 2000-2006 Kern E. Sibbald -// - - -// winService - -// Implementation of service-oriented functionality of Bacula -// I.e. command line options that contact a running version of -// Bacula and ask it to do something (show about, show status, -// show events, ...) - - -#include "bacula.h" -#include "winbacula.h" -#include "winservice.h" -#include "wintray.h" - -void set_service_description(SC_HANDLE hSCManager, SC_HANDLE hService, - LPSTR lpDesc); - -// OS-SPECIFIC ROUTINES - -// Create an instance of the bacService class to cause the static fields to be -// initialised properly - -bacService init; - -extern DWORD g_platform_id; -extern bool silent; - -bacService::bacService() -{ - OSVERSIONINFO osversioninfo; - osversioninfo.dwOSVersionInfoSize = sizeof(osversioninfo); - - // Get the current OS version - if (!GetVersionEx(&osversioninfo)) { - g_platform_id = 0; - } else { - g_platform_id = osversioninfo.dwPlatformId; - } -} - - -// IsWin95 - returns a BOOL indicating whether the current OS is Win95 -BOOL -bacService::IsWin95() -{ - return (g_platform_id == VER_PLATFORM_WIN32_WINDOWS); -} - -// IsWinNT - returns a bool indicating whether the current OS is WinNT -BOOL -bacService::IsWinNT() -{ - return (g_platform_id == VER_PLATFORM_WIN32_NT); -} - -// Internal routine to find the Bacula menu class window and -// post a message to it! - -BOOL -PostToBacula(UINT message, WPARAM wParam, LPARAM lParam) -{ - // Locate the hidden Bacula menu window - HWND hservwnd = FindWindow(MENU_CLASS_NAME, NULL); - if (hservwnd == NULL) { - return FALSE; - } - - // Post the message to Bacula - PostMessage(hservwnd, message, wParam, lParam); - return TRUE; -} - - -// Static routine to show the Properties dialog for a currently-running -// copy of Bacula, (usually a servicified version.) - -BOOL -bacService::ShowProperties() -{ - return TRUE; -} - -// Static routine to show the Default Properties dialog for a currently-running -// copy of Bacula, (usually a servicified version.) - -BOOL -bacService::ShowDefaultProperties() -{ - return TRUE; -} - -// Static routine to show the About dialog for a currently-running -// copy of Bacula, (usually a servicified version.) - -BOOL -bacService::ShowAboutBox() -{ - // Post to the Bacula menu window - if (!PostToBacula(MENU_ABOUTBOX_SHOW, 0, 0)) { - MessageBox(NULL, _("No existing instance of Bacula could be contacted"), szAppName, MB_ICONEXCLAMATION | MB_OK); - return FALSE; - } - return TRUE; -} - -// Static routine to show the Status dialog for a currently-running -// copy of Bacula, (usually a servicified version.) - -BOOL -bacService::ShowStatus() -{ - // Post to the Bacula menu window - if (!PostToBacula(MENU_STATUS_SHOW, 0, 0)) { - MessageBox(NULL, _("No existing instance of Bacula could be contacted"), szAppName, MB_ICONEXCLAMATION | MB_OK); - return FALSE; - } - return TRUE; -} - -// SERVICE-MODE ROUTINES - -// Service-mode defines: - -// Executable name -#define BAC_APPNAME "bacula" - -// Internal service name -#define BAC_SERVICENAME "Bacula" - -// Displayed service name -#define BAC_SERVICEDISPLAYNAME "Bacula File Server" - -// List other required serves -#define BAC_DEPENDENCIES __TEXT("tcpip\0afd\0+File System\0") - - -// Internal service state -SERVICE_STATUS g_srvstatus; // current status of the service -SERVICE_STATUS_HANDLE g_hstatus; -DWORD g_error = 0; -DWORD g_servicethread = 0; -char* g_errortext[256]; - - -// Forward defines of internal service functions -void WINAPI ServiceMain(DWORD argc, char **argv); -DWORD WINAPI ServiceWorkThread(LPVOID lpwThreadParam); -void ServiceStop(); -void WINAPI ServiceCtrl(DWORD ctrlcode); -bool WINAPI CtrlHandler (DWORD ctrltype); -BOOL ReportStatus(DWORD state, DWORD exitcode, DWORD waithint); - -// ROUTINE TO QUERY WHETHER THIS PROCESS IS RUNNING AS A SERVICE OR NOT - -BOOL g_servicemode = FALSE; - -BOOL -bacService::RunningAsService() -{ - return g_servicemode; -} - -BOOL -bacService::KillRunningCopy() -{ - while (PostToBacula(WM_CLOSE, 0, 0)) - { } - return TRUE; -} - -// SERVICE MAIN ROUTINE -int -bacService::BaculaServiceMain() -{ - // Mark that we are a service - g_servicemode = TRUE; - - // How to run as a service depends upon the OS being used - switch (g_platform_id) { - - // Windows 95/98/Me - case VER_PLATFORM_WIN32_WINDOWS: - { - // Obtain a handle to the kernel library - HINSTANCE kerneldll = LoadLibrary("KERNEL32.DLL"); - if (kerneldll == NULL) { - MessageBox(NULL, _("KERNEL32.DLL not found: Bacula service not started"), - "Bacula Service", MB_OK); - break; - } - - // And find the RegisterServiceProcess function - DWORD (WINAPI *RegisterService)(DWORD, DWORD); - RegisterService = (DWORD (WINAPI *)(DWORD, DWORD)) - GetProcAddress(kerneldll, "RegisterServiceProcess"); - if (RegisterService == NULL) { - MessageBox(NULL, _("Registry service not found: Bacula service not started"), - "Bacula Service", MB_OK); - log_error_message(_("Registry service not found")); - break; - } - - // Register this process with the OS as a service! - RegisterService(0, 1); - - // Run the main program as a service - BaculaAppMain(); - - // Then remove the service from the system service table - RegisterService(0, 0); - - // Free the kernel library - FreeLibrary(kerneldll); - break; - } - - - // Windows NT, Win2K, WinXP - case VER_PLATFORM_WIN32_NT: - { - // Create a service entry table - SERVICE_TABLE_ENTRY dispatchTable[] = { - {BAC_SERVICENAME, (LPSERVICE_MAIN_FUNCTION)ServiceMain}, - {NULL, NULL} - }; - - // Call the service control dispatcher with our entry table - if (!StartServiceCtrlDispatcher(dispatchTable)) { - log_error_message(_("StartServiceCtrlDispatcher failed.")); - } - break; - } /* end case */ - } /* end switch */ - return 0; -} - -// SERVICE MAIN ROUTINE - NT ONLY !!! -// NT/Win2K/WinXP ONLY !!! -void WINAPI ServiceMain(DWORD argc, char **argv) -{ - DWORD dwThreadID; - - // Register the service control handler - g_hstatus = RegisterServiceCtrlHandler(BAC_SERVICENAME, ServiceCtrl); - - if (g_hstatus == 0) { - log_error_message(_("RegisterServiceCtlHandler failed")); - MessageBox(NULL, _("Contact Register Service Handler failure"), - "Bacula service", MB_OK); - return; - } - - // Set up some standard service state values - g_srvstatus.dwServiceType = SERVICE_WIN32 | SERVICE_INTERACTIVE_PROCESS; - g_srvstatus.dwServiceSpecificExitCode = 0; - - // Give this status to the SCM - if (!ReportStatus( - SERVICE_START_PENDING, // Service state - NO_ERROR, // Exit code type - 45000)) { // Hint as to how long Bacula should have hung before you assume error - - ReportStatus(SERVICE_STOPPED, g_error, 0); - log_error_message(_("ReportStatus STOPPED failed 1")); - return; - } - - // Now start the service for real - (void)CreateThread(NULL, 0, ServiceWorkThread, NULL, 0, &dwThreadID); - return; -} - -// SERVICE START ROUTINE - thread that calls BaculaAppMain -// NT ONLY !!!! -DWORD WINAPI ServiceWorkThread(LPVOID lpwThreadParam) -{ - - // Save the current thread identifier - g_servicethread = GetCurrentThreadId(); - - // report the status to the service control manager. - // - if (!ReportStatus( - SERVICE_RUNNING, // service state - NO_ERROR, // exit code - 0)) { // wait hint - MessageBox(NULL, _("Report Service failure"), "Bacula Service", MB_OK); - log_error_message("ReportStatus RUNNING failed"); - return 0; - } - - /* Call Bacula main code */ - BaculaAppMain(); - - /* Mark that we're no longer running */ - g_servicethread = 0; - - /* Tell the service manager that we've stopped */ - ReportStatus(SERVICE_STOPPED, g_error, 0); - return 0; -} - - -// SERVICE STOP ROUTINE - post a quit message to the relevant thread -void ServiceStop() -{ - // Post a quit message to the main service thread - if (g_servicethread != 0) { - PostThreadMessage(g_servicethread, WM_QUIT, 0, 0); - } -} - -// SERVICE INSTALL ROUTINE -int -bacService::InstallService() -{ - const int pathlength = 2048; - char path[pathlength]; - char servicecmd[pathlength]; - int len; - - // Get the filename of this executable - if (GetModuleFileName(NULL, path, pathlength-(strlen(BaculaRunService)+2)) == 0) { - MessageBox(NULL, _("Unable to install Bacula service"), szAppName, MB_ICONEXCLAMATION | MB_OK); - return 0; - } - - // Append the service-start flag to the end of the path: - if ((int)strlen(path) + 20 + (int)strlen(BaculaRunService) < pathlength) { - sprintf(servicecmd, "\"%s\" %s -c \"%s\"", path, BaculaRunService, path); - len = strlen(servicecmd) - 1; - for ( ; len > 0; len--) { - if (servicecmd[len] == '\\') { - servicecmd[len] = 0; - break; - } - servicecmd[len] = 0; - } - strcat(servicecmd, "\\bacula-fd.conf"); - - } else { - log_error_message(_("Service command length too long")); - MessageBox(NULL, _("Service command length too long. Service not registered."), - szAppName, MB_ICONEXCLAMATION | MB_OK); - return 0; - } - - // How to add the Bacula service depends upon the OS - switch (g_platform_id) { - - // Windows 95/98/Me - case VER_PLATFORM_WIN32_WINDOWS: - // Locate the RunService registry entry - HKEY runservices; - if (RegCreateKey(HKEY_LOCAL_MACHINE, - "Software\\Microsoft\\Windows\\CurrentVersion\\RunServices", - &runservices) != ERROR_SUCCESS) { - log_error_message(_("Cannot write System Registry")); - MessageBox(NULL, _("The System Registry could not be updated - the Bacula service was not installed"), szAppName, MB_ICONEXCLAMATION | MB_OK); - break; - } - - // Attempt to add a Bacula key - if (RegSetValueEx(runservices, szAppName, 0, REG_SZ, (unsigned char *)servicecmd, strlen(servicecmd)+1) != ERROR_SUCCESS) { - RegCloseKey(runservices); - log_error_message(_("Cannot add Bacula key to System Registry")); - MessageBox(NULL, _("The Bacula service could not be installed"), szAppName, MB_ICONEXCLAMATION | MB_OK); - break; - } - - RegCloseKey(runservices); - - // We have successfully installed the service! - if (!silent) { - MessageBox(NULL, - _("The Bacula File service was successfully installed.\n" - "The service may be started by double clicking on the\n" - "Bacula \"Start\" icon and will be automatically\n" - "be run the next time this machine is rebooted. "), - szAppName, - MB_ICONINFORMATION | MB_OK); - } - break; - - // Windows NT, Win2K, WinXP - case VER_PLATFORM_WIN32_NT: - SC_HANDLE hservice; - SC_HANDLE hsrvmanager; - - // Open the default, local Service Control Manager database - hsrvmanager = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS); - if (hsrvmanager == NULL) { - log_error_message("OpenSCManager failed"); - MessageBox(NULL, - _("The Service Control Manager could not be contacted - the Bacula service was not installed"), - szAppName, MB_ICONEXCLAMATION | MB_OK); - break; - } - - // Create an entry for the Bacula service - hservice = CreateService( - hsrvmanager, // SCManager database - BAC_SERVICENAME, // name of service - BAC_SERVICEDISPLAYNAME, // name to display - SERVICE_ALL_ACCESS, // desired access - SERVICE_WIN32_OWN_PROCESS | SERVICE_INTERACTIVE_PROCESS, - // service type - SERVICE_AUTO_START, // start type - SERVICE_ERROR_NORMAL, // error control type - servicecmd, // service's binary - NULL, // no load ordering group - NULL, // no tag identifier - BAC_DEPENDENCIES, // dependencies - NULL, // LocalSystem account - NULL); // no password - if (hservice == NULL) { - CloseServiceHandle(hsrvmanager); - log_error_message("CreateService failed"); - MessageBox(NULL, - _("The Bacula service could not be installed"), - szAppName, MB_ICONEXCLAMATION | MB_OK); - break; - } - - set_service_description(hsrvmanager,hservice, -_("Provides file backup and restore services. Bacula -- the network backup solution.")); - - CloseServiceHandle(hsrvmanager); - CloseServiceHandle(hservice); - - // Everything went fine - if (!silent) { - MessageBox(NULL, - _("The Bacula File service was successfully installed.\n" - "The service may be started from the Control Panel and will\n" - "automatically be run the next time this machine is rebooted."), - szAppName, - MB_ICONINFORMATION | MB_OK); - } - break; - default: - log_error_message("Unknown Windows System version"); - MessageBox(NULL, - _("Unknown Windows operating system.\n" - "Cannot install Bacula service.\n"), - szAppName, MB_ICONEXCLAMATION | MB_OK); - break; - }; - - return 0; -} - - -// SERVICE REMOVE ROUTINE -int -bacService::RemoveService() -{ - // How to remove the Bacula service depends upon the OS - switch (g_platform_id) { - - // Windows 95/98/Me - case VER_PLATFORM_WIN32_WINDOWS: - // Locate the RunService registry entry - HKEY runservices; - if (RegOpenKey(HKEY_LOCAL_MACHINE, - "Software\\Microsoft\\Windows\\CurrentVersion\\RunServices", - &runservices) != ERROR_SUCCESS) { - MessageBox(NULL, - _("Could not find registry entry.\nService probably not registerd - the Bacula service was not removed"), szAppName, MB_ICONEXCLAMATION | MB_OK); - } else { - // Attempt to delete the Bacula key - if (RegDeleteValue(runservices, szAppName) != ERROR_SUCCESS) { - RegCloseKey(runservices); - MessageBox(NULL, _("Could not delete Registry key.\nThe Bacula service could not be removed"), szAppName, MB_ICONEXCLAMATION | MB_OK); - } - - RegCloseKey(runservices); - break; - } - - // Try to kill any running copy of Bacula - if (!KillRunningCopy()) { - MessageBox(NULL, - _("Bacula could not be contacted, probably not running"), - szAppName, MB_ICONEXCLAMATION | MB_OK); - break; - } - - // We have successfully removed the service! - if (!silent) { - MessageBox(NULL, _("The Bacula service has been removed"), szAppName, MB_ICONINFORMATION | MB_OK); - } - break; - - // Windows NT, Win2K, WinXP - case VER_PLATFORM_WIN32_NT: - SC_HANDLE hservice; - SC_HANDLE hsrvmanager; - - // Open the SCM - hsrvmanager = OpenSCManager( - NULL, // machine (NULL == local) - NULL, // database (NULL == default) - SC_MANAGER_ALL_ACCESS // access required - ); - if (hsrvmanager) { - hservice = OpenService(hsrvmanager, BAC_SERVICENAME, SERVICE_ALL_ACCESS); - if (hservice != NULL) { - SERVICE_STATUS status; - - // Try to stop the Bacula service - if (ControlService(hservice, SERVICE_CONTROL_STOP, &status)) { - while(QueryServiceStatus(hservice, &status)) { - if (status.dwCurrentState == SERVICE_STOP_PENDING) { - Sleep(1000); - } else { - break; - } - } - - if (status.dwCurrentState != SERVICE_STOPPED) { - MessageBox(NULL, _("The Bacula service could not be stopped"), szAppName, MB_ICONEXCLAMATION | MB_OK); - } - } - - // Now remove the service from the SCM - if (DeleteService(hservice)) { - if (!silent) { - MessageBox(NULL, _("The Bacula service has been removed"), szAppName, MB_ICONINFORMATION | MB_OK); - } - } else { - MessageBox(NULL, _("The Bacula service could not be removed"), szAppName, MB_ICONEXCLAMATION | MB_OK); - } - - CloseServiceHandle(hservice); - } else { - MessageBox(NULL, _("The Bacula service could not be found"), szAppName, MB_ICONEXCLAMATION | MB_OK); - } - - CloseServiceHandle(hsrvmanager); - } else { - MessageBox(NULL, _("The SCM could not be contacted - the Bacula service was not removed"), szAppName, MB_ICONEXCLAMATION | MB_OK); - } - break; - } - return 0; -} - -// USEFUL SERVICE SUPPORT ROUTINES - -// Service control routine -void WINAPI ServiceCtrl(DWORD ctrlcode) -{ - // What control code have we been sent? - switch(ctrlcode) { - case SERVICE_CONTROL_STOP: - // STOP : The service must stop - g_srvstatus.dwCurrentState = SERVICE_STOP_PENDING; - ServiceStop(); - break; - - case SERVICE_CONTROL_INTERROGATE: - // QUERY : Service control manager just wants to know our state - break; - - default: - // Control code not recognised - break; - } - - // Tell the control manager what we're up to. - ReportStatus(g_srvstatus.dwCurrentState, NO_ERROR, 0); -} - -// Service manager status reporting -BOOL ReportStatus(DWORD state, - DWORD exitcode, - DWORD waithint) -{ - static DWORD checkpoint = 1; - BOOL result = TRUE; - - // If we're in the start state then we don't want the control manager - // sending us control messages because they'll confuse us. - if (state == SERVICE_START_PENDING) { - g_srvstatus.dwControlsAccepted = 0; - } else { - g_srvstatus.dwControlsAccepted = SERVICE_ACCEPT_STOP; - } - - // Save the new status we've been given - g_srvstatus.dwCurrentState = state; - g_srvstatus.dwWin32ExitCode = exitcode; - g_srvstatus.dwWaitHint = waithint; - - // Update the checkpoint variable to let the SCM know that we - // haven't died if requests take a long time - if ((state == SERVICE_RUNNING) || (state == SERVICE_STOPPED)) { - g_srvstatus.dwCheckPoint = 0; - } else { - g_srvstatus.dwCheckPoint = checkpoint++; - } - - // Tell the SCM our new status - if (!(result = SetServiceStatus(g_hstatus, &g_srvstatus))) { - log_error_message(_("SetServiceStatus failed")); - } - - return result; -} - -// Error reporting -void LogErrorMsg(char *message, char *fname, int lineno) -{ - char msgbuff[256]; - HANDLE heventsrc; - char * strings[32]; - LPTSTR msg; - - // Get the error code - g_error = GetLastError(); - FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER| - FORMAT_MESSAGE_FROM_SYSTEM, - NULL, - g_error, - 0, - (LPTSTR)&msg, - 0, - NULL); - - // Use event logging to log the error - heventsrc = RegisterEventSource(NULL, BAC_SERVICENAME); - - sprintf(msgbuff, _("\n\n%s error: %ld at %s:%d"), - BAC_SERVICENAME, g_error, fname, lineno); - strings[0] = msgbuff; - strings[1] = message; - strings[2] = msg; - - if (heventsrc != NULL) { - MessageBeep(MB_OK); - - ReportEvent( - heventsrc, // handle of event source - EVENTLOG_ERROR_TYPE, // event type - 0, // event category - 0, // event ID - NULL, // current user's SID - 3, // strings in 'strings' - 0, // no bytes of raw data - (const char **)strings, // array of error strings - NULL); // no raw data - - DeregisterEventSource(heventsrc); - } - LocalFree(msg); -} -typedef BOOL (WINAPI * WinAPI)(SC_HANDLE, DWORD, LPVOID); - -void set_service_description(SC_HANDLE hSCManager, SC_HANDLE hService, - LPSTR lpDesc) -{ - SC_LOCK sclLock; - LPQUERY_SERVICE_LOCK_STATUS lpqslsBuf; - SERVICE_DESCRIPTION sdBuf; - DWORD dwBytesNeeded; - WinAPI ChangeServiceDescription; - - HINSTANCE hLib = LoadLibrary("ADVAPI32.DLL"); - if (!hLib) { - return; - } - ChangeServiceDescription = (WinAPI)GetProcAddress(hLib, - "ChangeServiceConfig2A"); - FreeLibrary(hLib); - if (!ChangeServiceDescription) { - return; - } - - // Need to acquire database lock before reconfiguring. - sclLock = LockServiceDatabase(hSCManager); - - // If the database cannot be locked, report the details. - if (sclLock == NULL) { - // Exit if the database is not locked by another process. - if (GetLastError() != ERROR_SERVICE_DATABASE_LOCKED) { - log_error_message("LockServiceDatabase"); - return; - } - - // Allocate a buffer to get details about the lock. - lpqslsBuf = (LPQUERY_SERVICE_LOCK_STATUS)LocalAlloc( - LPTR, sizeof(QUERY_SERVICE_LOCK_STATUS)+256); - if (lpqslsBuf == NULL) { - log_error_message("LocalAlloc"); - return; - } - - // Get and print the lock status information. - if (!QueryServiceLockStatus( - hSCManager, - lpqslsBuf, - sizeof(QUERY_SERVICE_LOCK_STATUS)+256, - &dwBytesNeeded)) { - log_error_message("QueryServiceLockStatus"); - } - - if (lpqslsBuf->fIsLocked) { - printf(_("Locked by: %s, duration: %ld seconds\n"), - lpqslsBuf->lpLockOwner, - lpqslsBuf->dwLockDuration); - } else { - printf(_("No longer locked\n")); - } - - LocalFree(lpqslsBuf); - log_error_message(_("Could not lock database")); - return; - } - - // The database is locked, so it is safe to make changes. - - sdBuf.lpDescription = lpDesc; - - if (!ChangeServiceDescription( - hService, // handle to service - SERVICE_CONFIG_DESCRIPTION, // change: description - &sdBuf) ) { // value: new description - log_error_message("ChangeServiceConfig2"); - } - - // Release the database lock. - UnlockServiceDatabase(sclLock); -} diff --git a/bacula/src/filed/win32/winservice.h b/bacula/src/filed/win32/winservice.h deleted file mode 100755 index 157dea3b18..0000000000 --- a/bacula/src/filed/win32/winservice.h +++ /dev/null @@ -1,125 +0,0 @@ -// Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. -// -// This file was part of the ups system. -// -// The ups system is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, -// USA. -// -// If the source code for the ups system is not available from the place -// whence you received this file, check http://www.uk.research.att.com/vnc or contact -// the authors on ups@uk.research.att.com for information on obtaining it. -// -// This file has been adapted to the Win32 version of Bacula -// by Kern E. Sibbald. Many thanks to ATT and James Weatherall, -// the original author, for providing an excellent template. -// -// Copyright (C) 2000-2006 Kern E. Sibbald -// - - -// winservice.cpp - -// SERVICE-MODE CODE - -// This class provides access to service-oriented routines, under both -// Windows NT and Windows 95. Some routines only operate under one -// OS, others operate under any OS. - -class bacService; - -#if (!defined(_win_bacService)) -#define _win_bacService - -// The NT-specific code wrapper class -class bacService -{ -public: - bacService(); - - // SERVICE INSTALL & START FUNCTIONS - - // Routine called by WinMain to cause Bacula to be installed - // as a service. - static int BaculaServiceMain(); - - // Routine to install the Apcupsd service on the local machine - static int InstallService(); - - // Routine to remove the Apcupsd service from the local machine - static int RemoveService(); - - // SERVICE SUPPORT FUNCTIONS - - // Routine to establish and return the currently logged in user name - static BOOL CurrentUser(char *buffer, UINT size); - - // Routine to post a message to the currently running Apcupsd server - // to pass it a handle to the current user - static BOOL PostUserHelperMessage(); - // Routine to process a user helper message - static BOOL ProcessUserHelperMessage(WPARAM wParam, LPARAM lParam); - - // Routines to establish which OS we're running on - static BOOL IsWin95(); - static BOOL IsWinNT(); - - // Routine to establish whether the current instance is running - // as a service or not - static BOOL RunningAsService(); - - // Routine to kill any other running copy of Apcupsd - static BOOL KillRunningCopy(); - - // Routine to set the current thread into the given desktop - static BOOL SelectHDESK(HDESK newdesktop); - - // Routine to set the current thread into the named desktop, - // or the input desktop if no name is given - static BOOL SelectDesktop(char *name); - - // Routine to establish whether the current thread desktop is the - // current user input one - static BOOL InputDesktopSelected(); - - // Routine to fake a CtrlAltDel to winlogon when required. - // *** This is a nasty little hack... - static BOOL SimulateCtrlAltDel(); - - // Routine to make any currently running version of Apcupsd show its - // Properties dialog, to allow the user to make changes to their settings - static BOOL ShowProperties(); - - // Routine to make any currently running version of Apcupsd show the - // Properties dialog for the default settings, so the user can make changes - static BOOL ShowDefaultProperties(); - - // Routine to make the an already running copy of Apcupsd bring up its - // About box so you can check the version! - static BOOL ShowAboutBox(); - - // Routine to make the an already running copy of Apcupsd bring up its - // Status dialog - static BOOL ShowStatus(); - - // Routine to make the an already running copy of Apcupsd bring up its - // Events dialog - static BOOL ShowEvents(); - - // Routine to make an already running copy of Apcupsd form an outgoing - // connection to a new ups client - static BOOL PostAddNewClient(unsigned long ipaddress); -}; - -#endif diff --git a/bacula/src/filed/win32/winstat.cpp b/bacula/src/filed/win32/winstat.cpp deleted file mode 100755 index 45e3c41ad1..0000000000 --- a/bacula/src/filed/win32/winstat.cpp +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Bacula File daemon Status Dialog box - * - * Inspired from the VNC code by ATT. - * - * Copyright (2000) Kern E. Sibbald - * - */ -/* - Copyright (C) 2000-2003 Kern Sibbald and John Walker - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - as published by the Free Software Foundation; either version 2 - of the License, or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ - -#include "bacula.h" -#include "winbacula.h" -#include "winstat.h" -#include "winres.h" - -extern void FillStatusBox(HWND hwnd, int id_list); - -bacStatus::bacStatus() -{ - visible = FALSE; -} - -bacStatus::~bacStatus() -{ -} - - -/* Dialog box handling functions */ -void -bacStatus::Show(BOOL show) -{ - if (show && !visible) { - DialogBoxParam(hAppInstance, MAKEINTRESOURCE(IDD_STATUS), NULL, - (DLGPROC)DialogProc, (LONG)this); - } -} - -BOOL CALLBACK -bacStatus::DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) -{ - /* Get class pointer from user data */ - bacStatus *_this = (bacStatus *)GetWindowLong(hwnd, GWL_USERDATA); - - switch (uMsg) { - case WM_INITDIALOG: - /* Set class pointer in user data */ - SetWindowLong(hwnd, GWL_USERDATA, lParam); - _this = (bacStatus *)lParam; - - /* show the dialog */ - SetForegroundWindow(hwnd); - - /* Update every 5 seconds */ - SetTimer(hwnd, 1, 5000, NULL); - _this->visible = TRUE; - FillStatusBox(hwnd, IDC_LIST); - return TRUE; - - case WM_TIMER: - FillStatusBox(hwnd, IDC_LIST); - return TRUE; - - case WM_COMMAND: - switch (LOWORD(wParam)) { - case IDCANCEL: - case IDOK: - KillTimer(hwnd, 1); - EndDialog(hwnd, TRUE); - _this->visible = FALSE; - return TRUE; - } - break; - - case WM_DESTROY: - KillTimer(hwnd, 1); - EndDialog(hwnd, FALSE); - _this->visible = FALSE; - return TRUE; - } - return 0; -} diff --git a/bacula/src/filed/win32/winstat.h b/bacula/src/filed/win32/winstat.h deleted file mode 100755 index 3486a00796..0000000000 --- a/bacula/src/filed/win32/winstat.h +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Bacula Status Dialog header file - * - */ -/* - Copyright (C) 2000-2003 Kern Sibbald and John Walker - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of - the License, or (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public - License along with this program; if not, write to the Free - Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, - MA 02111-1307, USA. - - */ - - -class bacStatus; - -#ifndef _WINSTAT_H_ -#define _WINSTAT_H_ - -class bacStatus -{ -public: - bacStatus(); - ~bacStatus(); - - /* The Windows callback routine */ - static BOOL CALLBACK DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); - - void Show(BOOL show); - - BOOL visible; -}; - -#endif diff --git a/bacula/src/filed/win32/wintray.cpp b/bacula/src/filed/win32/wintray.cpp deleted file mode 100755 index 044d34b7ce..0000000000 --- a/bacula/src/filed/win32/wintray.cpp +++ /dev/null @@ -1,353 +0,0 @@ -// Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. -// -// This file was part of the vnc system. -// -// The vnc system is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, -// USA. -// -// If the source code for the vnc system is not available from the place -// whence you received this file, check http://www.uk.research.att.com/vnc or contact -// the authors on vnc@uk.research.att.com for information on obtaining it. -// -// This file has been adapted to the Win32 version of Bacula -// by Kern E. Sibbald. Many thanks to ATT and James Weatherall, -// the original author, for providing an excellent template. -// -// Copyright 2000-2004, Kern E. Sibbald -// - - - -// Tray - -// Implementation of a system tray icon & menu for Bacula - -#include "bacula.h" -#include "jcr.h" -#include "winbacula.h" -#include "winservice.h" -#include "winres.h" -#include "wintray.h" - -// Constants -#ifdef properties_implemented -const UINT MENU_PROPERTIES_SHOW = RegisterWindowMessage("Bacula.Properties.User.Show"); -const UINT MENU_DEFAULT_PROPERTIES_SHOW = RegisterWindowMessage("Bacula.Properties.Default.Show"); -#endif -const UINT MENU_ABOUTBOX_SHOW = RegisterWindowMessage("Bacula.AboutBox.Show"); -const UINT MENU_STATUS_SHOW = RegisterWindowMessage("Bacula.Status.Show"); -const UINT MENU_EVENTS_SHOW = RegisterWindowMessage("Bacula.Events.Show"); -const UINT MENU_SERVICEHELPER_MSG = RegisterWindowMessage("Bacula.ServiceHelper.Message"); -const UINT MENU_ADD_CLIENT_MSG = RegisterWindowMessage("Bacula.AddClient.Message"); -const char *MENU_CLASS_NAME = "Bacula Tray Icon"; - -extern void terminate_filed(int sig); -extern char *bac_status(char *buf, int buf_len); -extern int bacstat; - -// Implementation - -bacMenu::bacMenu() -{ - // Create a dummy window to handle tray icon messages - WNDCLASSEX wndclass; - - wndclass.cbSize = sizeof(wndclass); - wndclass.style = 0; - wndclass.lpfnWndProc = bacMenu::WndProc; - wndclass.cbClsExtra = 0; - wndclass.cbWndExtra = 0; - wndclass.hInstance = hAppInstance; - wndclass.hIcon = LoadIcon(NULL, IDI_APPLICATION); - wndclass.hCursor = LoadCursor(NULL, IDC_ARROW); - wndclass.hbrBackground = (HBRUSH) GetStockObject(WHITE_BRUSH); - wndclass.lpszMenuName = (const char *) NULL; - wndclass.lpszClassName = MENU_CLASS_NAME; - wndclass.hIconSm = LoadIcon(NULL, IDI_APPLICATION); - - RegisterClassEx(&wndclass); - - m_hwnd = CreateWindow(MENU_CLASS_NAME, - MENU_CLASS_NAME, - WS_OVERLAPPEDWINDOW, - CW_USEDEFAULT, - CW_USEDEFAULT, - 200, 200, - NULL, - NULL, - hAppInstance, - NULL); - if (m_hwnd == NULL) { - PostQuitMessage(0); - return; - } - - // record which client created this window - SetWindowLong(m_hwnd, GWL_USERDATA, (LONG) this); - - // Timer to trigger icon updating - SetTimer(m_hwnd, 1, 5000, NULL); - - // Load the icons for the tray - m_idle_icon = LoadIcon(hAppInstance, MAKEINTRESOURCE(IDI_IDLE)); - m_running_icon = LoadIcon(hAppInstance, MAKEINTRESOURCE(IDI_RUNNING)); - m_error_icon = LoadIcon(hAppInstance, MAKEINTRESOURCE(IDI_JOB_ERROR)); - m_warn_icon = LoadIcon(hAppInstance, MAKEINTRESOURCE(IDI_JOB_WARNING)); - - // Load the popup menu - m_hmenu = LoadMenu(hAppInstance, MAKEINTRESOURCE(IDR_TRAYMENU)); - - // Install the tray icon! - AddTrayIcon(); -} - -bacMenu::~bacMenu() -{ - // Remove the tray icon - SendTrayMsg(NIM_DELETE, 0); - - // Destroy the loaded menu - if (m_hmenu != NULL) - DestroyMenu(m_hmenu); -} - -void -bacMenu::AddTrayIcon() -{ - SendTrayMsg(NIM_ADD, bacstat); -} - -void -bacMenu::DelTrayIcon() -{ - SendTrayMsg(NIM_DELETE, 0); -} - - -void -bacMenu::UpdateTrayIcon(int bacstat) -{ - (void *)bac_status(NULL, 0); - SendTrayMsg(NIM_MODIFY, bacstat); -} - -void -bacMenu::SendTrayMsg(DWORD msg, int bacstat) -{ - struct s_last_job *job; - - // Create the tray icon message - m_nid.hWnd = m_hwnd; - m_nid.cbSize = sizeof(m_nid); - m_nid.uID = IDI_BACULA; // never changes after construction - switch (bacstat) { - case 0: - m_nid.hIcon = m_idle_icon; - break; - case JS_Running: - m_nid.hIcon = m_running_icon; - break; - case JS_ErrorTerminated: - m_nid.hIcon = m_error_icon; - break; - default: - if (last_jobs->size() > 0) { - job = (struct s_last_job *)last_jobs->last(); - if (job->Errors) { - m_nid.hIcon = m_warn_icon; - } else { - m_nid.hIcon = m_idle_icon; - } - } else { - m_nid.hIcon = m_idle_icon; - } - break; - } - - m_nid.uFlags = NIF_ICON | NIF_MESSAGE; - m_nid.uCallbackMessage = WM_TRAYNOTIFY; - - - // Use resource string as tip if there is one - if (LoadString(hAppInstance, IDI_BACULA, m_nid.szTip, sizeof(m_nid.szTip))) { - m_nid.uFlags |= NIF_TIP; - } - - // Try to add the Bacula status to the tip string, if possible - if (m_nid.uFlags & NIF_TIP) { - bac_status(m_nid.szTip, sizeof(m_nid.szTip)); - } - - // Send the message - if (Shell_NotifyIcon(msg, &m_nid)) { - EnableMenuItem(m_hmenu, ID_CLOSE, MF_ENABLED); - } else { - if (!bacService::RunningAsService()) { - if (msg == NIM_ADD) { - // The tray icon couldn't be created, so use the Properties dialog - // as the main program window - // removed because it causes quit when not running as a - // service in use with BartPe. - // PostQuitMessage(0); - } - } - } -} - -// Process window messages -LRESULT CALLBACK bacMenu::WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam) -{ - // This is a static method, so we don't know which instantiation we're - // dealing with. We use Allen Hadden's (ahadden@taratec.com) suggestion - // from a newsgroup to get the pseudo-this. - bacMenu *_this = (bacMenu *) GetWindowLong(hwnd, GWL_USERDATA); - - switch (iMsg) { - - // Every five seconds, a timer message causes the icon to update - case WM_TIMER: - // *** HACK for running servicified - if (bacService::RunningAsService()) { - // Attempt to add the icon if it's not already there - _this->AddTrayIcon(); - } - - // Update the icon - _this->UpdateTrayIcon(bacstat); - break; - - // STANDARD MESSAGE HANDLING - case WM_CREATE: - return 0; - - case WM_COMMAND: - // User has clicked an item on the tray menu - switch (LOWORD(wParam)) { - case ID_STATUS: - // Show the status dialog - _this->m_status.Show(TRUE); - _this->UpdateTrayIcon(bacstat); - break; - - case ID_EVENTS: - // Show the Events dialog - _this->m_events.Show(TRUE); - _this->UpdateTrayIcon(bacstat); - break; - - - case ID_KILLCLIENTS: - // Disconnect all currently connected clients - break; - - case ID_ABOUT: - // Show the About box - _this->m_about.Show(TRUE); - break; - - case ID_CLOSE: - // User selected Close from the tray menu - PostMessage(hwnd, WM_CLOSE, 0, 0); - break; - - } - return 0; - - case WM_TRAYNOTIFY: - // User has clicked on the tray icon or the menu - { - // Get the submenu to use as a pop-up menu - HMENU submenu = GetSubMenu(_this->m_hmenu, 0); - - // What event are we responding to, RMB click? - if (lParam==WM_RBUTTONUP) { - if (submenu == NULL) { - return 0; - } - - // Make the first menu item the default (bold font) - SetMenuDefaultItem(submenu, 0, TRUE); - - // Get the current cursor position, to display the menu at - POINT mouse; - GetCursorPos(&mouse); - - // There's a "bug" - // (Microsoft calls it a feature) in Windows 95 that requires calling - // SetForegroundWindow. To find out more, search for Q135788 in MSDN. - // - SetForegroundWindow(_this->m_nid.hWnd); - - // Display the menu at the desired position - TrackPopupMenu(submenu, - 0, mouse.x, mouse.y, 0, - _this->m_nid.hWnd, NULL); - - return 0; - } - - // Or was there a LMB double click? - if (lParam==WM_LBUTTONDBLCLK) { - // double click: execute first menu item - SendMessage(_this->m_nid.hWnd, - WM_COMMAND, - GetMenuItemID(submenu, 0), - 0); - } - - return 0; - } - - case WM_CLOSE: - terminate_filed(0); - break; - - case WM_DESTROY: - // The user wants Bacula to quit cleanly... - PostQuitMessage(0); - return 0; - - case WM_QUERYENDSESSION: - // Are we running as a system service? - // Or is the system shutting down (in which case we should check anyway!) - if ((!bacService::RunningAsService()) || (lParam == 0)) { - // No, so we are about to be killed - - // If there are remote connections then we should verify - // that the user is happy about killing them. - - // Finally, post a quit message, just in case - PostQuitMessage(0); - return TRUE; - } - return TRUE; - - - default: - if (iMsg == MENU_ABOUTBOX_SHOW) { - // External request to show our About dialog - PostMessage(hwnd, WM_COMMAND, MAKELONG(ID_ABOUT, 0), 0); - return 0; - } - if (iMsg == MENU_STATUS_SHOW) { - // External request to show our status - PostMessage(hwnd, WM_COMMAND, MAKELONG(ID_STATUS, 0), 0); - return 0; - } - } - - // Message not recognised - return DefWindowProc(hwnd, iMsg, wParam, lParam); -} diff --git a/bacula/src/filed/win32/wintray.h b/bacula/src/filed/win32/wintray.h deleted file mode 100755 index 2f40492df9..0000000000 --- a/bacula/src/filed/win32/wintray.h +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. -// -// This file was part of the VNC system. -// -// The VNC system is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 2 of the License, or -// (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, -// USA. -// -// If the source code for the VNC system is not available from the place -// whence you received this file, check http://www.uk.research.att.com/vnc or contact -// the authors on vnc@uk.research.att.com for information on obtaining it. -// -// This file has been adapted to the Win32 version of Bacula -// by Kern E. Sibbald. Many thanks to ATT and James Weatherall, -// the original author, for providing an excellent template. -// -// Copyright (2000) Kern E. Sibbald -// - - - -// winMenu - -// This class handles creation of a system-tray icon & menu - -class bacMenu; - -#if (!defined(_win_bacMENU)) -#define _win_bacMENU - -#include -#include "winabout.h" -#include "winstat.h" -#include "winevents.h" - -// Constants -extern const UINT MENU_ABOUTBOX_SHOW; -extern const UINT MENU_STATUS_SHOW; -extern const UINT MENU_EVENTS_SHOW; -extern const UINT MENU_SERVICEHELPER_MSG; -extern const UINT MENU_ADD_CLIENT_MSG; -extern const char *MENU_CLASS_NAME; - -// The tray menu class itself -class bacMenu -{ -public: - bacMenu(); - ~bacMenu(); -protected: - // Tray icon handling - void AddTrayIcon(); - void DelTrayIcon(); - void UpdateTrayIcon(int battstat); - void SendTrayMsg(DWORD msg, int battstat); - - // Message handler for the tray window - static LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam); - - // Fields -protected: - - // About dialog for this server - bacAbout m_about; - - // Status dialog for this server - bacStatus m_status; - - bacEvents m_events; - - HWND m_hwnd; - HMENU m_hmenu; - NOTIFYICONDATA m_nid; - - // The icon handles - HICON m_idle_icon; - HICON m_running_icon; - HICON m_error_icon; - HICON m_warn_icon; -}; - - -#endif diff --git a/bacula/src/findlib/Makefile.in b/bacula/src/findlib/Makefile.in index 2a84fc9253..d1e2950faa 100644 --- a/bacula/src/findlib/Makefile.in +++ b/bacula/src/findlib/Makefile.in @@ -22,7 +22,7 @@ first_rule: all dummy: # -LIBSRCS = find.c match.c find_one.c attibs.c create_file.c \ +LIBSRCS = find.c match.c find_one.c attribs.c create_file.c \ bfile.c drivetype.c enable_priv.c fstype.c makepath.c save-cwd.c LIBOBJS = find.o match.o find_one.o attribs.o create_file.o \ bfile.o drivetype.o enable_priv.o fstype.o makepath.o save-cwd.o diff --git a/bacula/src/findlib/Makefile.mingw b/bacula/src/findlib/Makefile.mingw deleted file mode 100644 index 46fdb6d3c9..0000000000 --- a/bacula/src/findlib/Makefile.mingw +++ /dev/null @@ -1,162 +0,0 @@ -# -# Find files library Makefile -# - -# autoconf/Make.common.in -*- Makefile -*- -# release date (man), LSM date, version number/name, current maintainer -DATE="15 Apr 2004" -LSMDATE=15Apr04 -VERSION=1.35.0 -VERNAME=bacula-$(VERSION)# -MAINT=Kern Sibbald# -MAINTEMAIL=# -WEBMAINT=# -WEBMAINTEMAIL=# -WEBPAGE=# -FTPSITENAME=# -FTPSITEDIR=# -#------------------------------------------------------------------------- - -SHELL = /bin/sh - -# Installation target directories & other installation stuff -prefix = -exec_prefix = -binprefix = -manprefix = -sbindir = /sbin -sysconfdir = /etc/bacula -scriptdir = /etc/bacula -mandir = ${prefix}/man/man1 -manext = 1 - -# Tools & program stuff -CC = gcc -CPP = gcc -E -CXX = g++ -MV = /usr/bin/mv -RM = /usr/bin/rm -RMF = /usr/bin/rm -f -CP = /usr/bin/cp -SED = /usr/bin/sed -AWK = /usr/bin/awk -ECHO = /usr/bin/echo -CMP = /usr/bin/cmp -TBL = /usr/bin/tbl -AR = ar -RANLIB = ranlib -INSTALL = /usr/bin/install -c -# add the -s to the following in PRODUCTION mode -INSTALL_PROGRAM = /usr/bin/install -c -m 754 -INSTALL_DATA = /usr/bin/install -c -m 644 -INSTALL_SCRIPT = /usr/bin/install -c -m 754 -INSTALL_CONFIG = /usr/bin/install -c -m 640 - -# Flags & libs -CFLAGS = -g -O2 -CPPFLAGS = -LDFLAGS = -O -TTOOL_LDFLAGS = -DEFS = -DHAVE_WIN32 -DHAVE_MINGW -LIBS = -lpthread -DINCLUDE = -DLIB = -DB_LIBS = - -# Windows (cygwin) flags -WCFLAGS = -mwindows -WLDFLAGS = -mwindows - -# X Include directory -#XINC = @XPM_CFLAGS@ - -# extra libraries needed by X on some systems, X library location -#XLIB = @XPM_LIBS@ -lX11 - -# End of common section of the Makefile -#------------------------------------------------------------------------- - -srcdir = . -VPATH = . -.PATH: . - -# one up -basedir = .. -# top dir -topdir = ../.. -# this dir relative to top dir -thisdir = src/findlib - -DEBUG= - -first_rule: all -dummy: - -# -LIBSRCS = find.c match.c find_one.c attibs.c create_file.c \ - bfile.c enable_priv.c fstype.c makepath.c save-cwd.c winapi.c -LIBOBJS = find.o match.o find_one.o attribs.o create_file.o \ - bfile.o enable_priv.o fstype.o makepath.o save-cwd.o winapi.o - -.SUFFIXES: .c .o -.PHONY: -.DONTCARE: - -# inference rules -.c.o: - $(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) -I$(srcdir) -I$(basedir) -I../win32/compat $(DINCLUDE) $(CFLAGS) $< -#------------------------------------------------------------------------- -all: libfind.a - @echo "==== Make of findlib is good ====" - @echo " " - -libfind.a: $(LIBOBJS) - $(RMF) $@ - $(AR) cr $@ $(LIBOBJS) - $(RANLIB) $@ - -install: - -uninstall: - - -clean: - $(RMF) find core a.out *.a *.o *.bak *~ *.intpro *.extpro 1 2 3 - -realclean: clean - $(RMF) tags - -distclean: realclean - if test $(srcdir) = .; then $(MAKE) realclean; fi - (cd $(srcdir); $(RMF) Makefile; $(RMF) -r CVS) - -devclean: realclean - if test $(srcdir) = .; then $(MAKE) realclean; fi - (cd $(srcdir); $(RMF) Makefile) - -install: - - -uninstall: - - - -# Semi-automatic generation of dependencies: -# Use gcc -M because X11 `makedepend' doesn't work on all systems -# and it also includes system headers. -# `semi'-automatic since dependencies are generated at distribution time. - -depend: - @$(MV) Makefile Makefile.bak - @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile - @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile - @$(CC) -S -M $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile - @if test -f Makefile ; then \ - $(RMF) Makefile.bak; \ - else \ - $(MV) Makefile.bak Makefile; \ - echo -e "Something went wrong\n\a"; \ - fi - -# ----------------------------------------------------------------------- -# DO NOT DELETE: nice dependency list follows diff --git a/bacula/src/findlib/attribs.c b/bacula/src/findlib/attribs.c index 6a81ac5dac..ab9a87f51d 100755 --- a/bacula/src/findlib/attribs.c +++ b/bacula/src/findlib/attribs.c @@ -710,17 +710,4 @@ void win_error(JCR *jcr, char *prefix, DWORD lerror) } LocalFree(msg); } - - -/* Conversion of a Unix filename to a Win32 filename */ -extern void conv_unix_to_win32_path(const char *path, char *win32_path, DWORD dwSize); -void unix_name_to_win32(POOLMEM **win32_name, char *name) -{ - /* One extra byte should suffice, but we double it */ - /* add MAX_PATH bytes for VSS shadow copy name */ - DWORD dwSize = 2*strlen(name)+MAX_PATH; - *win32_name = check_pool_memory_size(*win32_name, dwSize); - conv_unix_to_win32_path(name, *win32_name, dwSize); -} - #endif /* HAVE_WIN32 */ diff --git a/bacula/src/lib/Makefile.in b/bacula/src/lib/Makefile.in index 827d52f539..ad6c837fe0 100644 --- a/bacula/src/lib/Makefile.in +++ b/bacula/src/lib/Makefile.in @@ -32,7 +32,7 @@ LIBSRCS = alloc.c attr.c base64.c berrno.c bsys.c bget_msg.c \ res.c rwlock.c scan.c serial.c sha1.c \ semlock.c signal.c smartall.c tls.c tree.c \ util.c var.c watchdog.c workq.c btimers.c \ - address_conf.c pythonlib.c winapi.c + address_conf.c pythonlib.c LIBOBJS = alloc.o attr.o base64.o berrno.o bsys.o bget_msg.o \ @@ -45,7 +45,7 @@ LIBOBJS = alloc.o attr.o base64.o berrno.o bsys.o bget_msg.o \ res.o rwlock.o scan.o serial.o sha1.o \ semlock.o signal.o smartall.o tls.o tree.o \ util.o var.o watchdog.o workq.o btimers.o \ - address_conf.o pythonlib.o winapi.o + address_conf.o pythonlib.o EXTRAOBJS = @OBJLIST@ diff --git a/bacula/src/lib/Makefile.mingw b/bacula/src/lib/Makefile.mingw deleted file mode 100644 index dab73ebe0b..0000000000 --- a/bacula/src/lib/Makefile.mingw +++ /dev/null @@ -1,232 +0,0 @@ -# $Id$ - -# autoconf/Make.common.in -*- Makefile -*- -# release date (man), LSM date, version number/name, current maintainer -DATE="15 Apr 2004" -LSMDATE=15Apr04 -VERSION=1.35.0 -VERNAME=bacula-$(VERSION)# -MAINT=Kern Sibbald# -MAINTEMAIL=# -WEBMAINT=# -WEBMAINTEMAIL=# -WEBPAGE=# -FTPSITENAME=# -FTPSITEDIR=# -#------------------------------------------------------------------------- - -SHELL = /bin/sh - -# Installation target directories & other installation stuff -prefix = -exec_prefix = -binprefix = -manprefix = -sbindir = /sbin -sysconfdir = /etc/bacula -scriptdir = /etc/bacula -mandir = ${prefix}/man/man1 -manext = 1 - -# Tools & program stuff -CC = gcc -CPP = gcc -E -CXX = g++ -MV = /usr/bin/mv -RM = /usr/bin/rm -RMF = /usr/bin/rm -f -CP = /usr/bin/cp -SED = /usr/bin/sed -AWK = /usr/bin/awk -ECHO = /usr/bin/echo -CMP = /usr/bin/cmp -TBL = /usr/bin/tbl -AR = ar -RANLIB = ranlib -INSTALL = /usr/bin/install -c -# add the -s to the following in PRODUCTION mode -INSTALL_PROGRAM = /usr/bin/install -c -m 754 -INSTALL_DATA = /usr/bin/install -c -m 644 -INSTALL_SCRIPT = /usr/bin/install -c -m 754 -INSTALL_CONFIG = /usr/bin/install -c -m 640 - -# Flags & libs -CFLAGS = -g -O2 -Wall -CPPFLAGS = -LDFLAGS = -O -TTOOL_LDFLAGS = -DEFS = -DHAVE_WIN32 -DHAVE_MINGW -LIBS = -lpthread -DINCLUDE = -DLIB = -DB_LIBS = - -# Windows (cygwin) flags -WCFLAGS = -mwindows -WLDFLAGS = -mwindows - -# X Include directory -#XINC = @XPM_CFLAGS@ - -# extra libraries needed by X on some systems, X library location -#XLIB = @XPM_LIBS@ -lX11 - -# End of common section of the Makefile -#------------------------------------------------------------------------- - -CWEB = @CWEB@ -CTANGLE = $(CWEB)/ctangle -CWEAVE = $(CWEB)/cweave -TEXINPUTS = TEXINPUTS=.:$(CWEB): - -# FIXME -- These should be found by autoconf -TEX = tex -PDFTEX = pdftex -XDVI = xdvi -DVIPS = dvips - -srcdir = . -VPATH = . -.PATH: . - -# one up -basedir = .. -# top dir -topdir = ../.. -# this dir relative to top dir -thisdir = src/lib - - -DEBUG= - -GMP_INC=@GMP_INC@ - -first_rule: all -dummy: - -LIBSRCS = alloc.c attr.c base64.c bsys.c bget_msg.c \ - bnet.c bnet_server.c \ - bpipe.c bshm.c btime.c \ - cram-md5.c crc32.c daemon.c edit.c fnmatch.c \ - hmac.c idcache.c jcr.c lex.c alist.c dlist.c \ - md5.c message.c mem_pool.c parse_conf.c \ - queue.c rwlock.c scan.c serial.c sha1.c \ - semlock.c signal.c smartall.c tree.c \ - util.c var.c watchdog.c workq.c timers.c - - -LIBOBJS = alloc.o attr.o base64.o bsys.o bget_msg.o \ - bnet.o bnet_server.o \ - bpipe.o bshm.o btime.o \ - cram-md5.o crc32.o daemon.o edit.o fnmatch.o \ - hmac.o idcache.o jcr.o lex.o alist.o dlist.o \ - md5.o message.o mem_pool.o parse_conf.o \ - queue.o rwlock.o scan.o serial.o sha1.o \ - semlock.o signal.o smartall.o tree.o \ - util.o var.o watchdog.o workq.o timers.o - - - -EXTRAOBJS = - - -.SUFFIXES: .c .o .ch .dvi .pdf .tex .view .w .1 -.PHONY: -.DONTCARE: - -# inference rules -compat.o: ../win32/compat/compat.cpp - $(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) -I../win32/compat \ - -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) -o compat.o ../win32/compat/compat.cpp - -.c.o: - $(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) -I../win32/compat -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< - -.cc.o: - $(CXX) $(DEFS) $(DEBUG) -c $(WCFLAGS) $(CPPFLAGS) -I../win32/compat -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< - -.w.c: - $(CTANGLE) $< - -.w.tex: - $(CWEAVE) $< - -.tex.dvi: - ( $(TEXINPUTS) ; export TEXINPUTS; $(TEX) $< ) - -.tex.pdf: - ( $(TEXINPUTS) ; export TEXINPUTS; $(PDFTEX) $< ) - -.dvi.view: - $(XDVI) -s 0 $< - -#------------------------------------------------------------------------- -all: Makefile libbac.a - @echo "==== Make of lib is good ====" - @echo " " - -libbac.a: $(LIBOBJS) compat.o - $(AR) rc $@ $(LIBOBJS) compat.o - $(RANLIB) $@ - - -Makefile: $(srcdir)/Makefile.in $(topdir)/config.status - cd $(topdir) \ - && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status - -rwlock_test: - rm -f rwlock.o - $(CXX) -DTEST_RWLOCK $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) rwlock.c - $(CXX) $(LDFLAGS) -L. -o $@ rwlock.o $(LIBS) $(DLIB) -lbac -lm - rm -f rwlock.o - $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) rwlock.c - -md5sum: - rm -f md5.o - $(CXX) -DMD5_SUM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) md5.c - $(CXX) $(LDFLAGS) -L. -o $@ md5.o $(LIBS) $(DLIB) -lbac -lm - rm -f md5.o - $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) md5.c - - -sha1sum: - rm -f sha1.o - $(CXX) -DSHA1_SUM $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) sha1.c - $(CXX) $(LDFLAGS) -L. -o $@ sha1.o $(LIBS) $(DLIB) -lbac -lm - rm -f sha1.o - $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) md5.c - -install: - -uninstall: - -clean: - $(RMF) *.a core a.out *.o *.bak *.tex *.pdf *~ *.intpro *.extpro 1 2 3 - $(RMF) rwlock_test md5sum sha1sum - -realclean: clean - $(RMF) tags - -distclean: realclean - if test $(srcdir) = .; then $(MAKE) realclean; fi - (cd $(srcdir); $(RMF) Makefile; $(RMF) -r CVS) - -# Semi-automatic generation of dependencies: -# Use gcc -MM because X11 `makedepend' doesn't work on all systems -# and it also includes system headers. -# `semi'-automatic since dependencies are generated at distribution time. - -depend: - @$(MV) Makefile Makefile.bak - @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile - @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile - @$(CXX) -S -M $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $(SQL_INC) *.c >> Makefile - @if test -f Makefile ; then \ - $(RMF) Makefile.bak; \ - else \ - $(MV) Makefile.bak Makefile; \ - echo -e "Something went wrong\n\a"; \ - fi - -# ----------------------------------------------------------------------- -# DO NOT DELETE: nice dependency list follows \ No newline at end of file diff --git a/bacula/src/lib/bpipe.c b/bacula/src/lib/bpipe.c index 12a5d8b925..d0fa3aaa79 100644 --- a/bacula/src/lib/bpipe.c +++ b/bacula/src/lib/bpipe.c @@ -41,6 +41,8 @@ int num_execvp_errors = (int)(sizeof(execvp_errors)/sizeof(int)); #define MAX_ARGV 100 + +#if !defined(HAVE_WIN32) static void build_argc_argv(char *cmd, int *bargc, char *bargv[], int max_arg); /* @@ -249,6 +251,53 @@ int close_bpipe(BPIPE *bpipe) return stat; } +/* + * Build argc and argv from a string + */ +static void build_argc_argv(char *cmd, int *bargc, char *bargv[], int max_argv) +{ + int i; + char *p, *q, quote; + int argc = 0; + + argc = 0; + for (i=0; i @@ -2718,4 +2717,3 @@ const char *var_strerror(var_t *var, var_rc_t rc) } return str; } -#endif /* !defined(HAVE_WIN32) */ diff --git a/bacula/src/lib/winapi.c b/bacula/src/lib/winapi.c deleted file mode 100644 index 58a20fd715..0000000000 --- a/bacula/src/lib/winapi.c +++ /dev/null @@ -1,259 +0,0 @@ -/* - * Windows APIs that are different for each system. - * We use pointers to the entry points so that a - * single binary will run on all Windows systems. - * - * Kern Sibbald MMIII - */ -/* - Copyright (C) 2003-2006 Kern Sibbald - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - version 2 as amended with additional clauses defined in the - file LICENSE in the main source directory. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - the file LICENSE for additional details. - - */ - -#ifdef __APCUPSD__ -#include "apc.h" -#else -#include "bacula.h" -#endif - -#if defined(HAVE_CYGWIN) || defined(HAVE_WIN32) - -#include "winapi.h" - -int win32_client = 1; - -#ifdef WIN32_VSS -#include "vss.h" -#endif - -// init with win9x, but maybe set to NT in InitWinAPI -DWORD g_platform_id = VER_PLATFORM_WIN32_WINDOWS; -#ifdef WIN32_VSS -/* preset VSSClient to NULL */ -VSSClient *g_pVSSClient = NULL; -#endif - - -/* API Pointers */ - -t_OpenProcessToken p_OpenProcessToken = NULL; -t_AdjustTokenPrivileges p_AdjustTokenPrivileges = NULL; -t_LookupPrivilegeValue p_LookupPrivilegeValue = NULL; - -t_SetProcessShutdownParameters p_SetProcessShutdownParameters = NULL; - -t_CreateFileA p_CreateFileA = NULL; -t_CreateFileW p_CreateFileW = NULL; -t_CreateDirectoryA p_CreateDirectoryA; -t_CreateDirectoryW p_CreateDirectoryW; - -t_wunlink p_wunlink = NULL; -t_wmkdir p_wmkdir = NULL; -t_wopen p_wopen = NULL; - -t_GetFileAttributesA p_GetFileAttributesA = NULL; -t_GetFileAttributesW p_GetFileAttributesW = NULL; - -t_GetFileAttributesExA p_GetFileAttributesExA = NULL; -t_GetFileAttributesExW p_GetFileAttributesExW = NULL; - -t_SetFileAttributesA p_SetFileAttributesA = NULL; -t_SetFileAttributesW p_SetFileAttributesW = NULL; -t_BackupRead p_BackupRead = NULL; -t_BackupWrite p_BackupWrite = NULL; -t_WideCharToMultiByte p_WideCharToMultiByte = NULL; -t_MultiByteToWideChar p_MultiByteToWideChar = NULL; - -t_FindFirstFileA p_FindFirstFileA = NULL; -t_FindFirstFileW p_FindFirstFileW = NULL; - -t_FindNextFileA p_FindNextFileA = NULL; -t_FindNextFileW p_FindNextFileW = NULL; - -t_SetCurrentDirectoryA p_SetCurrentDirectoryA = NULL; -t_SetCurrentDirectoryW p_SetCurrentDirectoryW = NULL; - -t_GetCurrentDirectoryA p_GetCurrentDirectoryA = NULL; -t_GetCurrentDirectoryW p_GetCurrentDirectoryW = NULL; - -t_GetVolumePathNameW p_GetVolumePathNameW = NULL; -t_GetVolumeNameForVolumeMountPointW p_GetVolumeNameForVolumeMountPointW = NULL; - -#ifdef WIN32_VSS -void -VSSCleanup() -{ - if (g_pVSSClient) - delete (g_pVSSClient); -} -#endif - -void -InitWinAPIWrapper() -{ - HMODULE hLib = LoadLibraryA("KERNEL32.DLL"); - if (hLib) { - /* create file calls */ - p_CreateFileA = (t_CreateFileA) - GetProcAddress(hLib, "CreateFileA"); - p_CreateFileW = (t_CreateFileW) - GetProcAddress(hLib, "CreateFileW"); - - p_CreateDirectoryA = (t_CreateDirectoryA) - GetProcAddress(hLib, "CreateDirectoryA"); - p_CreateDirectoryW = (t_CreateDirectoryW) - GetProcAddress(hLib, "CreateDirectoryW"); - - /* attribute calls */ - p_GetFileAttributesA = (t_GetFileAttributesA) - GetProcAddress(hLib, "GetFileAttributesA"); - p_GetFileAttributesW = (t_GetFileAttributesW) - GetProcAddress(hLib, "GetFileAttributesW"); - p_GetFileAttributesExA = (t_GetFileAttributesExA) - GetProcAddress(hLib, "GetFileAttributesExA"); - p_GetFileAttributesExW = (t_GetFileAttributesExW) - GetProcAddress(hLib, "GetFileAttributesExW"); - p_SetFileAttributesA = (t_SetFileAttributesA) - GetProcAddress(hLib, "SetFileAttributesA"); - p_SetFileAttributesW = (t_SetFileAttributesW) - GetProcAddress(hLib, "SetFileAttributesW"); - /* process calls */ - p_SetProcessShutdownParameters = (t_SetProcessShutdownParameters) - GetProcAddress(hLib, "SetProcessShutdownParameters"); - /* backup calls */ - p_BackupRead = (t_BackupRead) - GetProcAddress(hLib, "BackupRead"); - p_BackupWrite = (t_BackupWrite) - GetProcAddress(hLib, "BackupWrite"); - /* char conversion calls */ - p_WideCharToMultiByte = (t_WideCharToMultiByte) - GetProcAddress(hLib, "WideCharToMultiByte"); - p_MultiByteToWideChar = (t_MultiByteToWideChar) - GetProcAddress(hLib, "MultiByteToWideChar"); - - /* find files */ - p_FindFirstFileA = (t_FindFirstFileA) - GetProcAddress(hLib, "FindFirstFileA"); - p_FindFirstFileW = (t_FindFirstFileW) - GetProcAddress(hLib, "FindFirstFileW"); - p_FindNextFileA = (t_FindNextFileA) - GetProcAddress(hLib, "FindNextFileA"); - p_FindNextFileW = (t_FindNextFileW) - GetProcAddress(hLib, "FindNextFileW"); - /* set and get directory */ - p_SetCurrentDirectoryA = (t_SetCurrentDirectoryA) - GetProcAddress(hLib, "SetCurrentDirectoryA"); - p_SetCurrentDirectoryW = (t_SetCurrentDirectoryW) - GetProcAddress(hLib, "SetCurrentDirectoryW"); - p_GetCurrentDirectoryA = (t_GetCurrentDirectoryA) - GetProcAddress(hLib, "GetCurrentDirectoryA"); - p_GetCurrentDirectoryW = (t_GetCurrentDirectoryW) - GetProcAddress(hLib, "GetCurrentDirectoryW"); - - /* some special stuff we need for VSS - but statically linkage doesn't work on Win 9x */ - p_GetVolumePathNameW = (t_GetVolumePathNameW) - GetProcAddress(hLib, "GetVolumePathNameW"); - p_GetVolumeNameForVolumeMountPointW = (t_GetVolumeNameForVolumeMountPointW) - GetProcAddress(hLib, "GetVolumeNameForVolumeMountPointW"); - - FreeLibrary(hLib); - } - - hLib = LoadLibraryA("MSVCRT.DLL"); - if (hLib) { - /* unlink */ - p_wunlink = (t_wunlink) - GetProcAddress(hLib, "_wunlink"); - /* wmkdir */ - p_wmkdir = (t_wmkdir) - GetProcAddress(hLib, "_wmkdir"); - /* wopen */ - p_wopen = (t_wopen) - GetProcAddress(hLib, "_wopen"); - - FreeLibrary(hLib); - } - - hLib = LoadLibraryA("ADVAPI32.DLL"); - if (hLib) { - p_OpenProcessToken = (t_OpenProcessToken) - GetProcAddress(hLib, "OpenProcessToken"); - p_AdjustTokenPrivileges = (t_AdjustTokenPrivileges) - GetProcAddress(hLib, "AdjustTokenPrivileges"); - p_LookupPrivilegeValue = (t_LookupPrivilegeValue) - GetProcAddress(hLib, "LookupPrivilegeValueA"); - FreeLibrary(hLib); - } - - // do we run on win 9x ??? - OSVERSIONINFO osversioninfo; - osversioninfo.dwOSVersionInfoSize = sizeof(osversioninfo); - - DWORD dwMinorVersion; - - // Get the current OS version - if (!GetVersionEx(&osversioninfo)) { - g_platform_id = 0; - dwMinorVersion = 0; - } else { - g_platform_id = osversioninfo.dwPlatformId; - dwMinorVersion = osversioninfo.dwMinorVersion; - } - - /* deinitialize some routines on win95 - they're not implemented well */ - if (g_platform_id == VER_PLATFORM_WIN32_WINDOWS) { - p_BackupRead = NULL; - p_BackupWrite = NULL; - - p_CreateFileW = NULL; - p_GetFileAttributesW = NULL; - p_GetFileAttributesExW = NULL; - - p_SetFileAttributesW = NULL; - - p_FindFirstFileW = NULL; - p_FindNextFileW = NULL; - p_SetCurrentDirectoryW = NULL; - p_GetCurrentDirectoryW = NULL; - - p_wunlink = NULL; - p_wmkdir = NULL; - p_wopen = NULL; - - p_GetVolumePathNameW = NULL; - p_GetVolumeNameForVolumeMountPointW = NULL; - } - - /* decide which vss class to initialize */ -#ifdef WIN32_VSS - switch (dwMinorVersion) { - case 1: - g_pVSSClient = new VSSClientXP(); - atexit(VSSCleanup); - break; - case 2: - g_pVSSClient = new VSSClient2003(); - atexit(VSSCleanup); - break; - } -#endif /* WIN32_VSS */ - atexit(Win32ConvCleanupCache); -} - -#else - -/* Not Windows */ -int win32_client = 0; - -#endif diff --git a/bacula/src/lib/winapi.h b/bacula/src/lib/winapi.h deleted file mode 100644 index 78b108adec..0000000000 --- a/bacula/src/lib/winapi.h +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Windows APIs that are different for each system. - * We use pointers to the entry points so that a - * single binary will run on all Windows systems. - * - * Kern Sibbald MMIII - */ -/* - Copyright (C) 2003-2006 Kern Sibbald - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License - version 2 as amended with additional clauses defined in the - file LICENSE in the main source directory. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - the file LICENSE for additional details. - - */ - -#ifndef __WINAPI_H -#define __WINAPI_H - -#if defined(HAVE_WIN32) -/* - * Commented out native.h include statement, which is not distributed with the - * free version of VC++, and which is not used in bacula. - * - * #if !defined(HAVE_MINGW) // native.h not present on mingw - * #include - * #endif - */ -#include -#endif - -#if defined(HAVE_CYGWIN) || defined(HAVE_WIN32) - -#ifndef POOLMEM -typedef char POOLMEM; -#endif - -// unicode enabling of win 32 needs some defines and functions - -// using an average of 3 bytes per character is probably fine in -// practice but I believe that Windows actually uses UTF-16 encoding -// as opposed to UCS2 which means characters 0x10000-0x10ffff are -// valid and result in 4 byte UTF-8 encodings. -#define MAX_PATH_UTF8 MAX_PATH*4 // strict upper bound on UTF-16 to UTF-8 conversion -// from -// http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/getfileattributesex.asp -// In the ANSI version of this function, the name is limited to -// MAX_PATH characters. To extend this limit to 32,767 wide -// characters, call the Unicode version of the function and prepend -// "\\?\" to the path. For more information, see Naming a File. -#define MAX_PATH_W 32767 - -int wchar_2_UTF8(char *pszUTF, const WCHAR *pszUCS, int cchChar = MAX_PATH_UTF8); -int UTF8_2_wchar(POOLMEM **pszUCS, const char *pszUTF); -int make_win32_path_UTF8_2_wchar(POOLMEM **pszUCS, const char *pszUTF, BOOL* pBIsRawPath = NULL); - - -/* In ADVAPI32.DLL */ - -typedef BOOL (WINAPI * t_OpenProcessToken)(HANDLE, DWORD, PHANDLE); -typedef BOOL (WINAPI * t_AdjustTokenPrivileges)(HANDLE, BOOL, - PTOKEN_PRIVILEGES, DWORD, PTOKEN_PRIVILEGES, PDWORD); -typedef BOOL (WINAPI * t_LookupPrivilegeValue)(LPCTSTR, LPCTSTR, PLUID); - -extern t_OpenProcessToken p_OpenProcessToken; -extern t_AdjustTokenPrivileges p_AdjustTokenPrivileges; -extern t_LookupPrivilegeValue p_LookupPrivilegeValue; - -/* In MSVCRT.DLL */ -typedef int (__cdecl * t_wunlink) (const wchar_t *); -typedef int (__cdecl * t_wmkdir) (const wchar_t *); -typedef int (__cdecl * t_wopen) (const wchar_t *, int, ...); - -extern t_wunlink p_wunlink; -extern t_wmkdir p_wmkdir; -extern t_wopen p_wopen; - -/* In KERNEL32.DLL */ -typedef BOOL (WINAPI * t_GetFileAttributesExA)(LPCSTR, GET_FILEEX_INFO_LEVELS, - LPVOID); -typedef BOOL (WINAPI * t_GetFileAttributesExW)(LPCWSTR, GET_FILEEX_INFO_LEVELS, - LPVOID); - -typedef DWORD (WINAPI * t_GetFileAttributesA)(LPCSTR); -typedef DWORD (WINAPI * t_GetFileAttributesW)(LPCWSTR); -typedef BOOL (WINAPI * t_SetFileAttributesA)(LPCSTR, DWORD); -typedef BOOL (WINAPI * t_SetFileAttributesW)(LPCWSTR, DWORD); - -typedef HANDLE (WINAPI * t_CreateFileA) (LPCSTR, DWORD ,DWORD, LPSECURITY_ATTRIBUTES, - DWORD , DWORD, HANDLE); -typedef HANDLE (WINAPI * t_CreateFileW) (LPCWSTR, DWORD ,DWORD, LPSECURITY_ATTRIBUTES, - DWORD , DWORD, HANDLE); - -typedef BOOL (WINAPI * t_CreateDirectoryA) (LPCSTR, LPSECURITY_ATTRIBUTES); -typedef BOOL (WINAPI * t_CreateDirectoryW) (LPCWSTR, LPSECURITY_ATTRIBUTES); - -typedef BOOL (WINAPI * t_SetProcessShutdownParameters)(DWORD, DWORD); -typedef BOOL (WINAPI * t_BackupRead)(HANDLE,LPBYTE,DWORD,LPDWORD,BOOL,BOOL,LPVOID*); -typedef BOOL (WINAPI * t_BackupWrite)(HANDLE,LPBYTE,DWORD,LPDWORD,BOOL,BOOL,LPVOID*); - -typedef int (WINAPI * t_WideCharToMultiByte) (UINT CodePage, DWORD , LPCWSTR, int, - LPSTR, int, LPCSTR, LPBOOL); - -typedef int (WINAPI * t_MultiByteToWideChar) (UINT, DWORD, LPCSTR, int, LPWSTR, int); -typedef HANDLE (WINAPI * t_FindFirstFileA) (LPCSTR, LPWIN32_FIND_DATAA); -typedef HANDLE (WINAPI * t_FindFirstFileW) (LPCWSTR, LPWIN32_FIND_DATAW); - -typedef BOOL (WINAPI * t_FindNextFileA) (HANDLE, LPWIN32_FIND_DATAA); -typedef BOOL (WINAPI * t_FindNextFileW) (HANDLE, LPWIN32_FIND_DATAW); - -typedef BOOL (WINAPI * t_SetCurrentDirectoryA) (LPCSTR); -typedef BOOL (WINAPI * t_SetCurrentDirectoryW) (LPCWSTR); - -typedef DWORD (WINAPI * t_GetCurrentDirectoryA) (DWORD, LPSTR); -typedef DWORD (WINAPI * t_GetCurrentDirectoryW) (DWORD, LPWSTR); - -typedef BOOL (WINAPI * t_GetVolumePathNameW) (LPCWSTR, LPWSTR, DWORD); -typedef BOOL (WINAPI * t_GetVolumeNameForVolumeMountPointW) (LPCWSTR, LPWSTR, DWORD); - -extern t_GetFileAttributesA p_GetFileAttributesA; -extern t_GetFileAttributesW p_GetFileAttributesW; - -extern t_GetFileAttributesExA p_GetFileAttributesExA; -extern t_GetFileAttributesExW p_GetFileAttributesExW; - -extern t_SetFileAttributesA p_SetFileAttributesA; -extern t_SetFileAttributesW p_SetFileAttributesW; - -extern t_CreateFileA p_CreateFileA; -extern t_CreateFileW p_CreateFileW; - -extern t_CreateDirectoryA p_CreateDirectoryA; -extern t_CreateDirectoryW p_CreateDirectoryW; - -extern t_SetProcessShutdownParameters p_SetProcessShutdownParameters; -extern t_BackupRead p_BackupRead; -extern t_BackupWrite p_BackupWrite; - -extern t_WideCharToMultiByte p_WideCharToMultiByte; -extern t_MultiByteToWideChar p_MultiByteToWideChar; - -extern t_FindFirstFileA p_FindFirstFileA; -extern t_FindFirstFileW p_FindFirstFileW; - -extern t_FindNextFileA p_FindNextFileA; -extern t_FindNextFileW p_FindNextFileW; - -extern t_SetCurrentDirectoryA p_SetCurrentDirectoryA; -extern t_SetCurrentDirectoryW p_SetCurrentDirectoryW; - -extern t_GetCurrentDirectoryA p_GetCurrentDirectoryA; -extern t_GetCurrentDirectoryW p_GetCurrentDirectoryW; - -extern t_GetVolumePathNameW p_GetVolumePathNameW; -extern t_GetVolumeNameForVolumeMountPointW p_GetVolumeNameForVolumeMountPointW; - -#ifdef WIN32_VSS -class VSSClient; -extern VSSClient* g_pVSSClient; -#endif - -void InitWinAPIWrapper(); -#endif - -#endif /* __WINAPI_H */ diff --git a/bacula/src/stored/ansi_label.c b/bacula/src/stored/ansi_label.c index 28fba900f7..02b70cadfd 100644 --- a/bacula/src/stored/ansi_label.c +++ b/bacula/src/stored/ansi_label.c @@ -74,7 +74,7 @@ int read_ansi_ibm_label(DCR *dcr) /* Read a maximum of 5 records VOL1, HDR1, ... HDR4 */ for (i=0; i < 6; i++) { do { - stat = read(dev->fd, label, sizeof(label)); + stat = tape_read(dev->fd, label, sizeof(label)); } while (stat == -1 && errno == EINTR); if (stat < 0) { berrno be; @@ -296,7 +296,7 @@ bool write_ansi_ibm_labels(DCR *dcr, int type, const char *VolName) } else { label[79] = '3'; /* ANSI label flag */ } - stat = write(dev->fd, label, sizeof(label)); + stat = tape_write(dev->fd, label, sizeof(label)); if (stat != sizeof(label)) { berrno be; Jmsg1(jcr, M_FATAL, 0, _("Could not write ANSI VOL1 label. ERR=%s\n"), @@ -328,7 +328,7 @@ bool write_ansi_ibm_labels(DCR *dcr, int type, const char *VolName) * This could come at the end of a tape, ignore * EOT errors. */ - stat = write(dev->fd, label, sizeof(label)); + stat = tape_write(dev->fd, label, sizeof(label)); if (stat != sizeof(label)) { berrno be; if (stat == -1) { @@ -357,7 +357,7 @@ bool write_ansi_ibm_labels(DCR *dcr, int type, const char *VolName) label[4] = 'V'; ascii_to_ebcdic(label, label, sizeof(label)); } - stat = write(dev->fd, label, sizeof(label)); + stat = tape_write(dev->fd, label, sizeof(label)); if (stat != sizeof(label)) { berrno be; if (stat == -1) { diff --git a/bacula/src/stored/block.c b/bacula/src/stored/block.c index 6ac2bfdc2c..e0907d54da 100644 --- a/bacula/src/stored/block.c +++ b/bacula/src/stored/block.c @@ -511,7 +511,11 @@ bool write_block_to_dev(DCR *dcr) /* * Do write here */ - stat = write(dev->fd, block->buf, (size_t)wlen); + if (dev->is_tape()) { + stat = tape_write(dev->fd, block->buf, (size_t)wlen); + } else { + stat = write(dev->fd, block->buf, (size_t)wlen); + } #ifdef DEBUG_BLOCK_ZEROING if (bp[0] == 0 && bp[1] == 0 && bp[2] == 0 && block->buf[12] == 0) { @@ -925,7 +929,11 @@ reread: // uint32_t *bp = (uint32_t *)block->buf; // Pmsg3(000, "Read %p %u at %llu\n", block->buf, block->buf_len, lseek(dev->fd, 0, SEEK_CUR)); - stat = read(dev->fd, block->buf, (size_t)block->buf_len); + if (dev->is_tape()) { + stat = tape_read(dev->fd, block->buf, (size_t)block->buf_len); + } else { + stat = read(dev->fd, block->buf, (size_t)block->buf_len); + } // Pmsg8(000, "stat=%d Csum=%u blen=%u bnum=%u %c%c%c%c\n",stat, bp[0],bp[1],bp[2], // block->buf[12],block->buf[13],block->buf[14],block->buf[15]); diff --git a/bacula/src/stored/btape.c b/bacula/src/stored/btape.c index a69a3d2e3a..21ea77ede6 100644 --- a/bacula/src/stored/btape.c +++ b/bacula/src/stored/btape.c @@ -309,6 +309,8 @@ static void terminate_btape(int stat) dev->term(); } + free_volume_list(); + if (debug_level > 10) print_memory_pool_stats(); @@ -2455,7 +2457,11 @@ static void rawfill_cmd() Pmsg1(0, _("Begin writing raw blocks of %u bytes.\n"), block->buf_len); for ( ;; ) { *p = block_num; - stat = write(dev->fd, block->buf, block->buf_len); + if (dev->is_tape()) { + stat = tape_write(dev->fd, block->buf, block->buf_len); + } else { + stat = write(dev->fd, block->buf, block->buf_len); + } if (stat == (int)block->buf_len) { if ((block_num++ % 100) == 0) { printf("+"); diff --git a/bacula/src/stored/dev.c b/bacula/src/stored/dev.c index ffda26336a..3ccde2b2c3 100644 --- a/bacula/src/stored/dev.c +++ b/bacula/src/stored/dev.c @@ -264,10 +264,14 @@ DEVICE::open(DCR *dcr, int omode) if (openmode == omode) { return fd; } else { - ::close(fd); /* use system close so correct mode will be used on open */ - clear_opened(); - Dmsg0(100, "Close fd for mode change.\n"); - preserve = state & (ST_LABEL|ST_APPEND|ST_READ); + if (is_tape()) { + tape_close(fd); + } else { + ::close(fd); + } + clear_opened(); + Dmsg0(100, "Close fd for mode change.\n"); + preserve = state & (ST_LABEL|ST_APPEND|ST_READ); } } if (dcr) { @@ -336,6 +340,17 @@ void DEVICE::open_tape_device(DCR *dcr, int omode) Dmsg3(100, "Try open %s mode=%s nonblocking=%d\n", print_name(), mode_to_str(omode), nonblocking); /* Use system open() */ + +#ifdef HAVE_WIN32 + if ((fd = tape_open(dev_name, mode)) < 0) { + berrno be; + dev_errno = errno; + + Mmsg2(errmsg, _("Unable to open device %s: ERR=%s\n"), + print_name(), be.strerror(dev_errno)); + Jmsg0(dcr->jcr, M_FATAL, 0, errmsg); + } +#else while ((fd = ::open(dev_name, mode+nonblocking)) < 0) { berrno be; dev_errno = errno; @@ -361,6 +376,7 @@ void DEVICE::open_tape_device(DCR *dcr, int omode) Jmsg0(dcr->jcr, M_FATAL, 0, errmsg); break; } +#endif if (fd >= 0) { openmode = omode; /* save open mode */ @@ -645,7 +661,7 @@ bool DEVICE::rewind(DCR *dcr) * retrying every 5 seconds. */ for (i=max_rewind_wait; ; i -= 5) { - if (ioctl(fd, MTIOCTOP, (char *)&mt_com) < 0) { + if (tape_ioctl(fd, MTIOCTOP, (char *)&mt_com) < 0) { berrno be; clrerror(MTREW); if (i == max_rewind_wait) { @@ -659,7 +675,7 @@ bool DEVICE::rewind(DCR *dcr) */ if (first && dcr) { int open_mode = openmode; - ::close(fd); + tape_close(fd); clear_opened(); open(dcr, open_mode); if (fd < 0) { @@ -827,7 +843,7 @@ bool DEVICE::eod() mt_com.mt_count = 1; } - if (ioctl(fd, MTIOCTOP, (char *)&mt_com) < 0) { + if (tape_ioctl(fd, MTIOCTOP, (char *)&mt_com) < 0) { berrno be; clrerror(mt_com.mt_op); Dmsg1(50, "ioctl error: %s\n", be.strerror()); @@ -971,7 +987,7 @@ uint32_t status_dev(DEVICE *dev) stat |= BMT_TAPE; Pmsg0(-20,_(" Bacula status:")); Pmsg2(-20,_(" file=%d block=%d\n"), dev->file, dev->block_num); - if (ioctl(dev->fd, MTIOCGET, (char *)&mt_stat) < 0) { + if (tape_ioctl(dev->fd, MTIOCGET, (char *)&mt_stat) < 0) { berrno be; dev->dev_errno = errno; Mmsg2(dev->errmsg, _("ioctl MTIOCGET error on %s. ERR=%s.\n"), @@ -1017,6 +1033,40 @@ uint32_t status_dev(DEVICE *dev) stat |= BMT_IM_REP_EN; Pmsg0(-20, " IM_REP_EN"); } +#elif defined(HAVE_WIN32) + if (GMT_EOF(mt_stat.mt_gstat)) { + stat |= BMT_EOF; + Pmsg0(-20, " EOF"); + } + if (GMT_BOT(mt_stat.mt_gstat)) { + stat |= BMT_BOT; + Pmsg0(-20, " BOT"); + } + if (GMT_EOT(mt_stat.mt_gstat)) { + stat |= BMT_EOT; + Pmsg0(-20, " EOT"); + } + if (GMT_EOD(mt_stat.mt_gstat)) { + stat |= BMT_EOD; + Pmsg0(-20, " EOD"); + } + if (GMT_WR_PROT(mt_stat.mt_gstat)) { + stat |= BMT_WR_PROT; + Pmsg0(-20, " WR_PROT"); + } + if (GMT_ONLINE(mt_stat.mt_gstat)) { + stat |= BMT_ONLINE; + Pmsg0(-20, " ONLINE"); + } + if (GMT_DR_OPEN(mt_stat.mt_gstat)) { + stat |= BMT_DR_OPEN; + Pmsg0(-20, " DR_OPEN"); + } + if (GMT_IM_REP_EN(mt_stat.mt_gstat)) { + stat |= BMT_IM_REP_EN; + Pmsg0(-20, " IM_REP_EN"); + } + #endif /* !SunOS && !OSF */ if (dev->has_cap(CAP_MTIOCGET)) { Pmsg2(-20, _(" file=%d block=%d\n"), mt_stat.mt_fileno, mt_stat.mt_blkno); @@ -1064,7 +1114,7 @@ bool load_dev(DEVICE *dev) dev->file_addr = 0; mt_com.mt_op = MTLOAD; mt_com.mt_count = 1; - if (ioctl(dev->fd, MTIOCTOP, (char *)&mt_com) < 0) { + if (tape_ioctl(dev->fd, MTIOCTOP, (char *)&mt_com) < 0) { berrno be; dev->dev_errno = errno; Mmsg2(dev->errmsg, _("ioctl MTLOAD error on %s. ERR=%s.\n"), @@ -1096,11 +1146,11 @@ bool DEVICE::offline() #ifdef MTUNLOCK mt_com.mt_op = MTUNLOCK; mt_com.mt_count = 1; - ioctl(fd, MTIOCTOP, (char *)&mt_com); + tape_ioctl(fd, MTIOCTOP, (char *)&mt_com); #endif mt_com.mt_op = MTOFFL; mt_com.mt_count = 1; - if (ioctl(fd, MTIOCTOP, (char *)&mt_com) < 0) { + if (tape_ioctl(fd, MTIOCTOP, (char *)&mt_com) < 0) { berrno be; dev_errno = errno; Mmsg2(errmsg, _("ioctl MTOFFL error on %s. ERR=%s.\n"), @@ -1173,7 +1223,7 @@ bool DEVICE::fsf(int num) if (has_cap(CAP_FSF) && has_cap(CAP_MTIOCGET) && has_cap(CAP_FASTFSF)) { mt_com.mt_op = MTFSF; mt_com.mt_count = num; - stat = ioctl(fd, MTIOCTOP, (char *)&mt_com); + stat = tape_ioctl(fd, MTIOCTOP, (char *)&mt_com); if (stat < 0 || !dev_get_os_pos(this, &mt_stat)) { berrno be; set_eot(); @@ -1210,7 +1260,7 @@ bool DEVICE::fsf(int num) mt_com.mt_count = 1; while (num-- && !at_eot()) { Dmsg0(100, "Doing read before fsf\n"); - if ((stat = read(fd, (char *)rbuf, rbuf_len)) < 0) { + if ((stat = tape_read(fd, (char *)rbuf, rbuf_len)) < 0) { if (errno == ENOMEM) { /* tape record exceeds buf len */ stat = rbuf_len; /* This is OK */ /* @@ -1249,7 +1299,7 @@ bool DEVICE::fsf(int num) } Dmsg0(100, "Doing MTFSF\n"); - stat = ioctl(fd, MTIOCTOP, (char *)&mt_com); + stat = tape_ioctl(fd, MTIOCTOP, (char *)&mt_com); if (stat < 0) { /* error => EOT */ berrno be; set_eot(); @@ -1323,7 +1373,7 @@ bool DEVICE::bsf(int num) file_size = 0; mt_com.mt_op = MTBSF; mt_com.mt_count = num; - stat = ioctl(fd, MTIOCTOP, (char *)&mt_com); + stat = tape_ioctl(fd, MTIOCTOP, (char *)&mt_com); if (stat < 0) { berrno be; clrerror(MTBSF); @@ -1363,7 +1413,7 @@ bool DEVICE::fsr(int num) Dmsg1(29, "fsr %d\n", num); mt_com.mt_op = MTFSR; mt_com.mt_count = num; - stat = ioctl(fd, MTIOCTOP, (char *)&mt_com); + stat = tape_ioctl(fd, MTIOCTOP, (char *)&mt_com); if (stat == 0) { clear_eof(); block_num += num; @@ -1423,7 +1473,7 @@ bool DEVICE::bsr(int num) clear_eot(); mt_com.mt_op = MTBSR; mt_com.mt_count = num; - stat = ioctl(fd, MTIOCTOP, (char *)&mt_com); + stat = tape_ioctl(fd, MTIOCTOP, (char *)&mt_com); if (stat < 0) { berrno be; clrerror(MTBSR); @@ -1529,7 +1579,7 @@ bool DEVICE::weof(int num) clear_eot(); mt_com.mt_op = MTWEOF; mt_com.mt_count = num; - stat = ioctl(fd, MTIOCTOP, (char *)&mt_com); + stat = tape_ioctl(fd, MTIOCTOP, (char *)&mt_com); if (stat == 0) { block_num = 0; file += num; @@ -1645,7 +1695,7 @@ void DEVICE::clrerror(int func) */ /* On some systems such as NetBSD, this clears all errors */ - ioctl(fd, MTIOCGET, (char *)&mt_stat); + tape_ioctl(fd, MTIOCGET, (char *)&mt_stat); /* Found on Linux */ #ifdef MTIOCLRERR @@ -1654,7 +1704,7 @@ void DEVICE::clrerror(int func) mt_com.mt_op = MTIOCLRERR; mt_com.mt_count = 1; /* Clear any error condition on the tape */ - ioctl(fd, MTIOCTOP, (char *)&mt_com); + tape_ioctl(fd, MTIOCTOP, (char *)&mt_com); Dmsg0(200, "Did MTIOCLRERR\n"); } #endif @@ -1666,7 +1716,7 @@ void DEVICE::clrerror(int func) union mterrstat mt_errstat; Dmsg2(200, "Doing MTIOCERRSTAT errno=%d ERR=%s\n", dev_errno, strerror(dev_errno)); - ioctl(fd, MTIOCERRSTAT, (char *)&mt_errstat); + tape_ioctl(fd, MTIOCERRSTAT, (char *)&mt_errstat); } #endif @@ -1677,7 +1727,7 @@ void DEVICE::clrerror(int func) mt_com.mt_op = MTCSE; mt_com.mt_count = 1; /* Clear any error condition on the tape */ - ioctl(fd, MTIOCTOP, (char *)&mt_com); + tape_ioctl(fd, MTIOCTOP, (char *)&mt_com); Dmsg0(200, "Did MTCSE\n"); } #endif @@ -1693,7 +1743,11 @@ void DEVICE::close() offline(); } if (fd >= 0) { - ::close(fd); + if (is_tape()) { + tape_close(fd); + } else { + ::close(fd); + } } else { Dmsg2(100, "device %s already closed vol=%s\n", print_name(), VolHdr.VolumeName); @@ -2096,13 +2150,13 @@ bool double_dev_wait_time(DEVICE *dev) void set_os_device_parameters(DEVICE *dev) { -#ifdef HAVE_LINUX_OS +#if defined(HAVE_LINUX_OS) || defined(HAVE_WIN32) struct mtop mt_com; if (dev->min_block_size == dev->max_block_size && dev->min_block_size == 0) { /* variable block mode */ mt_com.mt_op = MTSETBLK; mt_com.mt_count = 0; - if (ioctl(dev->fd, MTIOCTOP, (char *)&mt_com) < 0) { + if (tape_ioctl(dev->fd, MTIOCTOP, (char *)&mt_com) < 0) { dev->clrerror(MTSETBLK); } mt_com.mt_op = MTSETDRVBUFFER; @@ -2113,7 +2167,7 @@ void set_os_device_parameters(DEVICE *dev) if (dev->has_cap(CAP_EOM)) { mt_com.mt_count |= MT_ST_FAST_MTEOM; } - if (ioctl(dev->fd, MTIOCTOP, (char *)&mt_com) < 0) { + if (tape_ioctl(dev->fd, MTIOCTOP, (char *)&mt_com) < 0) { dev->clrerror(MTSETBLK); } } @@ -2126,13 +2180,13 @@ void set_os_device_parameters(DEVICE *dev) dev->min_block_size == 0) { /* variable block mode */ mt_com.mt_op = MTSETBSIZ; mt_com.mt_count = 0; - if (ioctl(dev->fd, MTIOCTOP, (char *)&mt_com) < 0) { + if (tape_ioctl(dev->fd, MTIOCTOP, (char *)&mt_com) < 0) { dev->clrerror(MTSETBSIZ); } /* Get notified at logical end of tape */ mt_com.mt_op = MTEWARN; mt_com.mt_count = 1; - if (ioctl(dev->fd, MTIOCTOP, (char *)&mt_com) < 0) { + if (tape_ioctl(dev->fd, MTIOCTOP, (char *)&mt_com) < 0) { dev->clrerror(MTEWARN); } } @@ -2145,7 +2199,7 @@ void set_os_device_parameters(DEVICE *dev) dev->min_block_size == 0) { /* variable block mode */ mt_com.mt_op = MTSETBSIZ; mt_com.mt_count = 0; - if (ioctl(dev->fd, MTIOCTOP, (char *)&mt_com) < 0) { + if (tape_ioctl(dev->fd, MTIOCTOP, (char *)&mt_com) < 0) { dev->clrerror(MTSETBSIZ); } } @@ -2158,7 +2212,7 @@ void set_os_device_parameters(DEVICE *dev) dev->min_block_size == 0) { /* variable block mode */ mt_com.mt_op = MTSRSZ; mt_com.mt_count = 0; - if (ioctl(dev->fd, MTIOCTOP, (char *)&mt_com) < 0) { + if (tape_ioctl(dev->fd, MTIOCTOP, (char *)&mt_com) < 0) { dev->clrerror(MTSRSZ); } } @@ -2169,7 +2223,7 @@ void set_os_device_parameters(DEVICE *dev) static bool dev_get_os_pos(DEVICE *dev, struct mtget *mt_stat) { return dev->has_cap(CAP_MTIOCGET) && - ioctl(dev->fd, MTIOCGET, (char *)mt_stat) == 0 && + tape_ioctl(dev->fd, MTIOCGET, (char *)mt_stat) == 0 && mt_stat->mt_fileno >= 0; } diff --git a/bacula/src/stored/protos.h b/bacula/src/stored/protos.h index 421afd0871..1b92dc0e94 100644 --- a/bacula/src/stored/protos.h +++ b/bacula/src/stored/protos.h @@ -217,9 +217,9 @@ bool free_volume(DEVICE *dev); void free_unused_volume(DCR *dcr); void create_volume_list(); void free_volume_list(); -void list_volumes(BSOCK *user); +void list_volumes(void sendit(const char *msg, int len, void *sarg), void *arg); bool is_volume_in_use(DCR *dcr); -void send_drive_reserve_messages(JCR *jcr, BSOCK *user); +void send_drive_reserve_messages(JCR *jcr, void sendit(const char *msg, int len, void *sarg), void *arg); bool find_suitable_device_for_job(JCR *jcr, RCTX &rctx); int search_res_for_device(RCTX &rctx); void release_msgs(JCR *jcr); @@ -234,7 +234,7 @@ bool begin_attribute_spool (JCR *jcr); bool discard_attribute_spool (JCR *jcr); bool commit_attribute_spool (JCR *jcr); bool write_block_to_spool_file (DCR *dcr); -void list_spool_stats (BSOCK *bs); +void list_spool_stats (void sendit(const char *msg, int len, void *sarg), void *arg); /* From wait.c */ int wait_for_sysop(DCR *dcr); diff --git a/bacula/src/stored/reserve.c b/bacula/src/stored/reserve.c index d10c0c0427..dad24e65de 100644 --- a/bacula/src/stored/reserve.c +++ b/bacula/src/stored/reserve.c @@ -254,18 +254,27 @@ void free_unused_volume(DCR *dcr) /* * List Volumes -- this should be moved to status.c */ -void list_volumes(BSOCK *user) +void list_volumes(void sendit(const char *msg, int len, void *sarg), void *arg) { VOLRES *vol; + char *msg; + int len; + + msg = (char *)get_pool_memory(PM_MESSAGE); + P(vol_list_lock); for (vol=(VOLRES *)vol_list->first(); vol; vol=(VOLRES *)vol_list->next(vol)) { if (vol->dev) { - bnet_fsend(user, "%s on device %s\n", vol->vol_name, vol->dev->print_name()); + len = Mmsg(msg, "%s on device %s\n", vol->vol_name, vol->dev->print_name()); + sendit(msg, len, arg); } else { - bnet_fsend(user, "%s\n", vol->vol_name); + len = Mmsg(msg, "%s\n", vol->vol_name); + sendit(msg, len, arg); } } V(vol_list_lock); + + free_pool_memory(msg); } /* Create the Volume list */ @@ -1046,7 +1055,7 @@ static void queue_reserve_message(JCR *jcr) /* * Send any reservation messages queued for this jcr */ -void send_drive_reserve_messages(JCR *jcr, BSOCK *user) +void send_drive_reserve_messages(JCR *jcr, void sendit(const char *msg, int len, void *sarg), void *arg) { int i; alist *msgs; @@ -1061,7 +1070,8 @@ void send_drive_reserve_messages(JCR *jcr, BSOCK *user) for (i=msgs->size()-1; i >= 0; i--) { msg = (char *)msgs->get(i); if (msg) { - bnet_fsend(user, " %s", msg); + sendit(" ", 3, arg); + sendit(msg, strlen(msg), arg); } else { break; } diff --git a/bacula/src/stored/spool.c b/bacula/src/stored/spool.c index 5923279c02..e69fec331f 100644 --- a/bacula/src/stored/spool.c +++ b/bacula/src/stored/spool.c @@ -62,21 +62,31 @@ enum { RB_OK }; -void list_spool_stats(BSOCK *bs) +void list_spool_stats(void sendit(const char *msg, int len, void *sarg), void *arg) { - char ed1[30], ed2[30]; + char *msg, ed1[30], ed2[30]; + int len; + + msg = (char *)get_pool_memory(PM_MESSAGE); + if (spool_stats.data_jobs || spool_stats.max_data_size) { - bnet_fsend(bs, _("Data spooling: %u active jobs, %s bytes; %u total jobs, %s max bytes/job.\n"), + len = Mmsg(msg, _("Data spooling: %u active jobs, %s bytes; %u total jobs, %s max bytes/job.\n"), spool_stats.data_jobs, edit_uint64_with_commas(spool_stats.data_size, ed1), spool_stats.total_data_jobs, edit_uint64_with_commas(spool_stats.max_data_size, ed2)); + + sendit(msg, len, arg); } if (spool_stats.attr_jobs || spool_stats.max_attr_size) { - bnet_fsend(bs, _("Attr spooling: %u active jobs, %s bytes; %u total jobs, %s max bytes.\n"), + len = Mmsg(msg, _("Attr spooling: %u active jobs, %s bytes; %u total jobs, %s max bytes.\n"), spool_stats.attr_jobs, edit_uint64_with_commas(spool_stats.attr_size, ed1), spool_stats.total_attr_jobs, edit_uint64_with_commas(spool_stats.max_attr_size, ed2)); + + sendit(msg, len, arg); } + + free_pool_memory(msg); } bool begin_data_spool(DCR *dcr) diff --git a/bacula/src/stored/status.c b/bacula/src/stored/status.c index 404f47ae02..d483d41f45 100644 --- a/bacula/src/stored/status.c +++ b/bacula/src/stored/status.c @@ -39,69 +39,82 @@ static char DotStatusJob[] = "JobId=%d JobStatus=%c JobErrors=%d\n"; /* Forward referenced functions */ -static void send_blocked_status(JCR *jcr, DEVICE *dev); -static void list_terminated_jobs(void *arg); -static void list_running_jobs(BSOCK *user); -static void list_jobs_waiting_on_reservation(BSOCK *user); -static void sendit(const char *msg, int len, void *arg); -static const char *level_to_str(int level); +static void send_blocked_status(DEVICE *dev, void sendit(const char *msg, int len, void *sarg), void *arg); +static void list_terminated_jobs(void sendit(const char *msg, int len, void *sarg), void *arg); +static void list_running_jobs(void sendit(const char *msg, int len, void *sarg), void *arg); +static void list_jobs_waiting_on_reservation(void sendit(const char *msg, int len, void *sarg), void *arg); +#if defined(HAVE_WIN32) +static void win32_sendit(const char *msg, int len, void *arg); +#endif +static const char *level_to_str(int level); /* * Status command from Director */ -bool status_cmd(JCR *jcr) +bool do_status(void sendit(const char *msg, int len, void *sarg), void *arg) { DEVRES *device; AUTOCHANGER *changer; DEVICE *dev; - BSOCK *user = jcr->dir_bsock; char dt[MAX_TIME_LENGTH]; - char b1[35], b2[35], b3[35], b4[35]; + char *msg, b1[35], b2[35], b3[35], b4[35]; int bpb; + int len; + + msg = (char *)get_pool_memory(PM_MESSAGE); + + len = Mmsg(msg, _("%s Version: %s (%s) %s %s %s\n"), + my_name, VERSION, BDATE, HOST_OS, DISTNAME, DISTVER); + sendit(msg, len, arg); - bnet_fsend(user, _("\n%s Version: %s (%s) %s %s %s\n"), my_name, - VERSION, BDATE, HOST_OS, DISTNAME, DISTVER); bstrftime_nc(dt, sizeof(dt), daemon_start_time); - if (num_jobs_run == 1) { - bnet_fsend(user, _("Daemon started %s, 1 Job run since started.\n"), dt); - } - else { - bnet_fsend(user, _("Daemon started %s, %d Jobs run since started.\n"), dt, num_jobs_run); - } - bnet_fsend(user, _(" Heap: bytes=%s max_bytes=%s bufs=%s max_bufs=%s\n"), + + + len = Mmsg(msg, _("Daemon started %s, %d Job%s run since started.\n"), + dt, num_jobs_run, num_jobs_run == 1 ? "" : "s"); + sendit(msg, len, arg); + + len = Mmsg(msg, _(" Heap: bytes=%s max_bytes=%s bufs=%s max_bufs=%s\n"), edit_uint64_with_commas(sm_bytes, b1), edit_uint64_with_commas(sm_max_bytes, b2), edit_uint64_with_commas(sm_buffers, b3), edit_uint64_with_commas(sm_max_buffers, b4)); + sendit(msg, len, arg); /* * List running jobs */ - list_running_jobs(user); + list_running_jobs(sendit, arg); /* * List jobs stuck in reservation system */ - list_jobs_waiting_on_reservation(user); + list_jobs_waiting_on_reservation(sendit, arg); /* * List terminated jobs */ - list_terminated_jobs(user); + list_terminated_jobs(sendit, arg); /* * List devices */ - bnet_fsend(user, _("\nDevice status:\n")); + len = Mmsg(msg, _("\nDevice status:\n")); + sendit(msg, len, arg); + foreach_res(changer, R_AUTOCHANGER) { - bnet_fsend(user, _("Autochanger \"%s\" with devices:\n"), + len = Mmsg(msg, _("Autochanger \"%s\" with devices:\n"), changer->hdr.name); + sendit(msg, len, arg); + foreach_alist(device, changer->device) { if (device->dev) { - bnet_fsend(user, " %s\n", device->dev->print_name()); + len = Mmsg(msg, " %s\n", device->dev->print_name()); + sendit(msg, len, arg); } else { - bnet_fsend(user, " %s\n", device->hdr.name); + len = Mmsg(msg, " %s\n", device->hdr.name); + sendit(msg, len, arg); } } } @@ -109,24 +122,27 @@ bool status_cmd(JCR *jcr) dev = device->dev; if (dev && dev->is_open()) { if (dev->is_labeled()) { - bnet_fsend(user, _("Device %s is mounted with Volume=\"%s\" Pool=\"%s\"\n"), + len = Mmsg(msg, _("Device %s is mounted with Volume=\"%s\" Pool=\"%s\"\n"), dev->print_name(), dev->VolHdr.VolumeName, dev->pool_name[0]?dev->pool_name:"*unknown*"); + sendit(msg, len, arg); } else { - bnet_fsend(user, _("Device %s open but no Bacula volume is mounted.\n"), + len = Mmsg(msg, _("Device %s open but no Bacula volume is mounted.\n"), dev->print_name()); + sendit(msg, len, arg); } - send_blocked_status(jcr, dev); + send_blocked_status(dev, sendit, arg); if (dev->can_append()) { bpb = dev->VolCatInfo.VolCatBlocks; if (bpb <= 0) { bpb = 1; } bpb = dev->VolCatInfo.VolCatBytes / bpb; - bnet_fsend(user, _(" Total Bytes=%s Blocks=%s Bytes/block=%s\n"), + len = Mmsg(msg, _(" Total Bytes=%s Blocks=%s Bytes/block=%s\n"), edit_uint64_with_commas(dev->VolCatInfo.VolCatBytes, b1), edit_uint64_with_commas(dev->VolCatInfo.VolCatBlocks, b2), edit_uint64_with_commas(bpb, b3)); + sendit(msg, len, arg); } else { /* reading */ bpb = dev->VolCatInfo.VolCatReads; if (bpb <= 0) { @@ -137,28 +153,35 @@ bool status_cmd(JCR *jcr) } else { bpb = 0; } - bnet_fsend(user, _(" Total Bytes Read=%s Blocks Read=%s Bytes/block=%s\n"), + len = Mmsg(msg, _(" Total Bytes Read=%s Blocks Read=%s Bytes/block=%s\n"), edit_uint64_with_commas(dev->VolCatInfo.VolCatRBytes, b1), edit_uint64_with_commas(dev->VolCatInfo.VolCatReads, b2), edit_uint64_with_commas(bpb, b3)); + sendit(msg, len, arg); } - bnet_fsend(user, _(" Positioned at File=%s Block=%s\n"), + len = Mmsg(msg, _(" Positioned at File=%s Block=%s\n"), edit_uint64_with_commas(dev->file, b1), edit_uint64_with_commas(dev->block_num, b2)); + sendit(msg, len, arg); } else { if (dev) { - bnet_fsend(user, _("Device %s is not open.\n"), dev->print_name()); - } else { - bnet_fsend(user, _("Device \"%s\" is not open or does not exist.\n"), device->hdr.name); + len = Mmsg(msg, _("Device %s is not open.\n"), dev->print_name()); + sendit(msg, len, arg); + } else { + len = Mmsg(msg, _("Device \"%s\" is not open or does not exist.\n"), device->hdr.name); + sendit(msg, len, arg); } - send_blocked_status(jcr, dev); + send_blocked_status(dev, sendit, arg); } } - bnet_fsend(user, _("====\n\n")); - bnet_fsend(user, _("In Use Volume status:\n")); - list_volumes(user); - bnet_fsend(user, _("====\n\n")); + len = Mmsg(msg, _("====\n\n")); + sendit(msg, len, arg); + len = Mmsg(msg, _("In Use Volume status:\n")); + sendit(msg, len, arg); + list_volumes(sendit, arg); + len = Mmsg(msg, _("====\n\n")); + sendit(msg, len, arg); #ifdef xxx if (debug_level > 10) { @@ -168,41 +191,64 @@ bool status_cmd(JCR *jcr) } #endif - list_spool_stats(user); + list_spool_stats(sendit, arg); - bnet_sig(user, BNET_EOD); + free_pool_memory(msg); return true; } -static void send_blocked_status(JCR *jcr, DEVICE *dev) +static void send_blocked_status(DEVICE *dev, void sendit(const char *msg, int len, void *sarg), void *arg) { - BSOCK *user = jcr->dir_bsock; - DCR *dcr = jcr->dcr; + char *msg; + int len; + + msg = (char *)get_pool_memory(PM_MESSAGE); if (!dev) { - bnet_fsend(user, _("No DEVICE structure.\n\n")); + len = Mmsg(msg, _("No DEVICE structure.\n\n")); + sendit(msg, len, arg); return; } switch (dev->dev_blocked) { case BST_UNMOUNTED: - bnet_fsend(user, _(" Device is BLOCKED. User unmounted.\n")); + len = Mmsg(msg, _(" Device is BLOCKED. User unmounted.\n")); + sendit(msg, len, arg); break; case BST_UNMOUNTED_WAITING_FOR_SYSOP: - bnet_fsend(user, _(" Device is BLOCKED. User unmounted during wait for media/mount.\n")); + len = Mmsg(msg, _(" Device is BLOCKED. User unmounted during wait for media/mount.\n")); + sendit(msg, len, arg); break; case BST_WAITING_FOR_SYSOP: - if (jcr->JobStatus == JS_WaitMount) { - bnet_fsend(user, _(" Device is BLOCKED waiting for mount of volume \"%s\".\n"), - dcr->VolumeName); - } else { - bnet_fsend(user, _(" Device is BLOCKED waiting for media.\n")); + { + dlist *dcrs = dev->attached_dcrs; + bool found_jcr = false; + + if (dcrs != NULL) { + DCR *dcr; + + for (dcr = (DCR *)dcrs->first(); dcr != NULL; dcr = (DCR *)dcrs->next(dcr)) { + if (dcr->jcr->JobStatus == JS_WaitMount) { + len = Mmsg(msg, _(" Device is BLOCKED waiting for mount of volume \"%s\".\n"), + dcr->VolumeName); + sendit(msg, len, arg); + found_jcr = true; + } + } + } + + if (!found_jcr) { + len = Mmsg(msg, _(" Device is BLOCKED waiting for media.\n")); + sendit(msg, len, arg); + } } break; case BST_DOING_ACQUIRE: - bnet_fsend(user, _(" Device is being initialized.\n")); + len = Mmsg(msg, _(" Device is being initialized.\n")); + sendit(msg, len, arg); break; case BST_WRITING_LABEL: - bnet_fsend(user, _(" Device is blocked labeling a Volume.\n")); + len = Mmsg(msg, _(" Device is blocked labeling a Volume.\n")); + sendit(msg, len, arg); break; default: break; @@ -210,68 +256,91 @@ static void send_blocked_status(JCR *jcr, DEVICE *dev) /* Send autochanger slot status */ if (dev->is_autochanger()) { if (dev->Slot) { - bnet_fsend(user, _(" Slot %d is loaded in drive %d.\n"), + len = Mmsg(msg, _(" Slot %d is loaded in drive %d.\n"), dev->Slot, dev->drive_index); + sendit(msg, len, arg); } else { - bnet_fsend(user, _(" Drive %d is not loaded.\n"), dev->drive_index); + len = Mmsg(msg, _(" Drive %d is not loaded.\n"), dev->drive_index); + sendit(msg, len, arg); } } if (debug_level > 1) { - bnet_fsend(user, _("Configured device capabilities:\n")); - bnet_fsend(user, "%sEOF ", dev->capabilities & CAP_EOF ? "" : "!"); - bnet_fsend(user, "%sBSR ", dev->capabilities & CAP_BSR ? "" : "!"); - bnet_fsend(user, "%sBSF ", dev->capabilities & CAP_BSF ? "" : "!"); - bnet_fsend(user, "%sFSR ", dev->capabilities & CAP_FSR ? "" : "!"); - bnet_fsend(user, "%sFSF ", dev->capabilities & CAP_FSF ? "" : "!"); - bnet_fsend(user, "%sEOM ", dev->capabilities & CAP_EOM ? "" : "!"); - bnet_fsend(user, "%sREM ", dev->capabilities & CAP_REM ? "" : "!"); - bnet_fsend(user, "%sRACCESS ", dev->capabilities & CAP_RACCESS ? "" : "!"); - bnet_fsend(user, "%sAUTOMOUNT ", dev->capabilities & CAP_AUTOMOUNT ? "" : "!"); - bnet_fsend(user, "%sLABEL ", dev->capabilities & CAP_LABEL ? "" : "!"); - bnet_fsend(user, "%sANONVOLS ", dev->capabilities & CAP_ANONVOLS ? "" : "!"); - bnet_fsend(user, "%sALWAYSOPEN ", dev->capabilities & CAP_ALWAYSOPEN ? "" : "!"); - bnet_fsend(user, "\n"); - - bnet_fsend(user, _("Device state:\n")); - bnet_fsend(user, "%sOPENED ", dev->is_open() ? "" : "!"); - bnet_fsend(user, "%sTAPE ", dev->is_tape() ? "" : "!"); - bnet_fsend(user, "%sLABEL ", dev->is_labeled() ? "" : "!"); - bnet_fsend(user, "%sMALLOC ", dev->state & ST_MALLOC ? "" : "!"); - bnet_fsend(user, "%sAPPEND ", dev->can_append() ? "" : "!"); - bnet_fsend(user, "%sREAD ", dev->can_read() ? "" : "!"); - bnet_fsend(user, "%sEOT ", dev->at_eot() ? "" : "!"); - bnet_fsend(user, "%sWEOT ", dev->state & ST_WEOT ? "" : "!"); - bnet_fsend(user, "%sEOF ", dev->at_eof() ? "" : "!"); - bnet_fsend(user, "%sNEXTVOL ", dev->state & ST_NEXTVOL ? "" : "!"); - bnet_fsend(user, "%sSHORT ", dev->state & ST_SHORT ? "" : "!"); - bnet_fsend(user, "%sMOUNTED ", dev->state & ST_MOUNTED ? "" : "!"); - bnet_fsend(user, "\n"); - bnet_fsend(user, _("num_writers=%d JobStatus=%c block=%d\n\n"), dev->num_writers, - jcr->JobStatus, dev->dev_blocked); - - bnet_fsend(user, _("Device parameters:\n")); - bnet_fsend(user, _("Archive name: %s Device name: %s\n"), dev->archive_name(), + len = Mmsg(msg, _("Configured device capabilities:\n")); + sendit(msg, len, arg); + + len = Mmsg(msg, "%sEOF %sBSR %sBSF %sFSR %sFSF %sEOM %sREM %sRACCESS %sAUTOMOUNT %sLABEL %sANONVOLS %sALWAYSOPEN\n", + dev->capabilities & CAP_EOF ? "" : "!", + dev->capabilities & CAP_BSR ? "" : "!", + dev->capabilities & CAP_BSF ? "" : "!", + dev->capabilities & CAP_FSR ? "" : "!", + dev->capabilities & CAP_FSF ? "" : "!", + dev->capabilities & CAP_EOM ? "" : "!", + dev->capabilities & CAP_REM ? "" : "!", + dev->capabilities & CAP_RACCESS ? "" : "!", + dev->capabilities & CAP_AUTOMOUNT ? "" : "!", + dev->capabilities & CAP_LABEL ? "" : "!", + dev->capabilities & CAP_ANONVOLS ? "" : "!", + dev->capabilities & CAP_ALWAYSOPEN ? "" : "!"); + sendit(msg, len, arg); + + len = Mmsg(msg, _("Device state:\n")); + sendit(msg, len, arg); + + len = Mmsg(msg, "%sOPENED %sTAPE %sLABEL %sMALLOC %sAPPEND %sREAD %sEOT %sWEOT %sEOF %sNEXTVOL %sSHORT %sMOUNTED\n", + dev->is_open() ? "" : "!", + dev->is_tape() ? "" : "!", + dev->is_labeled() ? "" : "!", + dev->state & ST_MALLOC ? "" : "!", + dev->can_append() ? "" : "!", + dev->can_read() ? "" : "!", + dev->at_eot() ? "" : "!", + dev->state & ST_WEOT ? "" : "!", + dev->at_eof() ? "" : "!", + dev->state & ST_NEXTVOL ? "" : "!", + dev->state & ST_SHORT ? "" : "!", + dev->state & ST_MOUNTED ? "" : "!"); + sendit(msg, len, arg); + + len = Mmsg(msg, _("num_writers=%d block=%d\n\n"), dev->num_writers, dev->dev_blocked); + sendit(msg, len, arg); + + len = Mmsg(msg, _("Device parameters:\n")); + sendit(msg, len, arg); + + len = Mmsg(msg, _("Archive name: %s Device name: %s\n"), dev->archive_name(), dev->name()); - bnet_fsend(user, _("File=%u block=%u\n"), dev->file, dev->block_num); - bnet_fsend(user, _("Min block=%u Max block=%u\n"), dev->min_block_size, dev->max_block_size); + sendit(msg, len, arg); + + len = Mmsg(msg, _("File=%u block=%u\n"), dev->file, dev->block_num); + sendit(msg, len, arg); + + len = Mmsg(msg, _("Min block=%u Max block=%u\n"), dev->min_block_size, dev->max_block_size); + sendit(msg, len, arg); } + free_pool_memory(msg); } -static void list_running_jobs(BSOCK *user) +static void list_running_jobs(void sendit(const char *msg, int len, void *sarg), void *arg) { bool found = false; int bps, sec; JCR *jcr; DCR *dcr, *rdcr; char JobName[MAX_NAME_LENGTH]; - char b1[30], b2[30], b3[30]; + char *msg, b1[30], b2[30], b3[30]; + int len; + + msg = (char *)get_pool_memory(PM_MESSAGE); + + len = Mmsg(msg, _("\nRunning Jobs:\n")); + sendit(msg, len, arg); - bnet_fsend(user, _("\nRunning Jobs:\n")); foreach_jcr(jcr) { if (jcr->JobStatus == JS_WaitFD) { - bnet_fsend(user, _("%s Job %s waiting for Client connection.\n"), + len = Mmsg(msg, _("%s Job %s waiting for Client connection.\n"), job_type_to_str(jcr->JobType), jcr->Job); + sendit(msg, len, arg); } dcr = jcr->dcr; rdcr = jcr->read_dcr; @@ -285,7 +354,7 @@ static void list_running_jobs(BSOCK *user) } } if (rdcr && rdcr->device) { - bnet_fsend(user, _("Reading: %s %s job %s JobId=%d Volume=\"%s\"\n" + len = Mmsg(msg, _("Reading: %s %s job %s JobId=%d Volume=\"%s\"\n" " pool=\"%s\" device=\"%s\"\n"), job_level_to_str(jcr->JobLevel), job_type_to_str(jcr->JobType), @@ -295,9 +364,10 @@ static void list_running_jobs(BSOCK *user) rdcr->pool_name, rdcr->dev?rdcr->dev->print_name(): rdcr->device->device_name); + sendit(msg, len, arg); } if (dcr && dcr->device) { - bnet_fsend(user, _("Writing: %s %s job %s JobId=%d Volume=\"%s\"\n" + len = Mmsg(msg, _("Writing: %s %s job %s JobId=%d Volume=\"%s\"\n" " pool=\"%s\" device=\"%s\"\n"), job_level_to_str(jcr->JobLevel), job_type_to_str(jcr->JobType), @@ -307,27 +377,29 @@ static void list_running_jobs(BSOCK *user) dcr->pool_name, dcr->dev?dcr->dev->print_name(): dcr->device->device_name); - bnet_fsend(user, _(" spooling=%d despooling=%d despool_wait=%d\n"), - dcr->spooling, dcr->despooling, dcr->despool_wait); + sendit(msg, len, arg); } sec = time(NULL) - jcr->run_time; if (sec <= 0) { sec = 1; } bps = jcr->JobBytes / sec; - bnet_fsend(user, _(" Files=%s Bytes=%s Bytes/sec=%s\n"), + len = Mmsg(msg, _(" Files=%s Bytes=%s Bytes/sec=%s\n"), edit_uint64_with_commas(jcr->JobFiles, b1), edit_uint64_with_commas(jcr->JobBytes, b2), edit_uint64_with_commas(bps, b3)); + sendit(msg, len, arg); found = true; #ifdef DEBUG if (jcr->file_bsock) { - bnet_fsend(user, _(" FDReadSeqNo=%s in_msg=%u out_msg=%d fd=%d\n"), + len = Mmsg(msg, _(" FDReadSeqNo=%s in_msg=%u out_msg=%d fd=%d\n"), edit_uint64_with_commas(jcr->file_bsock->read_seqno, b1), jcr->file_bsock->in_msg_no, jcr->file_bsock->out_msg_no, jcr->file_bsock->fd); + sendit(msg, len, arg); } else { - bnet_fsend(user, _(" FDSocket closed\n")); + len = Mmsg(msg, _(" FDSocket closed\n")); + sendit(msg, len, arg); } #endif } @@ -335,29 +407,37 @@ static void list_running_jobs(BSOCK *user) endeach_jcr(jcr); if (!found) { - bnet_fsend(user, _("No Jobs running.\n")); + len = Mmsg(msg, _("No Jobs running.\n")); + sendit(msg, len, arg); } - bnet_fsend(user, _("====\n")); + len = Mmsg(msg, _("====\n")); + sendit(msg, len, arg); + + free_pool_memory(msg); } -static void list_jobs_waiting_on_reservation(BSOCK *user) +static void list_jobs_waiting_on_reservation(void sendit(const char *msg, int len, void *sarg), void *arg) { JCR *jcr; + char *msg; + + msg = _("\nJobs waiting to reserve a drive:\n"); + sendit(msg, strlen(msg), arg); - bnet_fsend(user, _("\nJobs waiting to reserve a drive:\n")); foreach_jcr(jcr) { if (!jcr->reserve_msgs) { continue; } - send_drive_reserve_messages(jcr, user); + send_drive_reserve_messages(jcr, sendit, arg); } endeach_jcr(jcr); - bnet_fsend(user, _("====\n")); + msg = _("====\n"); + sendit(msg, strlen(msg), arg); } -static void list_terminated_jobs(void *arg) +static void list_terminated_jobs(void sendit(const char *msg, int len, void *sarg), void *arg) { char dt[MAX_TIME_LENGTH], b1[30], b2[30]; char level[10]; @@ -484,7 +564,7 @@ static const char *level_to_str(int level) /* * Send to Director */ -static void sendit(const char *msg, int len, void *arg) +static void bsock_sendit(const char *msg, int len, void *arg) { BSOCK *user = (BSOCK *)arg; @@ -493,6 +573,20 @@ static void sendit(const char *msg, int len, void *arg) bnet_send(user); } +/* + * Status command from Director + */ +bool status_cmd(JCR *jcr) +{ + BSOCK *user = jcr->dir_bsock; + + bnet_fsend(user, "\n"); + do_status(bsock_sendit, (void *)user); + + bnet_sig(user, BNET_EOD); + return 1; +} + /* * .status command from Director */ @@ -536,3 +630,94 @@ bool qstatus_cmd(JCR *jcr) bnet_sig(dir, BNET_EOD); return true; } + +#if defined(HAVE_WIN32) +int bacstat = 0; + +struct s_win32_arg { + HWND hwnd; + int idlist; +}; + +/* + * Put message in Window List Box + */ +static void win32_sendit(const char *msg, int len, void *marg) +{ + struct s_win32_arg *arg = (struct s_win32_arg *)marg; + + if (len > 0 && msg[len-1] == '\n') { + // when compiling with visual studio some strings are read-only + // and cause access violations. So we creat a tmp copy. + char *_msg = (char *)alloca(len); + bstrncpy(_msg, msg, len); + msg = _msg; + } + SendDlgItemMessage(arg->hwnd, arg->idlist, LB_ADDSTRING, 0, (LONG)msg); + +} + +void FillStatusBox(HWND hwnd, int idlist) +{ + struct s_win32_arg arg; + + arg.hwnd = hwnd; + arg.idlist = idlist; + + /* Empty box */ + for ( ; SendDlgItemMessage(hwnd, idlist, LB_DELETESTRING, 0, (LONG)0) > 0; ) + { } + do_status(win32_sendit, (void *)&arg); +} + +char *bac_status(char *buf, int buf_len) +{ + JCR *njcr; + const char *termstat = _("Bacula Idle"); + struct s_last_job *job; + int stat = 0; /* Idle */ + + if (!last_jobs) { + goto done; + } + Dmsg0(1000, "Begin bac_status jcr loop.\n"); + foreach_jcr(njcr) { + if (njcr->JobId != 0) { + stat = JS_Running; + termstat = _("Bacula Running"); + break; + } + } + endeach_jcr(njcr); + + if (stat != 0) { + goto done; + } + if (last_jobs->size() > 0) { + job = (struct s_last_job *)last_jobs->last(); + stat = job->JobStatus; + switch (job->JobStatus) { + case JS_Canceled: + termstat = _("Last Job Canceled"); + break; + case JS_ErrorTerminated: + case JS_FatalError: + termstat = _("Last Job Failed"); + break; + default: + if (job->Errors) { + termstat = _("Last Job had Warnings"); + } + break; + } + } + Dmsg0(1000, "End bac_status jcr loop.\n"); +done: + bacstat = stat; + if (buf) { + bstrncpy(buf, termstat, buf_len); + } + return buf; +} + +#endif /* HAVE_WIN32 */ diff --git a/bacula/src/stored/stored.c b/bacula/src/stored/stored.c index 0889a761f7..b72b9208fa 100644 --- a/bacula/src/stored/stored.c +++ b/bacula/src/stored/stored.c @@ -84,6 +84,10 @@ static void usage() * Main Bacula Unix Storage Daemon * */ +#if defined(HAVE_WIN32) +#define main BaculaMain +#endif + int main (int argc, char *argv[]) { int ch; diff --git a/bacula/src/stored/stored.h b/bacula/src/stored/stored.h index 7ae3dffe94..34569fff88 100644 --- a/bacula/src/stored/stored.h +++ b/bacula/src/stored/stored.h @@ -29,7 +29,7 @@ # ifdef HAVE_SYS_MTIO_H # include # else -# ifdef HAVE_SYS_TAPE +# ifdef HAVE_SYS_TAPE_H # include # endif # endif diff --git a/bacula/src/tools/Makefile.in b/bacula/src/tools/Makefile.in index e1677fcc7a..50b7f9612b 100644 --- a/bacula/src/tools/Makefile.in +++ b/bacula/src/tools/Makefile.in @@ -30,7 +30,7 @@ GETTEXT_LIBS = @LIBINTL@ OPENSSL_INC = @OPENSSL_INC@ OPENSSL_LIBS = @OPENSSL_LIBS@ -FINDOBJS = testfind.o +FINDOBJS = testfind.o dird_conf.o inc_conf.o run_conf.o # these are the objects that are changed by the .configure process EXTRAOBJS = @OBJLIST@ @@ -71,6 +71,15 @@ fstype: fstype.o ../lib/libbac.a ../findlib/libfind.a drivetype: drivetype.o ../lib/libbac.a ../findlib/libfind.a $(CXX) $(LDFLAGS) -L../lib -L../findlib -o $@ drivetype.o -lfind -lbac -lm $(DLIB) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) +dird_conf.o: ../dird/dird_conf.c + $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< + +run_conf.o: ../dird/run_conf.c + $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< + +inc_conf.o: ../dird/inc_conf.c + $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< + testfind: ../findlib/libfind.a ../lib/libbac.a $(FINDOBJS) $(CXX) -g $(LDFLAGS) -L. -L../lib -L../findlib -o $@ $(FINDOBJS) \ $(DLIB) -lfind -lbac -lm $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) diff --git a/bacula/src/tools/testfind.c b/bacula/src/tools/testfind.c index fe4c21a2e6..3b7876912f 100644 --- a/bacula/src/tools/testfind.c +++ b/bacula/src/tools/testfind.c @@ -17,13 +17,12 @@ */ #include "bacula.h" +#include "dird/dird.h" #include "findlib/find.h" #if defined(HAVE_WIN32) -int win32_client = 1; -#else -int win32_client = 0; +#define isatty(fd) (fd==0) #endif /* Dummy functions */ @@ -42,6 +41,8 @@ static JCR *jcr; static int print_file(FF_PKT *ff, void *pkt, bool); static void count_files(FF_PKT *ff); +static bool copy_fileset(FF_PKT *ff, JCR *jcr); +static void set_options(findFOPTS *fo, const char *opts); static void usage() { @@ -50,9 +51,8 @@ static void usage() "Usage: testfind [-d debug_level] [-] [pattern1 ...]\n" " -a print extended attributes (Win32 debug)\n" " -dnn set debug level to nn\n" -" -e specify file of exclude patterns\n" -" -i specify file of include patterns\n" -" - read pattern(s) from stdin\n" +" -c specify config file containing FileSet resources\n" +" -f specify which FileSet to use\n" " -? print this message.\n" "\n" "Patterns are used for file inclusion -- normally directories.\n" @@ -71,22 +71,26 @@ int main (int argc, char *const *argv) { FF_PKT *ff; - char name[1000]; - int i, ch, hard_links; - char *inc = NULL; - char *exc = NULL; - FILE *fd; + char *configfile = "bacula-dir.conf"; + char *fileset_name = "Windows-Full-Set"; + int ch, hard_links; + + OSDependentInit(); setlocale(LC_ALL, ""); bindtextdomain("bacula", LOCALEDIR); textdomain("bacula"); - while ((ch = getopt(argc, argv, "ad:e:i:?")) != -1) { + while ((ch = getopt(argc, argv, "ac:d:f:?")) != -1) { switch (ch) { case 'a': /* print extended attributes *debug* */ attrs = 1; break; + case 'c': /* set debug level */ + configfile = optarg; + break; + case 'd': /* set debug level */ debug_level = atoi(optarg); if (debug_level <= 0) { @@ -94,12 +98,8 @@ main (int argc, char *const *argv) } break; - case 'e': /* exclude patterns */ - exc = optarg; - break; - - case 'i': /* include patterns */ - inc = optarg; + case 'f': /* exclude patterns */ + fileset_name = optarg; break; case '?': @@ -108,56 +108,105 @@ main (int argc, char *const *argv) } } + argc -= optind; argv += optind; - jcr = new_jcr(sizeof(JCR), NULL); + parse_config(configfile); - ff = init_find_files(); - if (argc == 0 && !inc) { - add_fname_to_include_list(ff, 0, "/"); /* default to / */ - } else { - for (i=0; i < argc; i++) { - if (strcmp(argv[i], "-") == 0) { - while (fgets(name, sizeof(name)-1, stdin)) { - strip_trailing_junk(name); - add_fname_to_include_list(ff, 0, name); - } - continue; - } - add_fname_to_include_list(ff, 0, argv[i]); - } + MSGS *msg; + + foreach_res(msg, R_MSGS) + { + init_msg(NULL, msg); } - if (inc) { - fd = fopen(inc, "r"); - if (!fd) { - printf(_("Could not open include file: %s\n"), inc); - exit(1); - } - while (fgets(name, sizeof(name)-1, fd)) { - strip_trailing_junk(name); - add_fname_to_include_list(ff, 0, name); + + jcr = new_jcr(sizeof(JCR), NULL); + jcr->fileset = (FILESET *)GetResWithName(R_FILESET, fileset_name); + + if (jcr->fileset == NULL) { + fprintf(stderr, "%s: Fileset not found\n", fileset_name); + + FILESET *var; + + fprintf(stderr, "Valid FileSets:\n"); + + foreach_res(var, R_FILESET) { + fprintf(stderr, " %s\n", var->hdr.name); } - fclose(fd); + + exit(1); } - if (exc) { - fd = fopen(exc, "r"); - if (!fd) { - printf(_("Could not open exclude file: %s\n"), exc); - exit(1); + ff = init_find_files(); + + copy_fileset(ff, jcr); + + find_files(jcr, ff, print_file, NULL); + + free_jcr(jcr); + free_config_resources(); + term_last_jobs_list(); + + /* Clean up fileset */ + findFILESET *fileset = ff->fileset; + + if (fileset) { + int i, j, k; + /* Delete FileSet Include lists */ + for (i=0; iinclude_list.size(); i++) { + findINCEXE *incexe = (findINCEXE *)fileset->include_list.get(i); + for (j=0; jopts_list.size(); j++) { + findFOPTS *fo = (findFOPTS *)incexe->opts_list.get(j); + for (k=0; kregex.size(); k++) { + regfree((regex_t *)fo->regex.get(k)); + } + fo->regex.destroy(); + fo->regexdir.destroy(); + fo->regexfile.destroy(); + fo->wild.destroy(); + fo->wilddir.destroy(); + fo->wildfile.destroy(); + fo->wildbase.destroy(); + fo->fstype.destroy(); + fo->drivetype.destroy(); + if (fo->reader) { + free(fo->reader); + } + if (fo->writer) { + free(fo->writer); + } + } + incexe->opts_list.destroy(); + incexe->name_list.destroy(); } - while (fgets(name, sizeof(name)-1, fd)) { - strip_trailing_junk(name); - add_fname_to_exclude_list(ff, name); + fileset->include_list.destroy(); + + /* Delete FileSet Exclude lists */ + for (i=0; iexclude_list.size(); i++) { + findINCEXE *incexe = (findINCEXE *)fileset->exclude_list.get(i); + for (j=0; jopts_list.size(); j++) { + findFOPTS *fo = (findFOPTS *)incexe->opts_list.get(j); + fo->regex.destroy(); + fo->regexdir.destroy(); + fo->regexfile.destroy(); + fo->wild.destroy(); + fo->wilddir.destroy(); + fo->wildfile.destroy(); + fo->wildbase.destroy(); + fo->fstype.destroy(); + fo->drivetype.destroy(); + } + incexe->opts_list.destroy(); + incexe->name_list.destroy(); } - fclose(fd); + fileset->exclude_list.destroy(); + free(fileset); } - match_files(jcr, ff, print_file, NULL); - term_include_exclude_files(ff); + ff->fileset = NULL; hard_links = term_find_files(ff); - printf(_("" + printf(_("\n" "Total files : %d\n" "Max file length: %d\n" "Max path length: %d\n" @@ -167,10 +216,11 @@ main (int argc, char *const *argv) num_files, max_file_len, max_path_len, trunc_fname, trunc_path, hard_links); - free_jcr(jcr); - close_memory_pool(); - sm_dump(false); - exit(0); + term_msg(); + + close_memory_pool(); + sm_dump(false); + exit(0); } static int print_file(FF_PKT *ff, void *pkt, bool top_level) @@ -213,6 +263,7 @@ static int print_file(FF_PKT *ff, void *pkt, bool top_level) case FT_NORECURSE: case FT_NOFSCHG: case FT_INVALIDFS: + case FT_INVALIDDT: case FT_DIREND: if (debug_level) { char errmsg[100] = ""; @@ -222,6 +273,8 @@ static int print_file(FF_PKT *ff, void *pkt, bool top_level) bstrncpy(errmsg, _("\t[will not descend: file system change not allowed]"), sizeof(errmsg)); } else if (ff->type == FT_INVALIDFS) { bstrncpy(errmsg, _("\t[will not descend: disallowed file system]"), sizeof(errmsg)); + } else if (ff->type == FT_INVALIDDT) { + bstrncpy(errmsg, _("\t[will not descend: disallowed drive type]"), sizeof(errmsg)); } printf("%s%s%s\n", (debug_level > 1 ? "Dir: " : ""), ff->fname, errmsg); } @@ -341,3 +394,230 @@ static void count_files(FF_PKT *ar) } bool python_set_prog(JCR*, char const*) { return false; } + +static bool copy_fileset(FF_PKT *ff, JCR *jcr) +{ + FILESET *jcr_fileset = jcr->fileset; + int num; + bool include = true; + + findFILESET *fileset; + findFOPTS *current_opts; + + fileset = (findFILESET *)malloc(sizeof(findFILESET)); + memset(fileset, 0, sizeof(findFILESET)); + ff->fileset = fileset; + + fileset->state = state_none; + fileset->include_list.init(1, true); + fileset->exclude_list.init(1, true); + + for ( ;; ) { + if (include) { + num = jcr_fileset->num_includes; + } else { + num = jcr_fileset->num_excludes; + } + for (int i=0; iinclude_items[i]; + + /* New include */ + fileset->incexe = (findINCEXE *)malloc(sizeof(findINCEXE)); + memset(fileset->incexe, 0, sizeof(findINCEXE)); + fileset->incexe->opts_list.init(1, true); + fileset->incexe->name_list.init(1, true); + fileset->include_list.append(fileset->incexe); + } else { + ie = jcr_fileset->exclude_items[i]; + + /* New exclude */ + fileset->incexe = (findINCEXE *)malloc(sizeof(findINCEXE)); + memset(fileset->incexe, 0, sizeof(findINCEXE)); + fileset->incexe->opts_list.init(1, true); + fileset->incexe->name_list.init(1, true); + fileset->exclude_list.append(fileset->incexe); + } + + for (j=0; jnum_opts; j++) { + FOPTS *fo = ie->opts_list[j]; + + current_opts = (findFOPTS *)malloc(sizeof(findFOPTS)); + memset(current_opts, 0, sizeof(findFOPTS)); + fileset->incexe->current_opts = current_opts; + fileset->incexe->opts_list.append(current_opts); + + current_opts->regex.init(1, true); + current_opts->regexdir.init(1, true); + current_opts->regexfile.init(1, true); + current_opts->wild.init(1, true); + current_opts->wilddir.init(1, true); + current_opts->wildfile.init(1, true); + current_opts->wildbase.init(1, true); + current_opts->fstype.init(1, true); + current_opts->drivetype.init(1, true); + + set_options(current_opts, fo->opts); + + for (k=0; kregex.size(); k++) { + // bnet_fsend(fd, "R %s\n", fo->regex.get(k)); + current_opts->regex.append(bstrdup((const char *)fo->regex.get(k))); + } + for (k=0; kregexdir.size(); k++) { + // bnet_fsend(fd, "RD %s\n", fo->regexdir.get(k)); + current_opts->regexdir.append(bstrdup((const char *)fo->regexdir.get(k))); + } + for (k=0; kregexfile.size(); k++) { + // bnet_fsend(fd, "RF %s\n", fo->regexfile.get(k)); + current_opts->regexfile.append(bstrdup((const char *)fo->regexfile.get(k))); + } + for (k=0; kwild.size(); k++) { + current_opts->wild.append(bstrdup((const char *)fo->wild.get(k))); + } + for (k=0; kwilddir.size(); k++) { + current_opts->wilddir.append(bstrdup((const char *)fo->wilddir.get(k))); + } + for (k=0; kwildfile.size(); k++) { + current_opts->wildfile.append(bstrdup((const char *)fo->wildfile.get(k))); + } + for (k=0; kwildbase.size(); k++) { + current_opts->wildbase.append(bstrdup((const char *)fo->wildbase.get(k))); + } + for (k=0; kfstype.size(); k++) { + current_opts->fstype.append(bstrdup((const char *)fo->fstype.get(k))); + } + for (k=0; kdrivetype.size(); k++) { + current_opts->drivetype.append(bstrdup((const char *)fo->drivetype.get(k))); + } + if (fo->reader) { + current_opts->reader = bstrdup(fo->reader); + } + if (fo->writer) { + current_opts->writer = bstrdup(fo->writer); + } + } + + for (j=0; jname_list.size(); j++) { + fileset->incexe->name_list.append(bstrdup((const char *)ie->name_list.get(j))); + } + } + + if (!include) { /* If we just did excludes */ + break; /* all done */ + } + + include = false; /* Now do excludes */ + } + + return true; +} + +static void set_options(findFOPTS *fo, const char *opts) +{ + int j; + const char *p; + + for (p=opts; *p; p++) { + switch (*p) { + case 'a': /* alway replace */ + case '0': /* no option */ + break; + case 'e': + fo->flags |= FO_EXCLUDE; + break; + case 'f': + fo->flags |= FO_MULTIFS; + break; + case 'h': /* no recursion */ + fo->flags |= FO_NO_RECURSION; + break; + case 'H': /* no hard link handling */ + fo->flags |= FO_NO_HARDLINK; + break; + case 'i': + fo->flags |= FO_IGNORECASE; + break; + case 'M': /* MD5 */ + fo->flags |= FO_MD5; + break; + case 'n': + fo->flags |= FO_NOREPLACE; + break; + case 'p': /* use portable data format */ + fo->flags |= FO_PORTABLE; + break; + case 'R': /* Resource forks and Finder Info */ + fo->flags |= FO_HFSPLUS; + case 'r': /* read fifo */ + fo->flags |= FO_READFIFO; + break; + case 'S': + switch(*(p + 1)) { + case ' ': + /* Old director did not specify SHA variant */ + fo->flags |= FO_SHA1; + break; + case '1': + fo->flags |= FO_SHA1; + p++; + break; +#ifdef HAVE_SHA2 + case '2': + fo->flags |= FO_SHA256; + p++; + break; + case '3': + fo->flags |= FO_SHA512; + p++; + break; +#endif + default: + /* Automatically downgrade to SHA-1 if an unsupported + * SHA variant is specified */ + fo->flags |= FO_SHA1; + p++; + break; + } + break; + case 's': + fo->flags |= FO_SPARSE; + break; + case 'm': + fo->flags |= FO_MTIMEONLY; + break; + case 'k': + fo->flags |= FO_KEEPATIME; + break; + case 'A': + fo->flags |= FO_ACL; + break; + case 'V': /* verify options */ + /* Copy Verify Options */ + for (j=0; *p && *p != ':'; p++) { + fo->VerifyOpts[j] = *p; + if (j < (int)sizeof(fo->VerifyOpts) - 1) { + j++; + } + } + fo->VerifyOpts[j] = 0; + break; + case 'w': + fo->flags |= FO_IF_NEWER; + break; + case 'W': + fo->flags |= FO_ENHANCEDWILD; + break; + case 'Z': /* gzip compression */ + fo->flags |= FO_GZIP; + fo->GZIP_level = *++p - '0'; + Dmsg1(200, "Compression level=%d\n", fo->GZIP_level); + break; + default: + Emsg1(M_ERROR, 0, _("Unknown include/exclude option: %c\n"), *p); + break; + } + } +} diff --git a/bacula/src/win32/Makefile b/bacula/src/win32/Makefile new file mode 100644 index 0000000000..9359df8a81 --- /dev/null +++ b/bacula/src/win32/Makefile @@ -0,0 +1,23 @@ +ECHO_CMD=@ + +DIRS= dll \ + filed \ + dird \ + stored \ + console \ + wx-console \ + tools + +.PHONY: $(DIRS) clean all + +all: $(DIRS) + +clean: $(DIRS) + $(ECHO_CMD)-rmdir release + +$(DIRS): + @if $(MAKE) -C $@ $(MAKECMDGOALS); then \ + echo -e "\n===== Make of $@ succeeded =====\n\n" ; \ + else \ + echo -e "\n!!!!! Make of $@ failed !!!!!\n\n" ; \ + fi diff --git a/bacula/src/win32/Makefile.in b/bacula/src/win32/Makefile.in deleted file mode 100644 index d23ed957a3..0000000000 --- a/bacula/src/win32/Makefile.in +++ /dev/null @@ -1,613 +0,0 @@ -# -# Makefile for win32 bacula executables -# Using MinGW cross-compiler on GNU/Linux -# -# Written for Bacula by Howard Thomson, April 2006 -# - -# Configuration - -TOPDIR = @TOP_DIR@ -CROSSTOOLS = $(TOPDIR)/cross-tools -MINGW = $(CROSSTOOLS)/mingw32 - -DEPKGS = $(TOPDIR)/depkgs-mingw32 - -INCLUDE_BACULA = -I .. -I ./compat -I$(DEPKGS)/include -INCLUDE_PTHREADS = -I$(DEPKGS)/include/pthreads -INCLUDE_VSS = -I$(DEPKGS)/vss -INCLUDE_ICONS = -I ../filed/win32 - -LIB_PTHREADS = -lpthreadGCE -LIB_ZLIB = -lz -LIB_SSL = -lssl -LIB_CRYPTO = -lcrypto - -LIBWX = $(DEPKGS)/lib/wx_dll -LIB_WX = $(LIBWX)/libwx_base-2.6.a \ - $(LIBWX)/libwx_base_net-2.6.a \ - $(LIBWX)/libwx_base_xml-2.6.a \ - $(LIBWX)/libwx_msw_core-2.6.a \ - $(LIBWX)/libwx_msw_adv-2.6.a \ - $(LIBWX)/libwx_msw_html-2.6.a \ - $(LIBWX)/libwx_msw_media-2.6.a \ - $(LIBWX)/libwx_msw_qa-2.6.a \ - $(LIBWX)/libwx_msw_xrc-2.6.a - -BIN_DIR = $(MINGW)/bin - - -INCLUDES = \ - $(INCLUDE_GCC) \ - $(INCLUDE_MINGW) \ - $(INCLUDE_PTHREADS) \ - $(INCLUDE_BACULA) \ - $(INCLUDE_ZLIB) \ - $(INCLUDE_VSS) \ - $(INCLUDE_ICONS) - -# $(INCLUDE_OPENSSL) - -HAVES = \ - -DHAVE_MINGW \ - -DHAVE_ZLIB_H \ - -DHAVE_LIBZ \ - -DWIN32_VSS \ - -DHAVE_WIN32 - -# -DHAVE_OPENSSL \ -# -DHAVE_TLS \ - -DEFINES = \ - -DWIN32 \ - $(HAVES) \ - -DCOMPILING_BACULA - - - -CC = $(BIN_DIR)/mingw32-g++ $(DEFINES) $(INCLUDES) -CXX = $(BIN_DIR)/mingw32-g++ $(DEFINES) $(INCLUDES) 2>&1 -WINDRES = $(BIN_DIR)/mingw32-windres -AR = $(BIN_DIR)/mingw32-ar -RANLIB = $(BIN_DIR)/mingw32-ranlib - -first: all - -LIBDIR = ./lib -OBJDIR = . - - -########################################################################## - -# Files in src/win32/filed/ - -OBJS_FILED = \ - $(OBJDIR)/authenticate.o \ - $(OBJDIR)/backup.o \ - $(OBJDIR)/estimate.o \ - $(OBJDIR)/filed.o \ - $(OBJDIR)/filed_conf.o \ - $(OBJDIR)/heartbeat.o \ - $(OBJDIR)/job.o \ - $(OBJDIR)/restore.o \ - $(OBJDIR)/status.o \ - $(OBJDIR)/verify.o \ - $(OBJDIR)/verify_vol.o - -$(OBJDIR)/authenticate.o: ../filed/authenticate.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/backup.o: ../filed/backup.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/estimate.o: ../filed/estimate.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/filed.o: ../filed/filed.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/filed_conf.o: ../filed/filed_conf.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/heartbeat.o: ../filed/heartbeat.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/job.o: ../filed/job.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/restore.o: ../filed/restore.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/status.o: ../filed/status.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/verify.o: ../filed/verify.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/verify_vol.o: ../filed/verify_vol.c - $(CXX) -c $< -o $@ - -###################################################################### - -# Files in src/win32/compat - -OBJS_COMPAT = \ - $(OBJDIR)/print.o \ - $(OBJDIR)/compat.o \ - $(OBJDIR)/getopt.o \ - $(OBJDIR)/vss.o \ - $(OBJDIR)/vss_xp.o \ - $(OBJDIR)/vss_w2k3.o - -$(OBJDIR)/compat.o: ./compat/compat.cpp - $(CXX) -c $< -o $@ - -$(OBJDIR)/getopt.o: ./compat/getopt.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/print.o: ./compat/print.cpp - $(CXX) -c $< -o $@ - -$(OBJDIR)/vss.o: ./compat/vss.cpp - $(CXX) -c $< -o $@ - -$(OBJDIR)/vss_xp.o: ./compat/vss_XP.cpp ./compat/vss_generic.cpp - $(CXX) -c $< -o $@ - -$(OBJDIR)/vss_w2k3.o: ./compat/vss_W2K3.cpp ./compat/vss_generic.cpp - $(CXX) -c $< -o $@ - -###################################################################### - -# Files in src/filed/win32 -OBJS_WIN = \ - $(OBJDIR)/winabout.o \ - $(OBJDIR)/winevents.o \ - $(OBJDIR)/winservice.o \ - $(OBJDIR)/winstat.o \ - $(OBJDIR)/wintray.o \ - $(OBJDIR)/winmain.o \ - $(OBJDIR)/winres.res - -$(OBJDIR)/winabout.o: ../filed/win32/winabout.cpp - $(CXX) -c $< -o $@ - -$(OBJDIR)/winevents.o: ../filed/win32/winevents.cpp - $(CXX) -c $< -o $@ - -$(OBJDIR)/winmain.o: ../filed/win32/winmain.cpp - $(CXX) -c $< -o $@ - -$(OBJDIR)/winservice.o: ../filed/win32/winservice.cpp - $(CXX) -c $< -o $@ - -$(OBJDIR)/winstat.o: ../filed/win32/winstat.cpp - $(CXX) -c $< -o $@ - -$(OBJDIR)/wintray.o: ../filed/win32/wintray.cpp - $(CXX) -c $< -o $@ - -$(OBJDIR)/winres.res: ../filed/win32/winres.rc - $(WINDRES) $(INCLUDE_ICONS) -O coff $< -o $@ - -###################################################################### - -# Files in src/findlib -OBJS_FINDLIB = \ - $(OBJDIR)/attribs.o \ - $(OBJDIR)/bfile.o \ - $(OBJDIR)/create_file.o \ - $(OBJDIR)/drivetype.o \ - $(OBJDIR)/enable_priv.o \ - $(OBJDIR)/find.o \ - $(OBJDIR)/find_one.o \ - $(OBJDIR)/fstype.o \ - $(OBJDIR)/makepath.o \ - $(OBJDIR)/match.o \ - $(OBJDIR)/save-cwd.o - -$(OBJDIR)/attribs.o: ../findlib/attribs.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/bfile.o: ../findlib/bfile.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/create_file.o: ../findlib/create_file.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/drivetype.o: ../findlib/drivetype.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/enable_priv.o: ../findlib/enable_priv.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/find.o: ../findlib/find.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/find_one.o: ../findlib/find_one.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/fstype.o: ../findlib/fstype.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/makepath.o: ../findlib/makepath.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/match.o: ../findlib/match.c - $(CXX) -c $< -o $@ - -$(OBJDIR)/save-cwd.o: ../findlib/save-cwd.c - $(CXX) -c $< -o $@ - - -###################################################################### - -# Files files in src/lib - - -LIB_OBJS = \ - $(LIBDIR)/address_conf.o \ - $(LIBDIR)/alist.o \ - $(LIBDIR)/alloc.o \ - $(LIBDIR)/attr.o \ - $(LIBDIR)/base64.o \ - $(LIBDIR)/berrno.o \ - $(LIBDIR)/bget_msg.o \ - $(LIBDIR)/bnet.o \ - $(LIBDIR)/bnet_server.o \ - $(LIBDIR)/bpipe.o \ - $(LIBDIR)/bregex.o \ - $(LIBDIR)/bsnprintf.o \ - $(LIBDIR)/bsys.o \ - $(LIBDIR)/btime.o \ - $(LIBDIR)/btimers.o \ - $(LIBDIR)/cram-md5.o \ - $(LIBDIR)/crc32.o \ - $(LIBDIR)/crypto.o \ - $(LIBDIR)/daemon.o \ - $(LIBDIR)/dlist.o \ - $(LIBDIR)/edit.o \ - $(LIBDIR)/enh_fnmatch.o \ - $(LIBDIR)/fnmatch.o \ - $(LIBDIR)/hmac.o \ - $(LIBDIR)/htable.o \ - $(LIBDIR)/idcache.o \ - $(LIBDIR)/jcr.o \ - $(LIBDIR)/lex.o \ - $(LIBDIR)/md5.o \ - $(LIBDIR)/mem_pool.o \ - $(LIBDIR)/message.o \ - $(LIBDIR)/parse_conf.o \ - $(LIBDIR)/pythonlib.o \ - $(LIBDIR)/queue.o \ - $(LIBDIR)/res.o \ - $(LIBDIR)/runscript.o \ - $(LIBDIR)/rwlock.o \ - $(LIBDIR)/semlock.o \ - $(LIBDIR)/serial.o \ - $(LIBDIR)/sha1.o \ - $(LIBDIR)/signal.o \ - $(LIBDIR)/smartall.o \ - $(LIBDIR)/tls.o \ - $(LIBDIR)/var.o \ - $(LIBDIR)/watchdog.o \ - $(LIBDIR)/winapi.o \ - $(LIBDIR)/workq.o \ - $(LIBDIR)/scan.o \ - $(LIBDIR)/tree.o \ - $(LIBDIR)/util.o - -# -# Rules for generating from ../lib -# - -$(LIBDIR)/address_conf.o: ../lib/address_conf.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/alist.o: ../lib/alist.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/alloc.o: ../lib/alloc.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/attr.o: ../lib/attr.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/base64.o: ../lib/base64.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/berrno.o: ../lib/berrno.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/bget_msg.o: ../lib/bget_msg.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/bnet.o: ../lib/bnet.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/bnet_server.o: ../lib/bnet_server.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/bpipe.o: ../lib/bpipe.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/bregex.o: ../lib/bregex.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/bsnprintf.o: ../lib/bsnprintf.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/bsys.o: ../lib/bsys.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/btime.o: ../lib/btime.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/btimers.o: ../lib/btimers.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/cram-md5.oc: ../lib/cram-md5.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/crc32.o: ../lib/crc32.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/crypto.o: ../lib/crypto.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/daemon.o: ../lib/daemon.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/dlist.o: ../lib/dlist.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/edit.o: ../lib/edit.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/enh_fnmatch.o: ../lib/enh_fnmatch.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/fnmatch.o: ../lib/fnmatch.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/hmac.o: ../lib/hmac.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/htable.o: ../lib/htable.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/idcache.o: ../lib/idcache.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/jcr.o: ../lib/jcr.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/lex.o: ../lib/lex.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/md5.o: ../lib/md5.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/mem_pool.o: ../lib/mem_pool.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/message.o: ../lib/message.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/parse_conf.o: ../lib/parse_conf.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/pythonlib.o: ../lib/pythonlib.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/queue.o: ../lib/queue.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/res.o: ../lib/res.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/runscript.o: ../lib/runscript.c - $(CXX) -c $< -o $@ - - -$(LIBDIR)/rwlock.o: ../lib/rwlock.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/scan.o: ../lib/scan.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/semlock.o: ../lib/semlock.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/serial.o: ../lib/serial.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/sha1.o: ../lib/sha1.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/signal.o: ../lib/signal.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/smartall.o: ../lib/smartall.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/tls.o: ../lib/tls.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/tree.o: ../lib/tree.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/util.o: ../lib/util.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/var.o: ../lib/var.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/watchdog.o: ../lib/watchdog.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/winapi.o: ../lib/winapi.c - $(CXX) -c $< -o $@ - -$(LIBDIR)/workq.o: ../lib/workq.c - $(CXX) -c $< -o $@ - - -###################################################################### - -# Files in src/console -OBJS_CONSOLE = \ - $(OBJDIR)/cons_authenticate.o \ - $(OBJDIR)/console.o \ - $(OBJDIR)/console_conf.o - -CONS_INC = -I ../console - -$(OBJDIR)/cons_authenticate.o: ../console/authenticate.c - $(CXX) $(CONS_INC) -c $< -o $@ - -$(OBJDIR)/console.o: ../console/console.c - $(CXX) $(CONS_INC) -c $< -o $@ - -$(OBJDIR)/console_conf.o: ../console/console_conf.c - $(CXX) $(CONS_INC) -c $< -o $@ - -###################################################################### - -# Files in src/wx-console -OBJS_WXCONSOLE = \ - $(OBJDIR)/wx_authenticate.o \ - $(OBJDIR)/main.o \ - $(OBJDIR)/console_thread.o \ - $(OBJDIR)/console_conf.o \ - $(OBJDIR)/wxbrestorepanel.o \ - $(OBJDIR)/wxbmainframe.o \ - $(OBJDIR)/wxbtableparser.o \ - $(OBJDIR)/wxbtreectrl.o \ - $(OBJDIR)/wxbutils.o \ - $(OBJDIR)/wxbconfigpanel.o \ - $(OBJDIR)/wxbconfigfileeditor.o \ - $(OBJDIR)/wxbhistorytextctrl.o \ - $(OBJDIR)/wx-console.res - -WX_INC = -DHAVE_WXCONSOLE -D__CYGWIN__ -D__WINDOWS__ -I ../wx-console $(INCLUDE_WX) - -$(OBJDIR)/wx_authenticate.o: ../wx-console/authenticate.c - $(CXX) $(WX_INC) -c $< -o $@ - -$(OBJDIR)/main.o: ../wx-console/main.cpp - $(CXX) $(WX_INC) -c $< -o $@ - -$(OBJDIR)/console_thread.o: ../wx-console/console_thread.cpp - $(CXX) $(WX_INC) -c $< -o $@ - -$(OBJDIR)/wx_console_conf.o: ../wx-console/console_conf.c - $(CXX) $(WX_INC) -c $< -o $@ - -$(OBJDIR)/wxbrestorepanel.o: ../wx-console/wxbrestorepanel.cpp - $(CXX) $(WX_INC) -c $< -o $@ - -$(OBJDIR)/wxbmainframe.o: ../wx-console/wxbmainframe.cpp - $(CXX) $(WX_INC) -c $< -o $@ - -$(OBJDIR)/wxbtableparser.o: ../wx-console/wxbtableparser.cpp - $(CXX) $(WX_INC) -c $< -o $@ - -$(OBJDIR)/wxbtreectrl.o: ../wx-console/wxbtreectrl.cpp - $(CXX) $(WX_INC) -c $< -o $@ - -$(OBJDIR)/wxbutils.o: ../wx-console/wxbutils.cpp - $(CXX) $(WX_INC) -c $< -o $@ - -$(OBJDIR)/wxbconfigpanel.o: ../wx-console/wxbconfigpanel.cpp - $(CXX) $(WX_INC) -c $< -o $@ - -$(OBJDIR)/wxbconfigfileeditor.o: ../wx-console/wxbconfigfileeditor.cpp - $(CXX) $(WX_INC) -c $< -o $@ - -$(OBJDIR)/wxbhistorytextctrl.o: ../wx-console/wxbhistorytextctrl.cpp - $(CXX) $(WX_INC) -c $< -o $@ - -$(OBJDIR)/wx-console.res: ../wx-console/wx-console_private.rc - $(WINDRES) $(WX_INC) -O coff $< -o $@ - - -###################################################################### - - - -FD_OBJS = $(LIB_OBJS) $(OBJS_COMPAT) $(OBJS_WIN) $(OBJS_FINDLIB) $(OBJS_FILED) - -FD_LIBS = \ - -L$(DEPKGS)/lib \ - $(LIB_PTHREADS) \ - $(LIB_SSL) \ - $(LIB_CRYPTO) \ - $(LIB_ZLIB) \ - -lgdi32 \ - -lole32 \ - -loleaut32 \ - -lwsock32 \ - -luuid - -CONS_OBJS = $(LIB_OBJS) $(OBJS_COMPAT) $(OBJS_CONSOLE) - -CONS_LIBS = \ - -L$(DEPKGS)/lib \ - $(LIB_PTHREADS) \ - $(LIB_SSL) \ - $(LIB_CRYPTO) \ - -lole32 \ - -loleaut32 \ - -lwsock32 \ - -luuid - - -WXCONS_OBJS = $(LIB_OBJS) $(OBJS_COMPAT) $(OBJS_WXCONSOLE) - -WXCONS_LIBS = \ - -L$(LIB_MINGW) \ - $(LIB_PTHREADS) \ - $(LIB_SSL) \ - $(LIB_CRYPTO) \ - - - - - -# Targets - -all: bacula-fd.exe bconsole.exe - -#$(LIBDIR)/libbac.a: $(LIB_OBJS) -# $(AR) ars $@ $(LIB_OBJS) - -# Link the File daemon executable ... -bacula-fd.exe: $(FD_OBJS) - $(CXX) $(FD_OBJS) $(FD_LIBS) -o $(OBJDIR)/bacula-fd.exe - cp -f $(DEPKGS)/bin/pthreadGCE.dll . - cp -f $(MINGW)/mingw32/bin/mingwm10.dll . - -# Link the File daemon executable ... -bconsole.exe: $(CONS_OBJS) - $(CXX) $(CONS_OBJS) $(CONS_LIBS) -o $(OBJDIR)/bconsole.exe - cp -f $(DEPKGS)/bin/pthreadGCE.dll . - cp -f $(MINGW)/mingw32/bin/mingwm10.dll . - -# Link the File daemon executable ... -# Not yet complete -wx-console.exe: $(WXCONS_OBJS) - $(CXX) $(WX_INC) $(WXCONS_OBJS) $(WXCONS_LIBS) -o $(OBJDIR)/wx-console.exe - cp -f $(DEPKGS)/bin/pthreadGCE.dll . - cp -f $(MINGW)/mingw32/bin/mingwm10.dll . - - -clean: - rm -f $(OBJDIR)/*.o $(OBJDIR)/bacula-fd.exe $(OBJDIR)/winres.res - rm -f $(LIBDIR)/*.o *.a - rm -f pthreadGCE.dll $(OBJDIR)/bconsole.exe - - -# TODO ... -# Fix vss files: check for consistent levels of pointer indirection -# bpipe.c: WTERMSIG undefined diff --git a/bacula/src/win32/baculafd/.cvsignore b/bacula/src/win32/baculafd/.cvsignore deleted file mode 100644 index 6139d5f367..0000000000 --- a/bacula/src/win32/baculafd/.cvsignore +++ /dev/null @@ -1,4 +0,0 @@ -bacula-fd.conf -Release -Debug -baculafd.vcproj.* \ No newline at end of file diff --git a/bacula/src/win32/baculafd/GNUmakefile b/bacula/src/win32/baculafd/GNUmakefile deleted file mode 100644 index eeb2c5f5c0..0000000000 --- a/bacula/src/win32/baculafd/GNUmakefile +++ /dev/null @@ -1,6 +0,0 @@ - -default: - env MAKEFLAGS= nmake CFG="baculafd - Win32 Release" /f baculafd.mak -clean: - env MAKEFLAGS= nmake CFG="baculafd - Win32 Release" /f baculafd.mak clean - rm -f baculafd.plg baculafd.opt baculafd.ncb diff --git a/bacula/src/win32/baculafd/StdAfx.cpp b/bacula/src/win32/baculafd/StdAfx.cpp deleted file mode 100644 index 3bbf8ec8ea..0000000000 --- a/bacula/src/win32/baculafd/StdAfx.cpp +++ /dev/null @@ -1,8 +0,0 @@ -// stdafx.cpp : source file that includes just the standard includes -// baculaService.pch will be the pre-compiled header -// stdafx.obj will contain the pre-compiled type information - -#include "stdafx.h" - -// TODO: reference any additional headers you need in STDAFX.H -// and not in this file diff --git a/bacula/src/win32/baculafd/StdAfx.h b/bacula/src/win32/baculafd/StdAfx.h deleted file mode 100644 index 26ab471653..0000000000 --- a/bacula/src/win32/baculafd/StdAfx.h +++ /dev/null @@ -1,32 +0,0 @@ -// stdafx.h : include file for standard system include files, -// or project specific include files that are used frequently, but -// are changed infrequently -// - -#if !defined(AFX_STDAFX_H__566FE838_69B8_4101_923D_4BAE2C46AD51__INCLUDED_) -#define AFX_STDAFX_H__566FE838_69B8_4101_923D_4BAE2C46AD51__INCLUDED_ - -#if _MSC_VER > 1000 -#pragma once -#endif // _MSC_VER > 1000 - -#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers - -/* Commented out MFC include files, which are not distributed with the free - * version of VC++, and which are not used in bacula-fd. */ -/*#include -#include // MFC core and standard components -#include // MFC extensions -#include // MFC support for Internet Explorer 4 Common Controls -#ifndef _AFX_NO_AFXCMN_SUPPORT -#include // MFC support for Windows Common Controls -#endif // _AFX_NO_AFXCMN_SUPPORT -*/ -#include - -// TODO: reference additional headers your program requires here - -//{{AFX_INSERT_LOCATION}} -// Microsoft Visual C++ will insert additional declarations immediately before the previous line. - -#endif // !defined(AFX_STDAFX_H__566FE838_69B8_4101_923D_4BAE2C46AD51__INCLUDED_) diff --git a/bacula/src/win32/baculafd/bacula-fd.conf.in b/bacula/src/win32/baculafd/bacula-fd.conf.in deleted file mode 100755 index a73011ae7f..0000000000 --- a/bacula/src/win32/baculafd/bacula-fd.conf.in +++ /dev/null @@ -1,32 +0,0 @@ -# -# Default Bacula File Daemon Configuration file -# -# For Bacula release @VERSION@ (@DATE@) -- @DISTNAME@ @DISTVER@ -# -# There is not much to change here except perhaps the -# File daemon Name to -# - -# -# List Directors who are permitted to contact this File daemon -# -Director { - Name = @hostname@-dir - Password = "@fd_password@" -} - -# -# "Global" File daemon configuration specifications -# -FileDaemon { # this is me - Name = @hostname@-fd - FDport = @fd_port@ # where we listen for the director - WorkingDirectory = @working_dir@ - Pid Directory = @piddir@ -} - -# Send all messages except skipped files back to Director -Messages { - Name = Standard - director = @hostname@-dir = all, !skipped -} diff --git a/bacula/src/win32/baculafd/baculafd.dep b/bacula/src/win32/baculafd/baculafd.dep deleted file mode 100644 index 9374885266..0000000000 --- a/bacula/src/win32/baculafd/baculafd.dep +++ /dev/null @@ -1,3596 +0,0 @@ -# Microsoft Developer Studio Generated Dependency File, included by baculafd.mak - -..\lib\alist.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.c"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\alloc.cpp : \ - "..\..\lib\alloc.c"\ - - -..\lib\attr.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.c"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\findlib\attribs.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\findlib\attribs.c"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\filed\authenticate.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\filed\authenticate.c"\ - "..\..\filed\filed.h"\ - "..\..\filed\filed_conf.h"\ - "..\..\filed\protos.h"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\filed\backup.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\filed\backup.c"\ - "..\..\filed\filed.h"\ - "..\..\filed\filed_conf.h"\ - "..\..\filed\protos.h"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\base64.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\base64.c"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\findlib\bfile.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\findlib\bfile.c"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\bget_msg.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bget_msg.c"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\bnet.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bnet.c"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\bnet_server.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bnet_server.c"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\tcpd.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\bshm.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.c"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\bsys.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\bsys.c"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\btime.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.c"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\compat\compat.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\mswinver.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -"..\lib\cram-md5.cpp" : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\cram-md5.c"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\crc32.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\crc32.c"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\findlib\create_file.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\create_file.c"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\daemon.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\daemon.c"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\dlist.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.c"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\edit.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\edit.c"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\findlib\enable_priv.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\enable_priv.c"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\filed\estimate.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\filed\estimate.c"\ - "..\..\filed\filed.h"\ - "..\..\filed\filed_conf.h"\ - "..\..\filed\protos.h"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\filed\filed.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\filed\filed.c"\ - "..\..\filed\filed.h"\ - "..\..\filed\filed_conf.h"\ - "..\..\filed\protos.h"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\filed\filed_conf.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\filed\filed.h"\ - "..\..\filed\filed_conf.c"\ - "..\..\filed\filed_conf.h"\ - "..\..\filed\protos.h"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\findlib\find.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.c"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\findlib\find_one.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\find_one.c"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\fnmatch.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.c"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\compat\getopt.c : \ - "..\compat\alloca.h"\ - "..\compat\getopt.h"\ - - -..\filed\heartbeat.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\filed\filed.h"\ - "..\..\filed\filed_conf.h"\ - "..\..\filed\heartbeat.c"\ - "..\..\filed\protos.h"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\hmac.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\hmac.c"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\htable.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\htable.c"\ - "..\..\lib\htable.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\idcache.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\idcache.c"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\jcr.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\jcr.c"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\filed\job.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\filed\filed.h"\ - "..\..\filed\filed_conf.h"\ - "..\..\filed\job.c"\ - "..\..\filed\protos.h"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\lex.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.c"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\findlib\makepath.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\findlib\makepath.c"\ - "..\..\findlib\save-cwd.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\findlib\match.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\match.c"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\md5.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.c"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\mem_pool.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.c"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\message.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.c"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\parse_conf.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.c"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\compat\print.cpp : \ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\queue.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\queue.c"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\filed\restore.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\filed\filed.h"\ - "..\..\filed\filed_conf.h"\ - "..\..\filed\protos.h"\ - "..\..\filed\restore.c"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\rwlock.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.c"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -"..\findlib\save-cwd.cpp" : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\findlib\save-cwd.c"\ - "..\..\findlib\save-cwd.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\scan.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\scan.c"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\semlock.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.c"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\serial.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.c"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\sha1.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.c"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\signal.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\signal.c"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\smartall.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.c"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\filed\status.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\filed\filed.h"\ - "..\..\filed\filed_conf.h"\ - "..\..\filed\protos.h"\ - "..\..\filed\status.c"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -.\StdAfx.cpp : \ - ".\StdAfx.h"\ - - -..\lib\btimers.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.c"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\tree.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.c"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\util.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\util.c"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\var.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.c"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\filed\verify.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\filed\filed.h"\ - "..\..\filed\filed_conf.h"\ - "..\..\filed\protos.h"\ - "..\..\filed\verify.c"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\filed\verify_vol.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\filed\filed.h"\ - "..\..\filed\filed_conf.h"\ - "..\..\filed\protos.h"\ - "..\..\filed\verify_vol.c"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\lib\watchdog.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.c"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\..\filed\win32\winabout.cpp : \ - "..\..\filed\win32\winabout.h"\ - "..\..\filed\win32\winbacula.h"\ - - -..\lib\winapi.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\findlib\bfile.h"\ - "..\..\findlib\find.h"\ - "..\..\findlib\protos.h"\ - "..\..\findlib\save-cwd.h"\ - "..\..\lib\winapi.c"\ - "..\..\lib\winapi.h"\ - "..\..\host.h"\ - "..\..\jcr.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\dirent.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\file.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\..\filed\win32\winevents.cpp : \ - "..\..\filed\win32\winbacula.h"\ - "..\..\filed\win32\winevents.h"\ - - -..\..\filed\win32\winmain.cpp : \ - "..\..\filed\win32\winabout.h"\ - "..\..\filed\win32\winbacula.h"\ - "..\..\filed\win32\winevents.h"\ - "..\..\filed\win32\winservice.h"\ - "..\..\filed\win32\winstat.h"\ - "..\..\filed\win32\wintray.h"\ - "..\..\lib\winapi.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\unistd.h"\ - {$(INCLUDE)}"basetsd.h"\ - - -..\..\filed\win32\winservice.cpp : \ - "..\..\filed\win32\winabout.h"\ - "..\..\filed\win32\winbacula.h"\ - "..\..\filed\win32\winevents.h"\ - "..\..\filed\win32\winservice.h"\ - "..\..\filed\win32\winstat.h"\ - "..\..\filed\win32\wintray.h"\ - - -..\..\filed\win32\winstat.cpp : \ - "..\..\filed\win32\winbacula.h"\ - "..\..\filed\win32\winstat.h"\ - - -..\..\filed\win32\wintray.cpp : \ - "..\..\filed\win32\winabout.h"\ - "..\..\filed\win32\winbacula.h"\ - "..\..\filed\win32\winevents.h"\ - "..\..\filed\win32\winservice.h"\ - "..\..\filed\win32\winstat.h"\ - "..\..\filed\win32\wintray.h"\ - - -..\lib\workq.cpp : \ - "..\..\baconfig.h"\ - "..\..\bacula.h"\ - "..\..\bc_types.h"\ - "..\..\config.h"\ - "..\..\host.h"\ - "..\..\lib\alist.h"\ - "..\..\lib\attr.h"\ - "..\..\lib\bits.h"\ - "..\..\lib\bpipe.h"\ - "..\..\lib\bshm.h"\ - "..\..\lib\bsock.h"\ - "..\..\lib\btime.h"\ - "..\..\lib\dlist.h"\ - "..\..\lib\fnmatch.h"\ - "..\..\lib\getopt.h"\ - "..\..\lib\lex.h"\ - "..\..\lib\lib.h"\ - "..\..\lib\md5.h"\ - "..\..\lib\mem_pool.h"\ - "..\..\lib\message.h"\ - "..\..\lib\parse_conf.h"\ - "..\..\lib\protos.h"\ - "..\..\lib\rwlock.h"\ - "..\..\lib\semlock.h"\ - "..\..\lib\serial.h"\ - "..\..\lib\sha1.h"\ - "..\..\lib\smartall.h"\ - "..\..\lib\btimers.h"\ - "..\..\lib\tree.h"\ - "..\..\lib\var.h"\ - "..\..\lib\watchdog.h"\ - "..\..\lib\workq.c"\ - "..\..\lib\workq.h"\ - "..\compat\alloca.h"\ - "..\compat\arpa\inet.h"\ - "..\compat\compat.h"\ - "..\compat\getopt.h"\ - "..\compat\grp.h"\ - "..\compat\netdb.h"\ - "..\compat\netinet\in.h"\ - "..\compat\pwd.h"\ - "..\compat\stdint.h"\ - "..\compat\strings.h"\ - "..\compat\sys\ioctl.h"\ - "..\compat\sys\socket.h"\ - "..\compat\sys\time.h"\ - "..\compat\sys\wait.h"\ - "..\compat\syslog.h"\ - "..\compat\unistd.h"\ - "..\compat\winconfig.h"\ - "..\compat\winhost.h"\ - {$(INCLUDE)}"basetsd.h"\ - diff --git a/bacula/src/win32/baculafd/baculafd.dsp b/bacula/src/win32/baculafd/baculafd.dsp deleted file mode 100644 index 3eef2871f3..0000000000 --- a/bacula/src/win32/baculafd/baculafd.dsp +++ /dev/null @@ -1,502 +0,0 @@ -# Microsoft Developer Studio Project File - Name="baculafd" - Package Owner=<4> -# Microsoft Developer Studio Generated Build File, Format Version 6.00 -# ** DO NOT EDIT ** - -# TARGTYPE "Win32 (x86) Console Application" 0x0103 - -CFG=baculafd - Win32 Debug -!MESSAGE This is not a valid makefile. To build this project using NMAKE, -!MESSAGE use the Export Makefile command and run -!MESSAGE -!MESSAGE NMAKE /f "baculafd.mak". -!MESSAGE -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "baculafd.mak" CFG="baculafd - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "baculafd - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "baculafd - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE - -# Begin Project -# PROP AllowPerConfigDependencies 0 -# PROP Scc_ProjName "" -# PROP Scc_LocalPath "" -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "baculafd - Win32 Release" - -# PROP BASE Use_MFC 2 -# PROP BASE Use_Debug_Libraries 0 -# PROP BASE Output_Dir "Release" -# PROP BASE Intermediate_Dir "Release" -# PROP BASE Target_Dir "" -# PROP Use_MFC 1 -# PROP Use_Debug_Libraries 0 -# PROP Output_Dir "Release" -# PROP Intermediate_Dir "Release" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /MD /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /D "_AFXDLL" /Yu"stdafx.h" /FD /c -# ADD CPP /nologo /MT /W3 /GX /O2 /I "../compat" /I "../.." /I "../../../../depkgs-win32/pthreads" /I "../../../../depkgs-win32/zlib" /I "." /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "HAVE_WIN32" /FD /c -# ADD BASE RSC /l 0x409 /d "NDEBUG" /d "_AFXDLL" -# ADD RSC /l 0x409 /d "NDEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386 -# ADD LINK32 wsock32.lib pthreadVCE.lib zlib.lib /nologo /subsystem:windows /pdb:none /machine:I386 /nodefaultlib:"MSVCRT.lib" /out:"Release/bacula-fd.exe" /libpath:"../../../../depkgs-win32/pthreads" /libpath:"../../../../depkgs-win32/zlib" - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - -# PROP BASE Use_MFC 2 -# PROP BASE Use_Debug_Libraries 1 -# PROP BASE Output_Dir "Debug" -# PROP BASE Intermediate_Dir "Debug" -# PROP BASE Target_Dir "" -# PROP Use_MFC 0 -# PROP Use_Debug_Libraries 1 -# PROP Output_Dir "Debug" -# PROP Intermediate_Dir "Debug" -# PROP Ignore_Export_Lib 0 -# PROP Target_Dir "" -# ADD BASE CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "_AFXDLL" /Yu"stdafx.h" /FD /GZ /c -# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "../compat" /I "../.." /I "../../../../depkgs-win32/pthreads" /I "../../../../depkgs-win32/zlib" /I "." /D "_DEBUG" /D "_WINMAIN_" /D "PTW32_BUILD" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "HAVE_WIN32" /FR /FD /GZ /c -# ADD BASE RSC /l 0x409 /d "_DEBUG" /d "_AFXDLL" -# ADD RSC /l 0x409 /d "_DEBUG" -BSC32=bscmake.exe -# ADD BASE BSC32 /nologo -# ADD BSC32 /nologo -LINK32=link.exe -# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept -# ADD LINK32 user32.lib advapi32.lib gdi32.lib wsock32.lib shell32.lib pthreadVCE.lib zlib.lib kernel32.lib comdlg32.lib /nologo /subsystem:windows /pdb:none /debug /machine:I386 /nodefaultlib:"MSVCRT.lib" /out:"Debug/bacula-fd.exe" /libpath:"../../../../depkgs-win32/pthreads" /libpath:"../../../../depkgs-win32/zlib" - -!ENDIF - -# Begin Target - -# Name "baculafd - Win32 Release" -# Name "baculafd - Win32 Debug" -# Begin Group "Source Files" - -# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" -# Begin Source File - -SOURCE=..\lib\alist.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\alloc.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\attr.cpp -# End Source File -# Begin Source File - -SOURCE=..\findlib\attribs.cpp -# End Source File -# Begin Source File - -SOURCE=..\filed\authenticate.cpp -# End Source File -# Begin Source File - -SOURCE=..\filed\backup.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\base64.cpp -# End Source File -# Begin Source File - -SOURCE=..\findlib\bfile.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\bget_msg.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\bnet.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\bnet_server.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\bshm.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\bsys.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\btime.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\btimers.cpp -# End Source File -# Begin Source File - -SOURCE=..\compat\compat.cpp -# End Source File -# Begin Source File - -SOURCE="..\lib\cram-md5.cpp" -# End Source File -# Begin Source File - -SOURCE=..\lib\crc32.cpp -# End Source File -# Begin Source File - -SOURCE=..\findlib\create_file.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\daemon.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\dlist.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\edit.cpp -# End Source File -# Begin Source File - -SOURCE=..\findlib\enable_priv.cpp -# End Source File -# Begin Source File - -SOURCE=..\filed\estimate.cpp -# End Source File -# Begin Source File - -SOURCE=..\filed\filed.cpp -# End Source File -# Begin Source File - -SOURCE=..\filed\filed_conf.cpp -# End Source File -# Begin Source File - -SOURCE=..\findlib\find.cpp -# End Source File -# Begin Source File - -SOURCE=..\findlib\find_one.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\fnmatch.cpp -# End Source File -# Begin Source File - -SOURCE=..\compat\getopt.c -# End Source File -# Begin Source File - -SOURCE=..\filed\heartbeat.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\hmac.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\htable.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\idcache.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\jcr.cpp -# End Source File -# Begin Source File - -SOURCE=..\filed\job.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\lex.cpp -# End Source File -# Begin Source File - -SOURCE=..\findlib\makepath.cpp -# End Source File -# Begin Source File - -SOURCE=..\findlib\match.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\md5.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\mem_pool.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\message.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\parse_conf.cpp -# End Source File -# Begin Source File - -SOURCE=..\compat\print.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\queue.cpp -# End Source File -# Begin Source File - -SOURCE=..\filed\restore.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\rwlock.cpp -# End Source File -# Begin Source File - -SOURCE="..\findlib\save-cwd.cpp" -# End Source File -# Begin Source File - -SOURCE=..\lib\scan.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\semlock.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\serial.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\sha1.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\signal.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\smartall.cpp -# End Source File -# Begin Source File - -SOURCE=..\filed\status.cpp -# End Source File -# Begin Source File - -SOURCE=.\StdAfx.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\tree.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\util.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\var.cpp -# End Source File -# Begin Source File - -SOURCE=..\filed\verify.cpp -# End Source File -# Begin Source File - -SOURCE=..\filed\verify_vol.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\watchdog.cpp -# End Source File -# Begin Source File - -SOURCE=..\..\filed\win32\winabout.cpp -# End Source File -# Begin Source File - -SOURCE=..\findlib\winapi.cpp -# End Source File -# Begin Source File - -SOURCE=..\..\filed\win32\winevents.cpp -# End Source File -# Begin Source File - -SOURCE=..\..\filed\win32\winmain.cpp -# End Source File -# Begin Source File - -SOURCE=..\..\filed\win32\winres.rc -# End Source File -# Begin Source File - -SOURCE=..\..\filed\win32\winservice.cpp -# End Source File -# Begin Source File - -SOURCE=..\..\filed\win32\winstat.cpp -# End Source File -# Begin Source File - -SOURCE=..\..\filed\win32\wintray.cpp -# End Source File -# Begin Source File - -SOURCE=..\lib\workq.cpp -# End Source File -# End Group -# Begin Group "Header Files" - -# PROP Default_Filter "h;hpp;hxx;hm;inl" -# Begin Source File - -SOURCE=..\compat\alloca.h -# End Source File -# Begin Source File - -SOURCE=..\compat\compat.h -# End Source File -# Begin Source File - -SOURCE=..\compat\config.h -# End Source File -# Begin Source File - -SOURCE=..\compat\dirent.h -# End Source File -# Begin Source File - -SOURCE=..\compat\getopt.h -# End Source File -# Begin Source File - -SOURCE=..\compat\grp.h -# End Source File -# Begin Source File - -SOURCE=..\compat\host.h -# End Source File -# Begin Source File - -SOURCE=..\compat\mswinver.h -# End Source File -# Begin Source File - -SOURCE=..\compat\netdb.h -# End Source File -# Begin Source File - -SOURCE=..\compat\pwd.h -# End Source File -# Begin Source File - -SOURCE=..\compat\sched.h -# End Source File -# Begin Source File - -SOURCE=.\StdAfx.h -# End Source File -# Begin Source File - -SOURCE=..\compat\stdint.h -# End Source File -# Begin Source File - -SOURCE=..\compat\strings.h -# End Source File -# Begin Source File - -SOURCE=..\compat\syslog.h -# End Source File -# Begin Source File - -SOURCE=..\compat\unistd.h -# End Source File -# Begin Source File - -SOURCE=..\..\filed\win32\winabout.h -# End Source File -# Begin Source File - -SOURCE=..\..\filed\win32\winbacula.h -# End Source File -# Begin Source File - -SOURCE=..\..\filed\win32\winevents.h -# End Source File -# Begin Source File - -SOURCE=..\..\filed\win32\winres.h -# End Source File -# Begin Source File - -SOURCE=..\..\filed\win32\winservice.h -# End Source File -# Begin Source File - -SOURCE=..\..\filed\win32\winstat.h -# End Source File -# Begin Source File - -SOURCE=..\..\filed\win32\wintray.h -# End Source File -# End Group -# Begin Group "Resource Files" - -# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" -# Begin Source File - -SOURCE=..\..\src\filed\win32\bacula.bmp -# End Source File -# Begin Source File - -SOURCE=..\..\src\filed\win32\bacula.ico -# End Source File -# Begin Source File - -SOURCE=..\..\src\filed\win32\error.ico -# End Source File -# Begin Source File - -SOURCE=..\..\src\filed\win32\idle.ico -# End Source File -# Begin Source File - -SOURCE=..\..\src\filed\win32\running.ico -# End Source File -# Begin Source File - -SOURCE=..\..\src\filed\win32\saving.ico -# End Source File -# End Group -# Begin Source File - -SOURCE=.\ReadMe.txt -# End Source File -# End Target -# End Project diff --git a/bacula/src/win32/baculafd/baculafd.dsw b/bacula/src/win32/baculafd/baculafd.dsw deleted file mode 100644 index 93d7af8652..0000000000 --- a/bacula/src/win32/baculafd/baculafd.dsw +++ /dev/null @@ -1,29 +0,0 @@ -Microsoft Developer Studio Workspace File, Format Version 6.00 -# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! - -############################################################################### - -Project: "baculafd"=.\baculafd.dsp - Package Owner=<4> - -Package=<5> -{{{ -}}} - -Package=<4> -{{{ -}}} - -############################################################################### - -Global: - -Package=<5> -{{{ -}}} - -Package=<3> -{{{ -}}} - -############################################################################### - diff --git a/bacula/src/win32/baculafd/baculafd.mak b/bacula/src/win32/baculafd/baculafd.mak deleted file mode 100644 index 9a5e943473..0000000000 --- a/bacula/src/win32/baculafd/baculafd.mak +++ /dev/null @@ -1,2128 +0,0 @@ -# Microsoft Developer Studio Generated NMAKE File, Based on baculafd.dsp -!IF "$(CFG)" == "" -CFG=baculafd - Win32 Debug -!MESSAGE No configuration specified. Defaulting to baculafd - Win32 Debug. -!ENDIF - -!IF "$(CFG)" != "baculafd - Win32 Release" && "$(CFG)" != "baculafd - Win32 Debug" -!MESSAGE Invalid configuration "$(CFG)" specified. -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "baculafd.mak" CFG="baculafd - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "baculafd - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "baculafd - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE -!ERROR An invalid configuration is specified. -!ENDIF - -!IF "$(OS)" == "Windows_NT" -NULL= -!ELSE -NULL=nul -!ENDIF - -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "baculafd - Win32 Release" - -OUTDIR=.\Release -INTDIR=.\Release -# Begin Custom Macros -OutDir=.\Release -# End Custom Macros - -ALL : "$(OUTDIR)\bacula-fd.exe" - - -CLEAN : - -@erase "$(INTDIR)\address_conf.obj" - -@erase "$(INTDIR)\alist.obj" - -@erase "$(INTDIR)\alloc.obj" - -@erase "$(INTDIR)\attr.obj" - -@erase "$(INTDIR)\attribs.obj" - -@erase "$(INTDIR)\authenticate.obj" - -@erase "$(INTDIR)\backup.obj" - -@erase "$(INTDIR)\base64.obj" - -@erase "$(INTDIR)\berrno.obj" - -@erase "$(INTDIR)\bfile.obj" - -@erase "$(INTDIR)\bget_msg.obj" - -@erase "$(INTDIR)\bnet.obj" - -@erase "$(INTDIR)\bnet_server.obj" - -@erase "$(INTDIR)\bshm.obj" - -@erase "$(INTDIR)\bsys.obj" - -@erase "$(INTDIR)\btime.obj" - -@erase "$(INTDIR)\btimers.obj" - -@erase "$(INTDIR)\compat.obj" - -@erase "$(INTDIR)\cram-md5.obj" - -@erase "$(INTDIR)\crc32.obj" - -@erase "$(INTDIR)\create_file.obj" - -@erase "$(INTDIR)\crypto.obj" - -@erase "$(INTDIR)\daemon.obj" - -@erase "$(INTDIR)\dlist.obj" - -@erase "$(INTDIR)\edit.obj" - -@erase "$(INTDIR)\enable_priv.obj" - -@erase "$(INTDIR)\estimate.obj" - -@erase "$(INTDIR)\filed.obj" - -@erase "$(INTDIR)\filed_conf.obj" - -@erase "$(INTDIR)\find.obj" - -@erase "$(INTDIR)\find_one.obj" - -@erase "$(INTDIR)\fnmatch.obj" - -@erase "$(INTDIR)\fstype.obj" - -@erase "$(INTDIR)\getopt.obj" - -@erase "$(INTDIR)\heartbeat.obj" - -@erase "$(INTDIR)\hmac.obj" - -@erase "$(INTDIR)\htable.obj" - -@erase "$(INTDIR)\idcache.obj" - -@erase "$(INTDIR)\jcr.obj" - -@erase "$(INTDIR)\job.obj" - -@erase "$(INTDIR)\lex.obj" - -@erase "$(INTDIR)\makepath.obj" - -@erase "$(INTDIR)\match.obj" - -@erase "$(INTDIR)\md5.obj" - -@erase "$(INTDIR)\mem_pool.obj" - -@erase "$(INTDIR)\message.obj" - -@erase "$(INTDIR)\parse_conf.obj" - -@erase "$(INTDIR)\print.obj" - -@erase "$(INTDIR)\pythonlib.obj" - -@erase "$(INTDIR)\queue.obj" - -@erase "$(INTDIR)\bregex.obj" - -@erase "$(INTDIR)\restore.obj" - -@erase "$(INTDIR)\res.obj" - -@erase "$(INTDIR)\rwlock.obj" - -@erase "$(INTDIR)\save-cwd.obj" - -@erase "$(INTDIR)\scan.obj" - -@erase "$(INTDIR)\semlock.obj" - -@erase "$(INTDIR)\serial.obj" - -@erase "$(INTDIR)\sha1.obj" - -@erase "$(INTDIR)\signal.obj" - -@erase "$(INTDIR)\smartall.obj" - -@erase "$(INTDIR)\status.obj" - -@erase "$(INTDIR)\StdAfx.obj" - -@erase "$(INTDIR)\tls.obj" - -@erase "$(INTDIR)\tree.obj" - -@erase "$(INTDIR)\util.obj" - -@erase "$(INTDIR)\var.obj" - -@erase "$(INTDIR)\vc60.idb" - -@erase "$(INTDIR)\verify.obj" - -@erase "$(INTDIR)\verify_vol.obj" - -@erase "$(INTDIR)\vss.obj" - -@erase "$(INTDIR)\vss_xp.obj" - -@erase "$(INTDIR)\vss_w2k3.obj" - -@erase "$(INTDIR)\watchdog.obj" - -@erase "$(INTDIR)\winabout.obj" - -@erase "$(INTDIR)\winapi.obj" - -@erase "$(INTDIR)\winevents.obj" - -@erase "$(INTDIR)\winmain.obj" - -@erase "$(INTDIR)\winres.res" - -@erase "$(INTDIR)\winservice.obj" - -@erase "$(INTDIR)\winstat.obj" - -@erase "$(INTDIR)\wintray.obj" - -@erase "$(INTDIR)\workq.obj" - -@erase "$(OUTDIR)\bacula-fd.exe" - -"$(OUTDIR)" : - if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" - -CPP_PROJ=/nologo /MT /W3 /GX /O2 /I "../compat" /I "../.." /I "../../../../depkgs-win32/pthreads" /I "../../../../depkgs-win32/zlib" /I "." /D "_WINDOWS" /D "_WIN32_WINNT=0x500" /D "WIN32_VSS" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "HAVE_WIN32" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c -RSC_PROJ=/l 0x409 /fo"$(INTDIR)\winres.res" /d "NDEBUG" -BSC32=bscmake.exe -BSC32_FLAGS=/nologo /o"$(OUTDIR)\baculafd.bsc" -BSC32_SBRS= \ - -LINK32=link.exe -LINK32_FLAGS=ole32.lib oleaut32.lib user32.lib advapi32.lib gdi32.lib wsock32.lib shell32.lib pthreadVCE.lib zlib.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"MSVCRT.lib" /out:"$(OUTDIR)\bacula-fd.exe" /libpath:"../../../../depkgs-win32/pthreads" /libpath:"../../../../depkgs-win32/zlib" -LINK32_OBJS= \ - "$(INTDIR)\address_conf.obj" \ - "$(INTDIR)\alist.obj" \ - "$(INTDIR)\alloc.obj" \ - "$(INTDIR)\attr.obj" \ - "$(INTDIR)\attribs.obj" \ - "$(INTDIR)\authenticate.obj" \ - "$(INTDIR)\backup.obj" \ - "$(INTDIR)\base64.obj" \ - "$(INTDIR)\berrno.obj" \ - "$(INTDIR)\bfile.obj" \ - "$(INTDIR)\bget_msg.obj" \ - "$(INTDIR)\bnet.obj" \ - "$(INTDIR)\bnet_server.obj" \ - "$(INTDIR)\bshm.obj" \ - "$(INTDIR)\bsys.obj" \ - "$(INTDIR)\btime.obj" \ - "$(INTDIR)\btimers.obj" \ - "$(INTDIR)\compat.obj" \ - "$(INTDIR)\cram-md5.obj" \ - "$(INTDIR)\crc32.obj" \ - "$(INTDIR)\create_file.obj" \ - "$(INTDIR)\crypto.obj" \ - "$(INTDIR)\daemon.obj" \ - "$(INTDIR)\dlist.obj" \ - "$(INTDIR)\edit.obj" \ - "$(INTDIR)\enable_priv.obj" \ - "$(INTDIR)\estimate.obj" \ - "$(INTDIR)\filed.obj" \ - "$(INTDIR)\filed_conf.obj" \ - "$(INTDIR)\find.obj" \ - "$(INTDIR)\find_one.obj" \ - "$(INTDIR)\fnmatch.obj" \ - "$(INTDIR)\fstype.obj" \ - "$(INTDIR)\getopt.obj" \ - "$(INTDIR)\heartbeat.obj" \ - "$(INTDIR)\hmac.obj" \ - "$(INTDIR)\htable.obj" \ - "$(INTDIR)\idcache.obj" \ - "$(INTDIR)\jcr.obj" \ - "$(INTDIR)\job.obj" \ - "$(INTDIR)\lex.obj" \ - "$(INTDIR)\makepath.obj" \ - "$(INTDIR)\match.obj" \ - "$(INTDIR)\md5.obj" \ - "$(INTDIR)\mem_pool.obj" \ - "$(INTDIR)\message.obj" \ - "$(INTDIR)\parse_conf.obj" \ - "$(INTDIR)\print.obj" \ - "$(INTDIR)\pythonlib.obj" \ - "$(INTDIR)\queue.obj" \ - "$(INTDIR)\bregex.obj" \ - "$(INTDIR)\restore.obj" \ - "$(INTDIR)\res.obj" \ - "$(INTDIR)\rwlock.obj" \ - "$(INTDIR)\save-cwd.obj" \ - "$(INTDIR)\scan.obj" \ - "$(INTDIR)\semlock.obj" \ - "$(INTDIR)\serial.obj" \ - "$(INTDIR)\sha1.obj" \ - "$(INTDIR)\signal.obj" \ - "$(INTDIR)\smartall.obj" \ - "$(INTDIR)\status.obj" \ - "$(INTDIR)\StdAfx.obj" \ - "$(INTDIR)\tls.obj" \ - "$(INTDIR)\tree.obj" \ - "$(INTDIR)\util.obj" \ - "$(INTDIR)\var.obj" \ - "$(INTDIR)\verify.obj" \ - "$(INTDIR)\verify_vol.obj" \ - "$(INTDIR)\vss.obj" \ - "$(INTDIR)\vss_xp.obj" \ - "$(INTDIR)\vss_w2k3.obj" \ - "$(INTDIR)\watchdog.obj" \ - "$(INTDIR)\winabout.obj" \ - "$(INTDIR)\winapi.obj" \ - "$(INTDIR)\winevents.obj" \ - "$(INTDIR)\winmain.obj" \ - "$(INTDIR)\winservice.obj" \ - "$(INTDIR)\winstat.obj" \ - "$(INTDIR)\wintray.obj" \ - "$(INTDIR)\workq.obj" \ - "$(INTDIR)\winres.res" - -"$(OUTDIR)\bacula-fd.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - -OUTDIR=.\Debug -INTDIR=.\Debug -# Begin Custom Macros -OutDir=.\Debug -# End Custom Macros - -ALL : "$(OUTDIR)\bacula-fd.exe" "$(OUTDIR)\baculafd.bsc" - - -CLEAN : - -@erase "$(INTDIR)\address_conf.obj" - -@erase "$(INTDIR)\address_conf.sbr" - -@erase "$(INTDIR)\alist.obj" - -@erase "$(INTDIR)\alist.sbr" - -@erase "$(INTDIR)\alloc.obj" - -@erase "$(INTDIR)\alloc.sbr" - -@erase "$(INTDIR)\attr.obj" - -@erase "$(INTDIR)\attr.sbr" - -@erase "$(INTDIR)\attribs.obj" - -@erase "$(INTDIR)\attribs.sbr" - -@erase "$(INTDIR)\authenticate.obj" - -@erase "$(INTDIR)\authenticate.sbr" - -@erase "$(INTDIR)\backup.obj" - -@erase "$(INTDIR)\backup.sbr" - -@erase "$(INTDIR)\base64.obj" - -@erase "$(INTDIR)\base64.sbr" - -@erase "$(INTDIR)\berrno.obj" - -@erase "$(INTDIR)\berrno.sbr" - -@erase "$(INTDIR)\bfile.obj" - -@erase "$(INTDIR)\bfile.sbr" - -@erase "$(INTDIR)\bget_msg.obj" - -@erase "$(INTDIR)\bget_msg.sbr" - -@erase "$(INTDIR)\bnet.obj" - -@erase "$(INTDIR)\bnet.sbr" - -@erase "$(INTDIR)\bnet_server.obj" - -@erase "$(INTDIR)\bnet_server.sbr" - -@erase "$(INTDIR)\bshm.obj" - -@erase "$(INTDIR)\bshm.sbr" - -@erase "$(INTDIR)\bsys.obj" - -@erase "$(INTDIR)\bsys.sbr" - -@erase "$(INTDIR)\btime.obj" - -@erase "$(INTDIR)\btime.sbr" - -@erase "$(INTDIR)\btimers.obj" - -@erase "$(INTDIR)\btimers.sbr" - -@erase "$(INTDIR)\compat.obj" - -@erase "$(INTDIR)\compat.sbr" - -@erase "$(INTDIR)\cram-md5.obj" - -@erase "$(INTDIR)\cram-md5.sbr" - -@erase "$(INTDIR)\crc32.obj" - -@erase "$(INTDIR)\crc32.sbr" - -@erase "$(INTDIR)\create_file.obj" - -@erase "$(INTDIR)\create_file.sbr" - -@erase "$(INTDIR)\crypto.obj" - -@erase "$(INTDIR)\crypto.sbr" - -@erase "$(INTDIR)\daemon.obj" - -@erase "$(INTDIR)\daemon.sbr" - -@erase "$(INTDIR)\dlist.obj" - -@erase "$(INTDIR)\dlist.sbr" - -@erase "$(INTDIR)\edit.obj" - -@erase "$(INTDIR)\edit.sbr" - -@erase "$(INTDIR)\enable_priv.obj" - -@erase "$(INTDIR)\enable_priv.sbr" - -@erase "$(INTDIR)\estimate.obj" - -@erase "$(INTDIR)\estimate.sbr" - -@erase "$(INTDIR)\filed.obj" - -@erase "$(INTDIR)\filed.sbr" - -@erase "$(INTDIR)\filed_conf.obj" - -@erase "$(INTDIR)\filed_conf.sbr" - -@erase "$(INTDIR)\find.obj" - -@erase "$(INTDIR)\find.sbr" - -@erase "$(INTDIR)\find_one.obj" - -@erase "$(INTDIR)\find_one.sbr" - -@erase "$(INTDIR)\fnmatch.obj" - -@erase "$(INTDIR)\fnmatch.sbr" - -@erase "$(INTDIR)\fstype.obj" - -@erase "$(INTDIR)\fstype.sbr" - -@erase "$(INTDIR)\getopt.obj" - -@erase "$(INTDIR)\getopt.sbr" - -@erase "$(INTDIR)\heartbeat.obj" - -@erase "$(INTDIR)\heartbeat.sbr" - -@erase "$(INTDIR)\hmac.obj" - -@erase "$(INTDIR)\hmac.sbr" - -@erase "$(INTDIR)\htable.obj" - -@erase "$(INTDIR)\htable.sbr" - -@erase "$(INTDIR)\idcache.obj" - -@erase "$(INTDIR)\idcache.sbr" - -@erase "$(INTDIR)\jcr.obj" - -@erase "$(INTDIR)\jcr.sbr" - -@erase "$(INTDIR)\job.obj" - -@erase "$(INTDIR)\job.sbr" - -@erase "$(INTDIR)\lex.obj" - -@erase "$(INTDIR)\lex.sbr" - -@erase "$(INTDIR)\makepath.obj" - -@erase "$(INTDIR)\makepath.sbr" - -@erase "$(INTDIR)\match.obj" - -@erase "$(INTDIR)\match.sbr" - -@erase "$(INTDIR)\md5.obj" - -@erase "$(INTDIR)\md5.sbr" - -@erase "$(INTDIR)\mem_pool.obj" - -@erase "$(INTDIR)\mem_pool.sbr" - -@erase "$(INTDIR)\message.obj" - -@erase "$(INTDIR)\message.sbr" - -@erase "$(INTDIR)\parse_conf.obj" - -@erase "$(INTDIR)\parse_conf.sbr" - -@erase "$(INTDIR)\print.obj" - -@erase "$(INTDIR)\print.sbr" - -@erase "$(INTDIR)\pythonlib.obj" - -@erase "$(INTDIR)\pythonlib.sbr" - -@erase "$(INTDIR)\queue.obj" - -@erase "$(INTDIR)\queue.sbr" - -@erase "$(INTDIR)\bregex.obj" - -@erase "$(INTDIR)\bregex.sbr" - -@erase "$(INTDIR)\restore.obj" - -@erase "$(INTDIR)\restore.sbr" - -@erase "$(INTDIR)\res.obj" - -@erase "$(INTDIR)\res.sbr" - -@erase "$(INTDIR)\rwlock.obj" - -@erase "$(INTDIR)\rwlock.sbr" - -@erase "$(INTDIR)\save-cwd.obj" - -@erase "$(INTDIR)\save-cwd.sbr" - -@erase "$(INTDIR)\scan.obj" - -@erase "$(INTDIR)\scan.sbr" - -@erase "$(INTDIR)\semlock.obj" - -@erase "$(INTDIR)\semlock.sbr" - -@erase "$(INTDIR)\serial.obj" - -@erase "$(INTDIR)\serial.sbr" - -@erase "$(INTDIR)\sha1.obj" - -@erase "$(INTDIR)\sha1.sbr" - -@erase "$(INTDIR)\signal.obj" - -@erase "$(INTDIR)\signal.sbr" - -@erase "$(INTDIR)\smartall.obj" - -@erase "$(INTDIR)\smartall.sbr" - -@erase "$(INTDIR)\status.obj" - -@erase "$(INTDIR)\status.sbr" - -@erase "$(INTDIR)\StdAfx.obj" - -@erase "$(INTDIR)\StdAfx.sbr" - -@erase "$(INTDIR)\tls.obj" - -@erase "$(INTDIR)\tls.sbr" - -@erase "$(INTDIR)\tree.obj" - -@erase "$(INTDIR)\tree.sbr" - -@erase "$(INTDIR)\util.obj" - -@erase "$(INTDIR)\util.sbr" - -@erase "$(INTDIR)\var.obj" - -@erase "$(INTDIR)\var.sbr" - -@erase "$(INTDIR)\vc60.idb" - -@erase "$(INTDIR)\vc60.pdb" - -@erase "$(INTDIR)\verify.obj" - -@erase "$(INTDIR)\verify.sbr" - -@erase "$(INTDIR)\verify_vol.obj" - -@erase "$(INTDIR)\verify_vol.sbr" - -@erase "$(INTDIR)\vss.obj" - -@erase "$(INTDIR)\vss.sbr" - -@erase "$(INTDIR)\vss_xp.obj" - -@erase "$(INTDIR)\vss_xp.sbr" - -@erase "$(INTDIR)\vss_w2k3.obj" - -@erase "$(INTDIR)\vss_w2k3.sbr" - -@erase "$(INTDIR)\watchdog.obj" - -@erase "$(INTDIR)\watchdog.sbr" - -@erase "$(INTDIR)\winabout.obj" - -@erase "$(INTDIR)\winabout.sbr" - -@erase "$(INTDIR)\winapi.obj" - -@erase "$(INTDIR)\winapi.sbr" - -@erase "$(INTDIR)\winevents.obj" - -@erase "$(INTDIR)\winevents.sbr" - -@erase "$(INTDIR)\winmain.obj" - -@erase "$(INTDIR)\winmain.sbr" - -@erase "$(INTDIR)\winres.res" - -@erase "$(INTDIR)\winservice.obj" - -@erase "$(INTDIR)\winservice.sbr" - -@erase "$(INTDIR)\winstat.obj" - -@erase "$(INTDIR)\winstat.sbr" - -@erase "$(INTDIR)\wintray.obj" - -@erase "$(INTDIR)\wintray.sbr" - -@erase "$(INTDIR)\workq.obj" - -@erase "$(INTDIR)\workq.sbr" - -@erase "$(OUTDIR)\bacula-fd.exe" - -@erase "$(OUTDIR)\baculafd.bsc" - -"$(OUTDIR)" : - if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" - -CPP_PROJ=/nologo /MTd /W3 /Gm /GX /ZI /Od /I "../compat" /I "../.." /I "../../../../depkgs-win32/pthreads" /I "../../../../depkgs-win32/zlib" /I "." /D "_WINDOWS" /D "_WIN32_WINNT=0x500" /D "WIN32_VSS" /D "_DEBUG" /D "_WINMAIN_" /D "PTW32_BUILD" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "HAVE_WIN32" /FR"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c -RSC_PROJ=/l 0x409 /fo"$(INTDIR)\winres.res" /d "_DEBUG" -BSC32=bscmake.exe -BSC32_FLAGS=/nologo /o"$(OUTDIR)\baculafd.bsc" -BSC32_SBRS= \ - "$(INTDIR)\address_conf.sbr" \ - "$(INTDIR)\alist.sbr" \ - "$(INTDIR)\alloc.sbr" \ - "$(INTDIR)\attr.sbr" \ - "$(INTDIR)\attribs.sbr" \ - "$(INTDIR)\authenticate.sbr" \ - "$(INTDIR)\backup.sbr" \ - "$(INTDIR)\base64.sbr" \ - "$(INTDIR)\berrno.sbr" \ - "$(INTDIR)\bfile.sbr" \ - "$(INTDIR)\bget_msg.sbr" \ - "$(INTDIR)\bnet.sbr" \ - "$(INTDIR)\bnet_server.sbr" \ - "$(INTDIR)\bshm.sbr" \ - "$(INTDIR)\bsys.sbr" \ - "$(INTDIR)\btime.sbr" \ - "$(INTDIR)\btimers.sbr" \ - "$(INTDIR)\compat.sbr" \ - "$(INTDIR)\cram-md5.sbr" \ - "$(INTDIR)\crc32.sbr" \ - "$(INTDIR)\create_file.sbr" \ - "$(INTDIR)\crypto.sbr" \ - "$(INTDIR)\daemon.sbr" \ - "$(INTDIR)\dlist.sbr" \ - "$(INTDIR)\edit.sbr" \ - "$(INTDIR)\enable_priv.sbr" \ - "$(INTDIR)\estimate.sbr" \ - "$(INTDIR)\filed.sbr" \ - "$(INTDIR)\filed_conf.sbr" \ - "$(INTDIR)\find.sbr" \ - "$(INTDIR)\find_one.sbr" \ - "$(INTDIR)\fnmatch.sbr" \ - "$(INTDIR)\fstype.sbr" \ - "$(INTDIR)\getopt.sbr" \ - "$(INTDIR)\heartbeat.sbr" \ - "$(INTDIR)\hmac.sbr" \ - "$(INTDIR)\htable.sbr" \ - "$(INTDIR)\idcache.sbr" \ - "$(INTDIR)\jcr.sbr" \ - "$(INTDIR)\job.sbr" \ - "$(INTDIR)\lex.sbr" \ - "$(INTDIR)\makepath.sbr" \ - "$(INTDIR)\match.sbr" \ - "$(INTDIR)\md5.sbr" \ - "$(INTDIR)\mem_pool.sbr" \ - "$(INTDIR)\message.sbr" \ - "$(INTDIR)\parse_conf.sbr" \ - "$(INTDIR)\print.sbr" \ - "$(INTDIR)\pythonlib.sbr" \ - "$(INTDIR)\queue.sbr" \ - "$(INTDIR)\bregex.sbr" \ - "$(INTDIR)\restore.sbr" \ - "$(INTDIR)\res.sbr" \ - "$(INTDIR)\rwlock.sbr" \ - "$(INTDIR)\save-cwd.sbr" \ - "$(INTDIR)\scan.sbr" \ - "$(INTDIR)\semlock.sbr" \ - "$(INTDIR)\serial.sbr" \ - "$(INTDIR)\sha1.sbr" \ - "$(INTDIR)\signal.sbr" \ - "$(INTDIR)\smartall.sbr" \ - "$(INTDIR)\status.sbr" \ - "$(INTDIR)\StdAfx.sbr" \ - "$(INTDIR)\tls.sbr" \ - "$(INTDIR)\tree.sbr" \ - "$(INTDIR)\util.sbr" \ - "$(INTDIR)\var.sbr" \ - "$(INTDIR)\verify.sbr" \ - "$(INTDIR)\verify_vol.sbr" \ - "$(INTDIR)\vss.sbr" \ - "$(INTDIR)\vss_xp.sbr" \ - "$(INTDIR)\vss_w2k3.sbr" \ - "$(INTDIR)\watchdog.sbr" \ - "$(INTDIR)\winabout.sbr" \ - "$(INTDIR)\winapi.sbr" \ - "$(INTDIR)\winevents.sbr" \ - "$(INTDIR)\winmain.sbr" \ - "$(INTDIR)\winservice.sbr" \ - "$(INTDIR)\winstat.sbr" \ - "$(INTDIR)\wintray.sbr" \ - "$(INTDIR)\workq.sbr" - -"$(OUTDIR)\baculafd.bsc" : "$(OUTDIR)" $(BSC32_SBRS) - $(BSC32) @<< - $(BSC32_FLAGS) $(BSC32_SBRS) -<< - -LINK32=link.exe -LINK32_FLAGS=ole32.lib oleaut32.lib user32.lib advapi32.lib gdi32.lib shell32.lib wsock32.lib pthreadVCE.lib zlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"MSVCRT.lib" /out:"$(OUTDIR)\bacula-fd.exe" /libpath:"../../../../depkgs-win32/pthreads" /libpath:"../../../../depkgs-win32/zlib" -LINK32_OBJS= \ - "$(INTDIR)\address_conf.obj" \ - "$(INTDIR)\alist.obj" \ - "$(INTDIR)\alloc.obj" \ - "$(INTDIR)\attr.obj" \ - "$(INTDIR)\attribs.obj" \ - "$(INTDIR)\authenticate.obj" \ - "$(INTDIR)\backup.obj" \ - "$(INTDIR)\base64.obj" \ - "$(INTDIR)\berrno.obj" \ - "$(INTDIR)\bfile.obj" \ - "$(INTDIR)\bget_msg.obj" \ - "$(INTDIR)\bnet.obj" \ - "$(INTDIR)\bnet_server.obj" \ - "$(INTDIR)\bshm.obj" \ - "$(INTDIR)\bsys.obj" \ - "$(INTDIR)\btime.obj" \ - "$(INTDIR)\btimers.obj" \ - "$(INTDIR)\compat.obj" \ - "$(INTDIR)\cram-md5.obj" \ - "$(INTDIR)\crc32.obj" \ - "$(INTDIR)\create_file.obj" \ - "$(INTDIR)\crypto.obj" \ - "$(INTDIR)\daemon.obj" \ - "$(INTDIR)\dlist.obj" \ - "$(INTDIR)\edit.obj" \ - "$(INTDIR)\enable_priv.obj" \ - "$(INTDIR)\estimate.obj" \ - "$(INTDIR)\filed.obj" \ - "$(INTDIR)\filed_conf.obj" \ - "$(INTDIR)\find.obj" \ - "$(INTDIR)\find_one.obj" \ - "$(INTDIR)\fnmatch.obj" \ - "$(INTDIR)\fstype.obj" \ - "$(INTDIR)\getopt.obj" \ - "$(INTDIR)\heartbeat.obj" \ - "$(INTDIR)\hmac.obj" \ - "$(INTDIR)\htable.obj" \ - "$(INTDIR)\idcache.obj" \ - "$(INTDIR)\jcr.obj" \ - "$(INTDIR)\job.obj" \ - "$(INTDIR)\lex.obj" \ - "$(INTDIR)\makepath.obj" \ - "$(INTDIR)\match.obj" \ - "$(INTDIR)\md5.obj" \ - "$(INTDIR)\mem_pool.obj" \ - "$(INTDIR)\message.obj" \ - "$(INTDIR)\parse_conf.obj" \ - "$(INTDIR)\print.obj" \ - "$(INTDIR)\pythonlib.obj" \ - "$(INTDIR)\queue.obj" \ - "$(INTDIR)\bregex.obj" \ - "$(INTDIR)\restore.obj" \ - "$(INTDIR)\res.obj" \ - "$(INTDIR)\rwlock.obj" \ - "$(INTDIR)\save-cwd.obj" \ - "$(INTDIR)\scan.obj" \ - "$(INTDIR)\semlock.obj" \ - "$(INTDIR)\serial.obj" \ - "$(INTDIR)\sha1.obj" \ - "$(INTDIR)\signal.obj" \ - "$(INTDIR)\smartall.obj" \ - "$(INTDIR)\status.obj" \ - "$(INTDIR)\StdAfx.obj" \ - "$(INTDIR)\tls.obj" \ - "$(INTDIR)\tree.obj" \ - "$(INTDIR)\util.obj" \ - "$(INTDIR)\var.obj" \ - "$(INTDIR)\verify.obj" \ - "$(INTDIR)\verify_vol.obj" \ - "$(INTDIR)\vss.obj" \ - "$(INTDIR)\vss_xp.obj" \ - "$(INTDIR)\vss_w2k3.obj" \ - "$(INTDIR)\watchdog.obj" \ - "$(INTDIR)\winabout.obj" \ - "$(INTDIR)\winapi.obj" \ - "$(INTDIR)\winevents.obj" \ - "$(INTDIR)\winmain.obj" \ - "$(INTDIR)\winservice.obj" \ - "$(INTDIR)\winstat.obj" \ - "$(INTDIR)\wintray.obj" \ - "$(INTDIR)\workq.obj" \ - "$(INTDIR)\winres.res" - -"$(OUTDIR)\bacula-fd.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ENDIF - -.c{$(INTDIR)}.obj:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.cpp{$(INTDIR)}.obj:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.cxx{$(INTDIR)}.obj:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.c{$(INTDIR)}.sbr:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.cpp{$(INTDIR)}.sbr:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.cxx{$(INTDIR)}.sbr:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - - -!IF "$(NO_EXTERNAL_DEPS)" != "1" -!IF EXISTS("baculafd.dep") -!INCLUDE "baculafd.dep" -!ELSE -!MESSAGE Warning: cannot find "baculafd.dep" -!ENDIF -!ENDIF - - -!IF "$(CFG)" == "baculafd - Win32 Release" || "$(CFG)" == "baculafd - Win32 Debug" - -SOURCE=..\lib\address_conf.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\address_conf.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\address_conf.obj" "$(INTDIR)\address_conf.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\alist.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\alist.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\alist.obj" "$(INTDIR)\alist.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\lib\alloc.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\alloc.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\alloc.obj" "$(INTDIR)\alloc.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\attr.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\attr.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\attr.obj" "$(INTDIR)\attr.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\findlib\attribs.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\attribs.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\attribs.obj" "$(INTDIR)\attribs.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\filed\authenticate.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\authenticate.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\authenticate.obj" "$(INTDIR)\authenticate.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\filed\backup.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\backup.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\backup.obj" "$(INTDIR)\backup.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\base64.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\base64.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\base64.obj" "$(INTDIR)\base64.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\berrno.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\berrno.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\berrno.obj" "$(INTDIR)\berrno.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\findlib\bfile.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\bfile.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\bfile.obj" "$(INTDIR)\bfile.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\bget_msg.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\bget_msg.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\bget_msg.obj" "$(INTDIR)\bget_msg.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\bnet.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\bnet.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\bnet.obj" "$(INTDIR)\bnet.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\bnet_server.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\bnet_server.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\bnet_server.obj" "$(INTDIR)\bnet_server.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\bshm.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\bshm.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\bshm.obj" "$(INTDIR)\bshm.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\bsys.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\bsys.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\bsys.obj" "$(INTDIR)\bsys.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\btime.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\btime.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\btime.obj" "$(INTDIR)\btime.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\btimers.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\btimers.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\btimers.obj" "$(INTDIR)\btimers.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\compat\compat.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\compat.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\compat.obj" "$(INTDIR)\compat.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE="..\lib\cram-md5.cpp" - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\cram-md5.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\cram-md5.obj" "$(INTDIR)\cram-md5.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\crc32.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\crc32.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\crc32.obj" "$(INTDIR)\crc32.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\findlib\create_file.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\create_file.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\create_file.obj" "$(INTDIR)\create_file.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\crypto.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\crypto.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\crypto.obj" "$(INTDIR)\crypto.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\lib\daemon.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\daemon.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\daemon.obj" "$(INTDIR)\daemon.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\dlist.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\dlist.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\dlist.obj" "$(INTDIR)\dlist.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\edit.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\edit.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\edit.obj" "$(INTDIR)\edit.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\findlib\enable_priv.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\enable_priv.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\enable_priv.obj" "$(INTDIR)\enable_priv.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\filed\estimate.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\estimate.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\estimate.obj" "$(INTDIR)\estimate.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\filed\filed.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\filed.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\filed.obj" "$(INTDIR)\filed.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\filed\filed_conf.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\filed_conf.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\filed_conf.obj" "$(INTDIR)\filed_conf.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\findlib\find.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\find.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\find.obj" "$(INTDIR)\find.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\findlib\find_one.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\find_one.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\find_one.obj" "$(INTDIR)\find_one.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\fnmatch.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\fnmatch.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\fnmatch.obj" "$(INTDIR)\fnmatch.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\findlib\fstype.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\fstype.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\fstype.obj" "$(INTDIR)\fstype.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\compat\getopt.c - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\getopt.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\getopt.obj" "$(INTDIR)\getopt.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\filed\heartbeat.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\heartbeat.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\heartbeat.obj" "$(INTDIR)\heartbeat.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\hmac.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\hmac.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\hmac.obj" "$(INTDIR)\hmac.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\htable.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\htable.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\htable.obj" "$(INTDIR)\htable.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\idcache.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\idcache.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\idcache.obj" "$(INTDIR)\idcache.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\jcr.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\jcr.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\jcr.obj" "$(INTDIR)\jcr.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\filed\job.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\job.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\job.obj" "$(INTDIR)\job.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\lex.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\lex.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\lex.obj" "$(INTDIR)\lex.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\findlib\makepath.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\makepath.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\makepath.obj" "$(INTDIR)\makepath.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\findlib\match.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\match.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\match.obj" "$(INTDIR)\match.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\md5.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\md5.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\md5.obj" "$(INTDIR)\md5.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\mem_pool.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\mem_pool.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\mem_pool.obj" "$(INTDIR)\mem_pool.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\message.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\message.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\message.obj" "$(INTDIR)\message.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\parse_conf.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\parse_conf.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\parse_conf.obj" "$(INTDIR)\parse_conf.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\compat\print.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\print.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\print.obj" "$(INTDIR)\print.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\pythonlib.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\pythonlib.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\pythonlib.obj" "$(INTDIR)\pythonlib.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\lib\queue.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\queue.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\queue.obj" "$(INTDIR)\queue.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\bregex.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\bregex.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\bregex.obj" "$(INTDIR)\bregex.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\filed\restore.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\restore.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\restore.obj" "$(INTDIR)\restore.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\res.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\res.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\res.obj" "$(INTDIR)\res.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\lib\rwlock.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\rwlock.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\rwlock.obj" "$(INTDIR)\rwlock.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE="..\findlib\save-cwd.cpp" - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\save-cwd.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\save-cwd.obj" "$(INTDIR)\save-cwd.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\scan.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\scan.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\scan.obj" "$(INTDIR)\scan.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\semlock.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\semlock.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\semlock.obj" "$(INTDIR)\semlock.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\serial.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\serial.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\serial.obj" "$(INTDIR)\serial.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\sha1.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\sha1.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\sha1.obj" "$(INTDIR)\sha1.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\signal.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\signal.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\signal.obj" "$(INTDIR)\signal.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\smartall.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\smartall.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\smartall.obj" "$(INTDIR)\smartall.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\filed\status.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\status.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\status.obj" "$(INTDIR)\status.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=.\StdAfx.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\StdAfx.obj" : $(SOURCE) "$(INTDIR)" - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\StdAfx.obj" "$(INTDIR)\StdAfx.sbr" : $(SOURCE) "$(INTDIR)" - - -!ENDIF - -SOURCE=..\lib\tls.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\tls.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\tls.obj" "$(INTDIR)\tls.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\lib\tree.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\tree.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\tree.obj" "$(INTDIR)\tree.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\util.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\util.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\util.obj" "$(INTDIR)\util.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\lib\var.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\var.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\var.obj" "$(INTDIR)\var.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - - -SOURCE=..\filed\verify.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\verify.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\verify.obj" "$(INTDIR)\verify.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\filed\verify_vol.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\verify_vol.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\verify_vol.obj" "$(INTDIR)\verify_vol.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\compat\vss.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\vss.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\vss.obj" "$(INTDIR)\vss.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\compat\vss_xp.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\vss_xp.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\vss_xp.obj" "$(INTDIR)\vss_xp.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\compat\vss_w2k3.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\vss_w2k3.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\vss_w2k3.obj" "$(INTDIR)\vss_w2k3.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - - - -SOURCE=..\lib\watchdog.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\watchdog.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\watchdog.obj" "$(INTDIR)\watchdog.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\..\filed\win32\winabout.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\winabout.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\winabout.obj" "$(INTDIR)\winabout.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\winapi.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\winapi.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\winapi.obj" "$(INTDIR)\winapi.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\..\filed\win32\winevents.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\winevents.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\winevents.obj" "$(INTDIR)\winevents.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\..\filed\win32\winmain.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\winmain.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\winmain.obj" "$(INTDIR)\winmain.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\..\filed\win32\winres.rc - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\winres.res" : $(SOURCE) "$(INTDIR)" - $(RSC) /l 0x409 /fo"$(INTDIR)\winres.res" /i "..\..\filed\win32" /d "NDEBUG" $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\winres.res" : $(SOURCE) "$(INTDIR)" - $(RSC) /l 0x409 /fo"$(INTDIR)\winres.res" /i "..\..\filed\win32" /d "_DEBUG" $(SOURCE) - - -!ENDIF - -SOURCE=..\..\filed\win32\winservice.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\winservice.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\winservice.obj" "$(INTDIR)\winservice.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\..\filed\win32\winstat.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\winstat.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\winstat.obj" "$(INTDIR)\winstat.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\..\filed\win32\wintray.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\wintray.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\wintray.obj" "$(INTDIR)\wintray.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\workq.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\workq.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\workq.obj" "$(INTDIR)\workq.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -!ENDIF diff --git a/bacula/src/win32/baculafd/baculafd.vcproj b/bacula/src/win32/baculafd/baculafd.vcproj deleted file mode 100644 index 6dc5dbf1d9..0000000000 --- a/bacula/src/win32/baculafd/baculafd.vcproj +++ /dev/null @@ -1,539 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/bacula/src/win32/baculafd/baculanovssfd.mak b/bacula/src/win32/baculafd/baculanovssfd.mak deleted file mode 100644 index 60f9fa63ef..0000000000 --- a/bacula/src/win32/baculafd/baculanovssfd.mak +++ /dev/null @@ -1,2110 +0,0 @@ -# Microsoft Developer Studio Generated NMAKE File, Based on baculafd.dsp -!IF "$(CFG)" == "" -CFG=baculafd - Win32 Debug -!MESSAGE No configuration specified. Defaulting to baculafd - Win32 Debug. -!ENDIF - -!IF "$(CFG)" != "baculafd - Win32 Release" && "$(CFG)" != "baculafd - Win32 Debug" -!MESSAGE Invalid configuration "$(CFG)" specified. -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "baculafd.mak" CFG="baculafd - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "baculafd - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "baculafd - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE -!ERROR An invalid configuration is specified. -!ENDIF - -!IF "$(OS)" == "Windows_NT" -NULL= -!ELSE -NULL=nul -!ENDIF - -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "baculafd - Win32 Release" - -OUTDIR=.\Release -INTDIR=.\Release -# Begin Custom Macros -OutDir=.\Release -# End Custom Macros - -ALL : "$(OUTDIR)\bacula-fd.exe" - - -CLEAN : - -@erase "$(INTDIR)\address_conf.obj" - -@erase "$(INTDIR)\alist.obj" - -@erase "$(INTDIR)\alloc.obj" - -@erase "$(INTDIR)\attr.obj" - -@erase "$(INTDIR)\attribs.obj" - -@erase "$(INTDIR)\authenticate.obj" - -@erase "$(INTDIR)\backup.obj" - -@erase "$(INTDIR)\base64.obj" - -@erase "$(INTDIR)\berrno.obj" - -@erase "$(INTDIR)\bfile.obj" - -@erase "$(INTDIR)\bget_msg.obj" - -@erase "$(INTDIR)\bnet.obj" - -@erase "$(INTDIR)\bnet_server.obj" - -@erase "$(INTDIR)\bshm.obj" - -@erase "$(INTDIR)\bsys.obj" - -@erase "$(INTDIR)\btime.obj" - -@erase "$(INTDIR)\btimers.obj" - -@erase "$(INTDIR)\chksum.obj" - -@erase "$(INTDIR)\compat.obj" - -@erase "$(INTDIR)\cram-md5.obj" - -@erase "$(INTDIR)\crc32.obj" - -@erase "$(INTDIR)\create_file.obj" - -@erase "$(INTDIR)\daemon.obj" - -@erase "$(INTDIR)\dlist.obj" - -@erase "$(INTDIR)\edit.obj" - -@erase "$(INTDIR)\enable_priv.obj" - -@erase "$(INTDIR)\estimate.obj" - -@erase "$(INTDIR)\filed.obj" - -@erase "$(INTDIR)\filed_conf.obj" - -@erase "$(INTDIR)\find.obj" - -@erase "$(INTDIR)\find_one.obj" - -@erase "$(INTDIR)\fnmatch.obj" - -@erase "$(INTDIR)\fstype.obj" - -@erase "$(INTDIR)\getopt.obj" - -@erase "$(INTDIR)\heartbeat.obj" - -@erase "$(INTDIR)\hmac.obj" - -@erase "$(INTDIR)\htable.obj" - -@erase "$(INTDIR)\idcache.obj" - -@erase "$(INTDIR)\jcr.obj" - -@erase "$(INTDIR)\job.obj" - -@erase "$(INTDIR)\lex.obj" - -@erase "$(INTDIR)\makepath.obj" - -@erase "$(INTDIR)\match.obj" - -@erase "$(INTDIR)\md5.obj" - -@erase "$(INTDIR)\mem_pool.obj" - -@erase "$(INTDIR)\message.obj" - -@erase "$(INTDIR)\parse_conf.obj" - -@erase "$(INTDIR)\print.obj" - -@erase "$(INTDIR)\pythonlib.obj" - -@erase "$(INTDIR)\queue.obj" - -@erase "$(INTDIR)\bregex.obj" - -@erase "$(INTDIR)\restore.obj" - -@erase "$(INTDIR)\res.obj" - -@erase "$(INTDIR)\rwlock.obj" - -@erase "$(INTDIR)\save-cwd.obj" - -@erase "$(INTDIR)\scan.obj" - -@erase "$(INTDIR)\semlock.obj" - -@erase "$(INTDIR)\serial.obj" - -@erase "$(INTDIR)\sha1.obj" - -@erase "$(INTDIR)\signal.obj" - -@erase "$(INTDIR)\smartall.obj" - -@erase "$(INTDIR)\status.obj" - -@erase "$(INTDIR)\StdAfx.obj" - -@erase "$(INTDIR)\tls.obj" - -@erase "$(INTDIR)\tree.obj" - -@erase "$(INTDIR)\util.obj" - -@erase "$(INTDIR)\var.obj" - -@erase "$(INTDIR)\vc60.idb" - -@erase "$(INTDIR)\verify.obj" - -@erase "$(INTDIR)\verify_vol.obj" - -@erase "$(INTDIR)\watchdog.obj" - -@erase "$(INTDIR)\winabout.obj" - -@erase "$(INTDIR)\winapi.obj" - -@erase "$(INTDIR)\winevents.obj" - -@erase "$(INTDIR)\winmain.obj" - -@erase "$(INTDIR)\winres.res" - -@erase "$(INTDIR)\winservice.obj" - -@erase "$(INTDIR)\winstat.obj" - -@erase "$(INTDIR)\wintray.obj" - -@erase "$(INTDIR)\workq.obj" - -@erase "$(OUTDIR)\bacula-fd.exe" - -"$(OUTDIR)" : - if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" - -CPP_PROJ=/nologo /MT /W3 /GX /O2 /I "../compat" /I "../.." /I "../../../../depkgs-win32/pthreads" /I "../../../../depkgs-win32/zlib" /I "." /D "_WINDOWS" /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "HAVE_WIN32" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c -RSC_PROJ=/l 0x409 /fo"$(INTDIR)\winres.res" /d "NDEBUG" -BSC32=bscmake.exe -BSC32_FLAGS=/nologo /o"$(OUTDIR)\baculafd.bsc" -BSC32_SBRS= \ - -LINK32=link.exe -LINK32_FLAGS=ole32.lib oleaut32.lib user32.lib advapi32.lib gdi32.lib wsock32.lib shell32.lib pthreadVCE.lib zlib.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"MSVCRT.lib" /out:"$(OUTDIR)\bacula-fd.exe" /libpath:"../../../../depkgs-win32/pthreads" /libpath:"../../../../depkgs-win32/zlib" -LINK32_OBJS= \ - "$(INTDIR)\address_conf.obj" \ - "$(INTDIR)\alist.obj" \ - "$(INTDIR)\alloc.obj" \ - "$(INTDIR)\attr.obj" \ - "$(INTDIR)\attribs.obj" \ - "$(INTDIR)\authenticate.obj" \ - "$(INTDIR)\backup.obj" \ - "$(INTDIR)\base64.obj" \ - "$(INTDIR)\berrno.obj" \ - "$(INTDIR)\bfile.obj" \ - "$(INTDIR)\bget_msg.obj" \ - "$(INTDIR)\bnet.obj" \ - "$(INTDIR)\bnet_server.obj" \ - "$(INTDIR)\bshm.obj" \ - "$(INTDIR)\bsys.obj" \ - "$(INTDIR)\btime.obj" \ - "$(INTDIR)\btimers.obj" \ - "$(INTDIR)\chksum.obj" \ - "$(INTDIR)\compat.obj" \ - "$(INTDIR)\cram-md5.obj" \ - "$(INTDIR)\crc32.obj" \ - "$(INTDIR)\create_file.obj" \ - "$(INTDIR)\daemon.obj" \ - "$(INTDIR)\dlist.obj" \ - "$(INTDIR)\edit.obj" \ - "$(INTDIR)\enable_priv.obj" \ - "$(INTDIR)\estimate.obj" \ - "$(INTDIR)\filed.obj" \ - "$(INTDIR)\filed_conf.obj" \ - "$(INTDIR)\find.obj" \ - "$(INTDIR)\find_one.obj" \ - "$(INTDIR)\fnmatch.obj" \ - "$(INTDIR)\fstype.obj" \ - "$(INTDIR)\getopt.obj" \ - "$(INTDIR)\heartbeat.obj" \ - "$(INTDIR)\hmac.obj" \ - "$(INTDIR)\htable.obj" \ - "$(INTDIR)\idcache.obj" \ - "$(INTDIR)\jcr.obj" \ - "$(INTDIR)\job.obj" \ - "$(INTDIR)\lex.obj" \ - "$(INTDIR)\makepath.obj" \ - "$(INTDIR)\match.obj" \ - "$(INTDIR)\md5.obj" \ - "$(INTDIR)\mem_pool.obj" \ - "$(INTDIR)\message.obj" \ - "$(INTDIR)\parse_conf.obj" \ - "$(INTDIR)\print.obj" \ - "$(INTDIR)\pythonlib.obj" \ - "$(INTDIR)\queue.obj" \ - "$(INTDIR)\bregex.obj" \ - "$(INTDIR)\restore.obj" \ - "$(INTDIR)\res.obj" \ - "$(INTDIR)\rwlock.obj" \ - "$(INTDIR)\save-cwd.obj" \ - "$(INTDIR)\scan.obj" \ - "$(INTDIR)\semlock.obj" \ - "$(INTDIR)\serial.obj" \ - "$(INTDIR)\sha1.obj" \ - "$(INTDIR)\signal.obj" \ - "$(INTDIR)\smartall.obj" \ - "$(INTDIR)\status.obj" \ - "$(INTDIR)\StdAfx.obj" \ - "$(INTDIR)\tls.obj" \ - "$(INTDIR)\tree.obj" \ - "$(INTDIR)\util.obj" \ - "$(INTDIR)\var.obj" \ - "$(INTDIR)\verify.obj" \ - "$(INTDIR)\verify_vol.obj" \ - "$(INTDIR)\watchdog.obj" \ - "$(INTDIR)\winabout.obj" \ - "$(INTDIR)\winapi.obj" \ - "$(INTDIR)\winevents.obj" \ - "$(INTDIR)\winmain.obj" \ - "$(INTDIR)\winservice.obj" \ - "$(INTDIR)\winstat.obj" \ - "$(INTDIR)\wintray.obj" \ - "$(INTDIR)\workq.obj" \ - "$(INTDIR)\winres.res" - -"$(OUTDIR)\bacula-fd.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - -OUTDIR=.\Debug -INTDIR=.\Debug -# Begin Custom Macros -OutDir=.\Debug -# End Custom Macros - -ALL : "$(OUTDIR)\bacula-fd.exe" "$(OUTDIR)\baculafd.bsc" - - -CLEAN : - -@erase "$(INTDIR)\address_conf.obj" - -@erase "$(INTDIR)\address_conf.sbr" - -@erase "$(INTDIR)\alist.obj" - -@erase "$(INTDIR)\alist.sbr" - -@erase "$(INTDIR)\alloc.obj" - -@erase "$(INTDIR)\alloc.sbr" - -@erase "$(INTDIR)\attr.obj" - -@erase "$(INTDIR)\attr.sbr" - -@erase "$(INTDIR)\attribs.obj" - -@erase "$(INTDIR)\attribs.sbr" - -@erase "$(INTDIR)\authenticate.obj" - -@erase "$(INTDIR)\authenticate.sbr" - -@erase "$(INTDIR)\backup.obj" - -@erase "$(INTDIR)\backup.sbr" - -@erase "$(INTDIR)\base64.obj" - -@erase "$(INTDIR)\base64.sbr" - -@erase "$(INTDIR)\berrno.obj" - -@erase "$(INTDIR)\berrno.sbr" - -@erase "$(INTDIR)\bfile.obj" - -@erase "$(INTDIR)\bfile.sbr" - -@erase "$(INTDIR)\bget_msg.obj" - -@erase "$(INTDIR)\bget_msg.sbr" - -@erase "$(INTDIR)\bnet.obj" - -@erase "$(INTDIR)\bnet.sbr" - -@erase "$(INTDIR)\bnet_server.obj" - -@erase "$(INTDIR)\bnet_server.sbr" - -@erase "$(INTDIR)\bshm.obj" - -@erase "$(INTDIR)\bshm.sbr" - -@erase "$(INTDIR)\bsys.obj" - -@erase "$(INTDIR)\bsys.sbr" - -@erase "$(INTDIR)\btime.obj" - -@erase "$(INTDIR)\btime.sbr" - -@erase "$(INTDIR)\btimers.obj" - -@erase "$(INTDIR)\btimers.sbr" - -@erase "$(INTDIR)\chksum.obj" - -@erase "$(INTDIR)\chksum.sbr" - -@erase "$(INTDIR)\compat.obj" - -@erase "$(INTDIR)\compat.sbr" - -@erase "$(INTDIR)\cram-md5.obj" - -@erase "$(INTDIR)\cram-md5.sbr" - -@erase "$(INTDIR)\crc32.obj" - -@erase "$(INTDIR)\crc32.sbr" - -@erase "$(INTDIR)\create_file.obj" - -@erase "$(INTDIR)\create_file.sbr" - -@erase "$(INTDIR)\daemon.obj" - -@erase "$(INTDIR)\daemon.sbr" - -@erase "$(INTDIR)\dlist.obj" - -@erase "$(INTDIR)\dlist.sbr" - -@erase "$(INTDIR)\edit.obj" - -@erase "$(INTDIR)\edit.sbr" - -@erase "$(INTDIR)\enable_priv.obj" - -@erase "$(INTDIR)\enable_priv.sbr" - -@erase "$(INTDIR)\estimate.obj" - -@erase "$(INTDIR)\estimate.sbr" - -@erase "$(INTDIR)\filed.obj" - -@erase "$(INTDIR)\filed.sbr" - -@erase "$(INTDIR)\filed_conf.obj" - -@erase "$(INTDIR)\filed_conf.sbr" - -@erase "$(INTDIR)\find.obj" - -@erase "$(INTDIR)\find.sbr" - -@erase "$(INTDIR)\find_one.obj" - -@erase "$(INTDIR)\find_one.sbr" - -@erase "$(INTDIR)\fnmatch.obj" - -@erase "$(INTDIR)\fnmatch.sbr" - -@erase "$(INTDIR)\fstype.obj" - -@erase "$(INTDIR)\fstype.sbr" - -@erase "$(INTDIR)\getopt.obj" - -@erase "$(INTDIR)\getopt.sbr" - -@erase "$(INTDIR)\heartbeat.obj" - -@erase "$(INTDIR)\heartbeat.sbr" - -@erase "$(INTDIR)\hmac.obj" - -@erase "$(INTDIR)\hmac.sbr" - -@erase "$(INTDIR)\htable.obj" - -@erase "$(INTDIR)\htable.sbr" - -@erase "$(INTDIR)\idcache.obj" - -@erase "$(INTDIR)\idcache.sbr" - -@erase "$(INTDIR)\jcr.obj" - -@erase "$(INTDIR)\jcr.sbr" - -@erase "$(INTDIR)\job.obj" - -@erase "$(INTDIR)\job.sbr" - -@erase "$(INTDIR)\lex.obj" - -@erase "$(INTDIR)\lex.sbr" - -@erase "$(INTDIR)\makepath.obj" - -@erase "$(INTDIR)\makepath.sbr" - -@erase "$(INTDIR)\match.obj" - -@erase "$(INTDIR)\match.sbr" - -@erase "$(INTDIR)\md5.obj" - -@erase "$(INTDIR)\md5.sbr" - -@erase "$(INTDIR)\mem_pool.obj" - -@erase "$(INTDIR)\mem_pool.sbr" - -@erase "$(INTDIR)\message.obj" - -@erase "$(INTDIR)\message.sbr" - -@erase "$(INTDIR)\parse_conf.obj" - -@erase "$(INTDIR)\parse_conf.sbr" - -@erase "$(INTDIR)\print.obj" - -@erase "$(INTDIR)\print.sbr" - -@erase "$(INTDIR)\pythonlib.obj" - -@erase "$(INTDIR)\pythonlib.sbr" - -@erase "$(INTDIR)\queue.obj" - -@erase "$(INTDIR)\queue.sbr" - -@erase "$(INTDIR)\bregex.obj" - -@erase "$(INTDIR)\bregex.sbr" - -@erase "$(INTDIR)\restore.obj" - -@erase "$(INTDIR)\restore.sbr" - -@erase "$(INTDIR)\res.obj" - -@erase "$(INTDIR)\res.sbr" - -@erase "$(INTDIR)\rwlock.obj" - -@erase "$(INTDIR)\rwlock.sbr" - -@erase "$(INTDIR)\save-cwd.obj" - -@erase "$(INTDIR)\save-cwd.sbr" - -@erase "$(INTDIR)\scan.obj" - -@erase "$(INTDIR)\scan.sbr" - -@erase "$(INTDIR)\semlock.obj" - -@erase "$(INTDIR)\semlock.sbr" - -@erase "$(INTDIR)\serial.obj" - -@erase "$(INTDIR)\serial.sbr" - -@erase "$(INTDIR)\sha1.obj" - -@erase "$(INTDIR)\sha1.sbr" - -@erase "$(INTDIR)\signal.obj" - -@erase "$(INTDIR)\signal.sbr" - -@erase "$(INTDIR)\smartall.obj" - -@erase "$(INTDIR)\smartall.sbr" - -@erase "$(INTDIR)\status.obj" - -@erase "$(INTDIR)\status.sbr" - -@erase "$(INTDIR)\StdAfx.obj" - -@erase "$(INTDIR)\StdAfx.sbr" - -@erase "$(INTDIR)\tls.obj" - -@erase "$(INTDIR)\tls.sbr" - -@erase "$(INTDIR)\tree.obj" - -@erase "$(INTDIR)\tree.sbr" - -@erase "$(INTDIR)\util.obj" - -@erase "$(INTDIR)\util.sbr" - -@erase "$(INTDIR)\var.obj" - -@erase "$(INTDIR)\var.sbr" - -@erase "$(INTDIR)\vc60.idb" - -@erase "$(INTDIR)\vc60.pdb" - -@erase "$(INTDIR)\verify.obj" - -@erase "$(INTDIR)\verify.sbr" - -@erase "$(INTDIR)\verify_vol.obj" - -@erase "$(INTDIR)\verify_vol.sbr" - -@erase "$(INTDIR)\watchdog.obj" - -@erase "$(INTDIR)\watchdog.sbr" - -@erase "$(INTDIR)\winabout.obj" - -@erase "$(INTDIR)\winabout.sbr" - -@erase "$(INTDIR)\winapi.obj" - -@erase "$(INTDIR)\winapi.sbr" - -@erase "$(INTDIR)\winevents.obj" - -@erase "$(INTDIR)\winevents.sbr" - -@erase "$(INTDIR)\winmain.obj" - -@erase "$(INTDIR)\winmain.sbr" - -@erase "$(INTDIR)\winres.res" - -@erase "$(INTDIR)\winservice.obj" - -@erase "$(INTDIR)\winservice.sbr" - -@erase "$(INTDIR)\winstat.obj" - -@erase "$(INTDIR)\winstat.sbr" - -@erase "$(INTDIR)\wintray.obj" - -@erase "$(INTDIR)\wintray.sbr" - -@erase "$(INTDIR)\workq.obj" - -@erase "$(INTDIR)\workq.sbr" - -@erase "$(OUTDIR)\bacula-fd.exe" - -@erase "$(OUTDIR)\baculafd.bsc" - -"$(OUTDIR)" : - if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" - -CPP_PROJ=/nologo /MTd /W3 /Gm /GX /ZI /Od /I "../compat" /I "../.." /I "../../../../depkgs-win32/pthreads" /I "../../../../depkgs-win32/zlib" /I "." /D "_WINDOWS" /D "_DEBUG" /D "_WINMAIN_" /D "PTW32_BUILD" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "HAVE_WIN32" /FR"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c -RSC_PROJ=/l 0x409 /fo"$(INTDIR)\winres.res" /d "_DEBUG" -BSC32=bscmake.exe -BSC32_FLAGS=/nologo /o"$(OUTDIR)\baculafd.bsc" -BSC32_SBRS= \ - "$(INTDIR)\address_conf.sbr" \ - "$(INTDIR)\alist.sbr" \ - "$(INTDIR)\alloc.sbr" \ - "$(INTDIR)\attr.sbr" \ - "$(INTDIR)\attribs.sbr" \ - "$(INTDIR)\authenticate.sbr" \ - "$(INTDIR)\backup.sbr" \ - "$(INTDIR)\base64.sbr" \ - "$(INTDIR)\berrno.sbr" \ - "$(INTDIR)\bfile.sbr" \ - "$(INTDIR)\bget_msg.sbr" \ - "$(INTDIR)\bnet.sbr" \ - "$(INTDIR)\bnet_server.sbr" \ - "$(INTDIR)\bshm.sbr" \ - "$(INTDIR)\bsys.sbr" \ - "$(INTDIR)\btime.sbr" \ - "$(INTDIR)\btimers.sbr" \ - "$(INTDIR)\chksum.sbr" \ - "$(INTDIR)\compat.sbr" \ - "$(INTDIR)\cram-md5.sbr" \ - "$(INTDIR)\crc32.sbr" \ - "$(INTDIR)\create_file.sbr" \ - "$(INTDIR)\daemon.sbr" \ - "$(INTDIR)\dlist.sbr" \ - "$(INTDIR)\edit.sbr" \ - "$(INTDIR)\enable_priv.sbr" \ - "$(INTDIR)\estimate.sbr" \ - "$(INTDIR)\filed.sbr" \ - "$(INTDIR)\filed_conf.sbr" \ - "$(INTDIR)\find.sbr" \ - "$(INTDIR)\find_one.sbr" \ - "$(INTDIR)\fnmatch.sbr" \ - "$(INTDIR)\fstype.sbr" \ - "$(INTDIR)\getopt.sbr" \ - "$(INTDIR)\heartbeat.sbr" \ - "$(INTDIR)\hmac.sbr" \ - "$(INTDIR)\htable.sbr" \ - "$(INTDIR)\idcache.sbr" \ - "$(INTDIR)\jcr.sbr" \ - "$(INTDIR)\job.sbr" \ - "$(INTDIR)\lex.sbr" \ - "$(INTDIR)\makepath.sbr" \ - "$(INTDIR)\match.sbr" \ - "$(INTDIR)\md5.sbr" \ - "$(INTDIR)\mem_pool.sbr" \ - "$(INTDIR)\message.sbr" \ - "$(INTDIR)\parse_conf.sbr" \ - "$(INTDIR)\print.sbr" \ - "$(INTDIR)\pythonlib.sbr" \ - "$(INTDIR)\queue.sbr" \ - "$(INTDIR)\bregex.sbr" \ - "$(INTDIR)\restore.sbr" \ - "$(INTDIR)\res.sbr" \ - "$(INTDIR)\rwlock.sbr" \ - "$(INTDIR)\save-cwd.sbr" \ - "$(INTDIR)\scan.sbr" \ - "$(INTDIR)\semlock.sbr" \ - "$(INTDIR)\serial.sbr" \ - "$(INTDIR)\sha1.sbr" \ - "$(INTDIR)\signal.sbr" \ - "$(INTDIR)\smartall.sbr" \ - "$(INTDIR)\status.sbr" \ - "$(INTDIR)\StdAfx.sbr" \ - "$(INTDIR)\tls.sbr" \ - "$(INTDIR)\tree.sbr" \ - "$(INTDIR)\util.sbr" \ - "$(INTDIR)\var.sbr" \ - "$(INTDIR)\verify.sbr" \ - "$(INTDIR)\verify_vol.sbr" \ - "$(INTDIR)\watchdog.sbr" \ - "$(INTDIR)\winabout.sbr" \ - "$(INTDIR)\winapi.sbr" \ - "$(INTDIR)\winevents.sbr" \ - "$(INTDIR)\winmain.sbr" \ - "$(INTDIR)\winservice.sbr" \ - "$(INTDIR)\winstat.sbr" \ - "$(INTDIR)\wintray.sbr" \ - "$(INTDIR)\workq.sbr" - -"$(OUTDIR)\baculafd.bsc" : "$(OUTDIR)" $(BSC32_SBRS) - $(BSC32) @<< - $(BSC32_FLAGS) $(BSC32_SBRS) -<< - -LINK32=link.exe -LINK32_FLAGS=ole32.lib oleaut32.lib user32.lib advapi32.lib gdi32.lib shell32.lib wsock32.lib pthreadVCE.lib zlib.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"MSVCRT.lib" /out:"$(OUTDIR)\bacula-fd.exe" /map:"$(OUTDIR)\bacula-fd.map" /libpath:"../../../../depkgs-win32/pthreads" /libpath:"../../../../depkgs-win32/zlib" -LINK32_OBJS= \ - "$(INTDIR)\address_conf.obj" \ - "$(INTDIR)\alist.obj" \ - "$(INTDIR)\alloc.obj" \ - "$(INTDIR)\attr.obj" \ - "$(INTDIR)\attribs.obj" \ - "$(INTDIR)\authenticate.obj" \ - "$(INTDIR)\backup.obj" \ - "$(INTDIR)\base64.obj" \ - "$(INTDIR)\berrno.obj" \ - "$(INTDIR)\bfile.obj" \ - "$(INTDIR)\bget_msg.obj" \ - "$(INTDIR)\bnet.obj" \ - "$(INTDIR)\bnet_server.obj" \ - "$(INTDIR)\bshm.obj" \ - "$(INTDIR)\bsys.obj" \ - "$(INTDIR)\btime.obj" \ - "$(INTDIR)\btimers.obj" \ - "$(INTDIR)\chksum.obj" \ - "$(INTDIR)\compat.obj" \ - "$(INTDIR)\cram-md5.obj" \ - "$(INTDIR)\crc32.obj" \ - "$(INTDIR)\create_file.obj" \ - "$(INTDIR)\daemon.obj" \ - "$(INTDIR)\dlist.obj" \ - "$(INTDIR)\edit.obj" \ - "$(INTDIR)\enable_priv.obj" \ - "$(INTDIR)\estimate.obj" \ - "$(INTDIR)\filed.obj" \ - "$(INTDIR)\filed_conf.obj" \ - "$(INTDIR)\find.obj" \ - "$(INTDIR)\find_one.obj" \ - "$(INTDIR)\fnmatch.obj" \ - "$(INTDIR)\fstype.obj" \ - "$(INTDIR)\getopt.obj" \ - "$(INTDIR)\heartbeat.obj" \ - "$(INTDIR)\hmac.obj" \ - "$(INTDIR)\htable.obj" \ - "$(INTDIR)\idcache.obj" \ - "$(INTDIR)\jcr.obj" \ - "$(INTDIR)\job.obj" \ - "$(INTDIR)\lex.obj" \ - "$(INTDIR)\makepath.obj" \ - "$(INTDIR)\match.obj" \ - "$(INTDIR)\md5.obj" \ - "$(INTDIR)\mem_pool.obj" \ - "$(INTDIR)\message.obj" \ - "$(INTDIR)\parse_conf.obj" \ - "$(INTDIR)\print.obj" \ - "$(INTDIR)\pythonlib.obj" \ - "$(INTDIR)\queue.obj" \ - "$(INTDIR)\bregex.obj" \ - "$(INTDIR)\restore.obj" \ - "$(INTDIR)\res.obj" \ - "$(INTDIR)\rwlock.obj" \ - "$(INTDIR)\save-cwd.obj" \ - "$(INTDIR)\scan.obj" \ - "$(INTDIR)\semlock.obj" \ - "$(INTDIR)\serial.obj" \ - "$(INTDIR)\sha1.obj" \ - "$(INTDIR)\signal.obj" \ - "$(INTDIR)\smartall.obj" \ - "$(INTDIR)\status.obj" \ - "$(INTDIR)\StdAfx.obj" \ - "$(INTDIR)\tls.obj" \ - "$(INTDIR)\tree.obj" \ - "$(INTDIR)\util.obj" \ - "$(INTDIR)\var.obj" \ - "$(INTDIR)\verify.obj" \ - "$(INTDIR)\verify_vol.obj" \ - "$(INTDIR)\watchdog.obj" \ - "$(INTDIR)\winabout.obj" \ - "$(INTDIR)\winapi.obj" \ - "$(INTDIR)\winevents.obj" \ - "$(INTDIR)\winmain.obj" \ - "$(INTDIR)\winservice.obj" \ - "$(INTDIR)\winstat.obj" \ - "$(INTDIR)\wintray.obj" \ - "$(INTDIR)\workq.obj" \ - "$(INTDIR)\winres.res" - -"$(OUTDIR)\bacula-fd.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ENDIF - -.c{$(INTDIR)}.obj:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.cpp{$(INTDIR)}.obj:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.cxx{$(INTDIR)}.obj:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.c{$(INTDIR)}.sbr:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.cpp{$(INTDIR)}.sbr:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.cxx{$(INTDIR)}.sbr:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - - -!IF "$(NO_EXTERNAL_DEPS)" != "1" -!IF EXISTS("baculafd.dep") -!INCLUDE "baculafd.dep" -!ELSE -!MESSAGE Warning: cannot find "baculafd.dep" -!ENDIF -!ENDIF - - -!IF "$(CFG)" == "baculafd - Win32 Release" || "$(CFG)" == "baculafd - Win32 Debug" - -SOURCE=..\lib\address_conf.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\address_conf.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\address_conf.obj" "$(INTDIR)\address_conf.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\alist.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\alist.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\alist.obj" "$(INTDIR)\alist.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\lib\alloc.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\alloc.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\alloc.obj" "$(INTDIR)\alloc.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\attr.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\attr.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\attr.obj" "$(INTDIR)\attr.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\findlib\attribs.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\attribs.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\attribs.obj" "$(INTDIR)\attribs.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\filed\authenticate.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\authenticate.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\authenticate.obj" "$(INTDIR)\authenticate.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\filed\backup.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\backup.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\backup.obj" "$(INTDIR)\backup.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\base64.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\base64.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\base64.obj" "$(INTDIR)\base64.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\berrno.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\berrno.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\berrno.obj" "$(INTDIR)\berrno.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\findlib\bfile.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\bfile.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\bfile.obj" "$(INTDIR)\bfile.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\bget_msg.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\bget_msg.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\bget_msg.obj" "$(INTDIR)\bget_msg.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\bnet.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\bnet.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\bnet.obj" "$(INTDIR)\bnet.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\bnet_server.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\bnet_server.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\bnet_server.obj" "$(INTDIR)\bnet_server.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\bshm.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\bshm.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\bshm.obj" "$(INTDIR)\bshm.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\bsys.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\bsys.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\bsys.obj" "$(INTDIR)\bsys.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\btime.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\btime.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\btime.obj" "$(INTDIR)\btime.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\btimers.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\btimers.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\btimers.obj" "$(INTDIR)\btimers.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\filed\chksum.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\chksum.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\chksum.obj" "$(INTDIR)\chksum.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\compat\compat.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\compat.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\compat.obj" "$(INTDIR)\compat.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE="..\lib\cram-md5.cpp" - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\cram-md5.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\cram-md5.obj" "$(INTDIR)\cram-md5.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\crc32.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\crc32.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\crc32.obj" "$(INTDIR)\crc32.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\findlib\create_file.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\create_file.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\create_file.obj" "$(INTDIR)\create_file.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\daemon.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\daemon.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\daemon.obj" "$(INTDIR)\daemon.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\dlist.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\dlist.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\dlist.obj" "$(INTDIR)\dlist.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\edit.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\edit.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\edit.obj" "$(INTDIR)\edit.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\findlib\enable_priv.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\enable_priv.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\enable_priv.obj" "$(INTDIR)\enable_priv.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\filed\estimate.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\estimate.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\estimate.obj" "$(INTDIR)\estimate.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\filed\filed.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\filed.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\filed.obj" "$(INTDIR)\filed.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\filed\filed_conf.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\filed_conf.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\filed_conf.obj" "$(INTDIR)\filed_conf.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\findlib\find.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\find.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\find.obj" "$(INTDIR)\find.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\findlib\find_one.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\find_one.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\find_one.obj" "$(INTDIR)\find_one.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\fnmatch.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\fnmatch.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\fnmatch.obj" "$(INTDIR)\fnmatch.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\findlib\fstype.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\fstype.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\fstype.obj" "$(INTDIR)\fstype.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\compat\getopt.c - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\getopt.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\getopt.obj" "$(INTDIR)\getopt.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\filed\heartbeat.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\heartbeat.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\heartbeat.obj" "$(INTDIR)\heartbeat.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\hmac.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\hmac.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\hmac.obj" "$(INTDIR)\hmac.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\htable.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\htable.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\htable.obj" "$(INTDIR)\htable.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\idcache.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\idcache.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\idcache.obj" "$(INTDIR)\idcache.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\jcr.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\jcr.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\jcr.obj" "$(INTDIR)\jcr.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\filed\job.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\job.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\job.obj" "$(INTDIR)\job.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\lex.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\lex.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\lex.obj" "$(INTDIR)\lex.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\findlib\makepath.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\makepath.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\makepath.obj" "$(INTDIR)\makepath.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\findlib\match.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\match.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\match.obj" "$(INTDIR)\match.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\md5.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\md5.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\md5.obj" "$(INTDIR)\md5.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\mem_pool.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\mem_pool.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\mem_pool.obj" "$(INTDIR)\mem_pool.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\message.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\message.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\message.obj" "$(INTDIR)\message.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\parse_conf.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\parse_conf.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\parse_conf.obj" "$(INTDIR)\parse_conf.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\compat\print.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\print.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\print.obj" "$(INTDIR)\print.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\pythonlib.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\pythonlib.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\pythonlib.obj" "$(INTDIR)\pythonlib.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\lib\queue.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\queue.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\queue.obj" "$(INTDIR)\queue.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\bregex.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\bregex.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\bregex.obj" "$(INTDIR)\bregex.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\filed\restore.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\restore.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\restore.obj" "$(INTDIR)\restore.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\res.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\res.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\res.obj" "$(INTDIR)\res.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\lib\rwlock.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\rwlock.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\rwlock.obj" "$(INTDIR)\rwlock.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE="..\findlib\save-cwd.cpp" - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\save-cwd.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\save-cwd.obj" "$(INTDIR)\save-cwd.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\scan.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\scan.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\scan.obj" "$(INTDIR)\scan.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\semlock.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\semlock.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\semlock.obj" "$(INTDIR)\semlock.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\serial.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\serial.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\serial.obj" "$(INTDIR)\serial.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\sha1.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\sha1.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\sha1.obj" "$(INTDIR)\sha1.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\signal.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\signal.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\signal.obj" "$(INTDIR)\signal.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\smartall.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\smartall.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\smartall.obj" "$(INTDIR)\smartall.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\filed\status.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\status.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\status.obj" "$(INTDIR)\status.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=.\StdAfx.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\StdAfx.obj" : $(SOURCE) "$(INTDIR)" - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\StdAfx.obj" "$(INTDIR)\StdAfx.sbr" : $(SOURCE) "$(INTDIR)" - - -!ENDIF - -SOURCE=..\lib\tls.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\tls.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\tls.obj" "$(INTDIR)\tls.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\lib\tree.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\tree.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\tree.obj" "$(INTDIR)\tree.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\util.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\util.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\util.obj" "$(INTDIR)\util.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -SOURCE=..\lib\var.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\var.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\var.obj" "$(INTDIR)\var.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - - -SOURCE=..\filed\verify.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\verify.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\verify.obj" "$(INTDIR)\verify.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\filed\verify_vol.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\verify_vol.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\verify_vol.obj" "$(INTDIR)\verify_vol.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\compat\vss.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\vss.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\vss.obj" "$(INTDIR)\vss.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\compat\vss_xp.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\vss_xp.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\vss_xp.obj" "$(INTDIR)\vss_xp.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\compat\vss_w2k3.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\vss_w2k3.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\vss_w2k3.obj" "$(INTDIR)\vss_w2k3.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - - - -SOURCE=..\lib\watchdog.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\watchdog.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\watchdog.obj" "$(INTDIR)\watchdog.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\..\filed\win32\winabout.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\winabout.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\winabout.obj" "$(INTDIR)\winabout.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\winapi.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\winapi.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\winapi.obj" "$(INTDIR)\winapi.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\..\filed\win32\winevents.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\winevents.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\winevents.obj" "$(INTDIR)\winevents.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\..\filed\win32\winmain.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\winmain.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\winmain.obj" "$(INTDIR)\winmain.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\..\filed\win32\winres.rc - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\winres.res" : $(SOURCE) "$(INTDIR)" - $(RSC) /l 0x409 /fo"$(INTDIR)\winres.res" /i "..\..\filed\win32" /d "NDEBUG" $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\winres.res" : $(SOURCE) "$(INTDIR)" - $(RSC) /l 0x409 /fo"$(INTDIR)\winres.res" /i "..\..\filed\win32" /d "_DEBUG" $(SOURCE) - - -!ENDIF - -SOURCE=..\..\filed\win32\winservice.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\winservice.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\winservice.obj" "$(INTDIR)\winservice.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\..\filed\win32\winstat.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\winstat.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\winstat.obj" "$(INTDIR)\winstat.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\..\filed\win32\wintray.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\wintray.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\wintray.obj" "$(INTDIR)\wintray.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - -SOURCE=..\lib\workq.cpp - -!IF "$(CFG)" == "baculafd - Win32 Release" - - -"$(INTDIR)\workq.obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "baculafd - Win32 Debug" - - -"$(INTDIR)\workq.obj" "$(INTDIR)\workq.sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - - -!ENDIF diff --git a/bacula/src/win32/baculafd/setup-debug b/bacula/src/win32/baculafd/setup-debug deleted file mode 100755 index f602355480..0000000000 --- a/bacula/src/win32/baculafd/setup-debug +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -cp ../../../../depkgs-win32/pthreads/pthreadVCE.dll . -cp /bacula/bin/bacula-fd.conf . diff --git a/bacula/src/win32/compat/compat.cpp b/bacula/src/win32/compat/compat.cpp index f0ea48a82c..2d310be012 100644 --- a/bacula/src/win32/compat/compat.cpp +++ b/bacula/src/win32/compat/compat.cpp @@ -24,8 +24,6 @@ #include "bacula.h" #include "compat.h" #include "jcr.h" -#include "vss.h" - #define b_errno_win32 (1<<29) @@ -40,6 +38,15 @@ static POOLMEM *g_pWin32ConvUCS2Cache = get_pool_memory (PM_FNAME); static DWORD g_dwWin32ConvUTF8strlen = 0; static pthread_mutex_t Win32Convmutex = PTHREAD_MUTEX_INITIALIZER; +static t_pVSSPathConvert g_pVSSPathConvert; +static t_pVSSPathConvertW g_pVSSPathConvertW; + +void SetVSSPathConvert(t_pVSSPathConvert pPathConvert, t_pVSSPathConvertW pPathConvertW) +{ + g_pVSSPathConvert = pPathConvert; + g_pVSSPathConvertW = pPathConvertW; +} + void Win32ConvCleanupCache() { if (g_pWin32ConvUTF8Cache) { @@ -60,12 +67,12 @@ void Win32ConvCleanupCache() #undef fputs -#define USE_WIN32_COMPAT_IO 1 +//#define USE_WIN32_COMPAT_IO 1 #define USE_WIN32_32KPATHCONVERSION 1 extern void d_msg(const char *file, int line, int level, const char *fmt,...); extern DWORD g_platform_id; -extern int enable_vss; +extern DWORD g_MinorVersion; // from MicroSoft SDK (KES) is the diff between Jan 1 1601 and Jan 1 1970 #ifdef HAVE_MINGW @@ -80,6 +87,20 @@ void conv_unix_to_win32_path(const char *name, char *win32_name, DWORD dwSize) { const char *fname = name; char *tname = win32_name; + + if ((name[0] == '/' || name[0] == '\\') && + (name[1] == '/' || name[1] == '\\') && + (name[2] == '.') && + (name[3] == '/' || name[3] == '\\')) { + + *win32_name++ = '\\'; + *win32_name++ = '\\'; + *win32_name++ = '.'; + *win32_name++ = '\\'; + + name += 4; + } + while (*name) { /* Check for Unix separator and convert to Win32 */ if (name[0] == '/' && name[1] == '/') { /* double slash? */ @@ -104,20 +125,28 @@ void conv_unix_to_win32_path(const char *name, char *win32_name, DWORD dwSize) *win32_name = 0; } -#ifdef WIN32_VSS /* here we convert to VSS specific file name which can get longer because VSS will make something like \\\\?\\GLOBALROOT\\Device\\HarddiskVolumeShadowCopy1\\bacula\\uninstall.exe from c:\bacula\uninstall.exe */ - if (g_pVSSClient && enable_vss && g_pVSSClient->IsInitialized()) { + if (g_pVSSPathConvert != NULL) { POOLMEM *pszBuf = get_pool_memory (PM_FNAME); pszBuf = check_pool_memory_size(pszBuf, dwSize); bstrncpy(pszBuf, tname, strlen(tname)+1); - g_pVSSClient->GetShadowPath(pszBuf, tname, dwSize); + g_pVSSPathConvert(pszBuf, tname, dwSize); free_pool_memory(pszBuf); } -#endif +} + +/* Conversion of a Unix filename to a Win32 filename */ +void unix_name_to_win32(POOLMEM **win32_name, char *name) +{ + /* One extra byte should suffice, but we double it */ + /* add MAX_PATH bytes for VSS shadow copy name */ + DWORD dwSize = 2*strlen(name)+MAX_PATH; + *win32_name = check_pool_memory_size(*win32_name, dwSize); + conv_unix_to_win32_path(name, *win32_name, dwSize); } POOLMEM* @@ -274,13 +303,12 @@ make_wchar_win32_path(POOLMEM *pszUCSPath, BOOL *pBIsRawPath /*= NULL*/) /* null terminate string */ *win32_name = 0; -#ifdef WIN32_VSS /* here we convert to VSS specific file name which can get longer because VSS will make something like \\\\?\\GLOBALROOT\\Device\\HarddiskVolumeShadowCopy1\\bacula\\uninstall.exe from c:\bacula\uninstall.exe */ - if (g_pVSSClient && enable_vss && g_pVSSClient->IsInitialized()) { + if (g_pVSSPathConvertW != NULL) { /* is output buffer large enough? */ pwszBuf = check_pool_memory_size(pwszBuf, (dwBufCharsNeeded+MAX_PATH)*sizeof(wchar_t)); /* create temp. buffer */ @@ -291,10 +319,9 @@ make_wchar_win32_path(POOLMEM *pszUCSPath, BOOL *pBIsRawPath /*= NULL*/) else nParseOffset = 0; wcsncpy((wchar_t *) pszBuf, (wchar_t *) pwszBuf+nParseOffset, wcslen((wchar_t *)pwszBuf)+1-nParseOffset); - g_pVSSClient->GetShadowPathW((wchar_t *)pszBuf,(wchar_t *)pwszBuf,dwBufCharsNeeded+MAX_PATH); + g_pVSSPathConvertW((wchar_t *)pszBuf,(wchar_t *)pwszBuf,dwBufCharsNeeded+MAX_PATH); free_pool_memory(pszBuf); } -#endif free_pool_memory(pszUCSPath); free_pool_memory(pwszCurDirBuf); @@ -402,13 +429,18 @@ make_win32_path_UTF8_2_wchar(POOLMEM **pszUCS, const char *pszUTF, BOOL* pBIsRaw return nRet; } -#ifndef HAVE_VC8 +#if !defined(_MSC_VER) || (_MSC_VER < 1400) // VC8+ int umask(int) { return 0; } #endif +int fcntl(int fd, int cmd) +{ + return 0; +} + int chmod(const char *, mode_t) { return 0; @@ -424,14 +456,6 @@ int lchown(const char *k, uid_t, gid_t) return 0; } -#ifdef needed -bool fstype(const char *fname, char *fs, int fslen) -{ - return true; /* accept anything */ -} -#endif - - long int random(void) { @@ -586,10 +610,54 @@ statDir(const char *file, struct stat *sb) return 0; } +int +fstat(int fd, struct stat *sb) +{ + BY_HANDLE_FILE_INFORMATION info; + char tmpbuf[1024]; + + if (!GetFileInformationByHandle((HANDLE)fd, &info)) { + const char *err = errorString(); + d_msg(__FILE__, __LINE__, 99, + "GetfileInformationByHandle(%s): %s\n", tmpbuf, err); + LocalFree((void *)err); + errno = b_errno_win32; + return -1; + } + + sb->st_dev = info.dwVolumeSerialNumber; + sb->st_ino = info.nFileIndexHigh; + sb->st_ino <<= 32; + sb->st_ino |= info.nFileIndexLow; + sb->st_nlink = (short)info.nNumberOfLinks; + if (sb->st_nlink > 1) { + d_msg(__FILE__, __LINE__, 99, "st_nlink=%d\n", sb->st_nlink); + } + + sb->st_mode = 0777; /* start with everything */ + if (info.dwFileAttributes & FILE_ATTRIBUTE_READONLY) + sb->st_mode &= ~(S_IRUSR|S_IRGRP|S_IROTH); + if (info.dwFileAttributes & FILE_ATTRIBUTE_SYSTEM) + sb->st_mode &= ~S_IRWXO; /* remove everything for other */ + if (info.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN) + sb->st_mode |= S_ISVTX; /* use sticky bit -> hidden */ + sb->st_mode |= S_IFREG; + + sb->st_size = info.nFileSizeHigh; + sb->st_size <<= 32; + sb->st_size |= info.nFileSizeLow; + sb->st_blksize = 4096; + sb->st_blocks = (uint32_t)(sb->st_size + 4095)/4096; + sb->st_atime = cvt_ftime_to_utime(info.ftLastAccessTime); + sb->st_mtime = cvt_ftime_to_utime(info.ftLastWriteTime); + sb->st_ctime = cvt_ftime_to_utime(info.ftCreationTime); + + return 0; +} + static int stat2(const char *file, struct stat *sb) { - BY_HANDLE_FILE_INFORMATION info; HANDLE h; int rval = 0; char tmpbuf[1024]; @@ -627,50 +695,13 @@ stat2(const char *file, struct stat *sb) d_msg(__FILE__, __LINE__, 99, "Cannot open file for stat (%s):%s\n", tmpbuf, err); LocalFree((void *)err); - rval = -1; errno = b_errno_win32; - goto error; - } - - if (!GetFileInformationByHandle(h, &info)) { - const char *err = errorString(); - d_msg(__FILE__, __LINE__, 99, - "GetfileInformationByHandle(%s): %s\n", tmpbuf, err); - LocalFree((void *)err); - rval = -1; - errno = b_errno_win32; - goto error; - } - - sb->st_dev = info.dwVolumeSerialNumber; - sb->st_ino = info.nFileIndexHigh; - sb->st_ino <<= 32; - sb->st_ino |= info.nFileIndexLow; - sb->st_nlink = (short)info.nNumberOfLinks; - if (sb->st_nlink > 1) { - d_msg(__FILE__, __LINE__, 99, "st_nlink=%d\n", sb->st_nlink); + return -1; } - sb->st_mode = 0777; /* start with everything */ - if (info.dwFileAttributes & FILE_ATTRIBUTE_READONLY) - sb->st_mode &= ~(S_IRUSR|S_IRGRP|S_IROTH); - if (info.dwFileAttributes & FILE_ATTRIBUTE_SYSTEM) - sb->st_mode &= ~S_IRWXO; /* remove everything for other */ - if (info.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN) - sb->st_mode |= S_ISVTX; /* use sticky bit -> hidden */ - sb->st_mode |= S_IFREG; - - sb->st_size = info.nFileSizeHigh; - sb->st_size <<= 32; - sb->st_size |= info.nFileSizeLow; - sb->st_blksize = 4096; - sb->st_blocks = (uint32_t)(sb->st_size + 4095)/4096; - sb->st_atime = cvt_ftime_to_utime(info.ftLastAccessTime); - sb->st_mtime = cvt_ftime_to_utime(info.ftLastWriteTime); - sb->st_ctime = cvt_ftime_to_utime(info.ftCreationTime); - -error: + rval = fstat((int)h, sb); CloseHandle(h); + return rval; } @@ -737,6 +768,28 @@ stat(const char *file, struct stat *sb) return 0; } +int fcntl(int fd, int cmd, long arg) +{ + int rval = 0; + + switch (cmd) { + case F_GETFL: + rval = O_NONBLOCK; + break; + + case F_SETFL: + rval = 0; + break; + + default: + errno = EINVAL; + rval = -1; + break; + } + + return rval; +} + int lstat(const char *file, struct stat *sb) { @@ -817,23 +870,24 @@ strcasecmp(const char *s1, const char *s2) int strncasecmp(const char *s1, const char *s2, int len) { - register int ch1, ch2; + register int ch1 = 0, ch2 = 0; - if (s1==s2) - return 0; /* strings are equal if same object. */ - else if (!s1) - return -1; - else if (!s2) - return 1; - while (len--) { - ch1 = *s1; - ch2 = *s2; - s1++; - s2++; - if (ch1 == 0 || tolower(ch1) != tolower(ch2)) break; - } + if (s1==s2) + return 0; /* strings are equal if same object. */ + else if (!s1) + return -1; + else if (!s2) + return 1; + + while (len--) { + ch1 = *s1; + ch2 = *s2; + s1++; + s2++; + if (ch1 == 0 || tolower(ch1) != tolower(ch2)) break; + } - return (ch1 - ch2); + return (ch1 - ch2); } int @@ -864,14 +918,17 @@ gettimeofday(struct timeval *tv, struct timezone *) } /* For apcupsd this is in src/lib/wincompat.c */ -#ifndef __APCUPSD__ extern "C" void syslog(int type, const char *fmt, ...) { /*#ifndef HAVE_CONSOLE MessageBox(NULL, msg, "Bacula", MB_OK); #endif*/ } -#endif + +void +closelog() +{ +} struct passwd * getpwuid(uid_t) @@ -1412,7 +1469,7 @@ winver::winver(void) } bstrncpy(WIN_VERSION_LONG, version, sizeof(WIN_VERSION_LONG)); - snprintf(WIN_VERSION, sizeof(WIN_VERSION), "%s %d.%d.%d", + snprintf(WIN_VERSION, sizeof(WIN_VERSION), "%s %lu.%lu.%lu", platform, osvinfo.dwMajorVersion, osvinfo.dwMinorVersion, osvinfo.dwBuildNumber); #if 0 @@ -1581,7 +1638,6 @@ CloseIfValid(HANDLE handle) CloseHandle(handle); } -#ifndef HAVE_MINGW BPIPE * open_bpipe(char *prog, int wait, const char *mode) { @@ -1707,7 +1763,6 @@ cleanup: return NULL; } -#endif //HAVE_MINGW int kill(int pid, int signal) @@ -1721,7 +1776,6 @@ kill(int pid, int signal) return rval; } -#ifndef HAVE_MINGW int close_bpipe(BPIPE *bpipe) @@ -1837,67 +1891,9 @@ utime(const char *fname, struct utimbuf *times) return rval; } -#if USE_WIN32_COMPAT_IO - -int -open(const char *file, int flags, int mode) -{ - if (p_wopen) { - POOLMEM* pwszBuf = get_pool_memory(PM_FNAME); - make_win32_path_UTF8_2_wchar(&pwszBuf, file); - - int nRet = p_wopen((LPCWSTR) pwszBuf, flags|_O_BINARY, mode); - free_pool_memory(pwszBuf); - - return nRet; - } - - return _open(file, flags|_O_BINARY, mode); -} - -/* - * Note, this works only for a file. If you want - * to close a socket, use closesocket(). - * Bacula has been modified in src/lib/bnet.c - * to use closesocket(). - */ -#ifndef HAVE_VC8 -int -close(int fd) -{ - return _close(fd); -} - -#ifndef HAVE_WXCONSOLE -ssize_t -read(int fd, void *buf, ssize_t len) -{ - return _read(fd, buf, (size_t)len); -} - -ssize_t -write(int fd, const void *buf, ssize_t len) -{ - return _write(fd, buf, (size_t)len); -} -#endif - - -off_t -lseek(int fd, off_t offset, int whence) -{ - return (off_t)_lseeki64(fd, offset, whence); -} - -int -dup2(int fd1, int fd2) -{ - return _dup2(fd1, fd2); -} -#endif -#else +#if 0 int -open(const char *file, int flags, int mode) +file_open(const char *file, int flags, int mode) { DWORD access = 0; DWORD shareMode = 0; @@ -1910,13 +1906,18 @@ open(const char *file, int flags, int mode) else if (flags & O_RDWR) access = GENERIC_READ|GENERIC_WRITE; else access = GENERIC_READ; - if (flags & O_CREAT) create = CREATE_NEW; - else create = OPEN_EXISTING; - - if (flags & O_TRUNC) create = TRUNCATE_EXISTING; + if ((flags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) + create = CREATE_NEW; + else if ((flags & (O_CREAT | O_TRUNC)) == (O_CREAT | O_TRUNC)) + create = CREATE_ALWAYS; + else if (flags & O_CREAT) + create = OPEN_ALWAYS; + else if (flags & O_TRUNC) + create = TRUNCATE_EXISTING; + else + create = OPEN_EXISTING; - if (!(flags & O_EXCL)) - shareMode = FILE_SHARE_DELETE|FILE_SHARE_READ|FILE_SHARE_WRITE; + shareMode = 0; if (flags & O_APPEND) { printf("open...APPEND not implemented yet."); @@ -1925,7 +1926,7 @@ open(const char *file, int flags, int mode) if (p_CreateFileW) { POOLMEM* pwszBuf = get_pool_memory(PM_FNAME); - make_win32_path_UTF8_2_wchar(pwszBuf, file); + make_win32_path_UTF8_2_wchar(&pwszBuf, file); foo = p_CreateFileW((LPCWSTR) pwszBuf, access, shareMode, NULL, create, msflags, NULL); free_pool_memory(pwszBuf); @@ -1942,7 +1943,7 @@ open(const char *file, int flags, int mode) int -close(int fd) +file_close(int fd) { if (!CloseHandle((HANDLE)fd)) { errno = b_errno_win32; @@ -1953,7 +1954,7 @@ close(int fd) } ssize_t -write(int fd, const void *data, ssize_t len) +file_write(int fd, const void *data, ssize_t len) { BOOL status; DWORD bwrite; @@ -1965,7 +1966,7 @@ write(int fd, const void *data, ssize_t len) ssize_t -read(int fd, void *data, ssize_t len) +file_read(int fd, void *data, ssize_t len) { BOOL status; DWORD bread; @@ -1977,7 +1978,7 @@ read(int fd, void *data, ssize_t len) } off_t -lseek(int fd, off_t offset, int whence) +file_seek(int fd, off_t offset, int whence) { DWORD method = 0; DWORD val; @@ -2005,27 +2006,14 @@ lseek(int fd, off_t offset, int whence) } int -dup2(int, int) +file_dup2(int, int) { errno = ENOSYS; return -1; } - - #endif -#endif //HAVE_MINGW - #ifdef HAVE_MINGW /* syslog function, added by Nicolas Boichat */ -void closelog() {} void openlog(const char *ident, int option, int facility) {} #endif //HAVE_MINGW - -/* Temp kludges ***FIXME**** */ -#ifdef __APCUPSD__ -unsigned int alarm(unsigned int seconds) -{ - return 0; -} -#endif diff --git a/bacula/src/win32/compat/compat.h b/bacula/src/win32/compat/compat.h index c8f3504201..7026309db0 100644 --- a/bacula/src/win32/compat/compat.h +++ b/bacula/src/win32/compat/compat.h @@ -31,20 +31,17 @@ */ -#ifndef __COMPAT_H_ +#if !defined(__COMPAT_H_) #define __COMPAT_H_ -#ifndef _STAT_H +#if !defined(_STAT_H) #define _STAT_H /* don't pull in MinGW stat.h */ #define _STAT_DEFINED /* don't pull in MinGW stat.h */ #endif -#if (defined _MSC_VER) && (_MSC_VER >= 1400) // VC8+ +#if defined(_MSC_VER) && (_MSC_VER >= 1400) // VC8+ #pragma warning(disable : 4996) // Either disable all deprecation warnings, // #define _CRT_SECURE_NO_DEPRECATE // Or just turn off warnings about the newly deprecated CRT functions. -#define HAVE_VC8 -#endif // VC8+ - -#if (!defined HAVE_MINGW) && (!defined HAVE_VC8) && (!defined HAVE_WXCONSOLE) +#elif !defined(HAVE_MINGW) && !defined(HAVE_WXCONSOLE) #define __STDC__ 1 #endif @@ -59,20 +56,21 @@ typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef signed short int16_t; typedef signed char int8_t; -#ifndef HAVE_MINGW +typedef int __daddr_t; +#if !defined(HAVE_MINGW) typedef long int32_t; typedef float float32_t; typedef double float64_t; #endif -#ifndef HAVE_VC8 +#if !defined(_MSC_VER) || (_MSC_VER < 1400) // VC8+ typedef long time_t; #endif #if __STDC__ -#ifndef HAVE_MINGW +#if !defined(HAVE_MINGW) typedef _dev_t dev_t; -#ifndef HAVE_WXCONSOLE +#if !defined(HAVE_WXCONSOLE) typedef __int64 ino_t; typedef __int64 off_t; /* STDC=1 means we can define this */ #endif @@ -85,7 +83,7 @@ typedef UINT32 u_int32_t; typedef unsigned char u_int8_t; typedef unsigned short u_int16_t; -#ifndef HAVE_MINGW +#if !defined(HAVE_MINGW) #undef uint32_t #endif @@ -93,8 +91,8 @@ void sleep(int); typedef UINT32 key_t; -#ifdef HAVE_MINGW -#ifndef uid_t +#if defined(HAVE_MINGW) +#if !defined(uid_t) typedef UINT32 uid_t; typedef UINT32 gid_t; #endif @@ -102,9 +100,9 @@ typedef UINT32 gid_t; typedef UINT32 uid_t; typedef UINT32 gid_t; typedef UINT32 mode_t; -/* #ifndef _WX_DEFS_H_ ssize_t is defined in wx/defs.h */ +#if !defined(_WX_DEFS_H_) /* ssize_t is defined in wx/defs.h */ typedef INT64 ssize_t; -/* #endif */ +#endif #endif /* HAVE_MINGW */ @@ -117,11 +115,11 @@ struct dirent { typedef void DIR; -#ifndef __cplusplus -#ifndef true +#if !defined(__cplusplus) +#if !defined(true) #define true 1 #endif -#ifndef false +#if !defined(false) #define false 0 #endif #endif @@ -133,15 +131,15 @@ struct timezone { int strcasecmp(const char*, const char *); int gettimeofday(struct timeval *, struct timezone *); -#ifndef EETXTBUSY +#if !defined(EETXTBUSY) #define EETXTBUSY 26 #endif -#ifndef ETIMEDOUT +#if !defined(ETIMEDOUT) #define ETIMEDOUT 55 #endif -#ifndef ENOMEDIUM +#if !defined(ENOMEDIUM) #define ENOMEDIUM 123 #endif @@ -213,33 +211,40 @@ struct stat #define iscsym __iscsym #endif -#ifndef HAVE_VC8 -#ifndef HAVE_MINGW -int umask(int); -off_t lseek(int, off_t, int); -int dup2(int, int); -int close(int fd); -#endif -#if !defined(HAVE_WXCONSOLE) && !defined(HAVE_MINGW) -ssize_t read(int fd, void *, ssize_t nbytes); -ssize_t write(int fd, const void *, ssize_t nbytes); -#endif -#endif +typedef BOOL (*t_pVSSPathConvert)(const char *szFilePath, char *szShadowPath, int nBuflen); +typedef BOOL (*t_pVSSPathConvertW)(const wchar_t *szFilePath, wchar_t *szShadowPath, int nBuflen); + +void SetVSSPathConvert(t_pVSSPathConvert pPathConvert, t_pVSSPathConvertW pPathConvertW); + int lchown(const char *, uid_t uid, gid_t gid); int chown(const char *, uid_t uid, gid_t gid); -#ifndef HAVE_MINGW +#if !defined(HAVE_MINGW) int chmod(const char *, mode_t mode); #endif +#define O_NONBLOCK 04000 +#define F_GETFL 3 +#define F_SETFL 4 + +int tape_open(const char *file, int flags, int mode = 0); +int tape_read(int fd, void *buffer, unsigned int count); +int tape_write(int fd, const void *buffer, unsigned int count); +int tape_ioctl(int fd, unsigned long int request, ...); +int tape_close(int fd); + +#define open _open + +int fcntl(int fd, int cmd, long arg); +int fstat(int fd, struct stat *sb); + int inet_aton(const char *cp, struct in_addr *inp); int kill(int pid, int signo); int pipe(int []); int fork(); int waitpid(int, int *, int); -#ifndef HAVE_MINGW +#if !defined(HAVE_MINGW) int strncasecmp(const char*, const char *, int); int utime(const char *filename, struct utimbuf *buf); -int open(const char *, int, int); #define vsnprintf __vsnprintf int __vsnprintf(char *s, size_t count, const char *format, va_list args); @@ -259,6 +264,7 @@ int __sprintf(char *str, const char *fmt, ...); #define WIFEXITED(x) 0 #define WEXITSTATUS(x) x #define WIFSIGNALED(x) 0 +#define WTERMSIG(x) x #define SIGKILL 9 #define SIGUSR2 9999 @@ -303,18 +309,15 @@ struct sigaction { #define unlink win32_unlink #define chdir win32_chdir extern "C" void syslog(int type, const char *fmt, ...); - -#ifndef HAVE_MINGW -#ifndef LOG_DAEMON +#if !defined(LOG_DAEMON) #define LOG_DAEMON 0 #endif -#ifndef LOG_ERR -#define LOG_ERR 0 -#endif + +#if !defined(HAVE_MINGW) #define R_OK 04 #define W_OK 02 int stat(const char *, struct stat *); -#ifdef __cplusplus +#if defined(__cplusplus) #define access _access extern "C" _CRTIMP int __cdecl _access(const char *, int); int execvp(const char *, char *[]); @@ -343,14 +346,29 @@ char* win32_cgets (char* buffer, int len); int WSA_Init(void); void Win32ConvCleanupCache(); -#ifdef HAVE_MINGW +#if defined(HAVE_MINGW) void closelog(); void openlog(const char *ident, int option, int facility); #endif //HAVE_MINGW -#ifndef INVALID_FILE_ATTRIBUTES +#if !defined(INVALID_FILE_ATTRIBUTES) #define INVALID_FILE_ATTRIBUTES ((DWORD)-1) #endif +#if defined(_MSC_VER) +inline unsigned long ffs(unsigned long word) +{ + unsigned long index; + + if (_BitScanForward(&index, word) != 0) + return index + 1; + else + return 0; +} + +#define ftruncate _chsize +#else +#define ffs __builtin_ffs +#endif #endif /* __COMPAT_H_ */ diff --git a/bacula/src/win32/compat/vss.cpp b/bacula/src/win32/compat/vss.cpp deleted file mode 100644 index bddb856f5f..0000000000 --- a/bacula/src/win32/compat/vss.cpp +++ /dev/null @@ -1,182 +0,0 @@ - -// vss.cpp -- Interface to Volume Shadow Copies (VSS) -// -// Copyright transferred from MATRIX-Computer GmbH to -// Kern Sibbald by express permission. -// -// Copyright (C) 2005-2006 Kern Sibbald -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// version 2 as amended with additional clauses defined in the -// file LICENSE in the main source directory. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// the file LICENSE for additional details. -// -// -// Author : Thorsten Engel -// Created On : Fri May 06 21:44:00 2005 - - -#ifdef WIN32_VSS -#include "bacula.h" -#include "compat.h" - -#include "ms_atl.h" -#include - -#include "vss.h" - - -#pragma comment(lib,"atlsd.lib") - - -// Constructor -VSSClient::VSSClient() -{ - m_bCoInitializeCalled = false; - m_bCoInitializeSecurityCalled = false; - m_dwContext = 0; // VSS_CTX_BACKUP; - m_bDuringRestore = false; - m_bBackupIsInitialized = false; - m_pVssObject = NULL; - m_pAlistWriterState = New (alist(10, not_owned_by_alist)); - m_pAlistWriterInfoText = New (alist(10, owned_by_alist)); - m_uidCurrentSnapshotSet = GUID_NULL; - memset(m_wszUniqueVolumeName, 0, sizeof(m_wszUniqueVolumeName)); - memset(m_szShadowCopyName, 0, sizeof(m_szShadowCopyName)); -} - -// Destructor -VSSClient::~VSSClient() -{ - // Release the IVssBackupComponents interface - // WARNING: this must be done BEFORE calling CoUninitialize() - if (m_pVssObject) { - m_pVssObject->Release(); - m_pVssObject = NULL; - } - - DestroyWriterInfo(); - delete (alist*) m_pAlistWriterState; - delete (alist*) m_pAlistWriterInfoText; - - // Call CoUninitialize if the CoInitialize was performed successfully - if (m_bCoInitializeCalled) - CoUninitialize(); -} - -BOOL VSSClient::InitializeForBackup() -{ - //return Initialize (VSS_CTX_BACKUP); - return Initialize(0); -} - - - - -BOOL VSSClient::GetShadowPath(const char *szFilePath, char *szShadowPath, int nBuflen) -{ - if (!m_bBackupIsInitialized) - return FALSE; - - /* check for valid pathname */ - BOOL bIsValidName; - - bIsValidName = strlen(szFilePath) > 3; - if (bIsValidName) - bIsValidName &= isalpha (szFilePath[0]) && - szFilePath[1]==':' && - szFilePath[2] == '\\'; - - if (bIsValidName) { - int nDriveIndex = toupper(szFilePath[0])-'A'; - if (m_szShadowCopyName[nDriveIndex][0] != 0) { - - if (WideCharToMultiByte(CP_UTF8,0,m_szShadowCopyName[nDriveIndex],-1,szShadowPath,nBuflen-1,NULL,NULL)) { - nBuflen -= (int)strlen(szShadowPath); - strncat(szShadowPath, szFilePath+2, nBuflen); - return TRUE; - } - } - } - - strncpy(szShadowPath, szFilePath, nBuflen); - errno = EINVAL; - return FALSE; -} - -BOOL VSSClient::GetShadowPathW(const wchar_t *szFilePath, wchar_t *szShadowPath, int nBuflen) -{ - if (!m_bBackupIsInitialized) - return FALSE; - - /* check for valid pathname */ - BOOL bIsValidName; - - bIsValidName = wcslen(szFilePath) > 3; - if (bIsValidName) - bIsValidName &= iswalpha (szFilePath[0]) && - szFilePath[1]==':' && - szFilePath[2] == '\\'; - - if (bIsValidName) { - int nDriveIndex = towupper(szFilePath[0])-'A'; - if (m_szShadowCopyName[nDriveIndex][0] != 0) { - wcsncpy(szShadowPath, m_szShadowCopyName[nDriveIndex], nBuflen); - nBuflen -= (int)wcslen(m_szShadowCopyName[nDriveIndex]); - wcsncat(szShadowPath, szFilePath+2, nBuflen); - return TRUE; - } - } - - wcsncpy(szShadowPath, szFilePath, nBuflen); - errno = EINVAL; - return FALSE; -} - - -const size_t VSSClient::GetWriterCount() -{ - alist* pV = (alist*) m_pAlistWriterInfoText; - return pV->size(); -} - -const char* VSSClient::GetWriterInfo(int nIndex) -{ - alist* pV = (alist*) m_pAlistWriterInfoText; - return (char*) pV->get(nIndex); -} - - -const int VSSClient::GetWriterState(int nIndex) -{ - alist* pV = (alist*) m_pAlistWriterState; - return (int) pV->get(nIndex); -} - -void VSSClient::AppendWriterInfo(int nState, const char* pszInfo) -{ - alist* pT = (alist*) m_pAlistWriterInfoText; - alist* pS = (alist*) m_pAlistWriterState; - - pT->push (bstrdup(pszInfo)); - pS->push ((void*) nState); -} - -void VSSClient::DestroyWriterInfo() -{ - alist* pT = (alist*) m_pAlistWriterInfoText; - alist* pS = (alist*) m_pAlistWriterState; - - while (!pT->empty()) - free (pT->pop()); - - while (!pS->empty()) - pS->pop(); -} - -#endif diff --git a/bacula/src/win32/compat/vss.h b/bacula/src/win32/compat/vss.h deleted file mode 100644 index c251deae9d..0000000000 --- a/bacula/src/win32/compat/vss.h +++ /dev/null @@ -1,118 +0,0 @@ -/* -*- Mode: C -*- - * vss.h -- - */ -// -// Copyright transferred from MATRIX-Computer GmbH to -// Kern Sibbald by express permission. -// -// Copyright (C) 2005-2006 Kern Sibbald -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// version 2 as amended with additional clauses defined in the -// file LICENSE in the main source directory. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// the file LICENSE for additional details. -// - -/* - * - * Author : Thorsten Engel - * Created On : Fri May 06 21:44:00 2006 - */ - -#ifndef __VSS_H_ -#define __VSS_H_ - -#ifndef b_errno_win32 -#define b_errno_win32 (1<<29) -#endif - -#ifdef WIN32_VSS - -// some forward declarations -struct IVssAsync; - -class VSSClient -{ -public: - VSSClient(); - ~VSSClient(); - - // Backup Process - BOOL InitializeForBackup(); - virtual BOOL CreateSnapshots(char* szDriveLetters) = 0; - virtual BOOL CloseBackup() = 0; - virtual const char* GetDriverName() = 0; - BOOL GetShadowPath (const char* szFilePath, char* szShadowPath, int nBuflen); - BOOL GetShadowPathW (const wchar_t* szFilePath, wchar_t* szShadowPath, int nBuflen); /* nBuflen in characters */ - - const size_t GetWriterCount(); - const char* GetWriterInfo(int nIndex); - const int GetWriterState(int nIndex); - void DestroyWriterInfo(); - void AppendWriterInfo(int nState, const char* pszInfo); - const BOOL IsInitialized() { return m_bBackupIsInitialized; }; - -private: - virtual BOOL Initialize(DWORD dwContext, BOOL bDuringRestore = FALSE) = 0; - virtual BOOL WaitAndCheckForAsyncOperation(IVssAsync* pAsync) = 0; - virtual void QuerySnapshotSet(GUID snapshotSetID) = 0; - -protected: - HMODULE m_hLib; - - BOOL m_bCoInitializeCalled; - BOOL m_bCoInitializeSecurityCalled; - DWORD m_dwContext; - - IUnknown* m_pVssObject; - GUID m_uidCurrentSnapshotSet; - // TRUE if we are during restore - BOOL m_bDuringRestore; - BOOL m_bBackupIsInitialized; - - // drive A will be stored on position 0,Z on pos. 25 - wchar_t m_wszUniqueVolumeName[26][MAX_PATH]; // approx. 7 KB - wchar_t m_szShadowCopyName[26][MAX_PATH]; // approx. 7 KB - - void* m_pAlistWriterState; - void* m_pAlistWriterInfoText; -}; - -class VSSClientXP:public VSSClient -{ -public: - VSSClientXP(); - virtual ~VSSClientXP(); - virtual BOOL CreateSnapshots(char* szDriveLetters); - virtual BOOL CloseBackup(); - virtual const char* GetDriverName() { return "VSS WinXP"; }; -private: - virtual BOOL Initialize(DWORD dwContext, BOOL bDuringRestore); - virtual BOOL WaitAndCheckForAsyncOperation(IVssAsync* pAsync); - virtual void QuerySnapshotSet(GUID snapshotSetID); - BOOL CheckWriterStatus(); -}; - -class VSSClient2003:public VSSClient -{ -public: - VSSClient2003(); - virtual ~VSSClient2003(); - virtual BOOL CreateSnapshots(char* szDriveLetters); - virtual BOOL CloseBackup(); - virtual const char* GetDriverName() { return "VSS Win 2003"; }; -private: - virtual BOOL Initialize(DWORD dwContext, BOOL bDuringRestore); - virtual BOOL WaitAndCheckForAsyncOperation(IVssAsync* pAsync); - virtual void QuerySnapshotSet(GUID snapshotSetID); - BOOL CheckWriterStatus(); -}; - -#endif /* WIN32_VSS */ - -#endif /* __VSS_H_ */ diff --git a/bacula/src/win32/compat/vss_W2K3.cpp b/bacula/src/win32/compat/vss_W2K3.cpp deleted file mode 100644 index 68914d0f9c..0000000000 --- a/bacula/src/win32/compat/vss_W2K3.cpp +++ /dev/null @@ -1,13 +0,0 @@ -/* -we need one class per OS as Microsofts API -differs only by calling convention and some -function we don't use. - -vss_generic will handle all versions and -switch between different headers to include. -*/ - -#ifdef WIN32_VSS -#define B_VSS_W2K3 -#include "vss_generic.cpp" -#endif diff --git a/bacula/src/win32/compat/vss_XP.cpp b/bacula/src/win32/compat/vss_XP.cpp deleted file mode 100644 index 20871296d9..0000000000 --- a/bacula/src/win32/compat/vss_XP.cpp +++ /dev/null @@ -1,4 +0,0 @@ -#ifdef WIN32_VSS -#define B_VSS_XP -#include "vss_generic.cpp" -#endif diff --git a/bacula/src/win32/compat/vss_generic.cpp b/bacula/src/win32/compat/vss_generic.cpp deleted file mode 100644 index 1701c039fd..0000000000 --- a/bacula/src/win32/compat/vss_generic.cpp +++ /dev/null @@ -1,655 +0,0 @@ -// -*- Mode: C++ -*- -// vss.cpp -- Interface to Volume Shadow Copies (VSS) -// -// Copyright transferred from MATRIX-Computer GmbH to -// Kern Sibbald by express permission. -// -// Copyright (C) 2005-2006 Kern Sibbald -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// version 2 as amended with additional clauses defined in the -// file LICENSE in the main source directory. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// the file LICENSE for additional details. -// -// -// Author : Thorsten Engel -// Created On : Fri May 06 21:44:00 2005 - - -#ifdef WIN32_VSS - -#ifdef HAVE_MINGW -#include "bacula.h" -#else -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#endif - - -#undef setlocale - -// STL includes -#include -#include -#include -#include -#include -using namespace std; - -#include "ms_atl.h" -#include - -#if !defined(ENABLE_NLS) -#define setlocale(p, d) -#endif - -#ifdef HAVE_STRSAFE_H -// Used for safe string manipulation -#include -#endif - - - -class IXMLDOMDocument; - -#ifdef B_VSS_XP - #pragma message("compile VSS for Windows XP") - #define VSSClientGeneric VSSClientXP - - #include "inc/WinXP/vss.h" - #include "inc/WinXP/vswriter.h" - #include "inc/WinXP/vsbackup.h" - - /* In VSSAPI.DLL */ - typedef HRESULT (STDAPICALLTYPE* t_CreateVssBackupComponents)(OUT IVssBackupComponents **); - typedef void (APIENTRY* t_VssFreeSnapshotProperties)(IN VSS_SNAPSHOT_PROP*); - - static t_CreateVssBackupComponents p_CreateVssBackupComponents = NULL; - static t_VssFreeSnapshotProperties p_VssFreeSnapshotProperties = NULL; - - #define VSSVBACK_ENTRY "?CreateVssBackupComponents@@YGJPAPAVIVssBackupComponents@@@Z" -#endif - -#ifdef B_VSS_W2K3 - #pragma message("compile VSS for Windows 2003") - #define VSSClientGeneric VSSClient2003 - - #include "inc/Win2003/vss.h" - #include "inc/Win2003/vswriter.h" - #include "inc/Win2003/vsbackup.h" - - /* In VSSAPI.DLL */ - typedef HRESULT (STDAPICALLTYPE* t_CreateVssBackupComponents)(OUT IVssBackupComponents **); - typedef void (APIENTRY* t_VssFreeSnapshotProperties)(IN VSS_SNAPSHOT_PROP*); - - static t_CreateVssBackupComponents p_CreateVssBackupComponents = NULL; - static t_VssFreeSnapshotProperties p_VssFreeSnapshotProperties = NULL; - - #define VSSVBACK_ENTRY "?CreateVssBackupComponents@@YGJPAPAVIVssBackupComponents@@@Z" -#endif - -#include "vss.h" - -/* - * - * some helper functions - * - * - */ - -// Append a backslash to the current string -inline wstring AppendBackslash(wstring str) -{ - if (str.length() == 0) - return wstring(L"\\"); - if (str[str.length() - 1] == L'\\') - return str; - return str.append(L"\\"); -} - -// Get the unique volume name for the given path -inline wstring GetUniqueVolumeNameForPath(wstring path) -{ - if (path.length() <= 0) { - return L""; - } - - // Add the backslash termination, if needed - path = AppendBackslash(path); - - // Get the root path of the volume - wchar_t volumeRootPath[MAX_PATH]; - wchar_t volumeName[MAX_PATH]; - wchar_t volumeUniqueName[MAX_PATH]; - - if (!p_GetVolumePathNameW || !p_GetVolumePathNameW((LPCWSTR)path.c_str(), volumeRootPath, MAX_PATH)) - return L""; - - // Get the volume name alias (might be different from the unique volume name in rare cases) - if (!p_GetVolumeNameForVolumeMountPointW || !p_GetVolumeNameForVolumeMountPointW(volumeRootPath, volumeName, MAX_PATH)) - return L""; - - // Get the unique volume name - if (!p_GetVolumeNameForVolumeMountPointW(volumeName, volumeUniqueName, MAX_PATH)) - return L""; - - return volumeUniqueName; -} - - -// Helper macro for quick treatment of case statements for error codes -#define GEN_MERGE(A, B) A##B -#define GEN_MAKE_W(A) GEN_MERGE(L, A) - -#define CHECK_CASE_FOR_CONSTANT(value) \ - case value: return (GEN_MAKE_W(#value)); - - -// Convert a writer status into a string -inline const wchar_t* GetStringFromWriterStatus(VSS_WRITER_STATE eWriterStatus) -{ - switch (eWriterStatus) { - CHECK_CASE_FOR_CONSTANT(VSS_WS_STABLE); - CHECK_CASE_FOR_CONSTANT(VSS_WS_WAITING_FOR_FREEZE); - CHECK_CASE_FOR_CONSTANT(VSS_WS_WAITING_FOR_THAW); - CHECK_CASE_FOR_CONSTANT(VSS_WS_WAITING_FOR_POST_SNAPSHOT); - CHECK_CASE_FOR_CONSTANT(VSS_WS_WAITING_FOR_BACKUP_COMPLETE); - CHECK_CASE_FOR_CONSTANT(VSS_WS_FAILED_AT_IDENTIFY); - CHECK_CASE_FOR_CONSTANT(VSS_WS_FAILED_AT_PREPARE_BACKUP); - CHECK_CASE_FOR_CONSTANT(VSS_WS_FAILED_AT_PREPARE_SNAPSHOT); - CHECK_CASE_FOR_CONSTANT(VSS_WS_FAILED_AT_FREEZE); - CHECK_CASE_FOR_CONSTANT(VSS_WS_FAILED_AT_THAW); - CHECK_CASE_FOR_CONSTANT(VSS_WS_FAILED_AT_POST_SNAPSHOT); - CHECK_CASE_FOR_CONSTANT(VSS_WS_FAILED_AT_BACKUP_COMPLETE); - CHECK_CASE_FOR_CONSTANT(VSS_WS_FAILED_AT_PRE_RESTORE); - CHECK_CASE_FOR_CONSTANT(VSS_WS_FAILED_AT_POST_RESTORE); - - default: - return L"Error or Undefined"; - } -} - -// Constructor - -VSSClientGeneric::VSSClientGeneric() -{ - m_hLib = LoadLibraryA("VSSAPI.DLL"); - if (m_hLib) { - p_CreateVssBackupComponents = (t_CreateVssBackupComponents) - GetProcAddress(m_hLib, VSSVBACK_ENTRY); - - p_VssFreeSnapshotProperties = (t_VssFreeSnapshotProperties) - GetProcAddress(m_hLib, "VssFreeSnapshotProperties"); - } -} - - - -// Destructor -VSSClientGeneric::~VSSClientGeneric() -{ - if (m_hLib) - FreeLibrary(m_hLib); -} - -// Initialize the COM infrastructure and the internal pointers -BOOL VSSClientGeneric::Initialize(DWORD dwContext, BOOL bDuringRestore) -{ - if (!(p_CreateVssBackupComponents && p_VssFreeSnapshotProperties)) { - errno = ENOSYS; - return FALSE; - } - - HRESULT hr; - // Initialize COM - if (!m_bCoInitializeCalled) { - if (FAILED(CoInitialize(NULL))) { - errno = b_errno_win32; - return FALSE; - } - m_bCoInitializeCalled = true; - } - - // Initialize COM security - if (!m_bCoInitializeSecurityCalled) { - hr = - CoInitializeSecurity( - NULL, // Allow *all* VSS writers to communicate back! - -1, // Default COM authentication service - NULL, // Default COM authorization service - NULL, // reserved parameter - RPC_C_AUTHN_LEVEL_PKT_PRIVACY, // Strongest COM authentication level - RPC_C_IMP_LEVEL_IDENTIFY, // Minimal impersonation abilities - NULL, // Default COM authentication settings - EOAC_NONE, // No special options - NULL // Reserved parameter - ); - - if (FAILED(hr)) { - errno = b_errno_win32; - return FALSE; - } - m_bCoInitializeSecurityCalled = true; - } - - // Release the IVssBackupComponents interface - if (m_pVssObject) { - m_pVssObject->Release(); - m_pVssObject = NULL; - } - - // Create the internal backup components object - hr = p_CreateVssBackupComponents((IVssBackupComponents**) &m_pVssObject); - if (FAILED(hr)) { - errno = b_errno_win32; - return FALSE; - } - -#ifdef B_VSS_W2K3 - if (dwContext != VSS_CTX_BACKUP) { - hr = ((IVssBackupComponents*) m_pVssObject)->SetContext(dwContext); - if (FAILED(hr)) { - errno = b_errno_win32; - return FALSE; - } - } -#endif - - if (!bDuringRestore) { - // 1. InitializeForBackup - hr = ((IVssBackupComponents*) m_pVssObject)->InitializeForBackup(); - if (FAILED(hr)) { - errno = b_errno_win32; - return FALSE; - } - - // 2. SetBackupState - hr = ((IVssBackupComponents*) m_pVssObject)->SetBackupState(true, true, VSS_BT_FULL, false); - if (FAILED(hr)) { - errno = b_errno_win32; - return FALSE; - } - - CComPtr pAsync1; - // 3. GatherWriterMetaData - hr = ((IVssBackupComponents*) m_pVssObject)->GatherWriterMetadata(&pAsync1.p); - if (FAILED(hr)) { - errno = b_errno_win32; - return FALSE; - } - // Waits for the async operation to finish and checks the result - WaitAndCheckForAsyncOperation(pAsync1.p); - } - - - // We are during restore now? - m_bDuringRestore = bDuringRestore; - - // Keep the context - m_dwContext = dwContext; - - return TRUE; -} - - -BOOL VSSClientGeneric::WaitAndCheckForAsyncOperation(IVssAsync* pAsync) -{ - // Wait until the async operation finishes - // unfortunately we can't use a timeout here yet. - // the interface would allow it on W2k3, - // but it is not implemented yet.... - - HRESULT hr; - - // Check the result of the asynchronous operation - HRESULT hrReturned = S_OK; - - int timeout = 600; // 10 minutes.... - - int queryErrors = 0; - do { - if (hrReturned != S_OK) - Sleep(1000); - - hrReturned = S_OK; - hr = pAsync->QueryStatus(&hrReturned, NULL); - - if (FAILED(hr)) - queryErrors++; - } while ((timeout-- > 0) && (hrReturned == VSS_S_ASYNC_PENDING)); - - if (hrReturned == VSS_S_ASYNC_FINISHED) - return TRUE; - - -#ifdef DEBUG - // Check if the async operation succeeded... - if(hrReturned != VSS_S_ASYNC_FINISHED) { - wchar_t *pwszBuffer = NULL; - DWORD dwRet = ::FormatMessageW( - FORMAT_MESSAGE_ALLOCATE_BUFFER - | FORMAT_MESSAGE_FROM_SYSTEM - | FORMAT_MESSAGE_IGNORE_INSERTS, - NULL, hrReturned, - MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), - (LPWSTR)&pwszBuffer, 0, NULL); - - if (dwRet != 0) { - LocalFree(pwszBuffer); - } - errno = b_errno_win32; - } -#endif - - return FALSE; -} - -BOOL VSSClientGeneric::CreateSnapshots(char* szDriveLetters) -{ - /* szDriveLetters contains all drive letters in uppercase */ - /* if a drive can not being added, it's converted to lowercase in szDriveLetters */ - /* http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vss/base/ivssbackupcomponents_startsnapshotset.asp */ - - if (!m_pVssObject || m_bBackupIsInitialized) { - errno = ENOSYS; - return FALSE; - } - - m_uidCurrentSnapshotSet = GUID_NULL; - - IVssBackupComponents *pVss = (IVssBackupComponents*)m_pVssObject; - - /* startSnapshotSet */ - - pVss->StartSnapshotSet(&m_uidCurrentSnapshotSet); - - /* AddToSnapshotSet */ - - wchar_t szDrive[3]; - szDrive[1] = ':'; - szDrive[2] = 0; - - wstring volume; - - CComPtr pAsync1; - CComPtr pAsync2; - VSS_ID pid; - - for (size_t i=0; i < strlen (szDriveLetters); i++) { - szDrive[0] = szDriveLetters[i]; - volume = GetUniqueVolumeNameForPath(szDrive); - // store uniquevolumname - if (SUCCEEDED(pVss->AddToSnapshotSet((LPWSTR)volume.c_str(), GUID_NULL, &pid))) - wcsncpy (m_wszUniqueVolumeName[szDriveLetters[i]-'A'], (LPWSTR) volume.c_str(), MAX_PATH); - else - { - szDriveLetters[i] = tolower (szDriveLetters[i]); - } - } - - /* PrepareForBackup */ - if (FAILED(pVss->PrepareForBackup(&pAsync1.p))) { - return FALSE; - } - - // Waits for the async operation to finish and checks the result - WaitAndCheckForAsyncOperation(pAsync1.p); - - /* get latest info about writer status */ - if (!CheckWriterStatus()) { - return FALSE; - } - - /* DoSnapShotSet */ - if (FAILED(pVss->DoSnapshotSet(&pAsync2.p))) { - return FALSE; - } - - // Waits for the async operation to finish and checks the result - WaitAndCheckForAsyncOperation(pAsync2.p); - - /* query snapshot info */ - QuerySnapshotSet(m_uidCurrentSnapshotSet); - - m_bBackupIsInitialized = true; - - return TRUE; -} - -BOOL VSSClientGeneric::CloseBackup() -{ - BOOL bRet = FALSE; - if (!m_pVssObject) - errno = ENOSYS; - else { - IVssBackupComponents* pVss = (IVssBackupComponents*) m_pVssObject; - CComPtr pAsync; - - m_bBackupIsInitialized = false; - - if (SUCCEEDED(pVss->BackupComplete(&pAsync.p))) { - // Waits for the async operation to finish and checks the result - WaitAndCheckForAsyncOperation(pAsync.p); - bRet = TRUE; - } else { - errno = b_errno_win32; - pVss->AbortBackup(); - } - - /* get latest info about writer status */ - CheckWriterStatus(); - - if (m_uidCurrentSnapshotSet != GUID_NULL) { - VSS_ID idNonDeletedSnapshotID = GUID_NULL; - LONG lSnapshots; - - pVss->DeleteSnapshots( - m_uidCurrentSnapshotSet, - VSS_OBJECT_SNAPSHOT_SET, - FALSE, - &lSnapshots, - &idNonDeletedSnapshotID); - - m_uidCurrentSnapshotSet = GUID_NULL; - } - - pVss->Release(); - m_pVssObject = NULL; - } - - // Call CoUninitialize if the CoInitialize was performed sucesfully - if (m_bCoInitializeCalled) { - CoUninitialize(); - m_bCoInitializeCalled = false; - } - - return bRet; -} - -// Query all the shadow copies in the given set -void VSSClientGeneric::QuerySnapshotSet(GUID snapshotSetID) -{ - if (!(p_CreateVssBackupComponents && p_VssFreeSnapshotProperties)) { - errno = ENOSYS; - return; - } - - memset (m_szShadowCopyName,0,sizeof (m_szShadowCopyName)); - - if (snapshotSetID == GUID_NULL || m_pVssObject == NULL) { - errno = ENOSYS; - return; - } - - IVssBackupComponents* pVss = (IVssBackupComponents*) m_pVssObject; - - // Get list all shadow copies. - CComPtr pIEnumSnapshots; - HRESULT hr = pVss->Query( GUID_NULL, - VSS_OBJECT_NONE, - VSS_OBJECT_SNAPSHOT, - (IVssEnumObject**)(&pIEnumSnapshots) ); - - // If there are no shadow copies, just return - if (FAILED(hr)) { - errno = b_errno_win32; - return; - } - - // Enumerate all shadow copies. - VSS_OBJECT_PROP Prop; - VSS_SNAPSHOT_PROP& Snap = Prop.Obj.Snap; - - while (true) { - // Get the next element - ULONG ulFetched; - hr = (pIEnumSnapshots.p)->Next( 1, &Prop, &ulFetched ); - - // We reached the end of list - if (ulFetched == 0) - break; - - // Print the shadow copy (if not filtered out) - if (Snap.m_SnapshotSetId == snapshotSetID) { - for (char ch='A'-'A';ch<='Z'-'A';ch++) { - if (wcscmp(Snap.m_pwszOriginalVolumeName, m_wszUniqueVolumeName[ch]) == 0) { - wcsncpy (m_szShadowCopyName[ch],Snap.m_pwszSnapshotDeviceObject, MAX_PATH-1); - break; - } - } - } - p_VssFreeSnapshotProperties(&Snap); - } - errno = 0; -} - -// Check the status for all selected writers -BOOL VSSClientGeneric::CheckWriterStatus() -{ - /* - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vss/base/ivssbackupcomponents_startsnapshotset.asp - */ - IVssBackupComponents* pVss = (IVssBackupComponents*) m_pVssObject; - DestroyWriterInfo(); - - // Gather writer status to detect potential errors - CComPtr pAsync; - - HRESULT hr = pVss->GatherWriterStatus(&pAsync.p); - if (FAILED(hr)) { - errno = b_errno_win32; - return FALSE; - } - - // Waits for the async operation to finish and checks the result - WaitAndCheckForAsyncOperation(pAsync.p); - - unsigned cWriters = 0; - - hr = pVss->GetWriterStatusCount(&cWriters); - if (FAILED(hr)) { - errno = b_errno_win32; - return FALSE; - } - - int nState; - - // Enumerate each writer - for (unsigned iWriter = 0; iWriter < cWriters; iWriter++) { - VSS_ID idInstance = GUID_NULL; - VSS_ID idWriter= GUID_NULL; - VSS_WRITER_STATE eWriterStatus = VSS_WS_UNKNOWN; - CComBSTR bstrWriterName; - HRESULT hrWriterFailure = S_OK; - - // Get writer status - hr = pVss->GetWriterStatus(iWriter, - &idInstance, - &idWriter, - &bstrWriterName, - &eWriterStatus, - &hrWriterFailure); - if (FAILED(hr)) { - /* unknown */ - nState = 0; - } - else { - switch(eWriterStatus) { - case VSS_WS_FAILED_AT_IDENTIFY: - case VSS_WS_FAILED_AT_PREPARE_BACKUP: - case VSS_WS_FAILED_AT_PREPARE_SNAPSHOT: - case VSS_WS_FAILED_AT_FREEZE: - case VSS_WS_FAILED_AT_THAW: - case VSS_WS_FAILED_AT_POST_SNAPSHOT: - case VSS_WS_FAILED_AT_BACKUP_COMPLETE: - case VSS_WS_FAILED_AT_PRE_RESTORE: - case VSS_WS_FAILED_AT_POST_RESTORE: - #ifdef B_VSS_W2K3 - case VSS_WS_FAILED_AT_BACKUPSHUTDOWN: - #endif - /* failed */ - nState = -1; - break; - - default: - /* ok */ - nState = 1; - } - } - /* store text info */ - char str[1000]; - char szBuf[200]; - strcpy(str, "\""); - wchar_2_UTF8(szBuf, bstrWriterName.p, sizeof(szBuf)); - strcat(str, szBuf); - strcat(str, "\", State: 0x"); - itoa(eWriterStatus, szBuf, sizeof(szBuf)); - strcat(str, szBuf); - strcat(str, " ("); - wchar_2_UTF8(szBuf, GetStringFromWriterStatus(eWriterStatus), sizeof(szBuf)); - strcat(str, szBuf); - strcat(str, ")"); - - AppendWriterInfo(nState, (const char *)str); - } - - hr = pVss->FreeWriterStatus(); - - if (FAILED(hr)) { - errno = b_errno_win32; - return FALSE; - } - - errno = 0; - return TRUE; -} - -#endif diff --git a/bacula/src/win32/compat/winconfig.h b/bacula/src/win32/compat/winconfig.h index bddc74ff4b..f7edb45263 100644 --- a/bacula/src/win32/compat/winconfig.h +++ b/bacula/src/win32/compat/winconfig.h @@ -29,7 +29,7 @@ /* #undef ssize_t */ /* Define if you want to use MySQL */ -/* #undef HAVE_MYSQL */ +#define HAVE_MYSQL 1 /* Defined if MySQL thread safe library is present */ /* #undef HAVE_THREAD_SAFE_MYSQL */ diff --git a/bacula/src/win32/console/Makefile b/bacula/src/win32/console/Makefile index 226c8ac838..8b6f5f5e9f 100644 --- a/bacula/src/win32/console/Makefile +++ b/bacula/src/win32/console/Makefile @@ -1,24 +1,53 @@ # -# Makefile to build the native Win32 console -# VC++ and tools must be on your path +# Makefile for win32 bacula executables +# Using MinGW cross-compiler on GNU/Linux # -# Kern Sibbald, April 2004 +# Written by Robert Nelson, June 2006 # -NMAKE=nmake +include ../Makefile.inc -first_rule: all +INCLUDES = \ + $(INCLUDE_BACULA) \ + $(INCLUDE_PTHREADS) \ + $(INCLUDE_OPENSSL) -dummy: +DEFINES = \ + -DUSING_DLL \ + $(HAVES) -all: console +VPATH = ../../console +########################################################################## -console: - (env MAKEFLAGS= ${NMAKE} CFG="console - Win32 Release" /f console.mak) +CONSOLE_OBJS = \ + $(OBJDIR)/authenticate.o \ + $(OBJDIR)/console.o \ + $(OBJDIR)/console_conf.o +ALL_OBJS = $(CONSOLE_OBJS) + +CONSOLE_LIBS = \ + -lwsock32 + +###################################################################### + +# Targets + +.PHONY: all clean + +all: $(BINDIR)/bconsole.exe clean: - rm -rf Debug/*.obj Release/*.obj + @echo "Cleaning `pwd`" + $(call clean_obj,$(ALL_OBJS)) + $(call clean_exe,$(BINDIR)/bconsole.exe) + +# +# Rules +# + +$(BINDIR)/bconsole.exe: $(CONSOLE_OBJS) $(LIBS_BACULA) + $(call link_winapp,$(CONSOLE_LIBS)) -distclean: clean +include ../Makefile.rules diff --git a/bacula/src/win32/console/StdAfx.cpp b/bacula/src/win32/console/StdAfx.cpp deleted file mode 100644 index 36e98fa7ae..0000000000 --- a/bacula/src/win32/console/StdAfx.cpp +++ /dev/null @@ -1,6 +0,0 @@ -// stdafx.cpp : source file that includes just the standard includes -// console.pch will be the pre-compiled header -// stdafx.obj will contain the pre-compiled type information -#include "stdafx.h" -// TODO: reference any additional headers you need in STDAFX.H -// and not in this file diff --git a/bacula/src/win32/console/StdAfx.h b/bacula/src/win32/console/StdAfx.h deleted file mode 100644 index d40b21fa8d..0000000000 --- a/bacula/src/win32/console/StdAfx.h +++ /dev/null @@ -1,13 +0,0 @@ -// stdafx.h : include file for standard system include files, -// or project specific include files that are used frequently, but -// are changed infrequently -// -#if !defined(AFX_STDAFX_H__35C63B87_45EF_4CD3_AFE9_2E4597342185__INCLUDED_) -#define AFX_STDAFX_H__35C63B87_45EF_4CD3_AFE9_2E4597342185__INCLUDED_ -#if _MSC_VER > 1000 -#pragma once -#endif // _MSC_VER > 1000 -// TODO: reference additional headers your program requires here -//{{AFX_INSERT_LOCATION}} -// Microsoft Visual C++ will insert additional declarations immediately before the previous line. -#endif // !defined(AFX_STDAFX_H__35C63B87_45EF_4CD3_AFE9_2E4597342185__INCLUDED_) \ No newline at end of file diff --git a/bacula/src/win32/console/authenticate.cpp b/bacula/src/win32/console/authenticate.cpp deleted file mode 100644 index 96ae4143e3..0000000000 --- a/bacula/src/win32/console/authenticate.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../console/authenticate.c" diff --git a/bacula/src/win32/console/bconsole.mak.in b/bacula/src/win32/console/bconsole.mak.in deleted file mode 100755 index db7ff16ec4..0000000000 --- a/bacula/src/win32/console/bconsole.mak.in +++ /dev/null @@ -1,146 +0,0 @@ -# Microsoft Developer Studio Generated NMAKE File, Based on wx-console.dsp -!IF "$(CFG)" == "" -CFG=bconsole - Win32 Release -!MESSAGE No configuration specified. Defaulting to bconsole - Win32 Release. -!ENDIF - -!IF "$(CFG)" != "bconsole - Win32 Release" && "$(CFG)" != "bconsole - Win32 Debug" -!MESSAGE Invalid configuration "$(CFG)" specified. -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "bconsole.mak" CFG="bconsole - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "bconsole - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "bconsole - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE -!ERROR An invalid configuration is specified. -!ENDIF - -!IF "$(OS)" == "Windows_NT" -NULL= -!ELSE -NULL=nul -!ENDIF - -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "bconsole - Win32 Release" - -OUTDIR=.\Release -INTDIR=.\Release -# Begin Custom Macros -OutDir=.\Release -# End Custom Macros - -ALL : "$(OUTDIR)\bconsole.exe" - - -CLEAN : - @@REL-CLEAN@@ - -@erase "$(OUTDIR)\bconsole.exe" - -"$(OUTDIR)" : - if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" - -CPP_PROJ=/nologo /MD /W3 /GX /I "../compat" /I "../.." /I "../../../../depkgs-win32/pthreads" /I "." /D "_DEBUG" /D "HAVE_CONSOLE" /D "_WINMAIN_" /D "PTW32_BUILD" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "HAVE_WIN32" /D "_AFXDLL" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /I /GZ /c -BSC32=bscmake.exe -BSC32_FLAGS=/nologo /o"$(OUTDIR)\bconsole.bsc" -BSC32_SBRS= \ - -LINK32=link.exe -LINK32_FLAGS=wsock32.lib pthreadVCE.lib /nologo /subsystem:console /pdb:none /machine:I386 /out:"$(OUTDIR)\bconsole.exe" /libpath:"../../../../depkgs-win32/pthreads" -LINK32_OBJS= \ - @@REL-OBJS@@ - - -"$(OUTDIR)\bconsole.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ELSEIF "$(CFG)" == "bconsole - Win32 Debug" - -OUTDIR=.\Debug -INTDIR=.\Debug -# Begin Custom Macros -OutDir=.\Debug -# End Custom Macros - -ALL : "$(OUTDIR)\bconsole.exe" "$(OUTDIR)\bconsole.bsc" - -CLEAN : - @@DEB-CLEAN@@ - -@erase "$(OUTDIR)\bconsole.exe" - -@erase "$(OUTDIR)\bconsole.bsc" - -"$(OUTDIR)" : - if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" - - -CPP_PROJ=/nologo /MDd /W3 /Gm /GX /ZI /Od /I "../compat" /I "../.." /I "../../../../depkgs-win32/pthreads" /I "." /D "_DEBUG" /D "HAVE_CONSOLE" /D "_WINMAIN_" /D "PTW32_BUILD" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "HAVE_WIN32" /D "_AFXDLL" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /I /GZ /c -BSC32=bscmake.exe -BSC32_FLAGS=/nologo /o"$(OUTDIR)\bconsole.bsc" -BSC32_SBRS= \ - @@DEB-SBRS@@ - -"$(OUTDIR)\bconsole.bsc" : "$(OUTDIR)" $(BSC32_SBRS) - $(BSC32) @<< - $(BSC32_FLAGS) $(BSC32_SBRS) -<< - -LINK32=link.exe -LINK32_FLAGS=wsock32.lib pthreadVCE.lib /nologo /subsystem:console /pdb:none /debug /machine:I386 /out:"$(OUTDIR)\bconsole.exe" /libpath:"../../../../depkgs-win32/pthreads" -LINK32_OBJS= \ - @@DEB-OBJS@@ - -"$(OUTDIR)\bconsole.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ENDIF - -.c{$(INTDIR)}.obj:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.cpp{$(INTDIR)}.obj:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.cxx{$(INTDIR)}.obj:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.c{$(INTDIR)}.sbr:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.cpp{$(INTDIR)}.sbr:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.cxx{$(INTDIR)}.sbr:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - - -!IF "$(NO_EXTERNAL_DEPS)" != "1" -!IF EXISTS("bconsole.dep") -!INCLUDE "bconsole.dep" -!ELSE -!MESSAGE Warning: cannot find "bconsole.dep" -!ENDIF -!ENDIF - -@@OBJTARGETS@@ diff --git a/bacula/src/win32/console/console.cpp b/bacula/src/win32/console/console.cpp deleted file mode 100644 index b28f319e0b..0000000000 --- a/bacula/src/win32/console/console.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../console/console.c" diff --git a/bacula/src/win32/console/console_conf.cpp b/bacula/src/win32/console/console_conf.cpp deleted file mode 100644 index dc0a34cb96..0000000000 --- a/bacula/src/win32/console/console_conf.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../console/console_conf.c" diff --git a/bacula/src/win32/dll/Makefile b/bacula/src/win32/dll/Makefile index d97316a272..b23e01982d 100644 --- a/bacula/src/win32/dll/Makefile +++ b/bacula/src/win32/dll/Makefile @@ -74,7 +74,6 @@ LIB_OBJS = \ $(OBJDIR)/bnet_server.o \ $(OBJDIR)/bpipe.o \ $(OBJDIR)/bregex.o \ - $(OBJDIR)/bshm.o \ $(OBJDIR)/bsnprintf.o \ $(OBJDIR)/bsys.o \ $(OBJDIR)/btime.o \ diff --git a/bacula/src/win32/dll/bacula.def b/bacula/src/win32/dll/bacula.def index eb48ecf045..45814c567f 100644 --- a/bacula/src/win32/dll/bacula.def +++ b/bacula/src/win32/dll/bacula.def @@ -1,638 +1,828 @@ LIBRARY bacula.dll EXPORTS -_Z10SHA1UpdateP11SHA1ContextPKhj -_Z10__snprintfPcjPKcz -_Z10__vsprintfPcPKcS_ + +; +; cats +; +; bdb_create.c: + +; bdb_delete.c: + +; bdb_find.c: + +; bdb_get.c: + +; bdb_list.c: + +; bdb.c: + +; bdb_update.c: + +; mysql.c: +_Z12db_sql_queryP4B_DBPKcPFiPviPPcES3_ +;_Z13db_next_indexP3JCRP4B_DBPcS3_ +_Z16db_escape_stringPcS_i +_Z16db_init_databaseP3JCRPKcS2_S2_S2_iS2_i +_Z16db_open_databaseP3JCRP4B_DB +_Z17db_close_databaseP3JCRP4B_DB + +; postgresql.c: + +; sql.c: _Z10_db_unlockPKciP4B_DB -_Z10add_commasPcS_ -_Z10b_free_jcrPKciP3JCR -_Z10bnet_closeP5BSOCK -_Z10bnet_fsendP5BSOCKPKcz -_Z10bstrftimesPcix -_Z10bvsnprintfPciPKcS_ -_Z10edit_int64xPc -_Z10edit_utimexPci -_Z10find_filesP3JCRP6FF_PKTPFiS2_PvbES3_ -_Z10init_bsockP3JCRiPKcS2_iP8sockaddr -_Z10isAbsolutePKc -_Z10my_name_isiPPcPKc +_Z11db_strerrorP4B_DB +;_Z11list_dashesP4B_DBPFvPvPKcES1_ +;_Z11list_resultP3JCRP4B_DBPFvPvPKcES3_11e_list_type +_Z18db_end_transactionP3JCRP4B_DB +;_Z18get_sql_record_maxP3JCRP4B_DB +;_Z19split_path_and_fileP3JCRP4B_DBPKc +;_Z20check_tables_versionP3JCRP4B_DB +_Z20db_start_transactionP3JCRP4B_DB +;_Z7QueryDBPKciP3JCRP4B_DBPc +_Z8_db_lockPKciP4B_DB +;_Z8DeleteDBPKciP3JCRP4B_DBPc +;_Z8InsertDBPKciP3JCRP4B_DBPc +;_Z8UpdateDBPKciP3JCRP4B_DBPc + +; sql_create.c: +_Z20db_create_job_recordP3JCRP4B_DBP7JOB_DBR +_Z21db_create_pool_recordP3JCRP4B_DBP8POOL_DBR +_Z22db_create_media_recordP3JCRP4B_DBP9MEDIA_DBR +_Z23db_create_client_recordP3JCRP4B_DBP10CLIENT_DBR +;_Z23db_create_device_recordP3JCRP4B_DBP10DEVICE_DBR +_Z24db_create_counter_recordP3JCRP4B_DBP11COUNTER_DBR +_Z24db_create_fileset_recordP3JCRP4B_DBP11FILESET_DBR +_Z24db_create_storage_recordP3JCRP4B_DBP11STORAGE_DBR +_Z25db_create_jobmedia_recordP3JCRP4B_DBP12JOBMEDIA_DBR +_Z26db_create_mediatype_recordP3JCRP4B_DBP13MEDIATYPE_DBR +_Z32db_create_file_attributes_recordP3JCRP4B_DBP8ATTR_DBR + +; sql_delete.c: +_Z21db_delete_pool_recordP3JCRP4B_DBP8POOL_DBR +;_Z21db_purge_media_recordP3JCRP4B_DBP9MEDIA_DBR +_Z22db_delete_media_recordP3JCRP4B_DBP9MEDIA_DBR + +; sql_find.c: +_Z18db_find_last_jobidP3JCRP4B_DBPKcP7JOB_DBR +_Z19db_find_next_volumeP3JCRP4B_DBibP9MEDIA_DBR +_Z22db_find_job_start_timeP3JCRP4B_DBP7JOB_DBRPPc +_Z24db_find_failed_job_sinceP3JCRP4B_DBP7JOB_DBRPcRi + +; sql_get.c: +_Z15db_get_pool_idsP3JCRP4B_DBPiPPj +_Z16db_get_media_idsP3JCRP4B_DBjPiPPj +_Z17db_get_client_idsP3JCRP4B_DBPiPPj +_Z17db_get_job_recordP3JCRP4B_DBP7JOB_DBR +_Z18db_get_pool_recordP3JCRP4B_DBP8POOL_DBR +_Z19db_get_media_recordP3JCRP4B_DBP9MEDIA_DBR +_Z20db_get_client_recordP3JCRP4B_DBP10CLIENT_DBR +;_Z21db_get_counter_recordP3JCRP4B_DBP11COUNTER_DBR +_Z21db_get_fileset_recordP3JCRP4B_DBP11FILESET_DBR +_Z23db_get_job_volume_namesP3JCRP4B_DBjPPc +;_Z23db_get_num_pool_recordsP3JCRP4B_DB +;_Z24db_get_num_media_recordsP3JCRP4B_DB +_Z28db_get_job_volume_parametersP3JCRP4B_DBjPP10VOL_PARAMS +_Z29db_get_file_attributes_recordP3JCRP4B_DBPcP7JOB_DBRP8FILE_DBR + +; sqlite.c: + +; sql_list.c: +_Z17db_list_sql_queryP3JCRP4B_DBPKcPFvPvS4_ES5_i11e_list_type +_Z18db_list_job_totalsP3JCRP4B_DBP7JOB_DBRPFvPvPKcES5_ +_Z19db_list_job_recordsP3JCRP4B_DBP7JOB_DBRPFvPvPKcES5_11e_list_type +_Z20db_list_pool_recordsP3JCRP4B_DBP8POOL_DBRPFvPvPKcES5_11e_list_type +_Z21db_list_files_for_jobP3JCRP4B_DBjPFvPvPKcES3_ +_Z21db_list_media_recordsP3JCRP4B_DBP9MEDIA_DBRPFvPvPKcES5_11e_list_type +_Z22db_list_client_recordsP3JCRP4B_DBPFvPvPKcES3_11e_list_type +_Z24db_list_jobmedia_recordsP3JCRP4B_DBjPFvPvPKcES3_11e_list_type + +; sql_update.c: +_Z19db_mark_file_recordP3JCRP4B_DBjj +_Z21db_update_pool_recordP3JCRP4B_DBP8POOL_DBR +_Z22db_update_media_recordP3JCRP4B_DBP9MEDIA_DBR +_Z23db_update_client_recordP3JCRP4B_DBP10CLIENT_DBR +_Z24db_make_inchanger_uniqueP3JCRP4B_DBP9MEDIA_DBR +_Z24db_update_counter_recordP3JCRP4B_DBP11COUNTER_DBR +_Z24db_update_job_end_recordP3JCRP4B_DBP7JOB_DBR +_Z24db_update_media_defaultsP3JCRP4B_DBP9MEDIA_DBR +_Z24db_update_storage_recordP3JCRP4B_DBP11STORAGE_DBR +_Z26db_update_job_start_recordP3JCRP4B_DBP7JOB_DBR +_Z28db_add_digest_to_file_recordP3JCRP4B_DBjPci + +; +; compat +; +; compat.c: +;syslog +;umask +;utime _Z10open_bpipePciPKc -_Z10parse_argsPcPS_PiS0_S0_i -_Z10sem_unlockP13s_semlock_tag -_Z10sm_reallocPKciPvj -_Z10term_bsockP5BSOCK -_Z10var_configP6var_st12var_config_tz -_Z10var_createPP6var_st -_Z10var_expandP6var_stPKciPPcPii -_Z10var_formatP6var_stPPciPKcz -_Z10workq_initP9workq_tagiPFPvS1_E -_Z11__vsnprintfPcjPKcS_ -_Z11base64_initv -_Z11bash_spacesPc -_Z11bash_spacesR8POOL_MEM -_Z11bget_handleP5BFILE -_Z11bmicrosleepll _Z11close_bpipeP7s_bpipe -_Z11close_wpipeP7s_bpipe -_Z11create_fileP3JCRP4ATTRP5BFILEi -_Z11date_decodedPjPhS0_ -_Z11date_encodejhh -_Z11db_strerrorP4B_DB -_Z11decode_statPcP4statPi -_Z11edit_uint64yPc -_Z11encode_modetPc -_Z11encode_statPcP6FF_PKTi -_Z11encode_timelPc -_Z11from_base64PxPc -_Z11init_cryptov -_Z11int32_LE2BEPii -_Z11int64_LE2BEPxx -_Z11is_a_numberPKc -_Z11is_buf_zeroPci -_Z11list_dashesP4B_DBPFvPvPKcES1_ -_Z11list_resultP3JCRP4B_DBPFvPvPKcES3_11e_list_type -_Z11match_filesP3JCRP6FF_PKTPFiS2_PvbES3_ -_Z11restore_cwdPK9saved_cwdPKcS3_ -_Z11run_programPciS_ -_Z11run_scriptsP3JCRP5alistPKc -_Z11rwl_destroyP12s_rwlock_tag -_Z11scan_to_eolP13s_lex_context -_Z11sem_destroyP13s_semlock_tag -_Z11sem_trylockP13s_semlock_tag -_Z11skip_spacesPPc -_Z11strncasecmpPKcS0_i -_Z11time_decodedPhS_S_Pf -_Z11time_encodehhhf -_Z11tree_relcwdPcP11s_tree_rootP11s_tree_node -_Z11unlock_jobsv -_Z11var_destroyP6var_st -_Z11var_formatvP6var_stPPciPKcS1_ +;_Z11close_wpipeP7s_bpipe +;_Z11strncasecmpPKcS0_i _Z11win32_cgetsPci -_Z11win32_chdirPKc +;_Z11win32_chdirPKc _Z11win32_fputsPKcP6_iobuf -_Z11win32_mkdirPKc -_Z12MD5TransformPjS_ -_Z12UTF8_2_wcharPPcPKc -_Z12actuallyfreePv -_Z12add_msg_destP4MSGSiiPcS1_ -_Z12bnet_connectP3JCRiiPKcPcS3_ii -_Z12bstrftime_ncPcix -_Z12bstrftime_nyPcix -_Z12daemon_startv -_Z12db_sql_queryP4B_DBPKcPFiPviPPcES3_ +;_Z11win32_mkdirPKc _Z12gettimeofdayP7timevalP8timezone _Z12init_signalsPFviE -_Z12is_bnet_stopP5BSOCK -_Z12jcr_walk_endP3JCR -_Z12job_end_pushP3JCRPFvS0_PvES1_ -_Z12lex_get_charP13s_lex_context -_Z12new_watchdogv -_Z12rem_msg_destP4MSGSiiPc -_Z12rwl_readlockP12s_rwlock_tag -_Z12serial_btimePPhx -_Z12serial_int16PPhs -_Z12serial_int32PPhi -_Z12serial_int64PPhx -_Z12sm_check_rtnPKcib -_Z12sm_new_ownerPKciPc -_Z12str_to_int64Pc -_Z12str_to_utimePc -_Z12tree_getpathP11s_tree_nodePci -_Z12var_strerrorP6var_st8var_rc_t -_Z12var_unescapeP6var_stPKciPcii +;_Z12UTF8_2_wcharPPcPKc _Z12wchar_2_UTF8PcPKwi -_Z12win32_getcwdPci +;_Z12win32_getcwdPci _Z12win32_unlinkPKc -_Z12workq_removeP9workq_tagP13workq_ele_tag -_Z13bin_to_base64PcS_i -_Z13bnet_get_peerP5BSOCKPci -_Z13bnet_strerrorP5BSOCK -_Z13btime_to_unixx -_Z13cram_md5_authP5BSOCKPci -_Z13db_next_indexP3JCRP4B_DBPcS3_ +_Z15init_stack_dumpv +;_Z16wchar_win32_pathPKcPw +_Z17SetVSSPathConvertPFiPKcPciEPFiPKwPwiE +;_Z18CreateChildProcessPKcPvS1_S1_ +;_Z18cvt_ftime_to_utimeRK9_FILETIME +;_Z18cvt_utime_to_ftimeRKlR9_FILETIME +;_Z18unix_name_to_win32PPcS_ +;_Z21make_wchar_win32_pathPcPi +;_Z21Win32ConvCleanupCachev +;_Z23conv_unix_to_win32_pathPKcPcm +;_Z28make_win32_path_UTF8_2_wcharPPcPKcPi +;_Z4forkv +_Z4killii +;_Z4pipePi +_Z4statPKcP4stat +;_Z5chmodPKct +;_Z5chownPKcjj +;_Z5fcntlii +_Z5fcntliil +_Z5fstatiP4stat +_Z5lstatPKcP4stat +_Z5sleepi +;_Z6execvpPKcPPc +;_Z6lchownPKcjj +_Z6randomv +;_Z7geteuidv +_Z7opendirPKc +;_Z7openlogPKcii +_Z7srandomj +;_Z7waitpidiPii +_Z8closedirPv +;_Z8closelogv +;_Z8getArgv0PKc +;_Z8getgrgidj +;_Z8getpwuidj +_Z8pathconfPKci +;_Z8readlinkPKcPci +_Z8WSA_Initv +;_Z9ErrorExitPKc +;_Z9inet_atonPKcP7in_addr +;_Z9nanosleepPK8timespecPS_ +_Z9readdir_rPvP6direntPS1_ +;_ZN6winverC1Ev +;_ZN6winverC2Ev + +; print.c: +;_Z10__snprintfPcjPKcz +;_Z10__vsprintfPcPKcS_ +;_Z11__vsnprintfPcjPKcS_ +;_Z4doprPcjPKcS_PFvS_PjjiE +;_Z9__sprintfPcPKcz + +; winapi.c: +_Z17InitWinAPIWrapperv + +; +; findlib +; +; attribs.c: +_Z11decode_statPcP4statPi +_Z11encode_statPcP6FF_PKTi _Z13decode_LinkFIPcP4stat +_Z14set_attributesP3JCRP4ATTRP5BFILE +_Z16encode_attribsExP3JCRPcP6FF_PKT +_Z18select_data_streamP6FF_PKT +;_Z4plugIjEvRT_y +;_Z4plugIlEvRT_y +;_Z4plugImEvRT_y +;_Z4plugIsEvRT_y +;_Z4plugItEvRT_y +;_Z4plugIyEvRT_y +;_Z9win_errorP3JCRPcm +;_Z9win_errorP3JCRPcS1_ + +; bfile.c: +;_Z11bget_handleP5BFILE +;_Z11int32_LE2BEPii +;_Z11int64_LE2BEPxx +_Z14have_win32_apiv +_Z15is_win32_streami +_Z15stream_to_asciii +;_Z16set_win32_backupP5BFILE +_Z18is_portable_backupP5BFILE +_Z19set_portable_backupP5BFILE +_Z26processWin32BackupAPIBlockP5BFILEPvl +_Z27is_restore_stream_supportedi +_Z5binitP5BFILE +_Z5bopenP5BFILEPKcit +_Z5breadP5BFILEPvj +_Z6bcloseP5BFILE +_Z6blseekP5BFILEli +_Z6bwriteP5BFILEPvj +_Z8is_bopenP5BFILE +_Z8set_progP5BFILEPcP3JCR + +; create_file.c: +_Z11create_fileP3JCRP4ATTRP5BFILEi + +; drivetype.c: +_Z9drivetypePKcPci + +; enable_priv.c: +_Z24enable_backup_privilegesP3JCRi + +; find.c: +_Z10find_filesP3JCRP6FF_PKTPFiS2_PvbES3_ +_Z15init_find_filesv +_Z15term_find_filesP6FF_PKT +_Z16set_find_optionsP6FF_PKTil +_Z22get_win32_drivelettersP6FF_PKTPc + +; find_one.c: _Z13find_one_fileP3JCRP6FF_PKTPFiS2_PvbES3_Pcjb -_Z13free_msgs_resP4MSGS -_Z13get_jcr_by_idj -_Z13is_an_integerPKc +;_Z13term_find_oneP6FF_PKT + +; fstype.c: +_Z6fstypePKcPci + +; makepath.c: +;_Z10isAbsolutePKc +;_Z9make_pathP3JCRPKciijjiPc + +; match.c: +_Z11match_filesP3JCRP6FF_PKTPFiS2_PvbES3_ +_Z16file_is_excludedP6FF_PKTPKc +_Z16file_is_includedP6FF_PKTPKc +;_Z22get_next_included_fileP6FF_PKTP15s_included_file +_Z25add_fname_to_exclude_listP6FF_PKTPKc +_Z25add_fname_to_include_listP6FF_PKTiPKc +_Z26term_include_exclude_filesP6FF_PKT + +; save-cwd.c: +;_Z11restore_cwdPK9saved_cwdPKcS3_ +;_Z8free_cwdP9saved_cwd +;_Z8save_cwdP9saved_cwd + +; +; lib +; +; address_conf.c: +_Z14free_addressesP5dlist +_Z15store_addressesP13s_lex_contextP8RES_ITEMii +_Z17get_first_addressP5dlistPci +;_Z17sockaddr_get_portPK8sockaddr +_Z17sockaddr_to_asciiPK8sockaddrPci +;_Z19build_addresses_strP5dlistPci +_Z20store_addresses_portP13s_lex_contextP8RES_ITEMii +_Z22init_default_addressesPP5dlisti +_Z23store_addresses_addressP13s_lex_contextP8RES_ITEMii +;_Z24get_first_port_net_orderP5dlist +_Z25get_first_port_host_orderP5dlist +_Z27sockaddr_get_port_net_orderPK8sockaddr +_ZN6IPADDR11get_addressEPci +;_ZN6IPADDR12get_sockaddrEv +;_ZN6IPADDR12set_addr_anyEv +;_ZN6IPADDR12set_port_netEt +;_ZN6IPADDR16get_sockaddr_lenEv +;_ZN6IPADDR17build_address_strEPci +;_ZN6IPADDR8set_typeENS_6i_typeE +;_ZN6IPADDR9copy_addrEPS_ +;_ZN6IPADDR9set_addr4EP7in_addr +;_ZN6IPADDRC1Ei +;_ZN6IPADDRC1ERKS_ +;_ZN6IPADDRC2Ei +;_ZN6IPADDRC2ERKS_ +;_ZNK6IPADDR10get_familyEv +_ZNK6IPADDR18get_port_net_orderEv +;_ZNK6IPADDR8get_typeEv + +; alist.c: +_ZN5alist3getEi +;_ZN5alist4lastEv +_ZN5alist4nextEv +;_ZN5alist4prevEv +_ZN5alist5firstEv +_ZN5alist6appendEPv +_ZN5alist6removeEi +_ZN5alist7destroyEv +_ZN5alist7prependEPv +;_ZN5alist9grow_listEv + +; alloc.c: + +; attr.c: +_Z15print_ls_outputP3JCRP4ATTR +_Z24build_attr_output_fnamesP3JCRP4ATTR +_Z24unpack_attributes_recordP3JCRiPcP4ATTR +_Z8new_attrv +_Z9free_attrP4ATTR + +; base64.c: +;_Z11base64_initv +;_Z11from_base64PxPc +_Z13bin_to_base64PciS_ii +;_Z9to_base64xPc + +; berrno.c: +_ZN6berrno20format_win32_messageEv +_ZN6berrno8strerrorEv + +; bget_msg.c: +_Z8bget_msgP5BSOCK + +; bnet.c: +_Z10bnet_closeP5BSOCK +_Z10bnet_fsendP5BSOCKPKcz +_Z10init_bsockP3JCRiPKcS2_iP8sockaddr +_Z10term_bsockP5BSOCK +_Z12bnet_connectP3JCRiiPKcPcS3_ii +_Z12is_bnet_stopP5BSOCK +_Z13bnet_get_peerP5BSOCKPci +_Z13bnet_strerrorP5BSOCK _Z13is_bnet_errorP5BSOCK -_Z13is_name_validPcPS_ -_Z13jcr_walk_nextP3JCR -_Z13lex_get_tokenP13s_lex_contexti -_Z13lex_open_fileP13s_lex_contextPKcPFvS2_iS0_S2_zE -_Z13new_runscriptv -_Z13rwl_writelockP12s_rwlock_tag -_Z13serial_stringPPhPKc -_Z13serial_uint16PPht -_Z13serial_uint32PPhj -_Z13serial_uint64PPhy -_Z13sm_get_memoryPKcii -_Z13stop_watchdogv -_Z13str_to_uint64Pc -_Z13term_find_oneP6FF_PKT -_Z13unbash_spacesPc -_Z13unbash_spacesR8POOL_MEM -_Z13workq_destroyP9workq_tag -_Z14actuallycallocjj -_Z14actuallymallocj _Z14bnet_wait_dataP5BSOCKi -_Z14btime_to_utimex -_Z14cleanup_cryptov -_Z14copy_runscriptP9RUNSCRIPT -_Z14edit_job_codesP3JCRPcS1_PKc -_Z14free_addressesP5dlist -_Z14free_runscriptP9RUNSCRIPT -_Z14have_win32_apiv -_Z14jcr_walk_startv -_Z14lex_close_fileP13s_lex_context -_Z14lex_tok_to_stri -_Z14lex_unget_charP13s_lex_context -_Z14make_tree_pathPcP11s_tree_root -_Z14rwl_readunlockP12s_rwlock_tag -_Z14serial_float64PPhd -_Z14set_attributesP3JCRP4ATTRP5BFILE -_Z14size_to_uint64PciPy -_Z14skip_nonspacesPPc -_Z14start_watchdogv -_Z14unserial_btimePPh -_Z14unserial_int16PPh -_Z14unserial_int32PPh -_Z15actuallyreallocPvj _Z15bnet_tls_clientP11TLS_ContextP5BSOCK _Z15bnet_tls_serverP11TLS_ContextP5BSOCKP5alist +;_Z17bnet_host2ipaddrsPKciPS0_ +;_Z17bnet_set_blockingP5BSOCK +_Z17bnet_sig_to_asciiP5BSOCK +_Z19bnet_wait_data_intrP5BSOCKi +_Z20bnet_set_buffer_sizeP5BSOCKji +;_Z20bnet_set_nonblockingP5BSOCK +_Z21bnet_despool_to_bsockP5BSOCKPFvlEl +;_Z21bnet_restore_blockingP5BSOCKi +_Z28bnet_suppress_error_messagesP5BSOCKb +_Z8bnet_sigP5BSOCKi +_Z9bnet_recvP5BSOCK +_Z9bnet_sendP5BSOCK +_Z9dup_bsockP5BSOCK + +; bnet_server.c: +_Z18bnet_thread_serverP5dlistiP9workq_tagPFPvS3_E +_Z23bnet_stop_thread_serverP10pthread_t_ + +; bpipe.c: +_Z11run_programPciS_ +_Z23run_program_full_outputPciS_ + +; bregex.c: +;b_re_compile_fastmap +;b_re_compile_initialize +;b_re_compile_pattern +b_regcomp +b_regerror +b_regexec +b_regfree +;b_re_match +;b_re_search +;b_re_set_syntax + +; bsnprintf.c: +_Z10bvsnprintfPciPKcS_ +_Z9bsnprintfPciPKcz + +; bsys.c: +_Z11bmicrosleepll _Z15create_pid_filePcPKci -_Z15crypto_sign_newv -_Z15crypto_strerror14crypto_error_t -_Z15db_get_pool_idsP3JCRP4B_DBPiPPj _Z15delete_pid_filePcPKci -_Z15enh_fnmatch_subPKcS0_ii -_Z15free_runscriptsP5alist -_Z15init_find_filesv -_Z15init_stack_dumpv -_Z15is_win32_streami -_Z15job_type_to_stri -_Z15new_tls_contextPKcS0_S0_S0_PFiPciPKvES3_S0_b -_Z15print_ls_outputP3JCRP4ATTR _Z15read_state_filePcPKci -_Z15rwl_readtrylockP12s_rwlock_tag -_Z15rwl_writeunlockP12s_rwlock_tag -_Z15store_addressesP13s_lex_contextP8RES_ITEMii -_Z15stream_to_asciii -_Z15term_find_filesP6FF_PKT -_Z15tls_bsock_readnP5BSOCKPci -_Z15unserial_stringPPhPc -_Z15unserial_uint16PPh -_Z15unserial_uint32PPh -_Z15unserial_uint64PPh -_Z16crypto_sign_freeP9Signature -_Z16date_time_decodeP9date_timePjPhS2_S2_S2_S2_Pf -_Z16date_time_encodeP9date_timejhhhhhf -_Z16db_escape_stringPcS_i -_Z16db_get_media_idsP3JCRP4B_DBjPiPPj -_Z16db_init_databaseP3JCRPKcS2_S2_S2_iS2_i -_Z16db_open_databaseP3JCRP4B_DB -_Z16dequeue_messagesP3JCR -_Z16dispatch_messageP3JCRilPc -_Z16encode_attribsExP3JCRPcP6FF_PKT -_Z16file_is_excludedP6FF_PKTPKc -_Z16file_is_includedP6FF_PKTPKc -_Z16free_tls_contextP11TLS_Context -_Z16get_current_timeP9date_time -_Z16init_console_msgPKc -_Z16insert_tree_nodePcS_iP11s_tree_rootP11s_tree_node -_Z16job_level_to_stri -_Z16make_session_keyPcS_i -_Z16rwl_writetrylockP12s_rwlock_tag -_Z16set_find_optionsP6FF_PKTil -_Z16set_win32_backupP5BFILE -_Z16stop_bsock_timerP10s_btimer_t -_Z16stop_child_timerP10s_btimer_t -_Z16tls_bsock_acceptP5BSOCK -_Z16tls_bsock_writenP5BSOCKPci -_Z16unserial_float64PPh -_Z16wchar_win32_pathPKcPw _Z16write_state_filePcPKci -_Z17InitWinAPIWrapperv -_Z17SetVSSPathConvertPFiPKcPciEPFiPKwPwiE -_Z17bnet_host2ipaddrsPKciPS0_ -_Z17bnet_set_blockingP5BSOCK -_Z17bnet_sig_to_asciiP5BSOCK -_Z17close_memory_poolv -_Z17cram_md5_get_authP5BSOCKPcPi -_Z17crypto_cipher_newP14Crypto_SessionbPj -_Z17crypto_digest_new15crypto_digest_t -_Z17date_time_compareP9date_timeS0_ -_Z17db_close_databaseP3JCRP4B_DB -_Z17db_get_client_idsP3JCRP4B_DBPiPPj -_Z17db_get_job_recordP3JCRP4B_DBP7JOB_DBR -_Z17db_get_mac_recordP3JCRP4B_DBP7MAC_DBR -_Z17db_list_sql_queryP3JCRP4B_DBPKcPFvPvS4_ES5_i11e_list_type -_Z17duration_to_utimePcPx +;_Z20make_unique_filenamePPciS_ +_Z2_pPP16pthread_mutex_t_ +_Z2_vPP16pthread_mutex_t_ +_Z4dropPcS_ +_Z6bfgetsPciP6_iobuf +;_Z7bcallocjj +;_Z7bstrcmpPKcS0_ +;_Z7cstrlenPKc +_Z8b_mallocPKcij +_Z8breallocPvj +_Z8bstrncatPcPKci +;_Z8bstrncatPcR8POOL_MEMi +_Z8bstrncpyPcPKci +_Z8bstrncpyPcR8POOL_MEMi +;_Z9bstrerroriPcj + +; btime.c: +_Z10bstrftimesPcix +;_Z11date_decodedPjPhS0_ +;_Z11date_encodejhh +;_Z11time_decodedPhS_S_Pf +;_Z11time_encodehhhf +_Z12bstrftime_ncPcix +;_Z12bstrftime_nyPcix +_Z12str_to_utimePc +_Z13btime_to_unixx +_Z14btime_to_utimex +;_Z16date_time_decodeP9date_timePjPhS2_S2_S2_S2_Pf +;_Z16date_time_encodeP9date_timejhhhhhf +_Z16get_current_timeP9date_time +;_Z17date_time_compareP9date_timeS0_ _Z17get_current_btimev -_Z17get_first_addressP5dlistPci -_Z17job_status_to_stri -_Z17openssl_save_prngv -_Z17openssl_seed_prngv -_Z17register_watchdogP12s_watchdog_t -_Z17sockaddr_get_portPK8sockaddr -_Z17sockaddr_to_asciiPK8sockaddrPci +;_Z6tm_womii +_Z6tm_woyl +_Z9bstrftimePcix +_Z9bstrutimePcix +_Z9tm_decodeP9date_timeP2tm +;_Z9tm_encodeP9date_timeP2tm + +; btimers.c: +_Z16stop_bsock_timerP10s_btimer_t +;_Z16stop_child_timerP10s_btimer_t _Z17start_bsock_timerP5BSOCKj -_Z17start_child_timerij +;_Z17start_child_timerij _Z17stop_thread_timerP10s_btimer_t -_Z17tls_bsock_connectP5BSOCK -_Z18CreateChildProcessPKcPvS1_S1_ -_Z18bnet_thread_serverP5dlistiP9workq_tagPFPvS3_E +_Z18start_thread_timerP10pthread_t_j + +; btree.c: +;_ZN5btree11left_rotateEP5bnode +;_ZN5btree12right_rotateEP5bnode +;_ZN5btree3anyEP5bnode +;_ZN5btree4nextEP5bnode +;_ZN5btree5firstEv +;_ZN5btree6insertEP5bnodePFiS1_S1_E +;_ZN5btree6removeEP5bnode +;_ZN5btree6searchEP5bnodePFiS1_S1_E +;_ZN5btree7destroyEv + +; cram-md5.c: +_Z16cram_md5_respondP5BSOCKPcPiS2_ +_Z18cram_md5_challengeP5BSOCKPcii + +; crc32.c: +_Z6bcrc32Phi + +; crypto.c: +_Z11init_cryptov +;_Z13CryptoData_itv +;_Z13SignerInfo_itv +_Z14cleanup_cryptov +;_Z14CryptoData_newv +;_Z14d2i_CryptoDataPP10CryptoDataPPKhl +;_Z14d2i_SignerInfoPP10SignerInfoPPKhl +;_Z14i2d_CryptoDataP10CryptoDataPPh +;_Z14i2d_SignerInfoP10SignerInfoPPh +;_Z14SignerInfo_newv +;_Z15CryptoData_freeP10CryptoData +_Z15crypto_sign_newv +_Z15crypto_strerror14crypto_error_t +;_Z15SignerInfo_freeP10SignerInfo +_Z16crypto_sign_freeP9Signature +;_Z16RecipientInfo_itv +;_Z16SignatureData_itv +_Z17crypto_cipher_newP14Crypto_SessionbPj +_Z17crypto_digest_new15crypto_digest_t +;_Z17d2i_RecipientInfoPP13RecipientInfoPPKhl +;_Z17d2i_SignatureDataPP13SignatureDataPPKhl +;_Z17i2d_RecipientInfoP13RecipientInfoPPh +;_Z17i2d_SignatureDataP13SignatureDataPPh +;_Z17RecipientInfo_newv +;_Z17SignatureData_newv _Z18crypto_cipher_freeP14Cipher_Context _Z18crypto_digest_freeP6Digest _Z18crypto_digest_nameP6Digest _Z18crypto_keypair_dupP12X509_Keypair _Z18crypto_keypair_newv _Z18crypto_session_new15crypto_cipher_tP5alist -_Z18crypto_sign_decodePKvj -_Z18crypto_sign_encodeP9SignaturePvPj +_Z18crypto_sign_decodePKhj +_Z18crypto_sign_encodeP9SignaturePhPj _Z18crypto_sign_verifyP9SignatureP12X509_KeypairP6Digest -_Z18cvt_ftime_to_utimeRK9_FILETIME -_Z18cvt_utime_to_ftimeRKlR9_FILETIME -_Z18db_end_transactionP3JCRP4B_DB -_Z18db_find_last_jobidP3JCRP4B_DBPKcP7JOB_DBR -_Z18db_get_pool_recordP3JCRP4B_DBP8POOL_DBR -_Z18db_list_job_totalsP3JCRP4B_DBP7JOB_DBRPFvPvPKcES5_ -_Z18do_shell_expansionPci -_Z18free_getuser_cachev -_Z18get_jcr_by_sessionjj -_Z18get_sql_record_maxP3JCRP4B_DB -_Z18init_jcr_subsystemv -_Z18is_portable_backupP5BFILE -_Z18jobstatus_to_asciiiPci -_Z18new_tls_connectionP11TLS_Contexti -_Z18select_data_streamP6FF_PKT -_Z18set_jcr_job_statusP3JCRi -_Z18sm_get_pool_memoryPKcii -_Z18start_thread_timerP10pthread_t_j -_Z18tls_bsock_shutdownP5BSOCK -_Z18unix_name_to_win32PPcS_ -_Z19bnet_wait_data_intrP5BSOCKi -_Z19build_addresses_strP5dlistPci +;_Z18RecipientInfo_freeP13RecipientInfo +;_Z18SignatureData_freeP13SignatureData _Z19crypto_keypair_freeP12X509_Keypair _Z19crypto_session_freeP14Crypto_Session -_Z19db_find_next_volumeP3JCRP4B_DBibP9MEDIA_DBR -_Z19db_get_media_recordP3JCRP4B_DBP9MEDIA_DBR -_Z19db_list_job_recordsP3JCRP4B_DBP7JOB_DBRPFvPvPKcES5_11e_list_type -_Z19db_mark_file_recordP3JCRP4B_DBjj -_Z19free_getgroup_cachev -_Z19free_tls_connectionP14TLS_Connection -_Z19init_last_jobs_listv -_Z19lock_last_jobs_listv -_Z19openssl_post_errorsiPKc -_Z19read_last_jobs_listiy -_Z19set_portable_backupP5BFILE -_Z19sm_free_pool_memoryPKciPc -_Z19split_path_and_fileP3JCRP4B_DBPKc -_Z19strip_leading_spacePc -_Z19strip_trailing_junkPc -_Z19term_last_jobs_listv -_Z19unregister_watchdogP12s_watchdog_t -_Z20bnet_set_buffer_sizeP5BSOCKji -_Z20bnet_set_nonblockingP5BSOCK -_Z20check_tables_versionP3JCRP4B_DB -_Z20crypto_cipher_updateP14Cipher_ContextPKvjS2_Pj -_Z20crypto_digest_updateP6DigestPKvj -_Z20db_create_job_recordP3JCRP4B_DBP7JOB_DBR -_Z20db_create_mac_recordP3JCRP4B_DBP7MAC_DBR -_Z20db_get_client_recordP3JCRP4B_DBP10CLIENT_DBR -_Z20db_list_pool_recordsP3JCRP4B_DBP8POOL_DBRPFvPvPKcES5_11e_list_type -_Z20db_start_transactionP3JCRP4B_DB -_Z20get_jcr_by_full_namePc -_Z20make_unique_filenamePPciS_ -_Z20openssl_init_threadsv -_Z20scan_to_next_not_eolP13s_lex_context -_Z20store_addresses_portP13s_lex_contextP8RES_ITEMii -_Z20write_last_jobs_listiy -_Z21Win32ConvCleanupCachev -_Z21bnet_despool_to_bsockP5BSOCKPFvlEl -_Z21bnet_restore_blockingP5BSOCKi -_Z21crypto_session_decodePKvjP5alistPP14Crypto_Session -_Z21crypto_session_encodeP14Crypto_SessionPvPj -_Z21db_create_pool_recordP3JCRP4B_DBP8POOL_DBR -_Z21db_delete_pool_recordP3JCRP4B_DBP8POOL_DBR -_Z21db_get_counter_recordP3JCRP4B_DBP11COUNTER_DBR -_Z21db_get_fileset_recordP3JCRP4B_DBP11FILESET_DBR -_Z21db_list_files_for_jobP3JCRP4B_DBjPFvPvPKcES3_ -_Z21db_list_media_recordsP3JCRP4B_DBP9MEDIA_DBRPFvPvPKcES5_11e_list_type -_Z21db_purge_media_recordP3JCRP4B_DBP9MEDIA_DBR -_Z21db_update_pool_recordP3JCRP4B_DBP8POOL_DBR -_Z21generate_daemon_eventP3JCRPKc -_Z21make_wchar_win32_pathPcPi -_Z21set_working_directoryPc -_Z21sm_sizeof_pool_memoryPKciPc -_Z21unlock_last_jobs_listv -_Z22crypto_cipher_finalizeP14Cipher_ContextPvPj -_Z22crypto_digest_finalizeP6DigestPvPj +_Z20crypto_cipher_updateP14Cipher_ContextPKhjS2_Pj +_Z20crypto_digest_updateP6DigestPKhj +_Z21crypto_session_decodePKhjP5alistPP14Crypto_Session +_Z21crypto_session_encodeP14Crypto_SessionPhPj +_Z22crypto_cipher_finalizeP14Cipher_ContextPhPj +_Z22crypto_digest_finalizeP6DigestPhPj _Z22crypto_keypair_has_keyPKc _Z22crypto_sign_add_signerP9SignatureP6DigestP12X509_Keypair _Z22crypto_sign_get_digestP9SignatureP12X509_KeypairPP6Digest -_Z22db_create_media_recordP3JCRP4B_DBP9MEDIA_DBR -_Z22db_delete_media_recordP3JCRP4B_DBP9MEDIA_DBR -_Z22db_find_job_start_timeP3JCRP4B_DBP7JOB_DBRPPc -_Z22db_list_client_recordsP3JCRP4B_DBPFvPvPKcES3_11e_list_type -_Z22db_update_media_recordP3JCRP4B_DBP9MEDIA_DBR -_Z22get_next_included_fileP6FF_PKTP15s_included_file -_Z22get_win32_drivelettersP6FF_PKTPc -_Z22init_default_addressesPP5dlisti -_Z22sm_realloc_pool_memoryPKciPci -_Z22strip_trailing_newlinePc -_Z22strip_trailing_slashesPc -_Z23bnet_stop_thread_serverP10pthread_t_ -_Z23conv_unix_to_win32_pathPKcPcm _Z23crypto_keypair_load_keyP12X509_KeypairPKcPFiPciPKvES5_ -_Z23db_create_client_recordP3JCRP4B_DBP10CLIENT_DBR -_Z23db_create_device_recordP3JCRP4B_DBP10DEVICE_DBR -_Z23db_get_job_volume_namesP3JCRP4B_DBjPPc -_Z23db_get_num_pool_recordsP3JCRP4B_DB -_Z23db_update_client_recordP3JCRP4B_DBP10CLIENT_DBR +_Z24crypto_keypair_load_certP12X509_KeypairPKc +_Z25crypto_digest_stream_typei +;_Z27crypto_default_pem_callbackPciPKv + +; daemon.c: +_Z12daemon_startv + +; dlist.c: +;_ZN5dlist12insert_afterEPvS0_ +_ZN5dlist13binary_insertEPvPFiS0_S0_E +_ZN5dlist13binary_searchEPvPFiS0_S0_E +_ZN5dlist13insert_beforeEPvS0_ +_ZN5dlist22binary_insert_multipleEPvPFiS0_S0_E +_ZN5dlist6appendEPv +_ZN5dlist6removeEPv +_ZN5dlist7destroyEv +_ZN5dlist7prependEPv +_ZNK5dlist4nextEPKv +;_ZNK5dlist4prevEPKv + +; edit.c: +;_Z10add_commasPcS_ +_Z10edit_int64xPc +_Z10edit_utimexPci +_Z11edit_uint64yPc +_Z11is_a_numberPKc +_Z12str_to_int64Pc +_Z13is_an_integerPKc +_Z13is_name_validPcPS_ +_Z13str_to_uint64Pc +_Z14size_to_uint64PciPy +_Z17duration_to_utimePcPx _Z23edit_uint64_with_commasyPc _Z23edit_uint64_with_suffixyPc + +; enh_fnmatch.c: +;enh_fnmatch +;_Z15enh_fnmatch_subPKcS0_ii + +; fnmatch.c: +fnmatch + +; hmac.c: +;_Z8hmac_md5PhiS_iS_ + +; htable.c: +;_ZN6htable10grow_tableEv +;_ZN6htable10hash_indexEPc +;_ZN6htable4initEPvS0_i +;_ZN6htable4nextEv +;_ZN6htable4sizeEv +;_ZN6htable5firstEv +;_ZN6htable5statsEv +;_ZN6htable6insertEPcPv +;_ZN6htable6lookupEPc +;_ZN6htable7destroyEv +;_ZN6htableC1EPvS0_i +;_ZN6htableC2EPvS0_i + +; idcache.c: +;_Z18free_getuser_cachev +;_Z19free_getgroup_cachev +_Z7getuserjPci +_Z8getgroupjPci + +; jcr.c: +;timeout_handler +_Z10b_free_jcrPKciP3JCR +_Z11unlock_jobsv +_Z12jcr_walk_endP3JCR +_Z12job_end_pushP3JCRPFvS0_PvES1_ +_Z13get_jcr_by_idj +_Z13jcr_walk_nextP3JCR +_Z14jcr_walk_startv +_Z18get_jcr_by_sessionjj +_Z18init_jcr_subsystemv +_Z18set_jcr_job_statusP3JCRi +;_Z19init_last_jobs_listv +_Z19lock_last_jobs_listv +;_Z19read_last_jobs_listiy +_Z19term_last_jobs_listv +_Z20get_jcr_by_full_namePc +;_Z20write_last_jobs_listiy +_Z21unlock_last_jobs_listv _Z23get_jcr_by_partial_namePc -_Z23init_python_interpreterPKcS0_S0_ -_Z23openssl_cleanup_threadsv -_Z23print_memory_pool_statsv -_Z23run_program_full_outputPciS_ -_Z23split_path_and_filenamePKcPPcPiS2_S3_ -_Z23store_addresses_addressP13s_lex_contextP8RES_ITEMii -_Z23term_python_interpreterv -_Z24build_attr_output_fnamesP3JCRP4ATTR -_Z24crypto_keypair_load_certP12X509_KeypairPKc -_Z24db_create_counter_recordP3JCRP4B_DBP11COUNTER_DBR -_Z24db_create_fileset_recordP3JCRP4B_DBP11FILESET_DBR -_Z24db_create_storage_recordP3JCRP4B_DBP11STORAGE_DBR -_Z24db_find_failed_job_sinceP3JCRP4B_DBP7JOB_DBRPcRi -_Z24db_get_num_media_recordsP3JCRP4B_DB -_Z24db_list_jobmedia_recordsP3JCRP4B_DBjPFvPvPKcES3_11e_list_type -_Z24db_make_inchanger_uniqueP3JCRP4B_DBP9MEDIA_DBR -_Z24db_update_counter_recordP3JCRP4B_DBP11COUNTER_DBR -_Z24db_update_job_end_recordP3JCRP4B_DBP7JOB_DBR -_Z24db_update_media_defaultsP3JCRP4B_DBP9MEDIA_DBR -_Z24db_update_storage_recordP3JCRP4B_DBP11STORAGE_DBR -_Z24enable_backup_privilegesP3JCRi -_Z24get_first_port_net_orderP5dlist -_Z24unpack_attributes_recordP3JCRiPcP4ATTR -_Z25add_fname_to_exclude_listP6FF_PKTPKc -_Z25add_fname_to_include_listP6FF_PKTiPKc -_Z25crypto_digest_stream_typei -_Z25db_create_jobmedia_recordP3JCRP4B_DBP12JOBMEDIA_DBR -_Z25get_first_port_host_orderP5dlist -_Z25sm_check_pool_memory_sizePKciPci -_Z25tls_postconnect_verify_cnP14TLS_ConnectionP5alist -_Z26db_create_mediatype_recordP3JCRP4B_DBP13MEDIATYPE_DBR -_Z26db_update_job_start_recordP3JCRP4B_DBP7JOB_DBR -_Z26processWin32BackupAPIBlockP5BFILEPvl -_Z26term_include_exclude_filesP6FF_PKT -_Z27crypto_default_pem_callbackPciPKv -_Z27garbage_collect_memory_poolv -_Z27is_restore_stream_supportedi -_Z27sockaddr_get_port_net_orderPK8sockaddr -_Z27tls_postconnect_verify_hostP14TLS_ConnectionPKc -_Z28bnet_suppress_error_messagesP5BSOCKb -_Z28db_add_digest_to_file_recordP3JCRP4B_DBjPci -_Z28db_get_job_volume_parametersP3JCRP4B_DBjPP10VOL_PARAMS -_Z28make_win32_path_UTF8_2_wcharPPcPKcPi -_Z29db_get_file_attributes_recordP3JCRP4B_DBPcP7JOB_DBRP8FILE_DBR +_Z7new_jcriPFvP3JCRE +_Z9lock_jobsv + +; lex.c: +_Z11scan_to_eolP13s_lex_context +;_Z12lex_get_charP13s_lex_context +_Z13lex_get_tokenP13s_lex_contexti +_Z13lex_open_fileP13s_lex_contextPKcPFvS2_iS0_S2_zE +_Z14lex_close_fileP13s_lex_context +_Z14lex_tok_to_stri +;_Z14lex_unget_charP13s_lex_context +;_Z20scan_to_next_not_eolP13s_lex_context _Z29lex_set_default_error_handlerP13s_lex_context -_Z2_pPP16pthread_mutex_t_ -_Z2_vPP16pthread_mutex_t_ -_Z32db_create_file_attributes_recordP3JCRP4B_DBP8ATTR_DBR _Z32lex_set_error_handler_error_typeP13s_lex_contexti + +; md5.c: +;_Z12MD5TransformPjS_ +_Z7MD5InitP10MD5Context +_Z8MD5FinalPhP10MD5Context +_Z9MD5UpdateP10MD5ContextPhj + +; mem_pool.c: +_Z13sm_get_memoryPKcii +_Z17close_memory_poolv +_Z18sm_get_pool_memoryPKcii +_Z19sm_free_pool_memoryPKciPc +_Z21sm_sizeof_pool_memoryPKciPc +_Z22sm_realloc_pool_memoryPKciPci +_Z23print_memory_pool_statsv +_Z25sm_check_pool_memory_sizePKciPci +;_Z27garbage_collect_memory_poolv +_Z9pm_strcatPPcPKc +_Z9pm_strcatR8POOL_MEMPKc +_Z9pm_strcatRPcPKc +;_Z9pm_strcatRPcR8POOL_MEM +_Z9pm_strcpyPPcPKc +_Z9pm_strcpyR8POOL_MEMPKc +_Z9pm_strcpyRPcPKc +_Z9pm_strcpyRPcR8POOL_MEM +;_ZN8POOL_MEM10realloc_pmEi +;_ZN8POOL_MEM6strcatEPKc +;_ZN8POOL_MEM6strcpyEPKc +;_ZN8POOL_MEM8max_sizeEv + +; message.c: +_Z10my_name_isiPPcPKc +_Z12add_msg_destP4MSGSiiPcS1_ +_Z12rem_msg_destP4MSGSiiPc +_Z13free_msgs_resP4MSGS +_Z16dequeue_messagesP3JCR +_Z16dispatch_messageP3JCRilPc +_Z16init_console_msgPKc _Z4JmsgP3JCRilPKcz _Z4MmsgPPcPKcz _Z4MmsgR8POOL_MEMPKcz _Z4MmsgRPcPKcz _Z4QmsgP3JCRilPKcz -_Z4doprPcjPKcS_PFvS_PjjiE -_Z4dropPcS_ -_Z4forkv -_Z4killii -_Z4pipePi -_Z4plugIjEvRT_y -_Z4plugIlEvRT_y -_Z4plugImEvRT_y -_Z4plugIsEvRT_y -_Z4plugItEvRT_y -_Z4plugIyEvRT_y -_Z4statPKcP4stat -_Z5binitP5BFILE -_Z5bopenP5BFILEPKcit -_Z5breadP5BFILEPvj -_Z5chmodPKct -_Z5chownPKcjj _Z5d_msgPKciiS0_z _Z5e_msgPKciiiS0_z -_Z5fcntlii -_Z5fcntliil -_Z5fstatiP4stat _Z5j_msgPKciP3JCRilS0_z -_Z5lcasePc -_Z5lstatPKcP4stat _Z5m_msgPKciPPcS0_z _Z5m_msgPKciRPcS0_z _Z5p_msgPKciiS0_z _Z5q_msgPKciP3JCRilS0_z -_Z5qnextP7b_queueS0_ -_Z5sleepi -_Z5t_msgPKciiS0_z -_Z6bcloseP5BFILE -_Z6bcrc32Phi -_Z6bfgetsPciP6_iobuf -_Z6blseekP5BFILEli -_Z6bwriteP5BFILEPvj -_Z6execvpPKcPPc -_Z6fstypePKcPci -_Z6lchownPKcjj -_Z6randomv -_Z6tm_womii -_Z6tm_woyl -_Z7MD5InitP10MD5Context -_Z7QueryDBPKciP3JCRP4B_DBPc -_Z7bcallocjj -_Z7bsscanfPKcS0_z -_Z7bstrcmpPKcS0_ -_Z7cstrlenPKc -_Z7fstrschPKcS0_ -_Z7geteuidv -_Z7getuserjPci -_Z7new_jcriPFvP3JCRE -_Z7opendirPKc -_Z7openlogPKcii -_Z7qdchainP7b_queue -_Z7qinsertP7b_queueS0_ -_Z7qremoveP7b_queue -_Z7sm_dumpb -_Z7sm_freePKciPv -_Z7srandomj -_Z7waitpidiPii -_Z8DeleteDBPKciP3JCRP4B_DBPc -_Z8InsertDBPKciP3JCRP4B_DBPc -_Z8MD5FinalPhP10MD5Context -_Z8SHA1InitP11SHA1Context -_Z8UpdateDBPKciP3JCRP4B_DBPc -_Z8WSA_Initv -_Z8_db_lockPKciP4B_DB -_Z8b_mallocPKcij -_Z8bget_msgP5BSOCK -_Z8bnet_sigP5BSOCKi -_Z8breallocPvj -_Z8bstrncatPcPKci -_Z8bstrncatPcR8POOL_MEMi -_Z8bstrncpyPcPKci -_Z8bstrncpyPcR8POOL_MEMi -_Z8closedirPv -_Z8closelogv -_Z8free_cwdP9saved_cwd -_Z8getArgv0PKc -_Z8getgrgidj -_Z8getgroupjPci -_Z8getpwuidj -_Z8hmac_md5PhiS_iS_ +;_Z5t_msgPKciiS0_z _Z8init_msgP3JCRP4MSGS -_Z8is_bopenP5BFILE -_Z8new_attrv -_Z8new_treei -_Z8next_argPPc -_Z8pathconfPKci -_Z8readlinkPKcPci -_Z8rwl_initP12s_rwlock_tag -_Z8save_cwdP9saved_cwd -_Z8sem_initP13s_semlock_tagi -_Z8sem_lockP13s_semlock_tag -_Z8set_progP5BFILEPcP3JCR -_Z8sm_checkPKcib _Z8term_msgv -_Z8tree_cwdPcP11s_tree_rootP11s_tree_node -_Z9ErrorExitPKc -_Z9MD5UpdateP10MD5ContextPhj -_Z9SHA1FinalP11SHA1ContextPh -_Z9__sprintfPcPKcz -_Z9bnet_recvP5BSOCK -_Z9bnet_sendP5BSOCK -_Z9bsnprintfPciPKcz -_Z9bstrerroriPcj -_Z9bstrftimePcix -_Z9bstrutimePcix _Z9close_msgP3JCR -_Z9drivetypePKcPci -_Z9dup_bsockP5BSOCK -_Z9free_attrP4ATTR -_Z9free_treeP11s_tree_root _Z9get_tracev -_Z9inet_atonPKcP7in_addr -_Z9lock_jobsv -_Z9make_pathP3JCRPKciijjiPc -_Z9nanosleepPK8timespecPS_ -_Z9pm_strcatPPcPKc -_Z9pm_strcatR8POOL_MEMPKc -_Z9pm_strcatRPcPKc -_Z9pm_strcatRPcR8POOL_MEM -_Z9pm_strcpyPPcPKc -_Z9pm_strcpyR8POOL_MEMPKc -_Z9pm_strcpyRPcPKc -_Z9pm_strcpyRPcR8POOL_MEM -_Z9readdir_rPvP6direntPS1_ _Z9set_tracei -_Z9sm_callocPKcijj -_Z9sm_mallocPKcij -_Z9sm_statici -_Z9tm_decodeP9date_timeP2tm -_Z9tm_encodeP9date_timeP2tm -_Z9to_base64xPc -_Z9win_errorP3JCRPcS1_ -_Z9win_errorP3JCRPcm -_Z9workq_addP9workq_tagPvPP13workq_ele_tagi -_ZN5alist3getEi -_ZN5alist4lastEv -_ZN5alist4nextEv -_ZN5alist4prevEv -_ZN5alist5firstEv -_ZN5alist6appendEPv -_ZN5alist6removeEi -_ZN5alist7destroyEv -_ZN5alist7prependEPv -_ZN5alist9grow_listEv -_ZN5btree11left_rotateEP5bnode -_ZN5btree12right_rotateEP5bnode -_ZN5btree3anyEP5bnode -_ZN5btree4nextEP5bnode -_ZN5btree5firstEv -_ZN5btree6insertEP5bnodePFiS1_S1_E -_ZN5btree6removeEP5bnode -_ZN5btree6searchEP5bnodePFiS1_S1_E -_ZN5btree7destroyEv -_ZN5dlist12insert_afterEPvS0_ -_ZN5dlist13binary_insertEPvPFiS0_S0_E -_ZN5dlist13binary_searchEPvPFiS0_S0_E -_ZN5dlist13insert_beforeEPvS0_ -_ZN5dlist22binary_insert_multipleEPvPFiS0_S0_E -_ZN5dlist6appendEPv -_ZN5dlist6removeEPv -_ZN5dlist7destroyEv -_ZN5dlist7prependEPv -_ZN6IPADDR11get_addressEPci -_ZN6IPADDR12get_sockaddrEv -_ZN6IPADDR12set_addr_anyEv -_ZN6IPADDR12set_port_netEt -_ZN6IPADDR16get_sockaddr_lenEv -_ZN6IPADDR17build_address_strEPci -_ZN6IPADDR8set_typeENS_6i_typeE -_ZN6IPADDR9copy_addrEPS_ -_ZN6IPADDR9set_addr4EP7in_addr -_ZN6IPADDRC1ERKS_ -_ZN6IPADDRC1Ei -_ZN6IPADDRC2ERKS_ -_ZN6IPADDRC2Ei -_ZN6berrno20format_win32_messageEv -_ZN6berrno8strerrorEv -_ZN6htable10grow_tableEv -_ZN6htable10hash_indexEPc -_ZN6htable4initEPvS0_i -_ZN6htable4nextEv -_ZN6htable4sizeEv -_ZN6htable5firstEv -_ZN6htable5statsEv -_ZN6htable6insertEPcPv -_ZN6htable6lookupEPc -_ZN6htable7destroyEv -_ZN6htableC1EPvS0_i -_ZN6htableC2EPvS0_i -_ZN6winverC1Ev -_ZN6winverC2Ev -_ZN8POOL_MEM10realloc_pmEi -_ZN8POOL_MEM6strcatEPKc -_ZN8POOL_MEM6strcpyEPKc -_ZN8POOL_MEM8max_sizeEv + +; openssl.c: +;_Z17openssl_save_prngv +;_Z17openssl_seed_prngv +;_Z19openssl_post_errorsiPKc +;_Z20openssl_init_threadsv +;_Z23openssl_cleanup_threadsv + +; pythonlib.c: +_Z21generate_daemon_eventP3JCRPKc +_Z23init_python_interpreterPKcS0_S0_ +_Z23term_python_interpreterv + +; queue.c: +;_Z5qnextP7b_queueS0_ +;_Z7qdchainP7b_queue +_Z7qinsertP7b_queueS0_ +;_Z7qremoveP7b_queue + +; runscript.c: +_Z11run_scriptsP3JCRP5alistPKc +_Z13new_runscriptv +_Z14copy_runscriptP9RUNSCRIPT +_Z14free_runscriptP9RUNSCRIPT +_Z15free_runscriptsP5alist _ZN9RUNSCRIPT10set_targetEPKc _ZN9RUNSCRIPT11set_commandEPKc _ZN9RUNSCRIPT13reset_defaultEb _ZN9RUNSCRIPT3runEP3JCRPKc _ZN9RUNSCRIPT5debugEv -_ZN9RUNSCRIPT8is_localEv -_ZNK5dlist4nextEPKv -_ZNK5dlist4prevEPKv -_ZNK6IPADDR10get_familyEv -_ZNK6IPADDR18get_port_net_orderEv -_ZNK6IPADDR8get_typeEv -b_re_compile_fastmap -b_re_compile_initialize -b_re_compile_pattern -b_re_match -b_re_search -b_re_set_syntax -b_regcomp -b_regerror -b_regexec -b_regfree -enh_fnmatch -fnmatch -syslog -timeout_handler -umask -utime -watchdog_thread -workq_server +;_ZN9RUNSCRIPT8is_localEv + +; rwlock.c: +_Z11rwl_destroyP12s_rwlock_tag +;_Z12rwl_readlockP12s_rwlock_tag +_Z13rwl_writelockP12s_rwlock_tag +;_Z14rwl_readunlockP12s_rwlock_tag +;_Z15rwl_readtrylockP12s_rwlock_tag +_Z15rwl_writeunlockP12s_rwlock_tag +;_Z16rwl_writetrylockP12s_rwlock_tag +_Z8rwl_initP12s_rwlock_tag + +; scan.c: +_Z10parse_argsPcPS_PiS0_S0_i +_Z11skip_spacesPPc +_Z14skip_nonspacesPPc +_Z19strip_leading_spacePc +_Z19strip_trailing_junkPc +_Z22strip_trailing_newlinePc +;_Z22strip_trailing_slashesPc +;_Z23split_path_and_filenamePKcPPcPiS2_S3_ +_Z7bsscanfPKcS0_z +_Z7fstrschPKcS0_ +;_Z8next_argPPc + +; semlock.c: +;_Z10sem_unlockP13s_semlock_tag +;_Z11sem_destroyP13s_semlock_tag +;_Z11sem_trylockP13s_semlock_tag +;_Z8sem_initP13s_semlock_tagi +;_Z8sem_lockP13s_semlock_tag + +; serial.c: +_Z12serial_btimePPhx +;_Z12serial_int16PPhs +_Z12serial_int32PPhi +;_Z12serial_int64PPhx +_Z13serial_stringPPhPKc +;_Z13serial_uint16PPht +_Z13serial_uint32PPhj +_Z13serial_uint64PPhy +_Z14serial_float64PPhd +_Z14unserial_btimePPh +;_Z14unserial_int16PPh +_Z14unserial_int32PPh +_Z15unserial_stringPPhPc +;_Z15unserial_uint16PPh +_Z15unserial_uint32PPh +_Z15unserial_uint64PPh +_Z16unserial_float64PPh + +; sha1.c: +;_Z10SHA1UpdateP11SHA1ContextPKhj +;_Z8SHA1InitP11SHA1Context +;_Z9SHA1FinalP11SHA1ContextPh + +; signal.c: + +; smartall.c: +_Z10sm_reallocPKciPvj +;_Z12actuallyfreePv +;_Z12sm_check_rtnPKcib +;_Z12sm_new_ownerPKciPc +;_Z14actuallycallocjj +;_Z14actuallymallocj +;_Z15actuallyreallocPvj +_Z7sm_dumpb +_Z7sm_freePKciPv +_Z8sm_checkPKcib +_Z9sm_callocPKcijj +_Z9sm_mallocPKcij +;_Z9sm_statici + +; tls.c: +_Z15new_tls_contextPKcS0_S0_S0_PFiPciPKvES3_S0_b +;_Z15tls_bsock_readnP5BSOCKPci +_Z16free_tls_contextP11TLS_Context +;_Z16tls_bsock_acceptP5BSOCK +;_Z16tls_bsock_writenP5BSOCKPci +;_Z17tls_bsock_connectP5BSOCK +;_Z18new_tls_connectionP11TLS_Contexti +;_Z18tls_bsock_shutdownP5BSOCK +;_Z19free_tls_connectionP14TLS_Connection +;_Z25tls_postconnect_verify_cnP14TLS_ConnectionP5alist +;_Z27tls_postconnect_verify_hostP14TLS_ConnectionPKc + +; tree.c: +;_Z11tree_relcwdPcP11s_tree_rootP11s_tree_node +_Z12tree_getpathP11s_tree_nodePci +;_Z14make_tree_pathPcP11s_tree_root +_Z16insert_tree_nodePcS_iP11s_tree_rootP11s_tree_node +_Z8new_treei +_Z8tree_cwdPcP11s_tree_rootP11s_tree_node +_Z9free_treeP11s_tree_root + +; util.c: +_Z11bash_spacesPc +_Z11bash_spacesR8POOL_MEM +_Z11encode_modetPc +_Z11encode_timelPc +_Z11is_buf_zeroPci +_Z13unbash_spacesPc +_Z13unbash_spacesR8POOL_MEM +_Z14edit_job_codesP3JCRPcS1_PKc +_Z15job_type_to_stri +_Z16job_level_to_stri +_Z16make_session_keyPcS_i +_Z17job_status_to_stri +_Z18do_shell_expansionPci +_Z18jobstatus_to_asciiiPci +_Z21set_working_directoryPc +_Z5lcasePc + +; var.c: +_Z10var_configP6var_st12var_config_tz +_Z10var_createPP6var_st +_Z10var_expandP6var_stPKciPPcPii +;_Z10var_formatP6var_stPPciPKcz +_Z11var_destroyP6var_st +;_Z11var_formatvP6var_stPPciPKcS1_ +_Z12var_strerrorP6var_st8var_rc_t +_Z12var_unescapeP6var_stPKciPcii + +; watchdog.c: +;watchdog_thread +_Z12new_watchdogv +_Z13stop_watchdogv +_Z14start_watchdogv +_Z17register_watchdogP12s_watchdog_t +;_Z19unregister_watchdogP12s_watchdog_t + +; workq.c: +;workq_server +;_Z10workq_initP9workq_tagiPFPvS1_E +;_Z12workq_removeP9workq_tagP13workq_ele_tag +;_Z13workq_destroyP9workq_tag +;_Z9workq_addP9workq_tagPvPP13workq_ele_tagi diff --git a/bacula/src/win32/filed/Makefile.mingw b/bacula/src/win32/filed/Makefile.mingw deleted file mode 100644 index bb025ce149..0000000000 --- a/bacula/src/win32/filed/Makefile.mingw +++ /dev/null @@ -1,504 +0,0 @@ -# New makefile for win32 bacula executables -# Using MinGW cross-compiler on GNU/Linux -# - -# Configuration - -# Version for cross-tools-3.4.2 -INCLUDE_MINGW = -I/data/cross-tools/mingw32/mingw32/include -INCLUDE_GCC = -I/data/cross-tools/mingw32/include - -# For cross-tools-2.95.3 -#INCLUDE_MINGW = -I/data/cross-tools/include -#INCLUDE_GCC = -I/data/cross-tools/i386-mingw32msvc/include - -INCLUDE_BACULA = -I../compat -I../.. -I../../win32/zlib -INCLUDE_PTHREAD = -I/data/cross-tools-pthread/include -INCLUDE_VSS = -I/data/Master/backup/vss-sdk/inc -INCLUDE_ICONS = -I../../filed/win32 - -INCLUDES = \ - $(INCLUDE_GCC) \ - $(INCLUDE_MINGW) \ - $(INCLUDE_BACULA) \ - $(INCLUDE_PTHREAD) \ - $(INCLUDE_VSS) \ - $(INCLUDE_ICONS) \ - -EXCLUDED_INCLUDES = \ - -HAVES = \ - -DHAVE_STDINT_H \ - -DHAVE_STDARG_H \ - -DHAVE_STDLIB_H \ - -DHAVE_ALLOCA_H \ - -DHAVE_LIMITS_H \ - -DHAVE_SYS_SOCKET_H \ - -DHAVE_SYS_WAIT_H \ - -DHAVE_SSL \ - -DHAVE_MINGW \ - -DHAVE_WIN32 \ - -DHAVE_U_INT64_T \ - -DHAVE_UINT64_T \ - -DHAVE_ZLIB_H \ - -DHAVE_LIBZ \ - -HAVE_NOT = \ - -DHAVE_SYS_BITYPES_H \ - -DSIZEOF_LONG_LONG_INT=8 - -NOT_DEFINED = \ - -DEFINES = \ - -DWIN32 \ - $(HAVES) \ - -DCOMPILING_BACULA \ - -DWIN32_VSS \ - -CC = mingw32-g++ $(DEFINES) $(INCLUDES) -CXX = mingw32-g++ $(DEFINES) $(INCLUDES) 2>&1 -WINDRES = mingw32-windres - -#CC = i386-mingw32msvc-g++ $(DEFINES) $(INCLUDES) -#CXX = i386-mingw32msvc-g++ $(DEFINES) $(INCLUDES) -#WINDRES = i386-mingw32msvc-windres - -# first: all bacula-fd.exe -first: all - -INTDIR = . - -########################################################################## - -# Files in src/win32/filed/ -OBJS_FILED_FAILED = \ - -OBJS_FILED = \ - $(INTDIR)/authenticate.o \ - $(INTDIR)/backup.o \ - $(INTDIR)/chksum.o \ - $(INTDIR)/estimate.o \ - $(INTDIR)/filed.o \ - $(INTDIR)/filed_conf.o \ - $(INTDIR)/heartbeat.o \ - $(INTDIR)/job.o \ - $(INTDIR)/restore.o \ - $(INTDIR)/status.o \ - $(INTDIR)/verify.o \ - $(INTDIR)/verify_vol.o \ - $(OBJS_FILED_FAILED) - - -authenticate.o: ../filed/authenticate.cpp - $(CXX) -c ../filed/authenticate.cpp -o authenticate.o - -backup.o: ../filed/backup.cpp - $(CXX) -c ../filed/backup.cpp -o backup.o - -chksum.o: ../filed/chksum.cpp - $(CXX) -c ../filed/chksum.cpp -o chksum.o - -estimate.o: ../filed/estimate.cpp - $(CXX) -c ../filed/estimate.cpp -o estimate.o - -filed.o: ../filed/filed.cpp - $(CXX) -c ../filed/filed.cpp -o filed.o - -filed_conf.o: ../filed/filed_conf.cpp - $(CXX) -c ../filed/filed_conf.cpp -o filed_conf.o - -heartbeat.o: ../filed/heartbeat.cpp - $(CXX) -c ../filed/heartbeat.cpp -o heartbeat.o - -job.o: ../filed/job.cpp - $(CXX) -c ../filed/job.cpp -o job.o - -restore.o: ../filed/restore.cpp - $(CXX) -c ../filed/restore.cpp -o restore.o - -status.o: ../filed/status.cpp - $(CXX) -c ../filed/status.cpp -o status.o - -verify.o: ../filed/verify.cpp - $(CXX) -c ../filed/verify.cpp -o verify.o - -verify_vol.o: ../filed/verify_vol.cpp - $(CXX) -c ../filed/verify_vol.cpp -o verify_vol.o - -###################################################################### - -# Files in src/compat -OBJS_COMPAT_FAILED = \ - $(INTDIR)/vss_w2k3.o \ - -OBJS_COMPAT = \ - $(INTDIR)/print.o \ - $(INTDIR)/compat.o \ - $(INTDIR)/getopt.o \ - $(INTDIR)/vss.o \ - $(INTDIR)/vss_xp.o \ - $(OBJS_COMPAT_FAILED) - -compat.o: ../compat/compat.cpp - $(CXX) -c ../compat/compat.cpp -o compat.o -# TODO - -getopt.o: ../compat/getopt.c - $(CXX) -c ../compat/getopt.c -o getopt.o - -print.o: ../compat/print.cpp - $(CXX) -c ../compat/print.cpp -o print.o - -vss.o: ../compat/vss.cpp - $(CXX) -c ../compat/vss.cpp -o vss.o -# TODO - -vss_xp.o: ../compat/vss_xp.cpp - $(CXX) -c ../compat/vss_xp.cpp -o vss_xp.o -# TODO - -vss_w2k3.o: ../compat/vss_w2k3.cpp - $(CXX) -c ../compat/vss_w2k3.cpp -o vss_w2k3.o -# TODO - - - -###################################################################### - -# Files in src/filed/win32 -OBJS_WIN = \ - $(INTDIR)/winabout.o \ - $(INTDIR)/winevents.o \ - $(INTDIR)/winservice.o \ - $(INTDIR)/winstat.o \ - $(INTDIR)/wintray.o \ - $(INTDIR)/winmain.o \ - $(INTDIR)/winres.res - -winabout.o: ../../filed/win32/winabout.cpp - $(CXX) -c ../../filed/win32/winabout.cpp -o winabout.o - -winevents.o: ../../filed/win32/winevents.cpp - $(CXX) -c ../../filed/win32/winevents.cpp -o winevents.o - -winmain.o: ../../filed/win32/winmain.cpp - $(CXX) -c ../../filed/win32/winmain.cpp -o winmain.o -# TODO - -winservice.o: ../../filed/win32/winservice.cpp - $(CXX) -c ../../filed/win32/winservice.cpp -o winservice.o - -winstat.o: ../../filed/win32/winstat.cpp - $(CXX) -c ../../filed/win32/winstat.cpp -o winstat.o - -wintray.o: ../../filed/win32/wintray.cpp - $(CXX) -c ../../filed/win32/wintray.cpp -o wintray.o - -winres.res: ../../filed/win32/winres.rc - $(WINDRES) $(INCLUDE_ICONS) -O coff ../../filed/win32/winres.rc -o winres.res -# $(WINDRES) --help -# mingw32-nm winres.res - -###################################################################### - -# Files in ??? Needed ??? - -# $(INTDIR)/StdAfx.o - -###################################################################### - -# Files in src/findlib -OBJS_FINDLIB = \ - $(INTDIR)/attribs.o \ - $(INTDIR)/bfile.o \ - $(INTDIR)/create_file.o \ - $(INTDIR)/enable_priv.o \ - $(INTDIR)/find.o \ - $(INTDIR)/find_one.o \ - $(INTDIR)/fstype.o \ - $(INTDIR)/makepath.o \ - $(INTDIR)/match.o \ - $(INTDIR)/save-cwd.o - -attribs.o: ../../findlib/attribs.c - $(CXX) -c ../../findlib/attribs.c -o attribs.o - -bfile.o: ../../findlib/bfile.c - $(CXX) -c ../../findlib/bfile.c -o bfile.o - -create_file.o: ../../findlib/create_file.c - $(CXX) -c ../../findlib/create_file.c -o create_file.o - -enable_priv.o: ../../findlib/enable_priv.c - $(CXX) -c ../../findlib/enable_priv.c -o enable_priv.o - -find.o: ../../findlib/find.c - $(CXX) -c ../../findlib/find.c -o find.o - -find_one.o: ../../findlib/find_one.c - $(CXX) -c ../../findlib/find_one.c -o find_one.o - -fstype.o: ../../findlib/fstype.c - $(CXX) -c ../../findlib/fstype.c -o fstype.o - -makepath.o: ../../findlib/makepath.c - $(CXX) -c ../../findlib/makepath.c -o makepath.o - -match.o: ../../findlib/match.c - $(CXX) -c ../../findlib/match.c -o match.o - -save-cwd.o: ../../findlib/save-cwd.c - $(CXX) -c ../../findlib/save-cwd.c -o save-cwd.o - - -###################################################################### - -# Files in src/win32/lib, based on files in src/lib -LIB_OBJS_FAILED = \ - $(INTDIR)/bpipe.o \ - -LIB_OBJS = \ - $(INTDIR)/address_conf.o \ - $(INTDIR)/alist.o \ - $(INTDIR)/alloc.o \ - $(INTDIR)/attr.o \ - $(INTDIR)/base64.o \ - $(INTDIR)/berrno.o \ - $(INTDIR)/bget_msg.o \ - $(INTDIR)/bnet.o \ - $(INTDIR)/bnet_server.o \ - $(INTDIR)/bshm.o \ - $(INTDIR)/bsys.o \ - $(INTDIR)/btime.o \ - $(INTDIR)/btimers.o \ - $(INTDIR)/cram-md5.o \ - $(INTDIR)/crc32.o \ - $(INTDIR)/daemon.o \ - $(INTDIR)/dlist.o \ - $(INTDIR)/edit.o \ - $(INTDIR)/fnmatch.o \ - $(INTDIR)/hmac.o \ - $(INTDIR)/htable.o \ - $(INTDIR)/idcache.o \ - $(INTDIR)/jcr.o \ - $(INTDIR)/lex.o \ - $(INTDIR)/md5.o \ - $(INTDIR)/mem_pool.o \ - $(INTDIR)/message.o \ - $(INTDIR)/parse_conf.o \ - $(INTDIR)/pythonlib.o \ - $(INTDIR)/queue.o \ - $(INTDIR)/regex.o \ - $(INTDIR)/res.o \ - $(INTDIR)/rwlock.o \ - $(INTDIR)/semlock.o \ - $(INTDIR)/serial.o \ - $(INTDIR)/sha1.o \ - $(INTDIR)/signal.o \ - $(INTDIR)/smartall.o \ - $(INTDIR)/tls.o \ - $(INTDIR)/var.o \ - $(INTDIR)/watchdog.o \ - $(INTDIR)/winapi.o \ - $(INTDIR)/workq.o \ - $(INTDIR)/scan.o \ - $(INTDIR)/tree.o \ - $(INTDIR)/util.o \ - $(LIB_OBJS_FAILED) \ - -OBJS = $(LIB_OBJS) $(OBJS_COMPAT) $(OBJS_WIN) $(OBJS_FINDLIB) $(OBJS_FILED) - -LIBS = \ - -L/data/cross-tools/mingw32/mingw32/lib \ - /data/cross-tools/mingw32/mingw32/lib/libole32.a \ - /data/cross-tools/mingw32/mingw32/lib/liboleaut32.a \ - /data/cross-tools/mingw32/mingw32/lib/libuser32.a \ - /data/cross-tools/mingw32/mingw32/lib/libadvapi32.a \ - /data/cross-tools/mingw32/mingw32/lib/libgdi32.a \ - /data/cross-tools/mingw32/mingw32/lib/libwsock32.a \ - /data/cross-tools/mingw32/mingw32/lib/libshell32.a \ - /data/cross-tools/mingw32/mingw32/lib/libnetapi32.a \ - /data/cross-tools/mingw32/mingw32/lib/libuuid.a \ - /data/cross-tools-pthread/lib/libpthreadGCE2.a \ - /data/Master/backup/bacula/bacula/src/win32/zlib/libz.a \ - -# LIBS = \ -# -L/data/cross-tools/mingw32/mingw32/lib \ -# libole32.a \ -# liboleaut32.a \ -# /data/cross-tools/mingw32/mingw32/lib/libuser32.a \ -# /data/cross-tools/mingw32/mingw32/lib/libadvapi32.a \ -# /data/cross-tools/mingw32/mingw32/lib/libgdi32.a \ -# /data/cross-tools/mingw32/mingw32/lib/libwsock32.a \ -# /data/cross-tools/mingw32/mingw32/lib/libshell32.a \ - -# pthreadVCE.a \ -# zlib.a - -# -# Rules for generating from ../lib -# - -address_conf.o: ../lib/address_conf.cpp - $(CXX) -c ../lib/address_conf.cpp -o address_conf.o - -alist.o: ../lib/alist.cpp - $(CXX) -c ../lib/alist.cpp -o alist.o - -alloc.o: ../lib/alloc.cpp - $(CXX) -c ../lib/alloc.cpp -o alloc.o - -attr.o: ../lib/attr.cpp - $(CXX) -c ../lib/attr.cpp -o attr.o - -base64.o: ../lib/base64.cpp - $(CXX) -c ../lib/base64.cpp -o base64.o - -berrno.o: ../lib/berrno.cpp - $(CXX) -c ../lib/berrno.cpp -o berrno.o - -bget_msg.o: ../lib/bget_msg.cpp - $(CXX) -c ../lib/bget_msg.cpp -o bget_msg.o - -bnet.o: ../lib/bnet.cpp - $(CXX) -c ../lib/bnet.cpp -o bnet.o - -bnet_server.o: ../lib/bnet_server.cpp - $(CXX) -c ../lib/bnet_server.cpp -o bnet_server.o - -bpipe.o: ../lib/bpipe.cpp - $(CXX) -c ../lib/bpipe.cpp -o bpipe.o - -bshm.o: ../lib/bshm.cpp - $(CXX) -c ../lib/bshm.cpp -o bshm.o - -bsys.o: ../lib/bsys.cpp - $(CXX) -c ../lib/bsys.cpp -o bsys.o - -btime.o: ../lib/btime.cpp - $(CXX) -c ../lib/btime.cpp -o btime.o - -btimers.o: ../lib/btimers.cpp - $(CXX) -c ../lib/btimers.cpp -o btimers.o - -cram-md5.o: ../lib/cram-md5.cpp - $(CXX) -c ../lib/cram-md5.cpp -o cram-md5.o - -crc32.o: ../lib/crc32.cpp - $(CXX) -c ../lib/crc32.cpp -o crc32.o - -daemon.o: ../lib/daemon.cpp - $(CXX) -c ../lib/daemon.cpp -o daemon.o - -dlist.o: ../lib/dlist.cpp - $(CXX) -c ../lib/dlist.cpp -o dlist.o - -edit.o: ../lib/edit.cpp - $(CXX) -c ../lib/edit.cpp -o edit.o - -fnmatch.o: ../lib/fnmatch.cpp - $(CXX) -c ../lib/fnmatch.cpp -o fnmatch.o - -hmac.o: ../lib/hmac.cpp - $(CXX) -c ../lib/hmac.cpp -o hmac.o - -htable.o: ../lib/htable.cpp - $(CXX) -c ../lib/htable.cpp -o htable.o - -idcache.o: ../lib/idcache.cpp - $(CXX) -c ../lib/idcache.cpp -o idcache.o - -jcr.o: ../lib/jcr.cpp - $(CXX) -c ../lib/jcr.cpp -o jcr.o - -lex.o: ../lib/lex.cpp - $(CXX) -c ../lib/lex.cpp -o lex.o - -md5.o: ../lib/md5.cpp - $(CXX) -c ../lib/md5.cpp -o md5.o - -mem_pool.o: ../lib/mem_pool.cpp - $(CXX) -c ../lib/mem_pool.cpp -o mem_pool.o - -message.o: ../lib/message.cpp - $(CXX) -c ../lib/message.cpp -o message.o - -parse_conf.o: ../lib/parse_conf.cpp - $(CXX) -c ../lib/parse_conf.cpp -o parse_conf.o - -pythonlib.o: ../lib/pythonlib.cpp - $(CXX) -c ../lib/pythonlib.cpp -o pythonlib.o - -queue.o: ../lib/queue.cpp - $(CXX) -c ../lib/queue.cpp -o queue.o - -regex.o: ../lib/regex.cpp - $(CXX) -c ../lib/regex.cpp -o regex.o - -res.o: ../lib/res.cpp - $(CXX) -c ../lib/res.cpp -o res.o - -rwlock.o: ../lib/rwlock.cpp - $(CXX) -c ../lib/rwlock.cpp -o rwlock.o - -scan.o: ../lib/scan.cpp - $(CXX) -c ../lib/scan.cpp -o scan.o - -semlock.o: ../lib/semlock.cpp - $(CXX) -c ../lib/semlock.cpp -o semlock.o - -serial.o: ../lib/serial.cpp - $(CXX) -c ../lib/serial.cpp -o serial.o - -sha1.o: ../lib/sha1.cpp - $(CXX) -c ../lib/sha1.cpp -o sha1.o - -signal.o: ../lib/signal.cpp - $(CXX) -c ../lib/signal.cpp -o signal.o - -smartall.o: ../lib/smartall.cpp - $(CXX) -c ../lib/smartall.cpp -o smartall.o - -tls.o: ../lib/tls.cpp - $(CXX) -c ../lib/tls.cpp -o tls.o - -tree.o: ../lib/tree.cpp - $(CXX) -c ../lib/tree.cpp -o tree.o - -util.o: ../lib/util.cpp - $(CXX) -c ../lib/util.cpp -o util.o - -var.o: ../lib/var.cpp - $(CXX) -c ../lib/var.cpp -o var.o - -watchdog.o: ../lib/watchdog.cpp - $(CXX) -c ../lib/watchdog.cpp -o watchdog.o - -winapi.o: ../lib/winapi.cpp - $(CXX) -c ../lib/winapi.cpp -o winapi.o - -workq.o: ../lib/workq.cpp - $(CXX) -c ../lib/workq.cpp -o workq.o - -# Targets - -all: bacula-fd.exe -# echo $PATH - -# all: $(LIB_OBJS) $(OBJS_FILED) $(OBJS_COMPAT) $(OBJS_WIN) $(OBJS_FINDLIB) -# all: $(LIB_OBJS) $(OBJS_FILED) $(OBJS_WIN) $(OBJS_FINDLIB) - -# all: $(OBJS_FILED) # OK -# all: $(OBJS_COMPAT) # TODO vss... -# all: $(OBJS_WIN) # OK -# all: $(OBJS_FINDLIB) # OK -# all: $(LIB_OBJS) # OK - -# Link the executable ... -bacula-fd.exe: $(OBJS) - $(CXX) $(OBJS) $(LIBS) -o bacula-fd.exe - -# TODO ... -# Fix vss files: check for consistent levels of pointer indirection -# bpipe.c: WTERMSIG undefined -# getopt.c: alloca redefined warning \ No newline at end of file diff --git a/bacula/src/win32/filed/authenticate.cpp b/bacula/src/win32/filed/authenticate.cpp deleted file mode 100644 index 371cea2539..0000000000 --- a/bacula/src/win32/filed/authenticate.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../filed/authenticate.c" \ No newline at end of file diff --git a/bacula/src/win32/filed/backup.cpp b/bacula/src/win32/filed/backup.cpp deleted file mode 100644 index bf2ccfa416..0000000000 --- a/bacula/src/win32/filed/backup.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../filed/backup.c" \ No newline at end of file diff --git a/bacula/src/win32/filed/estimate.cpp b/bacula/src/win32/filed/estimate.cpp deleted file mode 100644 index a25a6de13c..0000000000 --- a/bacula/src/win32/filed/estimate.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../filed/estimate.c" \ No newline at end of file diff --git a/bacula/src/win32/filed/filed.cpp b/bacula/src/win32/filed/filed.cpp deleted file mode 100644 index d2af1c120d..0000000000 --- a/bacula/src/win32/filed/filed.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../filed/filed.c" \ No newline at end of file diff --git a/bacula/src/win32/filed/filed_conf.cpp b/bacula/src/win32/filed/filed_conf.cpp deleted file mode 100644 index 2f21418535..0000000000 --- a/bacula/src/win32/filed/filed_conf.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../filed/filed_conf.c" \ No newline at end of file diff --git a/bacula/src/win32/filed/heartbeat.cpp b/bacula/src/win32/filed/heartbeat.cpp deleted file mode 100644 index 89fab21d23..0000000000 --- a/bacula/src/win32/filed/heartbeat.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../filed/heartbeat.c" \ No newline at end of file diff --git a/bacula/src/win32/filed/job.cpp b/bacula/src/win32/filed/job.cpp deleted file mode 100644 index da8314aa45..0000000000 --- a/bacula/src/win32/filed/job.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../filed/job.c" \ No newline at end of file diff --git a/bacula/src/win32/filed/restore.cpp b/bacula/src/win32/filed/restore.cpp deleted file mode 100644 index 45a90ab6e4..0000000000 --- a/bacula/src/win32/filed/restore.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../filed/restore.c" \ No newline at end of file diff --git a/bacula/src/win32/filed/status.cpp b/bacula/src/win32/filed/status.cpp deleted file mode 100644 index 5638f2fbd4..0000000000 --- a/bacula/src/win32/filed/status.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../filed/status.c" \ No newline at end of file diff --git a/bacula/src/win32/filed/verify.cpp b/bacula/src/win32/filed/verify.cpp deleted file mode 100644 index 7649351c5c..0000000000 --- a/bacula/src/win32/filed/verify.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../filed/verify.c" \ No newline at end of file diff --git a/bacula/src/win32/filed/verify_vol.cpp b/bacula/src/win32/filed/verify_vol.cpp deleted file mode 100644 index 9e97b043bb..0000000000 --- a/bacula/src/win32/filed/verify_vol.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../filed/verify_vol.c" \ No newline at end of file diff --git a/bacula/src/win32/findlib/attribs.cpp b/bacula/src/win32/findlib/attribs.cpp deleted file mode 100644 index 93c0063e20..0000000000 --- a/bacula/src/win32/findlib/attribs.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../findlib/attribs.c" \ No newline at end of file diff --git a/bacula/src/win32/findlib/bfile.cpp b/bacula/src/win32/findlib/bfile.cpp deleted file mode 100644 index b13aa7c127..0000000000 --- a/bacula/src/win32/findlib/bfile.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../findlib/bfile.c" \ No newline at end of file diff --git a/bacula/src/win32/findlib/create_file.cpp b/bacula/src/win32/findlib/create_file.cpp deleted file mode 100644 index 9dc54efd33..0000000000 --- a/bacula/src/win32/findlib/create_file.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../findlib/create_file.c" \ No newline at end of file diff --git a/bacula/src/win32/findlib/enable_priv.cpp b/bacula/src/win32/findlib/enable_priv.cpp deleted file mode 100644 index 8286aad035..0000000000 --- a/bacula/src/win32/findlib/enable_priv.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../findlib/enable_priv.c" \ No newline at end of file diff --git a/bacula/src/win32/findlib/find.cpp b/bacula/src/win32/findlib/find.cpp deleted file mode 100644 index 6e0e2ed229..0000000000 --- a/bacula/src/win32/findlib/find.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../findlib/find.c" \ No newline at end of file diff --git a/bacula/src/win32/findlib/find_one.cpp b/bacula/src/win32/findlib/find_one.cpp deleted file mode 100644 index cea47ee87d..0000000000 --- a/bacula/src/win32/findlib/find_one.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../findlib/find_one.c" \ No newline at end of file diff --git a/bacula/src/win32/findlib/fstype.cpp b/bacula/src/win32/findlib/fstype.cpp deleted file mode 100644 index a1eaf6e999..0000000000 --- a/bacula/src/win32/findlib/fstype.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../findlib/fstype.c" diff --git a/bacula/src/win32/findlib/makepath.cpp b/bacula/src/win32/findlib/makepath.cpp deleted file mode 100644 index 06264c2a2d..0000000000 --- a/bacula/src/win32/findlib/makepath.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../findlib/makepath.c" \ No newline at end of file diff --git a/bacula/src/win32/findlib/match.cpp b/bacula/src/win32/findlib/match.cpp deleted file mode 100644 index 09a9a6c802..0000000000 --- a/bacula/src/win32/findlib/match.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../findlib/match.c" \ No newline at end of file diff --git a/bacula/src/win32/findlib/save-cwd.cpp b/bacula/src/win32/findlib/save-cwd.cpp deleted file mode 100644 index 599020e841..0000000000 --- a/bacula/src/win32/findlib/save-cwd.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../findlib/save-cwd.c" \ No newline at end of file diff --git a/bacula/src/win32/findlib/winapi.cpp b/bacula/src/win32/findlib/winapi.cpp deleted file mode 100644 index 6d56655938..0000000000 --- a/bacula/src/win32/findlib/winapi.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/winapi.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/address_conf.cpp b/bacula/src/win32/lib/address_conf.cpp deleted file mode 100755 index 7cc33e14be..0000000000 --- a/bacula/src/win32/lib/address_conf.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/address_conf.c" diff --git a/bacula/src/win32/lib/alist.cpp b/bacula/src/win32/lib/alist.cpp deleted file mode 100644 index a429b1444a..0000000000 --- a/bacula/src/win32/lib/alist.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#include "../../lib/alist.c" - diff --git a/bacula/src/win32/lib/alloc.cpp b/bacula/src/win32/lib/alloc.cpp deleted file mode 100644 index 81d2d2240d..0000000000 --- a/bacula/src/win32/lib/alloc.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/alloc.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/attr.cpp b/bacula/src/win32/lib/attr.cpp deleted file mode 100644 index 46b9e42954..0000000000 --- a/bacula/src/win32/lib/attr.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/attr.c" diff --git a/bacula/src/win32/lib/base64.cpp b/bacula/src/win32/lib/base64.cpp deleted file mode 100644 index f535bde008..0000000000 --- a/bacula/src/win32/lib/base64.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#include "../../lib/base64.c" - diff --git a/bacula/src/win32/lib/berrno.cpp b/bacula/src/win32/lib/berrno.cpp deleted file mode 100644 index a630abbbde..0000000000 --- a/bacula/src/win32/lib/berrno.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/berrno.c" diff --git a/bacula/src/win32/lib/bget_msg.cpp b/bacula/src/win32/lib/bget_msg.cpp deleted file mode 100644 index 6d478ef278..0000000000 --- a/bacula/src/win32/lib/bget_msg.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/bget_msg.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/bnet.cpp b/bacula/src/win32/lib/bnet.cpp deleted file mode 100644 index 6e380e3615..0000000000 --- a/bacula/src/win32/lib/bnet.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#include "../../lib/bnet.c" - diff --git a/bacula/src/win32/lib/bnet_pkt.cpp b/bacula/src/win32/lib/bnet_pkt.cpp deleted file mode 100644 index e1f2d96929..0000000000 --- a/bacula/src/win32/lib/bnet_pkt.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/bnet_pkt.c" diff --git a/bacula/src/win32/lib/bnet_server.cpp b/bacula/src/win32/lib/bnet_server.cpp deleted file mode 100644 index 6d50c5487d..0000000000 --- a/bacula/src/win32/lib/bnet_server.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/bnet_server.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/bpipe.cpp b/bacula/src/win32/lib/bpipe.cpp deleted file mode 100644 index aa4d824186..0000000000 --- a/bacula/src/win32/lib/bpipe.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/bpipe.c" diff --git a/bacula/src/win32/lib/bregex.cpp b/bacula/src/win32/lib/bregex.cpp deleted file mode 100644 index 5ae3914a69..0000000000 --- a/bacula/src/win32/lib/bregex.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/bregex.c" diff --git a/bacula/src/win32/lib/bshm.cpp b/bacula/src/win32/lib/bshm.cpp deleted file mode 100644 index 1b98d82259..0000000000 --- a/bacula/src/win32/lib/bshm.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/bshm.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/bsys.cpp b/bacula/src/win32/lib/bsys.cpp deleted file mode 100644 index 93548411c9..0000000000 --- a/bacula/src/win32/lib/bsys.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#include "../../lib/bsys.c" - diff --git a/bacula/src/win32/lib/btime.cpp b/bacula/src/win32/lib/btime.cpp deleted file mode 100644 index b1e1425589..0000000000 --- a/bacula/src/win32/lib/btime.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#include "../../lib/btime.c" - diff --git a/bacula/src/win32/lib/btimers.cpp b/bacula/src/win32/lib/btimers.cpp deleted file mode 100644 index 74a55d7c16..0000000000 --- a/bacula/src/win32/lib/btimers.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/btimers.c" diff --git a/bacula/src/win32/lib/cram-md5.cpp b/bacula/src/win32/lib/cram-md5.cpp deleted file mode 100644 index ab0f5b1dfd..0000000000 --- a/bacula/src/win32/lib/cram-md5.cpp +++ /dev/null @@ -1,2 +0,0 @@ -#include "../../lib/cram-md5.c" - diff --git a/bacula/src/win32/lib/crc32.cpp b/bacula/src/win32/lib/crc32.cpp deleted file mode 100644 index 9e5c642169..0000000000 --- a/bacula/src/win32/lib/crc32.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/crc32.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/crypto.cpp b/bacula/src/win32/lib/crypto.cpp deleted file mode 100644 index 961ae75983..0000000000 --- a/bacula/src/win32/lib/crypto.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/crypto.c" diff --git a/bacula/src/win32/lib/daemon.cpp b/bacula/src/win32/lib/daemon.cpp deleted file mode 100644 index f19fcf64a9..0000000000 --- a/bacula/src/win32/lib/daemon.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/daemon.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/dlist.cpp b/bacula/src/win32/lib/dlist.cpp deleted file mode 100644 index 53be2c6a16..0000000000 --- a/bacula/src/win32/lib/dlist.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/dlist.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/edit.cpp b/bacula/src/win32/lib/edit.cpp deleted file mode 100644 index 1a807e1543..0000000000 --- a/bacula/src/win32/lib/edit.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/edit.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/events.cpp b/bacula/src/win32/lib/events.cpp deleted file mode 100644 index 3539ce387b..0000000000 --- a/bacula/src/win32/lib/events.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/events.c" diff --git a/bacula/src/win32/lib/fnmatch.cpp b/bacula/src/win32/lib/fnmatch.cpp deleted file mode 100644 index 90305f8a1e..0000000000 --- a/bacula/src/win32/lib/fnmatch.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/fnmatch.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/hmac.cpp b/bacula/src/win32/lib/hmac.cpp deleted file mode 100644 index 74cad52ac6..0000000000 --- a/bacula/src/win32/lib/hmac.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/hmac.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/htable.cpp b/bacula/src/win32/lib/htable.cpp deleted file mode 100644 index 4d02b30fe1..0000000000 --- a/bacula/src/win32/lib/htable.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/htable.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/idcache.cpp b/bacula/src/win32/lib/idcache.cpp deleted file mode 100644 index 528a296ccd..0000000000 --- a/bacula/src/win32/lib/idcache.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/idcache.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/jcr.cpp b/bacula/src/win32/lib/jcr.cpp deleted file mode 100644 index c1f4170083..0000000000 --- a/bacula/src/win32/lib/jcr.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/jcr.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/lex.cpp b/bacula/src/win32/lib/lex.cpp deleted file mode 100644 index 76dc16cbad..0000000000 --- a/bacula/src/win32/lib/lex.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/lex.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/md5.cpp b/bacula/src/win32/lib/md5.cpp deleted file mode 100644 index 73cd40763e..0000000000 --- a/bacula/src/win32/lib/md5.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/md5.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/mem_pool.cpp b/bacula/src/win32/lib/mem_pool.cpp deleted file mode 100644 index ae316262f8..0000000000 --- a/bacula/src/win32/lib/mem_pool.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/mem_pool.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/message.cpp b/bacula/src/win32/lib/message.cpp deleted file mode 100644 index 5ac7e13cd7..0000000000 --- a/bacula/src/win32/lib/message.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/message.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/parse_conf.cpp b/bacula/src/win32/lib/parse_conf.cpp deleted file mode 100644 index 57cf06cf19..0000000000 --- a/bacula/src/win32/lib/parse_conf.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/parse_conf.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/pythonlib.cpp b/bacula/src/win32/lib/pythonlib.cpp deleted file mode 100644 index 9c99af0d58..0000000000 --- a/bacula/src/win32/lib/pythonlib.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/pythonlib.c" diff --git a/bacula/src/win32/lib/queue.cpp b/bacula/src/win32/lib/queue.cpp deleted file mode 100644 index af68090ff9..0000000000 --- a/bacula/src/win32/lib/queue.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/queue.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/regex.cpp b/bacula/src/win32/lib/regex.cpp deleted file mode 100644 index 1bef229bab..0000000000 --- a/bacula/src/win32/lib/regex.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/regex.c" diff --git a/bacula/src/win32/lib/res.cpp b/bacula/src/win32/lib/res.cpp deleted file mode 100644 index 758d8c684b..0000000000 --- a/bacula/src/win32/lib/res.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/res.c" diff --git a/bacula/src/win32/lib/rwlock.cpp b/bacula/src/win32/lib/rwlock.cpp deleted file mode 100644 index fb317c0498..0000000000 --- a/bacula/src/win32/lib/rwlock.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/rwlock.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/scan.cpp b/bacula/src/win32/lib/scan.cpp deleted file mode 100644 index da13958c9c..0000000000 --- a/bacula/src/win32/lib/scan.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/scan.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/semlock.cpp b/bacula/src/win32/lib/semlock.cpp deleted file mode 100644 index bbc74ed873..0000000000 --- a/bacula/src/win32/lib/semlock.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/semlock.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/serial.cpp b/bacula/src/win32/lib/serial.cpp deleted file mode 100644 index a3aa42e915..0000000000 --- a/bacula/src/win32/lib/serial.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/serial.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/sha1.cpp b/bacula/src/win32/lib/sha1.cpp deleted file mode 100644 index 81a9a54731..0000000000 --- a/bacula/src/win32/lib/sha1.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/sha1.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/signal.cpp b/bacula/src/win32/lib/signal.cpp deleted file mode 100644 index 06f97dd1b7..0000000000 --- a/bacula/src/win32/lib/signal.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/signal.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/smartall.cpp b/bacula/src/win32/lib/smartall.cpp deleted file mode 100644 index 0826dd1ec8..0000000000 --- a/bacula/src/win32/lib/smartall.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/smartall.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/tls.cpp b/bacula/src/win32/lib/tls.cpp deleted file mode 100644 index 96491812a1..0000000000 --- a/bacula/src/win32/lib/tls.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/tls.c" diff --git a/bacula/src/win32/lib/tree.cpp b/bacula/src/win32/lib/tree.cpp deleted file mode 100644 index fec0d8ba23..0000000000 --- a/bacula/src/win32/lib/tree.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/tree.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/util.cpp b/bacula/src/win32/lib/util.cpp deleted file mode 100644 index a6f3138a66..0000000000 --- a/bacula/src/win32/lib/util.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/util.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/var.cpp b/bacula/src/win32/lib/var.cpp deleted file mode 100644 index f66014c2ce..0000000000 --- a/bacula/src/win32/lib/var.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/var.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/watchdog.cpp b/bacula/src/win32/lib/watchdog.cpp deleted file mode 100644 index 2657474ca8..0000000000 --- a/bacula/src/win32/lib/watchdog.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/watchdog.c" \ No newline at end of file diff --git a/bacula/src/win32/lib/winapi.cpp b/bacula/src/win32/lib/winapi.cpp deleted file mode 100644 index cc97e9d858..0000000000 --- a/bacula/src/win32/lib/winapi.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/winapi.c" diff --git a/bacula/src/win32/lib/workq.cpp b/bacula/src/win32/lib/workq.cpp deleted file mode 100644 index d013eed2f2..0000000000 --- a/bacula/src/win32/lib/workq.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../lib/workq.c" \ No newline at end of file diff --git a/bacula/src/win32/libwin32/popup.c b/bacula/src/win32/libwin32/popup.c deleted file mode 100644 index e3e3420b73..0000000000 --- a/bacula/src/win32/libwin32/popup.c +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Dumb Windows program to put up a message box - * containing the command line. Any leading and - * trailing quotes are stripped. - * - * Kern E. Sibbald - * July MM - */ -#include "windows.h" - - -int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, - PSTR szCmdLine, int iCmdShow) -{ - int len = strlen(szCmdLine); - char *msg, *wordPtr; - - // Funny things happen with the command line if the - // execution comes from c:/Program Files/apcupsd/apcupsd.exe - // We get a command line like: Files/apcupsd/apcupsd.exe" options - // I.e. someone stops scanning command line on a space, not - // realizing that the filename is quoted!!!!!!!!!! - // So if first character is not a double quote and - // the last character before first space is a double - // quote, we throw away the junk. - wordPtr = szCmdLine; - while (*wordPtr && *wordPtr != ' ') - wordPtr++; - if (wordPtr > szCmdLine) // backup to char before space - wordPtr--; - // if first character is not a quote and last is, junk it - if (*szCmdLine != '"' && *wordPtr == '"') { - wordPtr++; - while (*wordPtr && *wordPtr == ' ') - wordPtr++; /* strip leading spaces */ - szCmdLine = wordPtr; - len = strlen(szCmdLine); - } - - msg = szCmdLine; - if (*szCmdLine == '"' && len > 0 && szCmdLine[len-1] == '"') { - msg = szCmdLine + 1; - szCmdLine[len-1] = 0; - } - MessageBox(NULL, msg, "Apcupsd message", MB_OK); - return 0; -} diff --git a/bacula/src/win32/params.nsh b/bacula/src/win32/params.nsh deleted file mode 100644 index f2f1a8f411..0000000000 --- a/bacula/src/win32/params.nsh +++ /dev/null @@ -1,104 +0,0 @@ -; -; -- written by Alexis de Valence -- -; GetONEParameter - -; Usage: -; Push 3 ; to get the 3rd parameter of the command line -; Call GetONEParameter -; Pop $R0 ; saves the result in $R0 -; returns an empty string if not found - -Function GetONEParameter - Exch $R0 - Push $R1 - Push $R2 - Push $R3 - Push $R4 - Push $R5 - Push $R6 - -; init variables - IntOp $R5 $R0 + 1 - StrCpy $R2 0 - StrCpy $R4 1 - StrCpy $R6 0 - - loop3: ; looking for a char that's not a space - IntOp $R2 $R2 + 1 - StrCpy $R0 $CMDLINE 1 $R2 - StrCmp $R0 " " loop3 - StrCpy $R3 $R2 ; found the begining of the current parameter - - - loop: ; scanning for the end of the current parameter - - StrCpy $R0 $CMDLINE 1 $R2 - StrCmp $R0 " " loop2 - StrCmp $R0 "" last - IntOp $R2 $R2 + 1 - Goto loop - - last: ; there will be no other parameter to extract - StrCpy $R6 1 - - loop2: ; found the end of the current parameter - - IntCmp $R4 $R5 0 NextParam end - StrCpy $R6 1 ; to quit after this process - - IntOp $R1 $R2 - $R3 ;number of letter of current parameter - StrCpy $R0 $CMDLINE $R1 $R3 ; stores the result in R0 - - NextParam: - IntCmp $R6 1 end ; leave if found or if not enough parameters - - ; process the next parameter - IntOp $R4 $R4 + 1 - - Goto loop3 - - end: - - Pop $R6 ; restore R0 - R6 to their initial value - Pop $R5 - Pop $R4 - Pop $R3 - Pop $R2 - Pop $R1 - - Exch $R0 ;Puts the result on the stack - - FunctionEnd - -; -- written by Michel Meyers -- -; ParameterGiven - checks first 9 parameters on the command line -; Usage: -; Push "/parameter" ; to check command line for /parameter -; Call ParameterGiven -; Pop $R0 ; saves the result in $R0 (result = true or false) - - Function ParameterGiven - Exch $R0 - Push $R1 - Push $R2 - Push $R3 - - StrCpy $R1 0 - StrCpy $R3 0 - loopme: - StrCmp $R1 9 AllChecked - IntOp $R1 $R1 + 1 - Push $R1 - Call GetONEParameter - Pop $R2 ; saves the result in $R2 - StrCmp $R0 $R2 Found - Goto loopme - - Found: - StrCpy $R3 1 - Goto loopme - - AllChecked: - Exch $R3 - -FunctionEnd diff --git a/bacula/src/win32/util.nsh b/bacula/src/win32/util.nsh deleted file mode 100644 index 1004c1595e..0000000000 --- a/bacula/src/win32/util.nsh +++ /dev/null @@ -1,95 +0,0 @@ -; GetWindowsVersion - ; - ; Based on Yazno's function, http://yazno.tripod.com/powerpimpit/ - ; Returns on top of stack - ; - ; Windows Version (95, 98, ME, NT x.x, 2000, XP, .NET Server) - ; or - ; '' (Unknown Windows Version) - ; - ; Usage: - ; Call GetWindowsVersion - ; Pop $R0 - ; ; at this point $R0 is "NT 4.0" or whatnot - - - Function IsNT - Push $R0 - Push $R1 - ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion - StrCmp $R0 "" 0 lbl_winnt - - StrCpy $R0 'false' - Goto lbl_done - - lbl_winnt: - Strcpy $R0 'true' - - lbl_done: - Pop $R1 - Exch $R0 - FunctionEnd - -; Function GetWindowsVersion -; Push $R0 -; Push $R1 -; ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion -; StrCmp $R0 "" 0 lbl_winnt -; ; we are not NT. -; ReadRegStr $R0 HKLM SOFTWARE\Microsoft\Windows\CurrentVersion VersionNumber - -; StrCpy $R1 $R0 1 -; StrCmp $R1 '4' 0 lbl_error - -; StrCpy $R1 $R0 3 - -; StrCmp $R1 '4.0' lbl_win32_95 -; StrCmp $R1 '4.9' lbl_win32_ME lbl_win32_98 - -; lbl_win32_95: -; StrCpy $R0 '95' -; Goto lbl_done - -; lbl_win32_98: -; StrCpy $R0 '98' -; Goto lbl_done - -; lbl_win32_ME: -; StrCpy $R0 'ME' -; Goto lbl_done - -; lbl_winnt: - -; StrCpy $R1 $R0 1 - -; StrCmp $R1 '3' lbl_winnt_x -; StrCmp $R1 '4' lbl_winnt_x - -; StrCpy $R1 $R0 3 - -; StrCmp $R1 '5.0' lbl_winnt_2000 -; StrCmp $R1 '5.1' lbl_winnt_XP -; StrCmp $R1 '5.2' lbl_winnt_dotNET lbl_error - -; lbl_winnt_x: -; StrCpy $R0 "NT $R0" 6 -; Goto lbl_done - -; lbl_winnt_2000: -; Strcpy $R0 '2000' -; Goto lbl_done - -; lbl_winnt_XP: -; Strcpy $R0 'XP' -; Goto lbl_done - -; lbl_winnt_dotNET: -; Strcpy $R0 '.NET Server' -; Goto lbl_done - -; lbl_error: -; Strcpy $R0 '' -; lbl_done: -; Pop $R1 -; Exch $R0 -; FunctionEnd diff --git a/bacula/src/win32/winbacula.nsi.in b/bacula/src/win32/winbacula.nsi.in index af9ba87907..61ca944592 100755 --- a/bacula/src/win32/winbacula.nsi.in +++ b/bacula/src/win32/winbacula.nsi.in @@ -20,6 +20,13 @@ ; D. Scott Barninger Apr 17 2005 ; 1.36.3 release docs update ; add pdf manual and menu shortcut +; +; Robert Nelson May 15 2006 +; Pretty much rewritten +; Use LogicLib.nsh +; Added Bacula-SD and Bacula-DIR +; Replaced ParameterGiven with standard GetOptions + ; ; Command line options: ; @@ -30,28 +37,44 @@ !define PRODUCT "Bacula" !define VERSION "@VERSION@" -; +!define PTHREADS_DIR "..\..\..\depkgs-win32\pthreads\release" +!define MINGW_DIR "C:\MinGW\bin" + +!define BUILD_TOOLS "MinGW" + +;!define BUILD_TOOLS "VC8" +;!define VC_REDIST_DIR "C:\Program Files\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT" + +; ; Include the Modern UI ; !include "MUI.nsh" -!include "params.nsh" -!include "util.nsh" +!include "LogicLib.nsh" +!include "FileFunc.nsh" ; ; Basics ; - Name "Bacula Client" + Name "Bacula" OutFile "winbacula-${VERSION}.exe" SetCompressor lzma - InstallDir "c:\bacula" + InstallDir "$PROGRAMFILES\Bacula" + InstallDirRegKey HKLM Software\Bacula InstallLocation + + InstType "Client" + InstType "Server" + InstType "Full" ; ; Pull in pages ; + !insertmacro MUI_PAGE_WELCOME ; !insertmacro MUI_PAGE_LICENSE "..\..\LICENSE" !insertmacro MUI_PAGE_COMPONENTS !insertmacro MUI_PAGE_DIRECTORY + Page custom EnterClientConfig LeaveClientConfig + Page custom EnterOptions !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_PAGE_FINISH @@ -60,225 +83,395 @@ !insertmacro MUI_UNPAGE_INSTFILES !insertmacro MUI_UNPAGE_FINISH - !define MUI_ABORTWARNING !insertmacro MUI_LANGUAGE "English" + !insertmacro GetParameters + !insertmacro GetOptions +DirText "Setup will install Bacula ${VERSION} to the directory specified below. To install in a different folder, click Browse and select another folder.$\n$\nNote to CYGWIN users: please choose your CYGWIN root directory." -DirText "Setup will install the Bacula Client ${VERSION} to the directory specified below. To install in a different folder, click Browse and select another folder.$\n$\nNote to CYGWIN users: please choose your CYGWIN root directory." +; +; Reserve Files +; + ReserveFile "ClientConfig.ini" + !insertmacro MUI_RESERVEFILE_INSTALLOPTIONS +; +; Global Variables +; +Var OptCygwin +Var OptService +Var OptStart +Var OptSilent + +Var DependenciesDone + +Var OsIsNT + +Var ConfigClientName +Var ConfigClientPort +Var ConfigMaxJobs +Var ConfigDirectorName +Var ConfigDirectorPW +Var ConfigMonitorName +Var ConfigMonitorPW + +Var OptionsClientService +Var OptionsClientStart +Var OptionsStorageService +Var OptionsStorageStart +Var OptionsDirectorService +Var OptionsDirectorStart +Var OptionsDirectorDB + +Var HDLG +Var HCTL + +Function .onInit + Push $R0 + Push $R1 + + ; Process Command Line Options + StrCpy $OptCygwin 0 + StrCpy $OptService 0 + StrCpy $OptStart 0 + StrCpy $OptSilent 0 + StrCpy $DependenciesDone 0 + StrCpy $OsIsNT 0 + + ${GetParameters} $R0 + + ClearErrors + ${GetOptions} $R0 "/cygwin" $R1 + IfErrors +2 + StrCpy $OptCygwin 1 + + ClearErrors + ${GetOptions} $R0 "/service" $R1 + IfErrors +2 + StrCpy $OptService 1 + + ClearErrors + ${GetOptions} $R0 "/start" $R1 + IfErrors +2 + StrCpy $OptStart 1 + + IfSilent 0 +2 + StrCpy $OptSilent 1 + + ${If} $OptCygwin = 1 + StrCpy $INSTDIR "C:\cygwin\bacula" + ${EndIf} + + ReadRegStr $R0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion + ${If} $R0 != "" + StrCpy $OsIsNT 1 + ${EndIf} + + !insertmacro MUI_INSTALLOPTIONS_EXTRACT "ClientConfig.ini" + + Pop $R1 + Pop $R0 +FunctionEnd +Function CopyDependencies + SetOutPath "$INSTDIR\bin" -Section "Bacula File Service" SecService - ; - ; /cygwin on command line forces install dir to c:\cygwin\bacula (useful for silent install) - ; - Push "/cygwin" - Call ParameterGiven - Pop $6 - StrCmp $6 0 NoCygwin - StrCpy $INSTDIR "c:\cygwin\bacula" - NoCygwin: -; IfFileExists "c:\cygwin\bin\cygwin1.dll" Cygwin ReallyNoCygwin -;Cygwin: -; StrCpy $INSTDIR "c:\cygwin\bacula" -;ReallyNoCygwin: + ${If} $DependenciesDone = 0 +!if BUILD_TOOLS == "VC8" + File "${PTHREADS_DIR}\pthreadVCE.dll" + File "${VC_REDIST_DIR}\msvcm80.dll" + File "${VC_REDIST_DIR}\msvcp80.dll" + File "${VC_REDIST_DIR}\msvcr80.dll" + File "${VC_REDIST_DIR}\Microsoft.VC80.CRT.manifest" +!endif +!if BUILD_TOOLS == "MinGW" + File "${PTHREADS_DIR}\pthreadGCE.dll" + File "${MINGW_DIR}\mingwm10.dll" +!endif + StrCpy $DependenciesDone 1 + ${EndIf} +FunctionEnd + +Section "-Initialize" + ; Create Start Menu Directory + + WriteRegStr HKLM Software\Bacula InstallLocation "$INSTDIR" + + SetShellVarContext all + CreateDirectory "$SMPROGRAMS\Bacula" - ; Check for existing installation - StrCpy $7 0 - IfFileExists "$INSTDIR\bin\bacula-fd.conf" Upgrade NoUpgrade - Upgrade: - StrCpy $7 1 - ; Shutdown any bacula that could be running - ExecWait '"$INSTDIR\bin\bacula-fd.exe" /kill' - ; give it some time to shutdown - Sleep 3000 - NoUpgrade: - - ; Set output path to the installation directory. - SetOutPath "$INSTDIR\bin" CreateDirectory "$INSTDIR" CreateDirectory "$INSTDIR\bin" - CreateDirectory "$INSTDIR\working" - CreateDirectory "c:\tmp" - ; Put files there - File baculafd\Release\bacula-fd.exe - File c:\windows\system32\msvcr71.dll - File ..\..\..\depkgs-win32\pthreads\pthreadVCE.dll + CreateDirectory "$APPDATA\Bacula" + File ..\..\LICENSE Delete /REBOOTOK "$INSTDIR\bin\License.txt" - IfFileExists "$INSTDIR\bin\bacula-fd.conf" newconf - File baculafd\bacula-fd.conf - goto do_service - newconf: - File /oname=bacula-fd.conf.new baculafd\bacula-fd.conf - - ; If /service was given jump to the service install part - do_service: - Push "/service" - Call ParameterGiven - Pop $5 - StrCmp $5 1 Service - - ; If silent install and not /service don't ask questions and goto NoService... - IfSilent NoService - - ; If already installed as service skip it too - ReadRegDWORD $9 HKLM "Software\Bacula" "InstalledService" - StrCmp $9 "1" NoService - - ; Install as service? - MessageBox MB_YESNO|MB_ICONQUESTION "Do you want to install the Bacula Client as a service (automatically starts with your PC)?" IDNO NoService - Service: - ExecWait '"$INSTDIR\bin\bacula-fd.exe" /install' - StrCpy $9 "1" - WriteRegDWORD HKLM "Software\Bacula" "InstalledService" "1" - NoService: +SectionEnd - ; Create Start Menu Directory - SetShellVarContext all - CreateDirectory "$SMPROGRAMS\Bacula" - ; If not installed as service create Start Menu link - StrCmp $9 "1" Uninstall - CreateShortCut "$SMPROGRAMS\Bacula\Start Bacula Client.lnk" "$INSTDIR\bin\bacula-fd.exe" "-c $INSTDIR\bin\bacula-fd.conf" "$INSTDIR\bin\bacula-fd.exe" 0 +SectionGroup "Client" - Uninstall: - ; Write the uninstall keys for Windows & create Start Menu entry - WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Bacula" "DisplayName" "Bacula Client" - WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Bacula" "UninstallString" '"$INSTDIR\uninstall.exe"' - WriteUninstaller "$INSTDIR\Uninstall.exe" - CreateShortCut "$SMPROGRAMS\Bacula\Uninstall Bacula.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0 +Section "File Service" SecFileDaemon + SectionIn 1 2 3 - ; Create bacula-fd.conf and have the user edit it (skipped if silent) - IfSilent NoReminder - StrCmp $7 "1" NoReminder ; skip if it is an upgrade - MessageBox MB_OK "Please edit the client configuration file $INSTDIR\bin\bacula-fd.conf to fit your installation. When you click the OK button Wordpad will open to allow you to do this. Be sure to save your changes before closing Wordpad." - Exec 'write "$INSTDIR\bin\bacula-fd.conf"' ; spawn wordpad with the file to be edited - NoReminder: - - ; Start the client? (default skipped if silent, use /start to force starting) - Push "/start" - Call ParameterGiven - Pop $8 - StrCmp $8 "1" Start - IfSilent NoStart - Call IsNt - Pop $R0 - StrCmp $R0 "false" do_win98 - MessageBox MB_YESNO|MB_ICONQUESTION "Would you like to start the Bacula Client now?" IDNO SetPerms - Exec 'net start bacula' - Sleep 3000 - SetPerms: - ; set default permissions on config file so it's not world readable - Exec 'cmd /C echo Y|cacls "$INSTDIR\bin\bacula-fd.conf" /G SYSTEM:F Administrators:F' - goto NoStart - do_win98: - File Start.bat - File Stop.bat - MessageBox MB_YESNO|MB_ICONQUESTION "Would you like to start the Bacula Client now?" IDNO NoStart - Start: - Exec '"$INSTDIR\bin\bacula-fd.exe" -c "$INSTDIR\bin\bacula-fd.conf"' - Sleep 3000 - NoStart: + SetOutPath "$INSTDIR\bin" + File "Release\bacula-fd.exe" + + StrCpy $R0 0 + StrCpy $R1 "$APPDATA\Bacula\bacula-fd.conf" + IfFileExists $R1 0 +3 + StrCpy $R0 1 + StrCpy $R1 "$R1.new" + + File /oname=$R1 ..\filed\bacula-fd.conf.in + + ${If} $OptSilent <> 1 + ${AndIf} $R0 <> 1 + MessageBox MB_OK \ + "Please edit the configuration file $R1 to fit your installation. When you click the OK button Wordpad will open to allow you to do this. Be sure to save your changes before closing Wordpad." + Exec 'write "$R1"' ; spawn wordpad with the file to be edited + ${EndIf} + ${If} $OsIsNT = 1 + ExecWait 'cmd.exe /C echo Y|cacls "$R1" /G SYSTEM:F Administrators:F' + ${EndIf} + + StrCpy $0 bacula-fd + StrCpy $1 "File Service" + StrCpy $2 $OptionsClientService + StrCpy $3 $OptionsClientStart + + Call InstallDaemon + + CreateShortCut "$SMPROGRAMS\Bacula\Edit Client Configuration.lnk" "write.exe" '"$APPDATA\Bacula\bacula-fd.conf"' SectionEnd -Section "Install Console" SecConsole +SectionGroupEnd + +SectionGroup "Server" + +Section "Storage Service" SecStorageDaemon + SectionIn 2 3 + SetOutPath "$INSTDIR\bin" - File console\Release\bconsole.exe - IfFileExists "$INSTDIR\bin\pthreadVCE.dll" msvcr711 - File ..\..\..\depkgs-win32\pthreads\pthreadVCE.dll - msvcr711: - IfFileExists "$INSTDIR\bin\msvcr71.dll" testconf1 - File c:\windows\system32\msvcr71.dll - testconf1: - IfFileExists "$INSTDIR\bin\bconsole.conf" newconf - File console\bconsole.conf - goto do_next - newconf: - File /oname=bconsole.conf.new console\bconsole.conf - do_next: - - ; Create bconsole.conf and have the user edit it (skipped if silent) - IfSilent NoReminder - StrCmp $7 "1" NoReminder ; skip if it is an upgrade - MessageBox MB_OK "Please edit the command line console configuration file $INSTDIR\bin\bconsole.conf to fit your installation. When you click the OK button Wordpad will open to allow you to do this. Be sure to save your changes before closing Wordpad." - Exec 'write "$INSTDIR\bin\bconsole.conf"' ; spawn wordpad with the file to be edited - NoReminder: + File "Release\bacula-sd.exe" + File "Release\bcopy.exe" + File "Release\bextract.exe" + File "Release\bls.exe" + File "Release\bscan.exe" + File "Release\btape.exe" + + StrCpy $R0 0 + StrCpy $R1 "$APPDATA\Bacula\bacula-sd.conf" + IfFileExists $R1 0 +3 + StrCpy $R0 1 + StrCpy $R1 "$R1.new" + + File /oname=$R1 ..\stored\bacula-sd.conf.in + + ${If} $OptSilent <> 1 + ${AndIf} $R0 <> 1 + MessageBox MB_OK \ + "Please edit the configuration file $R1 to fit your installation. When you click the OK button Wordpad will open to allow you to do this. Be sure to save your changes before closing Wordpad." + Exec 'write "$R1"' ; spawn wordpad with the file to be edited + ${EndIf} + ${If} $OsIsNT = 1 + ExecWait 'cmd.exe /C echo Y|cacls "$R1" /G SYSTEM:F Administrators:F' + ${EndIf} + + StrCpy $0 bacula-sd + StrCpy $1 "Storage Service" + StrCpy $2 $OptionsStorageService + StrCpy $3 $OptionsStorageStart + Call InstallDaemon + + CreateShortCut "$SMPROGRAMS\Bacula\Edit Storage Configuration.lnk" "write.exe" '"$APPDATA\Bacula\bacula-sd.conf"' SectionEnd -Section "Install wx-Console" SecWxConsole +Section "Director Service" SecDirectorDaemon + SectionIn 2 3 + SetOutPath "$INSTDIR\bin" - File wx-console\Release\wx-console.exe - IfFileExists "$INSTDIR\bin\pthreadVCE.dll" msvcr712 - File ..\..\..\depkgs-win32\pthreads\pthreadVCE.dll - msvcr712: - IfFileExists "$INSTDIR\bin\msvcr71.dll" testconf2 - File c:\windows\system32\msvcr71.dll - testconf2: - IfFileExists "$INSTDIR\bin\wx-console.conf" newconf - File wx-console\wx-console.conf - goto do_next - newconf: - File /oname=wx-console.conf.new wx-console\wx-console.conf - do_next: + File "Release\bacula-dir.exe" + File "Release\dbcheck.exe" + + StrCpy $R0 0 + StrCpy $R1 "$APPDATA\Bacula\bacula-dir.conf" + IfFileExists $R1 0 +3 + StrCpy $R0 1 + StrCpy $R1 "$R1.new" + + File /oname=$R1 ..\dird\bacula-dir.conf.in + + ${If} $OptSilent <> 1 + ${AndIf} $R0 <> 1 + MessageBox MB_OK \ + "Please edit the configuration file $R1 to fit your installation. When you click the OK button Wordpad will open to allow you to do this. Be sure to save your changes before closing Wordpad." + Exec 'write "$R1"' ; spawn wordpad with the file to be edited + ${EndIf} + ${If} $OsIsNT = 1 + ExecWait 'cmd.exe /C echo Y|cacls "$R1" /G SYSTEM:F Administrators:F' + ${EndIf} + + StrCpy $0 bacula-dir + StrCpy $1 "Director Service" + StrCpy $2 $OptionsDirectorService + StrCpy $3 $OptionsDirectorStart + Call InstallDaemon + + CreateShortCut "$SMPROGRAMS\Bacula\Edit Director Configuration.lnk" "write.exe" '"$APPDATA\Bacula\bacula-dir.conf"' +SectionEnd + +SectionGroupEnd + +SectionGroup "Consoles" + +Section "Command Console" SecConsole + SectionIn 3 + + File Release\bconsole.exe + Call CopyDependencies + + StrCpy $R0 0 + StrCpy $R1 "$APPDATA\Bacula\bconsole.conf" + IfFileExists $R1 0 +3 + StrCpy $R0 1 + StrCpy $R1 "$R1.new" + + File /oname=$R1 ..\console\bconsole.conf.in + + ${If} $OptSilent <> 1 + ${AndIf} $R0 <> 1 + MessageBox MB_OK \ + "Please edit the configuration file $R1 to fit your installation. When you click the OK button Wordpad will open to allow you to do this. Be sure to save your changes before closing Wordpad." + Exec 'write "$R1"' ; spawn wordpad with the file to be edited + ${EndIf} + ${If} $OsIsNT = 1 + ExecWait 'cmd.exe /C echo Y|cacls "$R1" /G SYSTEM:F Administrators:F' + ${EndIf} + + CreateShortCut "$SMPROGRAMS\Bacula\Edit Command Console Configuration.lnk" "write.exe" '"$APPDATA\Bacula\bconsole.conf"' + +SectionEnd + +Section "Graphical Console" SecWxConsole + SectionIn 1 2 3 + + File Release\wx-console.exe + Call CopyDependencies + + StrCpy $R0 0 + StrCpy $R1 "$APPDATA\Bacula\wx-console.conf" + IfFileExists $R1 0 +3 + StrCpy $R0 1 + StrCpy $R1 "$R1.new" + + File /oname=$R1 ..\wx-console\wx-console.conf.in + + ${If} $OptSilent <> 1 + ${AndIf} $R0 <> 1 + MessageBox MB_OK \ + "Please edit the configuration file $R1 to fit your installation. When you click the OK button Wordpad will open to allow you to do this. Be sure to save your changes before closing Wordpad." + Exec 'write "$R1"' ; spawn wordpad with the file to be edited + ${EndIf} + ${If} $OsIsNT = 1 + ExecWait 'cmd.exe /C echo Y|cacls "$R1" /G SYSTEM:F Administrators:F' + ${EndIf} + ; Create Start Menu entry - SetShellVarContext all - CreateShortCut "$SMPROGRAMS\Bacula\WX-Console.lnk" "$INSTDIR\bin\wx-console.exe" "-c $INSTDIR\bin\wx-console.conf" "$INSTDIR\bin\wx-console.exe" 0 - - ; Create wx-console.conf and have the user edit it (skipped if silent) - IfSilent NoReminder - StrCmp $7 "1" NoReminder ; skip if it is an upgrade - MessageBox MB_OK "Please edit the WX-console configuration file $INSTDIR\bin\wx-console.conf to fit your installation. When you click the OK button Wordpad will open to allow you to do this. Be sure to save your changes before closing Wordpad." - Exec 'write "$INSTDIR\bin\wx-console.conf"' ; spawn wordpad with the file to be edited - NoReminder: + CreateShortCut "$SMPROGRAMS\Bacula\Console.lnk" "$INSTDIR\bin\wx-console.exe" '-c "$APPDATA\Bacula\wx-console.conf"' "$INSTDIR\bin\wx-console.exe" 0 + CreateShortCut "$SMPROGRAMS\Bacula\Edit Graphical Console Configuration.lnk" "write.exe" '"$APPDATA\Bacula\wx-console.conf"' SectionEnd +SectionGroupEnd + +SectionGroup "Documentation" + +Section "Documentation (Acrobat Format)" SecDocPdf + SectionIn 1 2 3 + + SetOutPath "$INSTDIR\doc" + CreateDirectory "$INSTDIR\doc" + File ..\..\..\docs\manual\bacula.pdf + CreateShortCut "$SMPROGRAMS\Bacula\Manual.lnk" '"$INSTDIR\doc\bacula.pdf"' +SectionEnd + +Section "Documentation (HTML Format)" SecDocHtml + SectionIn 3 -Section "Install Documentation" SecDoc SetOutPath "$INSTDIR\doc" CreateDirectory "$INSTDIR\doc" File ..\..\..\docs\manual\bacula\*.html File ..\..\..\docs\manual\bacula\*.png File ..\..\..\docs\manual\bacula\*.css - File ..\..\..\docs\manual\bacula.pdf - ; Create Start Menu entry - SetShellVarContext all - CreateShortCut "$SMPROGRAMS\Bacula\Manual.lnk" "$INSTDIR\doc\bacula.pdf" + CreateShortCut "$SMPROGRAMS\Bacula\Manual (HTML).lnk" '"$INSTDIR\doc\bacula.html"' +SectionEnd + +SectionGroupEnd + +Section "-Write Installer" + ; Write the uninstall keys for Windows & create Start Menu entry + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Bacula" "DisplayName" "Bacula" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Bacula" "UninstallString" '"$INSTDIR\uninstall.exe"' + WriteUninstaller "$INSTDIR\Uninstall.exe" + CreateShortCut "$SMPROGRAMS\Bacula\Uninstall Bacula.lnk" "$INSTDIR\Uninstall.exe" "" "$INSTDIR\Uninstall.exe" 0 SectionEnd ; ; Extra Page descriptions ; - LangString DESC_SecService ${LANG_ENGLISH} "Install Bacula client on this system." - LangString DESC_SecConsole ${LANG_ENGLISH} "Install Console program on this system." + LangString DESC_SecFileDaemon ${LANG_ENGLISH} "Install Bacula File Daemon on this system." + LangString DESC_SecStorageDaemon ${LANG_ENGLISH} "Install Bacula Storage Daemon on this system." + LangString DESC_SecDirectorDaemon ${LANG_ENGLISH} "Install Bacula Director Daemon on this system." + LangString DESC_SecConsole ${LANG_ENGLISH} "Install command console program on this system." LangString DESC_SecWxConsole ${LANG_ENGLISH} "Install graphical console program on this system." - LangString DESC_SecDoc ${LANG_ENGLISH} "Install Documentation on this system." + LangString DESC_SecDocPdf ${LANG_ENGLISH} "Install documentation in Acrobat format on this system." + LangString DESC_SecDocHtml ${LANG_ENGLISH} "Install documentation in HTML format on this system." + + LangString TITLE_ClientConfig ${LANG_ENGLISH} "Configure Client" + LangString SUBTITLE_ClientConfig ${LANG_ENGLISH} "Create initial configuration for Client." + + LangString TITLE_Options ${LANG_ENGLISH} "Options" + LangString SUBTITLE_Options ${LANG_ENGLISH} "Set installation options." !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN - !insertmacro MUI_DESCRIPTION_TEXT ${SecService} $(DESC_SecService) + !insertmacro MUI_DESCRIPTION_TEXT ${SecFileDaemon} $(DESC_SecFileDaemon) + !insertmacro MUI_DESCRIPTION_TEXT ${SecStorageDaemon} $(DESC_SecStorageDaemon) + !insertmacro MUI_DESCRIPTION_TEXT ${SecDirectorDaemon} $(DESC_SecDirectorDaemon) !insertmacro MUI_DESCRIPTION_TEXT ${SecConsole} $(DESC_SecConsole) !insertmacro MUI_DESCRIPTION_TEXT ${SecWxConsole} $(DESC_SecWxConsole) - !insertmacro MUI_DESCRIPTION_TEXT ${SecDoc} $(DESC_SecDoc) + !insertmacro MUI_DESCRIPTION_TEXT ${SecDocPdf} $(DESC_SecDocPdf) + !insertmacro MUI_DESCRIPTION_TEXT ${SecDocHtml} $(DESC_SecDocHtml) !insertmacro MUI_FUNCTION_DESCRIPTION_END - - ; Uninstall section -UninstallText "This will uninstall the Bacula Client. Hit next to continue." +UninstallText "This will uninstall Bacula. Hit next to continue." Section "Uninstall" - ; Shutdown any baculum that could be running ExecWait '"$INSTDIR\bin\bacula-fd.exe" /kill' - - ReadRegDWORD $9 HKLM "Software\Bacula" "InstalledService" - StrCmp $9 "" NoService - ; Remove bacula service - ExecWait '"$INSTDIR\bin\bacula-fd.exe" /remove' - NoService: + ExecWait '"$INSTDIR\bin\bacula-sd.exe" /kill' + ExecWait '"$INSTDIR\bin\bacula-dir.exe" /kill' + + ReadRegDWORD $R0 HKLM "Software\Bacula" "Installed_Bacula-fd" + ${If} $R0 = 1 + ; Remove bacula service + ExecWait '"$INSTDIR\bin\bacula-fd.exe" /remove' + ${EndIf} + + ReadRegDWORD $R0 HKLM "Software\Bacula" "Installed_Bacula-sd" + ${If} $R0 = 1 + ; Remove bacula service + ExecWait '"$INSTDIR\bin\bacula-sd.exe" /remove' + ${EndIf} + + ReadRegDWORD $R0 HKLM "Software\Bacula" "Installed_Bacula-dir" + ${If} $R0 = 1 + ; Remove bacula service + ExecWait '"$INSTDIR\bin\bacula-dir.exe" /remove' + ${EndIf} ; remove registry keys DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Bacula" @@ -287,38 +480,311 @@ Section "Uninstall" ; remove start menu items SetShellVarContext all Delete /REBOOTOK "$SMPROGRAMS\Bacula\*" + RMDir "$SMPROGRAMS\Bacula" ; remove files and uninstaller (preserving config for now) - CopyFiles /SILENT "$INSTDIR\bin\bacula-fd.conf" "$INSTDIR\bacula-fd.conf" - IfFileExists "$INSTDIR\bin\bconsole.conf" save_bconsole nosave_bconsole - save_bconsole: - CopyFiles /SILENT "$INSTDIR\bin\bconsole.conf" "$INSTDIR\bconsole.conf" - nosave_bconsole: - IfFileExists "$INSTDIR\bin\wx-console.conf" save_wxconsole nosave_wxconsole - save_wxconsole: - CopyFiles /SILENT "$INSTDIR\bin\wx-console.conf" "$INSTDIR\wx-console.conf" - nosave_wxconsole: Delete /REBOOTOK "$INSTDIR\bin\*.*" Delete /REBOOTOK "$INSTDIR\doc\*.*" - CopyFiles /SILENT "$INSTDIR\bacula-fd.conf" "$INSTDIR\bin\bacula-fd.conf" - CopyFiles /SILENT "$INSTDIR\bconsole.conf" "$INSTDIR\bin\bconsole.conf" - CopyFiles /SILENT "$INSTDIR\wx-console.conf" "$INSTDIR\bin\wx-console.conf" - Delete /REBOOTOK "$INSTDIR\*.conf" Delete /REBOOTOK "$INSTDIR\Uninstall.exe" ; Check for existing installation - MessageBox MB_YESNO|MB_ICONQUESTION "Would you like to delete the current configuration files and the working state file?" IDNO LeaveConfig - Delete /REBOOTOK "$INSTDIR\bin\*.conf" - Delete /REBOOTOK "$INSTDIR\working\*" + MessageBox MB_YESNO|MB_ICONQUESTION \ + "Would you like to delete the current configuration files and the working state file?" IDNO +3 + Delete /REBOOTOK "$APPDATA\Bacula\*" + RMDir "$APPDATA\Bacula" + ; remove directories used RMDir "$INSTDIR\bin" RMDir "$INSTDIR\doc" - RMDir "$INSTDIR\working" RMDir "$INSTDIR" - RMDir "C:\tmp" - LeaveConfig: - RMDir "$SMPROGRAMS\Bacula" - SectionEnd -; eof +Function EnterClientConfig + SectionGetFlags ${SecFileDaemon} $R0 + IntOp $R0 $R0 & 1 + + SectionGetFlags ${SecStorageDaemon} $R1 + IntOp $R1 $R1 & 1 + + SectionGetFlags ${SecDirectorDaemon} $R2 + IntOp $R2 $R2 & 1 + + ${If} $R0 = 0 + ${OrIf} $R1 = 1 + ${OrIf} $R2 = 1 + Abort + ${EndIf} + + !insertmacro MUI_HEADER_TEXT "$(TITLE_ClientConfig)" "$(SUBTITLE_ClientConfig)" + !insertmacro MUI_INSTALLOPTIONS_INITDIALOG "ClientConfig.ini" + Pop $HDLG ;HWND of dialog + + ; Initialize Controls + ; Client Name + !insertmacro MUI_INSTALLOPTIONS_READ $HCTL "ClientConfig.ini" "Field 3" "HWND" + SendMessage $HCTL ${EM_LIMITTEXT} 30 0 + + ; Client Port Number + !insertmacro MUI_INSTALLOPTIONS_READ $HCTL "ClientConfig.ini" "Field 6" "HWND" + SendMessage $HCTL ${EM_LIMITTEXT} 5 0 + SendMessage $HCTL ${WM_SETTEXT} 0 "STR:9102" + + ; Max Jobs + !insertmacro MUI_INSTALLOPTIONS_READ $HCTL "ClientConfig.ini" "Field 8" "HWND" + SendMessage $HCTL ${EM_LIMITTEXT} 2 0 + SendMessage $HCTL ${WM_SETTEXT} 0 "STR:20" + + ; Director Name + !insertmacro MUI_INSTALLOPTIONS_READ $HCTL "ClientConfig.ini" "Field 11" "HWND" + SendMessage $HCTL ${EM_LIMITTEXT} 30 0 + + ; Director Password + !insertmacro MUI_INSTALLOPTIONS_READ $HCTL "ClientConfig.ini" "Field 14" "HWND" + SendMessage $HCTL ${EM_LIMITTEXT} 60 0 + + ; Monitor Name + !insertmacro MUI_INSTALLOPTIONS_READ $HCTL "ClientConfig.ini" "Field 17" "HWND" + SendMessage $HCTL ${EM_LIMITTEXT} 30 0 + + ; Monitor Password + !insertmacro MUI_INSTALLOPTIONS_READ $HCTL "ClientConfig.ini" "Field 20" "HWND" + SendMessage $HCTL ${EM_LIMITTEXT} 60 0 + + !insertmacro MUI_INSTALLOPTIONS_SHOW + + ; + ; Process results + ; + ; Client Name + !insertmacro MUI_INSTALLOPTIONS_READ $ConfigClientName "ClientConfig.ini" "Field 3" "State" + ; Client Port Number + !insertmacro MUI_INSTALLOPTIONS_READ $ConfigClientPort "ClientConfig.ini" "Field 6" "State" + ; Max Jobs + !insertmacro MUI_INSTALLOPTIONS_READ $ConfigMaxJobs "ClientConfig.ini" "Field 8" "State" + + ; Director Name + !insertmacro MUI_INSTALLOPTIONS_READ $ConfigDirectorName "ClientConfig.ini" "Field 11" "State" + ; Director Password + !insertmacro MUI_INSTALLOPTIONS_READ $ConfigDirectorPW "ClientConfig.ini" "Field 14" "State" + + ; Monitor Name + !insertmacro MUI_INSTALLOPTIONS_READ $ConfigMonitorName "ClientConfig.ini" "Field 17" "State" + ; Monitor Password + !insertmacro MUI_INSTALLOPTIONS_READ $ConfigMonitorPW "ClientConfig.ini" "Field 20" "State" +FunctionEnd + +Function LeaveClientConfig + ; Client Port Number + !insertmacro MUI_INSTALLOPTIONS_READ $R0 "ClientConfig.ini" "Field 6" "State" + ${If} $R0 < 1024 + ${OrIf} $R0 > 65535 + MessageBox MB_OK "Port must be between 1024 and 65535 inclusive." + Abort + ${EndIf} + + ; Max Jobs + !insertmacro MUI_INSTALLOPTIONS_READ $R0 "ClientConfig.ini" "Field 8" "State" + ${If} $R0 < 1 + ${OrIf} $R0 > 99 + MessageBox MB_OK "Max Jobs must be between 1 and 99 inclusive." + Abort + ${EndIf} +FunctionEnd + +Function EnterOptions + SectionGetFlags ${SecFileDaemon} $R0 + IntOp $R0 $R0 & 1 + + SectionGetFlags ${SecStorageDaemon} $R1 + IntOp $R1 $R1 & 1 + + SectionGetFlags ${SecDirectorDaemon} $R2 + IntOp $R2 $R2 & 1 + + ${If} $R0 = 0 + ${AndIf} $R1 = 0 + ${AndIf} $R2 = 0 + Abort + ${EndIf} + + FileOpen $R3 "$PLUGINSDIR\options.ini" w + + StrCpy $R4 1 ; Field Number + StrCpy $R5 0 ; Top + + ${If} $R0 = 1 + IntOp $R6 $R5 + 34 + + FileWrite $R3 '[Field $R4]$\r$\n' + FileWrite $R3 'Type="GroupBox"$\r$\nText="Client"$\r$\nLeft=0$\r$\nTop=$R5$\r$\nRight=300$\r$\nBottom=$R6$\r$\n' + + IntOp $R4 $R4 + 1 + IntOp $R5 $R5 + 8 + IntOp $R6 $R5 + 12 + + FileWrite $R3 '[Field $R4]$\r$\nType="Checkbox"$\r$\nState=$OptService$\r$\nText="Install as service"$\r$\nLeft=6$\r$\nTop=$R5$\r$\nRight=280$\r$\nBottom=$R6$\r$\n' + + IntOp $R4 $R4 + 1 + StrCpy $R5 $R6 + IntOp $R6 $R5 + 12 + + FileWrite $R3 '[Field $R4]$\r$\nType="Checkbox"$\r$\nState=$OptStart$\r$\nText="Start after install"$\r$\nLeft=6$\r$\nTop=$R5$\r$\nRight=280$\r$\nBottom=$R6$\r$\n' + + IntOp $R4 $R4 + 1 + IntOp $R5 $R6 + 8 + ${Endif} + + ${If} $R1 = 1 + IntOp $R6 $R5 + 34 + + FileWrite $R3 '[Field $R4]$\r$\n' + FileWrite $R3 'Type="GroupBox"$\r$\nText="Storage"$\r$\nLeft=0$\r$\nTop=$R5$\r$\nRight=300$\r$\nBottom=$R6$\r$\n' + + IntOp $R4 $R4 + 1 + IntOp $R5 $R5 + 8 + IntOp $R6 $R5 + 12 + + FileWrite $R3 '[Field $R4]$\r$\nType="Checkbox"$\r$\nState=$OptService$\r$\nText="Install as service"$\r$\nLeft=6$\r$\nTop=$R5$\r$\nRight=280$\r$\nBottom=$R6$\r$\n' + + IntOp $R4 $R4 + 1 + StrCpy $R5 $R6 + IntOp $R6 $R5 + 12 + + FileWrite $R3 '[Field $R4]$\r$\nType="Checkbox"$\r$\nState=$OptStart$\r$\nText="Start after install"$\r$\nLeft=6$\r$\nTop=$R5$\r$\nRight=280$\r$\nBottom=$R6$\r$\n' + + IntOp $R4 $R4 + 1 + IntOp $R5 $R6 + 8 + ${Endif} + + ${If} $R2 = 1 + IntOp $R6 $R5 + 46 + + FileWrite $R3 '[Field $R4]$\r$\n' + FileWrite $R3 'Type="GroupBox"$\r$\nText="Director"$\r$\nLeft=0$\r$\nTop=$R5$\r$\nRight=300$\r$\nBottom=$R6$\r$\n' + + IntOp $R4 $R4 + 1 + IntOp $R5 $R5 + 8 + IntOp $R6 $R5 + 12 + + FileWrite $R3 '[Field $R4]$\r$\nType="Checkbox"$\r$\nState=$OptService$\r$\nText="Install as service"$\r$\nLeft=6$\r$\nTop=$R5$\r$\nRight=280$\r$\nBottom=$R6$\r$\n' + + IntOp $R4 $R4 + 1 + StrCpy $R5 $R6 + IntOp $R6 $R5 + 12 + + FileWrite $R3 '[Field $R4]$\r$\nType="Checkbox"$\r$\nState=$OptStart$\r$\nText="Start after install"$\r$\nLeft=6$\r$\nTop=$R5$\r$\nRight=280$\r$\nBottom=$R6$\r$\n' + + IntOp $R4 $R4 + 1 + IntOp $R5 $R6 + 2 + IntOp $R6 $R5 + 8 + + FileWrite $R3 '[Field $R4]$\r$\nType="Label"$\r$\nText="Database:"$\r$\nLeft=6$\r$\nTop=$R5$\r$\nRight=46$\r$\nBottom=$R6$\r$\n' + + IntOp $R4 $R4 + 1 + IntOp $R5 $R5 - 2 + IntOp $R6 $R5 + 12 + + FileWrite $R3 '[Field $R4]$\r$\nType="RadioButton"$\r$\nState=1$\r$\nText="MySQL"$\r$\nFlags="GROUP"$\r$\nLeft=46$\r$\nTop=$R5$\r$\nRight=86$\r$\nBottom=$R6$\r$\n' + + IntOp $R4 $R4 + 1 + IntOp $R6 $R5 + 12 + + FileWrite $R3 '[Field $R4]$\r$\nType="RadioButton"$\r$\nState=0$\r$\nText="PostgreSQL"$\r$\nFlags="NOTABSTOP"$\r$\nLeft=86$\r$\nTop=$R5$\r$\nRight=142$\r$\nBottom=$R6$\r$\n' + + IntOp $R4 $R4 + 1 + IntOp $R6 $R5 + 12 + + FileWrite $R3 '[Field $R4]$\r$\nType="RadioButton"$\r$\nState=0$\r$\nText="Builtin"$\r$\nFlags="NOTABSTOP"$\r$\nLeft=142$\r$\nTop=$R5$\r$\nRight=182$\r$\nBottom=$R6$\r$\n' + + IntOp $R4 $R4 + 1 + IntOp $R5 $R6 + 8 + ${Endif} + + IntOp $R4 $R4 - 1 + + FileWrite $R3 "[Settings]$\r$\nNumFields=$R4$\r$\n" + + FileClose $R3 + + !insertmacro MUI_HEADER_TEXT "$(TITLE_Options)" "$(SUBTITLE_Options)" + !insertmacro MUI_INSTALLOPTIONS_DISPLAY "Options.ini" + + ; + ; Process results + ; + StrCpy $R4 2 + + ${If} $R0 = 1 + ; Client + !insertmacro MUI_INSTALLOPTIONS_READ $OptionsClientService "Options.ini" "Field $R4" "State" + IntOp $R4 $R4 + 1 + !insertmacro MUI_INSTALLOPTIONS_READ $OptionsClientStart "Options.ini" "Field $R4" "State" + IntOp $R4 $R4 + 2 + ${EndIf} + + ${If} $R0 = 1 + ; Client + !insertmacro MUI_INSTALLOPTIONS_READ $OptionsStorageService "Options.ini" "Field $R4" "State" + IntOp $R4 $R4 + 1 + !insertmacro MUI_INSTALLOPTIONS_READ $OptionsStorageStart "Options.ini" "Field $R4" "State" + IntOp $R4 $R4 + 2 + ${EndIf} + + ${If} $R0 = 1 + ; Client + !insertmacro MUI_INSTALLOPTIONS_READ $OptionsDirectorService "Options.ini" "Field $R4" "State" + IntOp $R4 $R4 + 1 + !insertmacro MUI_INSTALLOPTIONS_READ $OptionsDirectorStart "Options.ini" "Field $R4" "State" + IntOp $R4 $R4 + 2 + !insertmacro MUI_INSTALLOPTIONS_READ $R3 "Options.ini" "Field $R4" "State" + ${If} $R3 = 1 + StrCpy $OptionsDirectorDB 1 + ${Else} + IntOp $R4 $R4 + 1 + !insertmacro MUI_INSTALLOPTIONS_READ $R3 "Options.ini" "Field $R4" "State" + ${If} $R3 = 1 + StrCpy $OptionsDirectorDB 2 + ${Else} + StrCpy $OptionsDirectorDB 3 + ${Endif} + ${Endif} + ${EndIf} +FunctionEnd + +; +; $0 - Service Name (ie Bacula-FD) +; $1 - Service Description (ie Bacula File Daemon) +; $2 - Install as Service +; $3 - Start Service now +; +Function InstallDaemon + Call CopyDependencies + + IfFileExists "$APPDATA\Bacula\$0.conf" 0 +3 + ExecWait '"$INSTDIR\bin\$0.exe" /kill' ; Shutdown any bacula that could be running + Sleep 3000 ; give it some time to shutdown + + WriteRegDWORD HKLM "Software\Bacula" "Service_$0" $2 + + ${If} $2 = 1 + ExecWait '"$INSTDIR\bin\$0.exe" /install' + + ${If} $OsIsNT <> 1 + File Start.bat + File Stop.bat + ${EndIf} + + ; Start the service? (default skipped if silent, use /start to force starting) + + ${If} $3 = 1 + ${If} $OsIsNT = 1 + Exec 'net start bacula' + Sleep 3000 + ${Else} + Exec '"$INSTDIR\bin\$0.exe" -c "$APPDATA\Bacula\$0.conf"' + ${EndIf} + ${EndIf} + ${Else} + CreateShortCut "$SMPROGRAMS\Bacula\Start $1.lnk" "$INSTDIR\bin\$0.exe" '-c "$APPDATA\Bacula\$0.conf"' "$INSTDIR\bin\$0.exe" 0 + ${EndIf} +FunctionEnd diff --git a/bacula/src/win32/wx-console/Makefile b/bacula/src/win32/wx-console/Makefile index d9f4c3897f..0c2e6f236e 100755 --- a/bacula/src/win32/wx-console/Makefile +++ b/bacula/src/win32/wx-console/Makefile @@ -1,17 +1,83 @@ # -# Makefile to build the native Win32 console -# VC++ and tools must be on your path -# -# Kern Sibbald, June 2004 +# Makefile for win32 bacula executables +# Using MinGW cross-compiler on GNU/Linux # +# Written by Robert Nelson, June 2006 +# + +include ../Makefile.inc + +INCLUDES = \ + -I../../wx-console \ + $(INCLUDE_BACULA) \ + $(INCLUDE_WX) \ + $(INCLUDE_PTHREADS) \ + $(INCLUDE_OPENSSL) \ + $(INCLUDE_ICONS) + +DEFINES = \ + -DUSING_DLL \ + -DHAVE_WXCONSOLE \ + -D__WXMSW__ \ + -DWXUSINGDLL \ + -D_STAT_H \ + -D_STAT_DEFINED \ + $(HAVES) + +VPATH = ../../wx-console + +########################################################################## + +# Files in ../../wx-console + +CONSOLE_OBJS = \ + $(OBJDIR)/authenticate.o \ + $(OBJDIR)/console_conf.o \ + $(OBJDIR)/console_thread.o \ + $(OBJDIR)/main.o \ + $(OBJDIR)/wxbconfigfileeditor.o \ + $(OBJDIR)/wxbconfigpanel.o \ + $(OBJDIR)/wxbhistorytextctrl.o \ + $(OBJDIR)/wxblistctrl.o \ + $(OBJDIR)/wxbmainframe.o \ + $(OBJDIR)/wxbrestorepanel.o \ + $(OBJDIR)/wxbtableparser.o \ + $(OBJDIR)/wxbtreectrl.o \ + $(OBJDIR)/wxbutils.o \ + $(OBJDIR)/wx-console_private.res -NMAKE=nmake +ALL_OBJS = $(CONSOLE_OBJS) -first_rule: all +CONSOLE_LIBS = \ + $(LIBS_WX) \ + -lcomctl32 \ + -lwsock32 \ + -lole32 \ + -loleaut32 \ + -luuid -dummy: +###################################################################### + +# Targets + +.PHONY: all clean + +all: $(BINDIR)/wx-console.exe clean: - rm -rf Debug/*.obj Release/*.obj + $(call clean_obj,$(ALL_OBJS)) + $(call clean_exe,$(BINDIR)/wx-console.exe) + +# +# Rules +# + +$(BINDIR)/wx-console.exe: $(CONSOLE_OBJS) $(LIBS_BACULA) + $(call link_winapp,$(CONSOLE_LIBS)) + +$(OBJDIR)/wx-console_private.res: wx-console_private.rc + @echo "Compiling $@" + $(call checkdir,$@) + $(ECHO_CMD)$(WINDRES) $(INCLUDE_ICONS) -I../../wx-console -O coff $< -o $@ -distclean: clean +include ../Makefile.rules diff --git a/bacula/src/win32/wx-console/authenticate.cpp b/bacula/src/win32/wx-console/authenticate.cpp deleted file mode 100644 index 70e3ede906..0000000000 --- a/bacula/src/win32/wx-console/authenticate.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../wx-console/authenticate.c" diff --git a/bacula/src/win32/wx-console/console_conf.cpp b/bacula/src/win32/wx-console/console_conf.cpp deleted file mode 100644 index 15060bb427..0000000000 --- a/bacula/src/win32/wx-console/console_conf.cpp +++ /dev/null @@ -1 +0,0 @@ -#include "../../wx-console/console_conf.c" diff --git a/bacula/src/win32/wx-console/wx-console-obj.mak.in b/bacula/src/win32/wx-console/wx-console-obj.mak.in deleted file mode 100644 index ee0d541222..0000000000 --- a/bacula/src/win32/wx-console/wx-console-obj.mak.in +++ /dev/null @@ -1,16 +0,0 @@ -!IF "$(CFG)" == "wx-console - Win32 Release" - - -"$(INTDIR)\$(FILENAME).obj" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ELSEIF "$(CFG)" == "wx-console - Win32 Debug" - - -"$(INTDIR)\$(FILENAME).obj" "$(INTDIR)\$(FILENAME).sbr" : $(SOURCE) "$(INTDIR)" - $(CPP) $(CPP_PROJ) $(SOURCE) - - -!ENDIF - diff --git a/bacula/src/win32/wx-console/wx-console.mak.in b/bacula/src/win32/wx-console/wx-console.mak.in deleted file mode 100644 index 9e5c8baa54..0000000000 --- a/bacula/src/win32/wx-console/wx-console.mak.in +++ /dev/null @@ -1,160 +0,0 @@ -# Microsoft Developer Studio Generated NMAKE File, Based on wx-console.dsp -!IF "$(CFG)" == "" -CFG=wx-console - Win32 Release -!MESSAGE No configuration specified. Defaulting to wx-console - Win32 Release. -!ENDIF - -!IF "$(CFG)" != "wx-console - Win32 Release" && "$(CFG)" != "wx-console - Win32 Debug" -!MESSAGE Invalid configuration "$(CFG)" specified. -!MESSAGE You can specify a configuration when running NMAKE -!MESSAGE by defining the macro CFG on the command line. For example: -!MESSAGE -!MESSAGE NMAKE /f "wx-console.mak" CFG="wx-console - Win32 Debug" -!MESSAGE -!MESSAGE Possible choices for configuration are: -!MESSAGE -!MESSAGE "wx-console - Win32 Release" (based on "Win32 (x86) Console Application") -!MESSAGE "wx-console - Win32 Debug" (based on "Win32 (x86) Console Application") -!MESSAGE -!ERROR An invalid configuration is specified. -!ENDIF - -!IF "$(OS)" == "Windows_NT" -NULL= -!ELSE -NULL=nul -!ENDIF - -CPP=cl.exe -RSC=rc.exe - -!IF "$(CFG)" == "wx-console - Win32 Release" - -OUTDIR=.\Release -INTDIR=.\Release -# Begin Custom Macros -OutDir=.\Release -# End Custom Macros - -ALL : "$(OUTDIR)\wx-console.exe" - - -CLEAN : - @@REL-CLEAN@@ - -@erase "$(OUTDIR)\wx-console.exe" - -"$(OUTDIR)" : - if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" - -CPP_PROJ=/nologo /MT /W3 /GX /O2 /I "../compat" /I "../.." /I "../../../depkgs-win32/wx/include" /I "../../../../depkgs-win32/wx/include" /I "../../../../depkgs-win32/wx/lib/msw" /I "../../../../depkgs-win32/pthreads" /I "../../../../depkgs-win32/zlib" /I "." /D "UNICODE" /D "NDEBUG" /D "WIN32" /D "__WXMSW__" /D "_CONSOLE" /D "_MBCS" /D "HAVE_WIN32" /D "HAVE_WXCONSOLE" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c -RSC_PROJ=/l 0x409 /fo"$(INTDIR)\winres.res" /d "NDEBUG" -BSC32=bscmake.exe -BSC32_FLAGS=/nologo /o"$(OUTDIR)\wx-console.bsc" -BSC32_SBRS= \ - -LINK32=link.exe -LINK32_FLAGS=wxmswu.lib rpcrt4.lib oleaut32.lib ole32.lib uuid.lib winspool.lib winmm.lib \ - comctl32.lib comdlg32.lib Shell32.lib AdvAPI32.lib User32.lib Gdi32.lib wsock32.lib \ - wldap32.lib pthreadVCE.lib zlib.lib /nodefaultlib:libcmt.lib \ - /nologo /subsystem:windows /machine:I386 /out:"$(OUTDIR)\wx-console.exe" /libpath:"../../../../depkgs-win32/wx/lib" /libpath:"../../../../depkgs-win32/pthreads" /libpath:"../../../../depkgs-win32/zlib" -LINK32_OBJS= \ - @@REL-OBJS@@ - "$(INTDIR)\wx-console_private.res" - -"$(OUTDIR)\wx-console.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ELSEIF "$(CFG)" == "wx-console - Win32 Debug" - -OUTDIR=.\Debug -INTDIR=.\Debug -# Begin Custom Macros -OutDir=.\Debug -# End Custom Macros - -ALL : "$(OUTDIR)\wx-console.exe" "$(OUTDIR)\wx-console.bsc" - -CLEAN : - @@DEB-CLEAN@@ - -@erase "$(OUTDIR)\wx-console.exe" - -@erase "$(OUTDIR)\wx-console.bsc" - -"$(OUTDIR)" : - if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" - - -CPP_PROJ=/nologo /MTd /W3 /Gm /GX /ZI /Od /I "../compat" /I "../.." /I "../../../depkgs-win32/wx/include" /I "../../../../depkgs-win32/wx/include" /I "../../../../depkgs-win32/wx/lib/mswd" /I "../../../../depkgs-win32/pthreads" /I "../../../../depkgs-win32/zlib" /I "." /D "UNICODE" /D "_DEBUG" /D "WIN32" /D "__WXMSW__" /D "_CONSOLE" /D "_MBCS" /D "HAVE_WIN32" /D "HAVE_WXCONSOLE" /FR"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /c -RSC_PROJ=/l 0x409 /fo"$(INTDIR)\winres.res" /d "_DEBUG" -BSC32=bscmake.exe -BSC32_FLAGS=/nologo /o"$(OUTDIR)\wx-console.bsc" -BSC32_SBRS= \ - @@DEB-SBRS@@ - -"$(OUTDIR)\wx-console.bsc" : "$(OUTDIR)" $(BSC32_SBRS) - $(BSC32) @<< - $(BSC32_FLAGS) $(BSC32_SBRS) -<< - -LINK32=link.exe -LINK32_FLAGS=wxmswu.lib rpcrt4.lib oleaut32.lib ole32.lib uuid.lib winspool.lib winmm.lib \ - comctl32.lib comdlg32.lib Shell32.lib AdvAPI32.lib User32.lib Gdi32.lib wsock32.lib \ - wldap32.lib pthreadVCE.lib zlib.lib /nodefaultlib:libcmtd.lib \ - /nologo /subsystem:windows /pdb:none /debug /machine:I386 /out:"$(OUTDIR)\wx-console.exe" /libpath:"../../../../depkgs-win32/wx/lib" /libpath:"../../../../depkgs-win32/pthreads" /libpath:"../../../../depkgs-win32/zlib" -LINK32_OBJS= \ - @@DEB-OBJS@@ - "$(INTDIR)\wx-console_private.res" - -"$(OUTDIR)\wx-console.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) - $(LINK32) @<< - $(LINK32_FLAGS) $(LINK32_OBJS) -<< - -!ENDIF - -.c{$(INTDIR)}.obj:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.cpp{$(INTDIR)}.obj:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.cxx{$(INTDIR)}.obj:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.c{$(INTDIR)}.sbr:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.cpp{$(INTDIR)}.sbr:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - -.cxx{$(INTDIR)}.sbr:: - $(CPP) @<< - $(CPP_PROJ) $< -<< - - -!IF "$(NO_EXTERNAL_DEPS)" != "1" -!IF EXISTS("wx-console.dep") -!INCLUDE "wx-console.dep" -!ELSE -!MESSAGE Warning: cannot find "wx-console.dep" -!ENDIF -!ENDIF - -SOURCE=..\..\wx-console\wx-console_private.rc - -"$(INTDIR)\wx-console_private.res" : $(SOURCE) "$(INTDIR)" - $(RSC) /l 0x409 /fo"$(INTDIR)\wx-console_private.res" /d "NDEBUG" $(SOURCE) - -@@OBJTARGETS@@ diff --git a/bacula/src/wx-console/Makefile.mingw b/bacula/src/wx-console/Makefile.mingw deleted file mode 100644 index 697491c617..0000000000 --- a/bacula/src/wx-console/Makefile.mingw +++ /dev/null @@ -1,69 +0,0 @@ -CPP = g++.exe -D__DEBUG__ -DHAVE_MINGW -DHAVE_WIN32 -CC = gcc.exe -D__DEBUG__ -DHAVE_MINGW -DHAVE_WIN32 -WINDRES = windres.exe -RES = wx-console_private.res -OBJ = main.o console_thread.o authenticate.o console_conf.o wxbrestorepanel.o wxbmainframe.o wxbtableparser.o wxbtreectrl.o wxblistctrl.o wxbutils.o wxbconfigpanel.o wxbconfigfileeditor.o wxbhistorytextctrl.o $(RES) -LINKOBJ = main.o console_thread.o authenticate.o console_conf.o wxbrestorepanel.o wxbmainframe.o wxbtableparser.o wxbtreectrl.o wxblistctrl.o wxbutils.o wxbconfigpanel.o wxbconfigfileeditor.o wxbhistorytextctrl.o $(RES) -LIBS = -L"../lib" -mwindows -Wl,--subsystem,windows -lbac `wx-config --libs` -g3 /MinGW/lib/libpthreadGC.a -INCS = -I".." -I"../lib" -I"../win32/compat/" -CXXINCS = -I".." -I"../lib" -I"../win32/compat/" -BIN = wx-console.exe -CXXFLAGS = $(CXXINCS) `wx-config --cppflags` -Wall -g3 -CFLAGS = $(INCS) -g3 - -.PHONY: all all-before all-after clean clean-custom - -all: all-before wx-console.exe all-after - - -clean: clean-custom - rm -f $(OBJ) $(BIN) - -$(BIN): $(OBJ) ../lib/libbac.a - $(CPP) $(LINKOBJ) -o "wx-console.exe" $(LIBS) - -../lib/libbac.a: ../lib/*.c* - (cd ../lib/; make -f Makefile.mingw) - @rm -f bacula-fd.exe - -main.o: main.cpp - $(CPP) -c main.cpp -o main.o $(CXXFLAGS) - -console_thread.o: console_thread.cpp - $(CPP) -c console_thread.cpp -o console_thread.o $(CXXFLAGS) - -authenticate.o: authenticate.c - $(CPP) -c authenticate.c -o authenticate.o $(CXXFLAGS) - -console_conf.o: console_conf.c - $(CPP) -c console_conf.c -o console_conf.o $(CXXFLAGS) - -wxbrestorepanel.o: wxbrestorepanel.cpp - $(CPP) -c wxbrestorepanel.cpp -o wxbrestorepanel.o $(CXXFLAGS) - -wxbmainframe.o: wxbmainframe.cpp - $(CPP) -c wxbmainframe.cpp -o wxbmainframe.o $(CXXFLAGS) - -wxbtableparser.o: wxbtableparser.cpp - $(CPP) -c wxbtableparser.cpp -o wxbtableparser.o $(CXXFLAGS) - -wxbtreectrl.o: wxbtreectrl.cpp - $(CPP) -c wxbtreectrl.cpp -o wxbtreectrl.o $(CXXFLAGS) - -wxblistctrl.o: wxblistctrl.cpp - $(CPP) -c wxblistctrl.cpp -o wxblistctrl.o $(CXXFLAGS) - -wxbutils.o: wxbutils.cpp - $(CPP) -c wxbutils.cpp -o wxbutils.o $(CXXFLAGS) - -wxbconfigpanel.o: wxbconfigpanel.cpp - $(CPP) -c wxbconfigpanel.cpp -o wxbconfigpanel.o $(CXXFLAGS) - -wxbconfigfileeditor.o: wxbconfigfileeditor.cpp - $(CPP) -c wxbconfigfileeditor.cpp -o wxbconfigfileeditor.o $(CXXFLAGS) - -wxbhistorytextctrl.o: wxbhistorytextctrl.cpp - $(CPP) -c wxbhistorytextctrl.cpp -o wxbhistorytextctrl.o $(CXXFLAGS) - -wx-console_private.res: wx-console_private.rc - $(WINDRES) -i wx-console_private.rc -I rc -o wx-console_private.res -O coff diff --git a/bacula/src/wx-console/main.cpp b/bacula/src/wx-console/main.cpp index 22bb92e6b5..5224ac67e6 100644 --- a/bacula/src/wx-console/main.cpp +++ b/bacula/src/wx-console/main.cpp @@ -31,6 +31,10 @@ #include "bacula.h" +#undef setlocale +#undef textdomain +#undef bindtextdomain + #include #include #include diff --git a/bacula/src/wx-console/wxbtreectrl.cpp b/bacula/src/wx-console/wxbtreectrl.cpp index 23f416b383..e6b4fc113c 100644 --- a/bacula/src/wx-console/wxbtreectrl.cpp +++ b/bacula/src/wx-console/wxbtreectrl.cpp @@ -34,7 +34,7 @@ BEGIN_EVENT_TABLE(wxbTreeCtrl, wxTreeCtrl) EVT_RIGHT_DOWN(wxbTreeCtrl::OnRightClicked) END_EVENT_TABLE() -DEFINE_EVENT_TYPE(wxbTREE_MARKED_EVENT) +DEFINE_LOCAL_EVENT_TYPE(wxbTREE_MARKED_EVENT) wxbTreeCtrl::wxbTreeCtrl( wxWindow* parent, wxEvtHandler* handler, wxWindowID id, const wxPoint& pos, const wxSize& size): diff --git a/bacula/src/wx-console/wxbtreectrl.h b/bacula/src/wx-console/wxbtreectrl.h index 3cf6012f27..c1b3ebd6ec 100644 --- a/bacula/src/wx-console/wxbtreectrl.h +++ b/bacula/src/wx-console/wxbtreectrl.h @@ -37,7 +37,7 @@ #include BEGIN_DECLARE_EVENT_TYPES() - DECLARE_EVENT_TYPE(wxbTREE_MARKED_EVENT, 618) + DECLARE_LOCAL_EVENT_TYPE(wxbTREE_MARKED_EVENT, 618) END_DECLARE_EVENT_TYPES() /* Customized tree event, used for marking events */ -- 2.39.5