]> git.sur5r.net Git - bacula/bacula/commitdiff
Add BartPE Windows plugin
authorScott Barninger <scott@barninger.com>
Sat, 13 Nov 2004 14:52:58 +0000 (14:52 +0000)
committerScott Barninger <scott@barninger.com>
Sat, 13 Nov 2004 14:52:58 +0000 (14:52 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1688 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/autoconf/configure.in
bacula/configure
bacula/src/win32/Makefile.in
bacula/src/win32/pebuilder/Makefile.in [new file with mode: 0644]
bacula/src/win32/pebuilder/README [new file with mode: 0644]
bacula/src/win32/pebuilder/bacula/bacula.inf [new file with mode: 0644]
bacula/src/win32/pebuilder/bacula/bacula_nu2menu.xml [new file with mode: 0644]

index ffb7bb45840d6711eb18cd8d393d33bfbe6a6733..b6dc8b419db0c21b0e837426022d23a3885bff63 100644 (file)
@@ -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;) ]
 )
index adb850a7d410a022c96590132493b830abf72de9..ee1048d6542acff8055f81bae7237f31ad85cf96 100755 (executable)
@@ -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" ;;
index ad25c46f982b87514f64be8075af6ba0c6958639..c129993211c08300b644e993997db8f929dd333c 100644 (file)
@@ -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 (file)
index 0000000..4c2f111
--- /dev/null
@@ -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 (file)
index 0000000..228e96e
--- /dev/null
@@ -0,0 +1,13 @@
+Bacula plugin for BartPE
+http://www.nu2.nu/pebuilder/
+Wed Nov 10 2004
+Copyright 2004 D. Scott Barninger <barninger at fairfieldcomputers.com>
+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 (file)
index 0000000..1c327cd
--- /dev/null
@@ -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 (file)
index 0000000..4f51f40
--- /dev/null
@@ -0,0 +1,10 @@
+<!-- Nu2Menu entry -->
+<!-- Copyright 2004 D. Scott Barninger -->
+<!-- licensed under the GNU GPL v2 -->
+<NU2MENU>
+       <MENU ID="Programs">                    
+               <MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\Programs\bacula\bacula-fd.exe))" CMD="RUN" FUNC="@Null(@ChangeDir(@GetProgramDrive()\Programs\bacula))@GetProgramDrive()\Programs\bacula\bacula-fd.exe /install">Install Bacula Client Service</MITEM>
+               <MITEM TYPE="ITEM" CMD="RUN" FUNC="net start bacula">Start Bacula Client Service</MITEM>
+               <MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\Programs\bacula\wx-console.exe))" CMD="RUN" FUNC="@Null(@ChangeDir(@GetProgramDrive()\Programs\bacula))@GetProgramDrive()\Programs\bacula\wx-console.exe">Bacula WX-Console</MITEM>
+       </MENU>
+</NU2MENU>