aboutsummaryrefslogtreecommitdiff
path: root/system/borgbackup
diff options
context:
space:
mode:
Diffstat (limited to 'system/borgbackup')
-rw-r--r--system/borgbackup/README10
-rw-r--r--system/borgbackup/borgbackup.SlackBuild48
-rw-r--r--system/borgbackup/borgbackup.info8
-rw-r--r--system/borgbackup/slack-desc2
4 files changed, 21 insertions, 47 deletions
diff --git a/system/borgbackup/README b/system/borgbackup/README
index 23fb77667b..393c02c181 100644
--- a/system/borgbackup/README
+++ b/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.
diff --git a/system/borgbackup/borgbackup.SlackBuild b/system/borgbackup/borgbackup.SlackBuild
index 0fe7a22257..a55e18baea 100644
--- a/system/borgbackup/borgbackup.SlackBuild
+++ b/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
diff --git a/system/borgbackup/borgbackup.info b/system/borgbackup/borgbackup.info
index 200c1f2ba0..642359dbf0 100644
--- a/system/borgbackup/borgbackup.info
+++ b/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"
diff --git a/system/borgbackup/slack-desc b/system/borgbackup/slack-desc
index cdd0b2e7dd..f58dca23e6 100644
--- a/system/borgbackup/slack-desc
+++ b/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.