diff options
author | mario <mario@slackverse.org> | 2012-08-10 00:45:25 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-08-10 00:45:25 -0500 |
commit | ab0674b5fb3860bf5cd1ed416c86aaf514f7bb18 (patch) | |
tree | d000e1f96b96ccb1770abf39fed857e7b4e5648a /system/bacula/bacula.SlackBuild | |
parent | 93c2913f073033641d769f058745b59b21940301 (diff) | |
download | slackbuilds-ab0674b5fb3860bf5cd1ed416c86aaf514f7bb18.tar.gz |
system/bacula: Updated for version 5.2.10.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/bacula/bacula.SlackBuild')
-rw-r--r-- | system/bacula/bacula.SlackBuild | 37 |
1 files changed, 29 insertions, 8 deletions
diff --git a/system/bacula/bacula.SlackBuild b/system/bacula/bacula.SlackBuild index 66fef89056..177b061cf2 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 |