summaryrefslogtreecommitdiffstats
path: root/system/btrbk
diff options
context:
space:
mode:
Diffstat (limited to 'system/btrbk')
-rw-r--r--system/btrbk/README4
-rw-r--r--system/btrbk/btrbk.SlackBuild50
-rw-r--r--system/btrbk/btrbk.info6
3 files changed, 24 insertions, 36 deletions
diff --git a/system/btrbk/README b/system/btrbk/README
index 76bff1ea52..6e1e0c0835 100644
--- a/system/btrbk/README
+++ b/system/btrbk/README
@@ -24,5 +24,5 @@ Key Features:
* Display file changes between two backups
btrbk is designed to run as a cron job for triggering periodic snapshots
-and backups, as well as from the command line (e.g. for instantly creating
-additional snapshots).
+and backups, as well as from the command line (e.g. for instantly
+creating additional snapshots).
diff --git a/system/btrbk/btrbk.SlackBuild b/system/btrbk/btrbk.SlackBuild
index 9f1dba424e..ea5745d9bf 100644
--- a/system/btrbk/btrbk.SlackBuild
+++ b/system/btrbk/btrbk.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for btrbk
-# Copyright 2019 Alan Aversa
+# Copyright 2023 Alan Aversa
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,38 +22,28 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220404 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - make this noarch (it's just a perl script).
+# - gzip man pages.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=btrbk
-VERSION=${VERSION:-0.29.0}
+VERSION=${VERSION:-0.32.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
+ARCH=noarch
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- i?86) ARCH=i586 ;;
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
- esac
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
fi
-CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
-PKG="$TMP"/package-"$PRGNAM"
+PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
set -e
rm -rf $PKG
@@ -65,19 +55,17 @@ cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -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 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
make install DESTDIR=$PKG
-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
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mv $PKG/usr/share/man $PKG/usr
+gzip -9 $PKG/usr/man/man*/*
mv $PKG/usr/share/doc/btrbk/* $PKG/usr/doc/$PRGNAM-$VERSION/
rm -rf $PKG/usr/share
@@ -88,4 +76,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
rm -fr $PKG/usr/lib/
cd $PKG
-/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
diff --git a/system/btrbk/btrbk.info b/system/btrbk/btrbk.info
index d8fcbb28f2..825d1bad80 100644
--- a/system/btrbk/btrbk.info
+++ b/system/btrbk/btrbk.info
@@ -1,8 +1,8 @@
PRGNAM="btrbk"
-VERSION="0.29.0"
+VERSION="0.32.6"
HOMEPAGE="https://digint.ch/btrbk/"
-DOWNLOAD="https://digint.ch/download/btrbk/releases/btrbk-0.29.0.tar.xz"
-MD5SUM="4cd4bef295557a5cc6cc913a37d894a8"
+DOWNLOAD="https://digint.ch/download/btrbk/releases/btrbk-0.32.6.tar.xz"
+MD5SUM="7836af48a515e90f5e8073e674eb54c3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""