aboutsummaryrefslogtreecommitdiff
path: root/system/bacula/bacula.SlackBuild
diff options
context:
space:
mode:
authormario <mario@slackverse.org>2010-06-16 06:20:36 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-06-16 06:20:36 -0500
commitb505e602e9cc28f2ce0f0046e48285f1ba1b9a3c (patch)
tree5d777ed9e7555ad544e6e02a411d6e4d2bd59e69 /system/bacula/bacula.SlackBuild
parentf51467926323647bca2064234088cca404ccb62c (diff)
system/bacula: Updated for version 5.0.2.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/bacula/bacula.SlackBuild')
-rw-r--r--system/bacula/bacula.SlackBuild29
1 files changed, 13 insertions, 16 deletions
diff --git a/system/bacula/bacula.SlackBuild b/system/bacula/bacula.SlackBuild
index b72d6ad05f6e..c47f3d110e4a 100644
--- a/system/bacula/bacula.SlackBuild
+++ b/system/bacula/bacula.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=bacula
-VERSION=${VERSION:-5.0.1}
+VERSION=${VERSION:-5.0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -57,7 +57,7 @@ else
fi
# E-mail address for bacula to deliver job announcements and core dumps to
-EMAIL=${EMAIL:-backup@localhost}
+EMAIL=${EMAIL:-root@localhost}
# SMTP host for mail delivery
SMTPHOST=${SMTPHOST:-localhost}
@@ -110,31 +110,28 @@ 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
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- ABOUT-NLS ChangeLog COPYING INSTALL README ReleaseNotes VERIFYING \
- $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-
# Copy logrotate script
mkdir -p $PKG/etc/logrotate.d
cat scripts/logrotate > $PKG/etc/logrotate.d/bacula.new
-# Copy rc script
+# Copy init 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
+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 \
+ ChangeLog COPYING INSTALL README ReleaseNotes VERIFYING \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
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}