diff options
Diffstat (limited to 'system/bacula/bacula.SlackBuild')
-rw-r--r-- | system/bacula/bacula.SlackBuild | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/system/bacula/bacula.SlackBuild b/system/bacula/bacula.SlackBuild index b72d6ad05f6e4..c47f3d110e4a5 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} |