aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authormario <mario@slackverse.org>2010-06-16 06:25:31 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-06-16 06:25:31 -0500
commit53952012d1c465875ac024e1cc24a4af9dcb8e7e (patch)
tree312c3522e1a492160a8b782eb9f038d4063f6dd3 /system
parentb505e602e9cc28f2ce0f0046e48285f1ba1b9a3c (diff)
system/bacula-client: Updated for version 5.0.2.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/bacula-client/README19
-rw-r--r--system/bacula-client/bacula-client.SlackBuild26
-rw-r--r--system/bacula-client/bacula-client.info8
-rw-r--r--system/bacula-client/doinst.sh19
4 files changed, 34 insertions, 38 deletions
diff --git a/system/bacula-client/README b/system/bacula-client/README
index 4af294c68121..07fc890307ed 100644
--- a/system/bacula-client/README
+++ b/system/bacula-client/README
@@ -1,13 +1,10 @@
Bacula (Manage backup, recovery) - Client only
-Bacula is a set of computer programs that permit you (or the system
-administrator) to manage backup, recovery, and verification of
-computer data across a network of computers of different kinds. In
-technical terms, it is a network Client/Server based backup program.
-Bacula is relatively easy to use and 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.
-
-More info on website: http://www.bacula.org
+Bacula is a set of computer programs that permit you (or the system admin) to
+manage backup, recovery, and verification of computer data across a network
+of computers of different kinds. In technical terms, it is a network
+Client/Server based backup program. Bacula is relatively easy to use and
+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.
diff --git a/system/bacula-client/bacula-client.SlackBuild b/system/bacula-client/bacula-client.SlackBuild
index 8c23d7a34757..6ebb90e5951b 100644
--- a/system/bacula-client/bacula-client.SlackBuild
+++ b/system/bacula-client/bacula-client.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=bacula-client
SRCNAM=bacula
-VERSION=${VERSION:-5.0.1}
+VERSION=${VERSION:-5.0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -93,28 +93,24 @@ make install DESTDIR=$PKG
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+# Copy init script
+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
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- ABOUT-NLS ChangeLog COPYING INSTALL README ReleaseNotes VERIFYING \
+ ChangeLog COPYING INSTALL README ReleaseNotes VERIFYING \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-
-# Copy rc script
-install -D -m0755 -oroot -groot scripts/bacula $PKG/etc/rc.d/rc.bacula.new
-
-# Append .new to config files
-cd $PKG/etc/bacula || exit 1
-for i in *.conf ; do mv $i $i.new ; done
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
-# Remove useless tmp dir
-if [ -d $PKG/tmp ]; then
- rm -rf $PKG/tmp
-fi
-
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/bacula-client/bacula-client.info b/system/bacula-client/bacula-client.info
index ff349cbbf654..8fa8560e5d6e 100644
--- a/system/bacula-client/bacula-client.info
+++ b/system/bacula-client/bacula-client.info
@@ -1,10 +1,10 @@
PRGNAM="bacula-client"
-VERSION="5.0.1"
+VERSION="5.0.2"
HOMEPAGE="www.bacula.org"
-DOWNLOAD="http://downloads.sourceforge.net/bacula/bacula-5.0.1.tar.gz"
-MD5SUM="beb9f8da196b3c9ffb0356f087dbdb99"
+DOWNLOAD="http://downloads.sourceforge.net/bacula/bacula-5.0.2.tar.gz"
+MD5SUM="e9204d2e772f12662de28da3327853de"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="mario"
EMAIL="mario@slackverse.org"
-APPROVED="dsomero"
+APPROVED="rworkman"
diff --git a/system/bacula-client/doinst.sh b/system/bacula-client/doinst.sh
index 0d18f79b8d36..ee907ca5581a 100644
--- a/system/bacula-client/doinst.sh
+++ b/system/bacula-client/doinst.sh
@@ -11,14 +11,17 @@ config() {
# Otherwise, we leave the .new copy for the admin to consider...
}
-# Keep same perms on rc.bacula.new:
-if [ -e etc/rc.d/rc.bacula ]; then
- cp -a etc/rc.d/rc.bacula etc/rc.d/rc.bacula.new.incoming
- cat etc/rc.d/rc.bacula.new > etc/rc.d/rc.bacula.new.incoming
- mv etc/rc.d/rc.bacula.new.incoming etc/rc.d/rc.bacula.new
-fi
+preserve_perms() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ if [ -e $OLD ]; then
+ cp -a $OLD ${NEW}.incoming
+ cat $NEW > ${NEW}.incoming
+ mv ${NEW}.incoming $NEW
+ fi
+ config $NEW
+}
+preserve_perms etc/rc.d/rc.bacula.new
config etc/bacula/bacula-fd.conf.new
config etc/bacula/bconsole.conf.new
-config etc/rc.d/rc.bacula.new
-