]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl merging Branch-1_39 to HEAD
authorEric Bollengier <eric@eb.homelinux.org>
Mon, 1 Jan 2007 13:48:33 +0000 (13:48 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 1 Jan 2007 13:48:33 +0000 (13:48 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3884 91ce42f0-d328-0410-95d8-f526ca767f89

gui/debian/brestore.dirs [new file with mode: 0644]
gui/debian/brestore.menu [new file with mode: 0644]
gui/debian/bweb-common.dirs [new file with mode: 0644]
gui/debian/bweb.dirs [new file with mode: 0644]
gui/debian/bweb.postinst [new file with mode: 0644]
gui/debian/changelog [new file with mode: 0644]
gui/debian/compat [new file with mode: 0644]
gui/debian/control [new file with mode: 0644]
gui/debian/rules [new file with mode: 0755]

diff --git a/gui/debian/brestore.dirs b/gui/debian/brestore.dirs
new file mode 100644 (file)
index 0000000..1a0a701
--- /dev/null
@@ -0,0 +1,5 @@
+usr/bin
+usr/share/doc/brestore
+usr/share/man/man1
+usr/share/brestore
+
diff --git a/gui/debian/brestore.menu b/gui/debian/brestore.menu
new file mode 100644 (file)
index 0000000..6fd3ac7
--- /dev/null
@@ -0,0 +1 @@
+?package(brestore):needs="X11" section="Apps/Utils" title="brestore" command="/usr/bin/brestore.pl" icon="/usr/share/brestore/brestore.png"
\ No newline at end of file
diff --git a/gui/debian/bweb-common.dirs b/gui/debian/bweb-common.dirs
new file mode 100644 (file)
index 0000000..297e0d7
--- /dev/null
@@ -0,0 +1,4 @@
+usr/share/perl5
+
+
+
diff --git a/gui/debian/bweb.dirs b/gui/debian/bweb.dirs
new file mode 100644 (file)
index 0000000..e594bc6
--- /dev/null
@@ -0,0 +1,9 @@
+etc/bweb
+etc/apache/conf.d
+usr/lib/cgi-bin/bweb
+usr/share/doc/bweb
+usr/share/bweb
+usr/share/bweb/tpl
+usr/share/bweb/html
+usr/share/perl5
+var/spool/bweb
diff --git a/gui/debian/bweb.postinst b/gui/debian/bweb.postinst
new file mode 100644 (file)
index 0000000..5273dcf
--- /dev/null
@@ -0,0 +1,32 @@
+#!/bin/sh
+set -e
+
+. /usr/share/debconf/confmodule
+
+db_version 2.0
+
+if [ "$1" = "configure" ] ; then
+ if [ -f /etc/bweb/config ] ; then
+     echo "/etc/bweb/config have moved to /etc/bacula/bweb.conf"
+     echo "you can remove /etc/bweb"
+     [ ! -d /etc/bacula ] && mkdir /etc/bacula
+     cp -p /etc/bweb/config /etc/bacula/bweb.conf
+     sed -i 's!/etc/bweb/config!/etc/bacula/bweb.conf!' /etc/bacula/bweb.conf
+ fi
+
+ if [ ! -f /etc/bacula/bweb.conf ] ; then
+       echo '$VAR1 = { template_dir => "/usr/share/bweb/tpl" };' > /etc/bacula/bweb.conf
+
+       chown www-data:root /etc/bacula/bweb.conf
+       chmod 640 /etc/bacula/bweb.conf
+
+       chown www-data:root /var/spool/bweb
+       chmod 700 /var/spool/bweb
+       
+       echo
+       echo "If you are using postgresql, you have to load /usr/share/bweb/bweb-postgresql.sql in your database"
+
+       echo "postgres@localhost:~$ psql bacula < /usr/share/bweb/bweb-postgresql.sql"
+
+ fi
+fi
diff --git a/gui/debian/changelog b/gui/debian/changelog
new file mode 100644 (file)
index 0000000..40880b3
--- /dev/null
@@ -0,0 +1,13 @@
+bweb (2.0.0-1) stable; urgency=low
+
+  * Change revision.
+  * move /etc/bweb/config to /etc/bacula/bweb.conf
+
+ -- Eric Bollengier <eb.homelinux.org>  Sun,  30 Dec 2006 09:22:47 +0000
+       
+bweb (1.40-1) stable; urgency=low
+
+  * Initial Release.
+
+ -- Eric Bollengier <eb.homelinux.org>  Sam,  18 Nov 2006 23:22:47 +0000
+
diff --git a/gui/debian/compat b/gui/debian/compat
new file mode 100644 (file)
index 0000000..b8626c4
--- /dev/null
@@ -0,0 +1 @@
+4
diff --git a/gui/debian/control b/gui/debian/control
new file mode 100644 (file)
index 0000000..8503ca2
--- /dev/null
@@ -0,0 +1,32 @@
+Source: bweb
+Section: base
+Priority: optional
+Maintainer: Eric Bollengier <eric@eb.homelinux.org>
+Build-Depends: debhelper (>= 4.0.0)
+Standards-Version: 3.6.1
+
+Package: brestore
+Section: base
+Architecture: all
+Depends: libwww-perl (>= 5.8), libtime-modules-perl, libgtk2-gladexml-perl, bweb-common
+Recommends: libdbd-pg-perl, libdbd-mysql-perl
+Description: Bacula restore interface
+  Brestore allow you to restore yours files with a Gtk2 interface.
+
+Package: bweb
+Section: base
+Architecture: all
+Depends: libtime-modules-perl, bweb-common, libgd-graph-perl
+Recommends: libdbd-pg-perl, libdbd-mysql-perl
+Description: Bacula restore interface
+  Bweb is a bacula web interface
+
+Package: bweb-common
+Section: base
+Architecture: all
+Depends: libtime-modules-perl
+Recommends: libexpect-perl
+Description: Bacula restore interface
+  Bweb is a bacula web interface
+
+
diff --git a/gui/debian/rules b/gui/debian/rules
new file mode 100755 (executable)
index 0000000..17caeca
--- /dev/null
@@ -0,0 +1,121 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+#
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets  by Bill Allombert 2001
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+
+#Architecture 
+build: build-arch build-indep
+
+build-arch: build-arch-stamp
+build-arch-stamp: 
+       touch build-arch-stamp
+
+build-indep: build-indep-stamp
+build-indep-stamp: 
+       dh_installdirs -i
+       touch build-indep-stamp
+
+clean:
+       dh_testdir
+       rm -f build-arch-stamp build-indep-stamp binary-common-stamp install-indep-stamp install-arch-stamp #CONFIGURE-STAMP#
+       rm -f debian/*.1
+       rm -f debian/*.init
+       dh_clean 
+
+install: install-indep-stamp
+install-indep-stamp: install-indep
+install-indep:
+       dh_testdir
+       dh_testroot
+       dh_clean -k -i 
+       dh_installdirs -i
+       install -m 755 brestore/brestore.pl debian/brestore/usr/bin
+       install -m 644 brestore/brestore.glade debian/brestore/usr/share/brestore
+       install -m 644 brestore/brestore-fr.glade debian/brestore/usr/share/brestore
+       install -m 644 brestore/brestore.png debian/brestore/usr/share/brestore
+
+       install -m 644 bweb/lib/Bconsole.pm debian/bweb-common/usr/share/perl5
+       install -m 644 bweb/lib/CCircle.pm debian/bweb/usr/share/perl5
+       install -m 644 bweb/lib/Bweb.pm debian/bweb/usr/share/perl5
+       install -m 644 bweb/script/bweb.conf debian/bweb/etc/apache/conf.d
+       install -m 755 bweb/cgi/bgraph.pl debian/bweb/usr/lib/cgi-bin/bweb
+       install -m 755 bweb/cgi/bweb.pl debian/bweb/usr/lib/cgi-bin/bweb
+       install -m 755 bweb/cgi/bfileview.pl debian/bweb/usr/lib/cgi-bin/bweb
+       install -m 755 bweb/cgi/bconsole.pl debian/bweb/usr/lib/cgi-bin/bweb
+       install -m 644 bweb/tpl/*.tpl debian/bweb/usr/share/bweb/tpl 
+       install -m 644 bweb/html/*.js debian/bweb/usr/share/bweb/html
+       install -m 644 bweb/html/*.css debian/bweb/usr/share/bweb/html
+       install -m 644 bweb/html/*.png debian/bweb/usr/share/bweb/html
+       install -m 644 bweb/html/*.gif debian/bweb/usr/share/bweb/html
+       install -m 644 bweb/script/bweb-postgresql.sql debian/bweb/usr/share/bweb
+       dh_install -i
+       touch install-indep-stamp
+
+install-arch: install-arch-stamp
+install-arch-stamp:
+       dh_testdir
+       dh_testroot
+#      dh_clean -pbrestore -k -s 
+#      dh_clean -pbweb    -k -s 
+
+       touch install-arch-stamp
+
+binary: build install binary-common 
+# Must not depend on anything. This is to be called by
+# binary-arch/binary-indep
+# in another 'make' thread.
+binary-common: binary-common-stamp
+binary-common-stamp:
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs 
+       dh_installdocs
+       dh_installexamples
+       dh_installmenu -psched-builder
+       dh_installdebconf       
+#      dh_installlogrotate     
+#      dh_installemacsen
+#      dh_installpam
+#      dh_installmime
+#      dh_installinit
+#      dh_installcron
+#      dh_installinfo
+       dh_installman
+       dh_link
+       dh_strip
+       dh_compress 
+       dh_fixperms
+#      dh_perl
+#      dh_python
+       dh_makeshlibs
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+       touch binary-common-stamp
+
+# Build architecture independant packages using the common target.
+binary-indep: build-indep install-indep-stamp
+       $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch: build-arch install-arch
+       $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch configure