]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
backupninja: small fix
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Mon, 3 Dec 2007 02:34:13 +0000 (02:34 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Mon, 3 Dec 2007 02:34:13 +0000 (02:34 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1491 370017ae-e619-0410-ac65-c121f96126d4

app/backup/backupninja/backupninja.SlackBuild

index b3057b4b19480fa56ae35e6dffc05422ce537e3f..fd5dd81dee76a8f6b12f82672765dc10f1ac36e9 100755 (executable)
@@ -91,6 +91,7 @@ PKG_SRC=`ls -l | awk '/^d/ { print $8 }'`
 cd "$PKG_SRC"
 
 # Configure
+./autogen.sh || exit $ERROR_CONF
 CFLAGS="$SLKCFLAGS" \
   CXXFLAGS="$SLKCFLAGS" \
   ./configure \
@@ -160,44 +161,3 @@ makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERRO
 if [ "$CLEANUP" == "yes" ]; then
   rm -rf "$PKG_SRC" "$PKG"
 fi
-# Configure
-./autogen.sh || exit $ERROR_CONF
-CFLAGS="$SLKCFLAGS" \
-  CXXFLAGS="$SLKCFLAGS" \
-  ./configure \
-  --prefix="$PREFIX" --libdir="$LIBDIR" $CONF_OPTIONS || exit $ERROR_CONF
-
-# Install
-make install DESTDIR="$PKG" || exit $ERROR_INSTALL
-
-# TODO: remove this line as long as the handler is added to the source tree
-cp $CWD/wget $PKG/usr/share/$PKG_NAME/
-
-# Cron tasks
-rm -rf $PKG/etc/cron.d
-mkdir $PKG/etc/cron.hourly
-cp $CWD/backupninja.cron $PKG/etc/cron.hourly/backupninja
-chmod +x $PKG/etc/cron.hourly/backupninja
-
-# Permissions
-mkdir $PKG/etc/backup.d
-chown -R root.root $PKG/*
-chmod 600 $PKG/etc/backup.d
-
-# Fix config files
-sed -e 's/\/usr\/var\/log/\/var\/log\/backup/g' $PKG/etc/backupninja.conf > $PKG/etc/backupninja.conf.new
-rm $PKG/etc/backupninja.conf 
-sed -e 's/\/usr\/var\/log/\/var\/log\/backup/g' $PKG/etc/logrotate.d/backupninja > $PKG/etc/logrotate.d/backupninja.new
-mv $PKG/etc/logrotate.d/backupninja.new $PKG/etc/logrotate.d/backupninja
-
-backupninja: backupninja (a silent flower blossom death strike to lost data)
-backupninja:
-backupninja: Backupninja allows you to coordinate system backup by dropping a few
-backupninja: simple configuration files into /etc/backup.d/. Most programs you
-backupninja: might use for making backups don't have their own configuration file
-backupninja: format. Backupninja provides a centralized way to configure and
-backupninja: schedule many different backup utilities.
-backupninja:
-backupninja:
-backupninja:
-backupninja: