mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-26 22:06:35 +01:00
system/burp: Updated for version 2.0.54 + new maintainer.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
00854991ac
commit
1ffbeb49e3
5 changed files with 76 additions and 65 deletions
|
@ -1,3 +1,5 @@
|
||||||
Burp is a backup and restore program. It uses librsync in order to save on
|
Burp is a backup and restore program. It uses librsync in order to save on
|
||||||
the amount of space that is used by each backup. It also uses VSS (Volume
|
the amount of space that is used by each backup. It also uses VSS (Volume
|
||||||
Shadow Copy Service) to make snapshots when backing up Windows computers.
|
Shadow Copy Service) to make snapshots when backing up Windows computers.
|
||||||
|
|
||||||
|
See README.SBo for information about starting and stopping burp.
|
||||||
|
|
|
@ -1,19 +1,19 @@
|
||||||
To start the burp server run:
|
To start the burp server run
|
||||||
|
|
||||||
/etc/rc.d/rc.burp start
|
/etc/rc.d/rc.burp start
|
||||||
|
|
||||||
To start burp automatically on boot up, add these lines to /etc/rc.d/rc.local
|
To start burp automatically on boot up, add these lines to /etc/rc.d/rc.local
|
||||||
|
|
||||||
# Start burp
|
# Start burp
|
||||||
if [ -x /etc/rc.d/rc.burp ]; then
|
if [ -x /etc/rc.d/rc.burp ]; then
|
||||||
/etc/rc.d/rc.burp start
|
/etc/rc.d/rc.burp start
|
||||||
fi
|
fi
|
||||||
|
|
||||||
and the following lines in /etc/rc.d/rc.local_shutdown to stop burp on shutdown
|
and the following lines in /etc/rc.d/rc.local_shutdown to stop burp on shutdown
|
||||||
|
|
||||||
# Stop burp
|
# Stop burp
|
||||||
if [ -x /etc/rc.d/rc.burp ]; then
|
if [ -x /etc/rc.d/rc.burp ]; then
|
||||||
/etc/rc.d/rc.burp stop
|
/etc/rc.d/rc.burp stop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
Naturally, ensure that all these scripts have executable permissions.
|
Naturally, ensure that all these scripts have executable permissions.
|
||||||
|
|
|
@ -23,14 +23,16 @@
|
||||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
# Maintained by David Spencer <baildon.research@googlemail.com>
|
||||||
|
|
||||||
PRGNAM=burp
|
PRGNAM=burp
|
||||||
VERSION=${VERSION:-1.3.48}
|
VERSION=${VERSION:-2.0.54}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$( uname -m )" in
|
case "$( uname -m )" in
|
||||||
i?86) ARCH=i486 ;;
|
i?86) ARCH=i586 ;;
|
||||||
arm*) ARCH=arm ;;
|
arm*) ARCH=arm ;;
|
||||||
*) ARCH=$( uname -m ) ;;
|
*) ARCH=$( uname -m ) ;;
|
||||||
esac
|
esac
|
||||||
|
@ -41,8 +43,8 @@ TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i586" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
@ -60,23 +62,20 @@ set -e
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf $PRGNAM
|
rm -rf $PRGNAM-$VERSION
|
||||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
|
||||||
cd $PRGNAM
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||||
|
|
||||||
# Maximum compression for the man files
|
|
||||||
sed -i 's/gzip/gzip -9/1' manpages/Makefile*
|
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/ \
|
--prefix=/usr \
|
||||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||||
--sysconfdir=/etc/$PRGNAM \
|
--sysconfdir=/etc/$PRGNAM \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
|
@ -85,7 +84,7 @@ CXXFLAGS="$SLKCFLAGS" \
|
||||||
--build=$ARCH-slackware-linux
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
make
|
make
|
||||||
make install DESTDIR=$PKG
|
make install-all DESTDIR=$PKG
|
||||||
|
|
||||||
# Install the handy rc script
|
# Install the handy rc script
|
||||||
install -D -m 755 -o root -g root $CWD/rc.burp $PKG/etc/rc.d/rc.burp
|
install -D -m 755 -o root -g root $CWD/rc.burp $PKG/etc/rc.d/rc.burp
|
||||||
|
@ -93,6 +92,9 @@ install -D -m 755 -o root -g root $CWD/rc.burp $PKG/etc/rc.d/rc.burp
|
||||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
|
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||||
|
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a \
|
cp -a \
|
||||||
CHANGELOG CONTRIBUTORS DONATIONS LICENSE README TODO UPGRADING docs \
|
CHANGELOG CONTRIBUTORS DONATIONS LICENSE README TODO UPGRADING docs \
|
||||||
|
@ -109,8 +111,11 @@ cd $PKG
|
||||||
for FILE in $(find etc -type f); do
|
for FILE in $(find etc -type f); do
|
||||||
mv $FILE $FILE.new
|
mv $FILE $FILE.new
|
||||||
# Preserve the permissions only of executable config files
|
# Preserve the permissions only of executable config files
|
||||||
[ -x $FILE.new ] && echo preserve_perms $FILE.new >> $PKG/install/doinst.sh \
|
if [ -x $FILE.new ]; then
|
||||||
|| echo config $FILE.new >> $PKG/install/doinst.sh
|
echo preserve_perms $FILE.new >> $PKG/install/doinst.sh
|
||||||
|
else
|
||||||
|
echo config $FILE.new >> $PKG/install/doinst.sh
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="burp"
|
PRGNAM="burp"
|
||||||
VERSION="1.3.48"
|
VERSION="2.0.54"
|
||||||
HOMEPAGE="http://burp.grke.net"
|
HOMEPAGE="http://burp.grke.net"
|
||||||
DOWNLOAD="http://sourceforge.net/projects/burp/files/burp-1.3.48/burp-1.3.48.tar.bz2"
|
DOWNLOAD="http://sourceforge.net/projects/burp/files/burp-2.0.54/burp-2.0.54.tar.bz2"
|
||||||
MD5SUM="87116e5b1ed179c553ddbe563fa7252a"
|
MD5SUM="2244811cc53127ad5283dd1d830f11ba"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES="librsync"
|
REQUIRES="librsync uthash"
|
||||||
MAINTAINER="Ryan P.C. McQuen"
|
MAINTAINER="David Spencer"
|
||||||
EMAIL="ryanpcmcquen@member.fsf.org"
|
EMAIL="baildon.research@googlemail.com"
|
||||||
|
|
|
@ -3,29 +3,33 @@
|
||||||
|
|
||||||
RETVAL=0
|
RETVAL=0
|
||||||
|
|
||||||
start(){
|
start()
|
||||||
echo "Starting burp: /usr/sbin/burp -c /etc/burp/burp-server.conf"
|
{
|
||||||
/usr/sbin/burp -c /etc/burp/burp-server.conf
|
echo "Starting burp: /usr/sbin/burp -c /etc/burp/burp-server.conf"
|
||||||
RETVAL=$?
|
/usr/sbin/burp -c /etc/burp/burp-server.conf
|
||||||
[ "$RETVAL" = 0 ] && touch /var/lock/subsys/burp
|
RETVAL=$?
|
||||||
return $RETVAL
|
[ "$RETVAL" = 0 ] && touch /var/lock/subsys/burp
|
||||||
|
return $RETVAL
|
||||||
}
|
}
|
||||||
|
|
||||||
stop(){
|
stop()
|
||||||
echo "Stopping burp... "
|
{
|
||||||
killall burp 2>/dev/null
|
echo "Stopping burp... "
|
||||||
RETVAL=$?
|
killall burp 2>/dev/null
|
||||||
rm -f /var/lock/subsys/burp
|
RETVAL=$?
|
||||||
return $RETVAL
|
rm -f /var/lock/subsys/burp
|
||||||
|
return $RETVAL
|
||||||
}
|
}
|
||||||
|
|
||||||
restart(){
|
restart()
|
||||||
stop
|
{
|
||||||
sleep 1
|
stop
|
||||||
start
|
sleep 1
|
||||||
|
start
|
||||||
}
|
}
|
||||||
|
|
||||||
status(){
|
status()
|
||||||
|
{
|
||||||
echo -n $"Checking burp: "
|
echo -n $"Checking burp: "
|
||||||
/bin/kill -s IOT burp 2>/dev/null
|
/bin/kill -s IOT burp 2>/dev/null
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
|
@ -37,23 +41,23 @@ status(){
|
||||||
return $RETVAL
|
return $RETVAL
|
||||||
}
|
}
|
||||||
|
|
||||||
# See how we were called.
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
start
|
start
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
stop
|
stop
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
restart
|
restart
|
||||||
;;
|
;;
|
||||||
status)
|
status)
|
||||||
status
|
status
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo $"Usage: $0 {start|stop|restart|status}"
|
echo $"Usage: $0 {start|stop|restart|status}"
|
||||||
RETVAL=1
|
RETVAL=1
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
exit $RETVAL
|
exit $RETVAL
|
||||||
|
|
Loading…
Reference in a new issue