From: Scott Barninger Date: Sat, 13 Nov 2004 14:52:58 +0000 (+0000) Subject: Add BartPE Windows plugin X-Git-Tag: Release-1.36.1~29 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d6e127ae678af65be8b6ffb27b523f48e9698d66;p=bacula%2Fbacula Add BartPE Windows plugin git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1688 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/autoconf/configure.in b/bacula/autoconf/configure.in index ffb7bb4584..b6dc8b419d 100644 --- a/bacula/autoconf/configure.in +++ b/bacula/autoconf/configure.in @@ -1888,6 +1888,7 @@ AC_OUTPUT([autoconf/Make.common \ src/win32/Makefile \ src/win32/console/bconsole.conf \ src/win32/wx-console/wx-console.conf \ + src/win32/pebuilder/Makefile \ $PFILES ], [(echo "Doing make of dependencies"; ${MAKE:-make} depend;) ] ) diff --git a/bacula/configure b/bacula/configure index adb850a7d4..ee1048d654 100755 --- a/bacula/configure +++ b/bacula/configure @@ -19195,7 +19195,7 @@ if test "x${subsysdir}" = "x${sbindir}" ; then exit 1 fi - ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/linux/cdrom/bacula/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula 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/bacula-tray-monitor.desktop doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.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/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/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES" + ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/linux/cdrom/bacula/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula 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/bacula-tray-monitor.desktop doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.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/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/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile $PFILES" ac_config_commands="$ac_config_commands default" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure @@ -19816,6 +19816,7 @@ do "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;; "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" ;; "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;; "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;; diff --git a/bacula/src/win32/Makefile.in b/bacula/src/win32/Makefile.in index ad25c46f98..c129993211 100644 --- a/bacula/src/win32/Makefile.in +++ b/bacula/src/win32/Makefile.in @@ -26,7 +26,7 @@ first_rule: all dummy: -all: bacula bconsole wx-console installer +all: bacula bconsole wx-console pebuilder installer bacula: dummy @@ -38,6 +38,9 @@ bconsole: dummy wx-console: dummy (cd wx-console; env MAKEFLAGS= ${NMAKE} CFG="wx-console - Win32 Release" /f wx-console.mak) +pebuilder: bacula bconsole wx-console + (cd pebuilder; make) + # # Quickie debug installation # @@ -67,7 +70,9 @@ clean: (cd baculafd; make clean) (cd console; make clean) (cd wx-console; make clean) + (cd pebuilder; make clean) distclean: clean rm -rf baculafd/Release baculafd/Debug rm -f winbacula-*.exe + rm -f winbacula-bartpe-*.zip diff --git a/bacula/src/win32/pebuilder/Makefile.in b/bacula/src/win32/pebuilder/Makefile.in new file mode 100644 index 0000000000..4c2f11105b --- /dev/null +++ b/bacula/src/win32/pebuilder/Makefile.in @@ -0,0 +1,53 @@ +# +# Makefile to build the BartPE plugin +# +# +# D. Scott Barninger, Nov 2004 +# + +srcdir = . +VPATH = . +.PATH: . + +# one up +basedir = .. +# top dir +topdir = ../../.. +# this dir relative to top dir +thisdir = src/win32/pebuilder + +first_rule: all + +dummy: + +all: pebuilder zip + +pebuilder: + cp -f ../baculafd/bacula-fd.conf bacula/files/ + cp -f ../console/bconsole.conf bacula/files/ + cp -f ../wx-console/wx-console.conf bacula/files/ + cp -f ../baculafd/Release/bacula-fd.exe bacula/files/ + cp -f ../console/Release/bconsole.exe bacula/files/ + cp -f ../wx-console/Release/wx-console.exe bacula/files/ + cp -f ../../../../depkgs-win32/pthreads/pthreadVCE.dll bacula/files/ + cp -f ../License.txt bacula/files/ + +zip: pebuilder + zip -r ../winbacula-bartpe-@VERSION@.zip bacula README + +depend: + + +#------------------------------------------------------------------------- + + +install: + +uninstall: + + +clean: + rm -f bacula/files/* + +# clean for distribution +distclean: clean diff --git a/bacula/src/win32/pebuilder/README b/bacula/src/win32/pebuilder/README new file mode 100644 index 0000000000..228e96e455 --- /dev/null +++ b/bacula/src/win32/pebuilder/README @@ -0,0 +1,13 @@ +Bacula plugin for BartPE +http://www.nu2.nu/pebuilder/ +Wed Nov 10 2004 +Copyright 2004 D. Scott Barninger +Licensed under the GNU GPL v2 + +Copy the bacula plugin folder to the plugins directory of your +BartPE build directory. Edit the config files in the files directory +to suit your bacula installation. + +Build your BartPE disk according to the instructions at +http://www.nu2.nu/pebuilder/#build along with whatever other plugins +you want. Be sure that 'Bacula Client' is enabled on the plugin selection screen. diff --git a/bacula/src/win32/pebuilder/bacula/bacula.inf b/bacula/src/win32/pebuilder/bacula/bacula.inf new file mode 100644 index 0000000000..1c327cd948 --- /dev/null +++ b/bacula/src/win32/pebuilder/bacula/bacula.inf @@ -0,0 +1,26 @@ +; PE Builder v3 plug-in INF file for bacula +; Copyright 2004 D. Scott Barninger +; licensed under the GNU GPL v2 + +[Version] +Signature= "$Windows NT$" + +[PEBuilder] +Name="Bacula Client" +Enable=1 + +[WinntDirectories] +a="Programs\bacula",3 + +[SourceDisksFiles] +files\bacula-fd.exe=a,,1 +files\bacula-fd.conf=a,,1 +files\bconsole.exe=a,,1 +files\bconsole.conf=a,,1 +files\License.txt=a,,1 +files\pthreadVCE.dll=a,,1 +files\wx-console.exe=a,,1 +files\wx-console.conf=a,,1 + +[Append] +nu2menu.xml, bacula_nu2menu.xml diff --git a/bacula/src/win32/pebuilder/bacula/bacula_nu2menu.xml b/bacula/src/win32/pebuilder/bacula/bacula_nu2menu.xml new file mode 100644 index 0000000000..4f51f40cd7 --- /dev/null +++ b/bacula/src/win32/pebuilder/bacula/bacula_nu2menu.xml @@ -0,0 +1,10 @@ + + + + + + Install Bacula Client Service + Start Bacula Client Service + Bacula WX-Console + +