Browse Source

system/borgbackup: Updated for version 1.4.1

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
pull/324/head
Andrzej Telszewski 6 months ago
committed by Willy Sudiarto Raharjo
parent
commit
2e67a1d49f
No known key found for this signature in database GPG Key ID: 3F617144D7238786
  1. 10
      system/borgbackup/README
  2. 48
      system/borgbackup/borgbackup.SlackBuild
  3. 8
      system/borgbackup/borgbackup.info
  4. 2
      system/borgbackup/slack-desc

10
system/borgbackup/README

@ -1,5 +1,3 @@
borgbackup (deduplicating backup program)
BorgBackup (short: Borg) is a deduplicating backup program.
Optionally, it supports compression and authenticated encryption.
@ -8,11 +6,3 @@ backup data. The data deduplication technique used makes Borg suitable
for daily backups since only changes are stored. The authenticated
encryption technique makes it suitable for backups to not fully trusted
targets.
Borg is a fork of Attic and is maintained by "The Borg collective".
Optional dependencies:
- llfuse for mounting the archives.
- Sphinx and guzzle_sphinx_theme are required if you wish to build the
HTML docs. Man pages are always included.

48
system/borgbackup/borgbackup.SlackBuild

@ -2,7 +2,7 @@
# Slackware build script for borgbackup
# Copyright 2024 Andrzej Telszewski, Koszalin
# Copyright 2025 Andrzej Telszewski, Koszalin
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -22,21 +22,11 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20230809 bkw: Modified by SlackBuilds.org, BUILD=2:
# - stop the build from failing if Sphinx is installed but
# guzzle_sphinx_theme is not.
# - always include man pages in package (upstream kindly included
# prebuilt ones in the tarball).
# - clean up optional deps for HTML docs in README. python3-attrs
# is not required, and alabaster + imagesize are already required
# deps for Sphinx.
# - make slack-desc say whether the HTML docs are included.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=borgbackup
VERSION=${VERSION:-1.2.8}
BUILD=${BUILD:-2}
VERSION=${VERSION:-1.4.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -57,8 +47,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
# 20230810 bkw: no flags or libdirsuffix, setup.py knows what to do.
set -eu
rm -rf $PKG
@ -72,32 +60,28 @@ cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R a-st,u+rwX,go-w+rX .
python3 setup.py install --root=$PKG
# 20230810 bkw: faster than the find|file|xargs template stuff.
find $PKG/usr/lib*/python* -name '*.so' | xargs strip --strip-unneeded
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKGDOC
PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
export PYTHONPATH=/opt/python$PYVER/site-packages
export PYTHONPATH=$PYTHONPATH:/opt/cython/python$PYVER/site-packages
export PATH=/opt/cython/bin:$PATH
# 20230809 bkw: stop the build from failing if Sphinx is installed
# but guzzle_sphinx_theme is not. upstream's README documents this, even.
make -C docs html && cp -a docs/_build/html $PKGDOC
python3 -m build --no-isolation
python3 -m installer -d "$PKG" dist/*.whl
# 20230810 bkw: for the slack-desc:
WITH_HTML=WITHOUT
[ -d $PKGDOC/html ] && WITH_HTML=WITH
find $PKG/usr/lib*/python* -name '*.so' | xargs strip --strip-unneeded
# 20230809 bkw: upstream ships prebuilt man pages, always install.
mkdir -p $PKG/usr/man/man1
cp -a docs/man/*.1 $PKG/usr/man/man1
gzip -9 $PKG/usr/man/man1/*
cp -a AUTHORS CHANGES.rst LICENSE README.rst SECURITY.md $PKGDOC
cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS CHANGES.rst LICENSE README.rst SECURITY.md \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > \
$PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
sed "s,@WITH_HTML@,$WITH_HTML," < $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE

8
system/borgbackup/borgbackup.info

@ -1,10 +1,10 @@
PRGNAM="borgbackup"
VERSION="1.2.8"
VERSION="1.4.1"
HOMEPAGE="https://borgbackup.readthedocs.io/"
DOWNLOAD="https://github.com/borgbackup/borg/releases/download/1.2.8/borgbackup-1.2.8.tar.gz"
MD5SUM="35ae09ee341dca1f48f6d3efc7bdb755"
DOWNLOAD="https://github.com/borgbackup/borg/releases/download/1.4.1/borgbackup-1.4.1.tar.gz"
MD5SUM="79a5cba8d2ef6303ebe153c5d0e50d48"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="msgpack-python python3-pkgconfig"
REQUIRES="msgpack-python pyfuse3 python3-cython-opt python3-pkgconfig python3-setuptools-opt python3-setuptools-scm-opt"
MAINTAINER="Andrzej Telszewski"
EMAIL="andrzej@telszewski.com"

2
system/borgbackup/slack-desc

@ -15,5 +15,5 @@ borgbackup: to backup data. The data deduplication technique used makes Borg
borgbackup: suitable for daily backups since only changes are stored. The
borgbackup: authenticated encryption technique makes it suitable for backups
borgbackup: to not fully trusted targets.
borgbackup:
borgbackup: Homepage: https://borgbackup.readthedocs.io/
borgbackup: This package was built @WITH_HTML@ the HTML documentation.
Loading…
Cancel
Save