aboutsummaryrefslogtreecommitdiff
path: root/system/bacula
diff options
context:
space:
mode:
authormario <mario@slackverse.org>2012-08-10 00:45:25 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-08-10 00:45:25 -0500
commitab0674b5fb3860bf5cd1ed416c86aaf514f7bb18 (patch)
treed000e1f96b96ccb1770abf39fed857e7b4e5648a /system/bacula
parent93c2913f073033641d769f058745b59b21940301 (diff)
system/bacula: Updated for version 5.2.10.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/bacula')
-rw-r--r--system/bacula/README11
-rw-r--r--system/bacula/README.SLACKWARE40
-rw-r--r--system/bacula/bacula.SlackBuild37
-rw-r--r--system/bacula/bacula.info6
4 files changed, 83 insertions, 11 deletions
diff --git a/system/bacula/README b/system/bacula/README
index 855625d9d1b4..6404ead0bb4e 100644
--- a/system/bacula/README
+++ b/system/bacula/README
@@ -8,3 +8,14 @@ efficient, while offering many advanced storage management features that make
it easy to find and recover lost or damaged files. Due to its modular design,
Bacula is scalable from small single computer systems to systems consisting
of hundreds of computers located over a large network.
+
+This script comes with a few options that can be set at build time, one
+of which is DATABASE. Supported databases include postgresql/mysql/sqlite3.
+By default mysql support is selected, to disable or select another database
+the following can be used: DATABASE="" ./bacula.SlackBuild
+One more option worth mentioning is BAT, which can be used to enable building
+of Bat together with Bacula. By default Bat comes disabled and for now it
+only builds on slackware-current because it requires newer QT.
+
+For more information on upgrading from previous version see README.SLACKWARE
+that came with this package (which is also installed with the documentation).
diff --git a/system/bacula/README.SLACKWARE b/system/bacula/README.SLACKWARE
new file mode 100644
index 000000000000..d32e7e64646d
--- /dev/null
+++ b/system/bacula/README.SLACKWARE
@@ -0,0 +1,40 @@
+This is an important excerpt from ReleaseNotes that came with bacula version
+5.2.1 which explains updating database from 5.0.x version to 5.2.x. If you
+are upgrading, it would be in your best interest to read and understand the
+following:
+
+New Catalog format in version 5.2.0 and greater
+-----------------------------------------------
+This release of Bacula uses a new catalog format. We provide a set of
+scripts that permit to convert a 5.0.x (version 12) catalog to 5.2.1 (version
+14). The Bacula project rpm spec files have been modified to
+detect the database change and do the upgrade for you. We strongly
+recommend that you save a copy of your existing database before upgrading
+using rpms.
+
+The simplest way to upgrade the database assuming you are building from
+source (i.e. manually):
+1. Stop any current version of Bacula from running.
+2. Save a copy of your existing database.
+3. Configure, build, and install the 5.2.1 version of Bacula
+ Note the new ./configure options in the manuals see the link
+ at the bottom of this file.
+4. cd <your-scripts-installation-directory>
+5. ./update_bacula_tables
+6. If you have multiple catalogs, edit the update_bacula_tables
+ script and put the name of another database, and then
+ execute the script again. Repeat this until all Bacula
+ catalogs have been updated.
+7. Start the new Bacula. If everything worked, it should
+ not print any error messages.
+
+If you start from scratch, you don't need to run the update_bacula_tables
+script because the create_bacula_tables script automatically creates the new
+table format. However, if you are using a version of Bacula older than 5.0.0
+(e.g. 3.0.3) then you need to run the update_bacula_tables script that will
+be found in the <bacula>/src/cats directory after you run the ./configure
+command. As mentioned above, before running this script, please backup your
+catalog database, and when you do running it, be sure shutdown Bacula and be
+aware that running the script can take some time depending on your database
+size.
+
diff --git a/system/bacula/bacula.SlackBuild b/system/bacula/bacula.SlackBuild
index 66fef8905662..177b061cf27d 100644
--- a/system/bacula/bacula.SlackBuild
+++ b/system/bacula/bacula.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for Bacula
-# Copyright 2010, mario <mario@slackverse.org>
+# Copyright 2010-2012, mario <mario@slackverse.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=bacula
-VERSION=${VERSION:-5.0.3}
+VERSION=${VERSION:-5.2.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,15 +60,22 @@ EMAIL=${EMAIL:-root@localhost}
# SMTP host for mail delivery
SMTPHOST=${SMTPHOST:-localhost}
-# Build with mysql database by defaults, sqlite/mysql/postgresql are supported
+# Build with mysql database by default, supported: postgresql/mysql/sqlite3
DATABASE=${DATABASE:-mysql}
case "$DATABASE" in
- sqlite) DATABASE="--with-sqlite" ;;
- mysql) DATABASE="--with-mysql" ;;
postgresql) DATABASE="--with-postgresql" ;;
+ mysql) DATABASE="--with-mysql" ;;
+ sqlite) DATABASE="--with-sqlite3" ;;
*) DATABASE="" ;;
esac
+# Let people build with BAT support, which also requires Qt4 version 4.6.2
+BAT=${BAT:-no}
+case "$BAT" in
+ yes) BAT="--enable-bat" ;;
+ *) BAT="" ;;
+esac
+
set -e
rm -rf $PKG
@@ -98,10 +105,23 @@ CXXFLAGS="$SLKCFLAGS" \
--with-dump-email=$EMAIL \
--with-job-email=$EMAIL \
--with-smtp-host=$SMTPHOST \
- --disable-conio \
+ --disable-readline \
$DATABASE \
+ $BAT \
--build=$ARCH-slackware-linux
+# Todo: prefix, user and group
+# --sbindir=$PREFIX/bin \
+# --with-pid-dir=$PREFIX/working \
+# --with-plugindir=$PREFIX/plugins \
+# --with-scriptdir=$PREFIX/scripts \
+# --with-subsys-dir=$PREFIX/working \
+# --with-working-dir=$PREFIX/working \
+# --with-dir-user=bacula \
+# --with-sd-user=bacula \
+# --with-dir-group=bacula \
+# --with-sd-group=bacula \
+
make
make install DESTDIR=$PKG
@@ -113,19 +133,20 @@ mkdir -p $PKG/etc/logrotate.d
cat scripts/logrotate > $PKG/etc/logrotate.d/bacula.new
# Copy init script
-install -D -m0755 -oroot -groot scripts/bacula ${PKG}/etc/rc.d/rc.bacula.new
+install -D -m0755 -oroot -groot scripts/bacula $PKG/etc/rc.d/rc.bacula.new
# Append .new to config files
for i in $PKG/etc/bacula/*.conf ; do mv $i $i.new ; done
# Remove useless tmp dir
-rm -rf $PKG/tmp
+rmdir $PKG/tmp
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
ChangeLog COPYING INSTALL README ReleaseNotes VERIFYING \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/system/bacula/bacula.info b/system/bacula/bacula.info
index 90b9f1756952..9a4d0cff4916 100644
--- a/system/bacula/bacula.info
+++ b/system/bacula/bacula.info
@@ -1,8 +1,8 @@
PRGNAM="bacula"
-VERSION="5.0.3"
+VERSION="5.2.10"
HOMEPAGE="http://www.bacula.org"
-DOWNLOAD="http://downloads.sourceforge.net/bacula/bacula-5.0.3.tar.gz"
-MD5SUM="9de254ae39cab0587fdb2f5d8d90b03b"
+DOWNLOAD="http://downloads.sourceforge.net/bacula/bacula-5.2.10.tar.gz"
+MD5SUM="19207d7049cf11a54dee5585689044ec"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="mario"