diff options
Diffstat (limited to 'system/bacula-client/bacula-client.SlackBuild')
-rw-r--r-- | system/bacula-client/bacula-client.SlackBuild | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/system/bacula-client/bacula-client.SlackBuild b/system/bacula-client/bacula-client.SlackBuild index 8c23d7a347571..6ebb90e5951b1 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} |