summaryrefslogtreecommitdiffstats
path: root/network/rclone
diff options
context:
space:
mode:
Diffstat (limited to 'network/rclone')
-rw-r--r--network/rclone/README26
-rw-r--r--network/rclone/rclone.SlackBuild32
-rw-r--r--network/rclone/rclone.info10
3 files changed, 36 insertions, 32 deletions
diff --git a/network/rclone/README b/network/rclone/README
index fe1d6364a1..ac2ba2936e 100644
--- a/network/rclone/README
+++ b/network/rclone/README
@@ -1,18 +1,10 @@
-Rclone ("rsync for cloud storage") is a command line program to sync
-files and directories to and from different cloud storage providers.
+Rclone is a command-line program to manage files on cloud storage.
+It is a feature-rich alternative to cloud vendors' web storage
+interfaces. Over 40 cloud storage products support rclone including
+S3 object stores, business & consumer file storage services, as well
+as standard transfer protocols.
-Features
-
- MD5/SHA-1 hashes checked at all times for file integrity
- Timestamps preserved on files
- Partial syncs supported on a whole file basis
- Copy mode to just copy new/changed files
- Sync (one way) mode to make a directory identical
- Check mode to check for file hash equality
- Can sync to and from network, e.g. two different cloud accounts
- Optional large file chunking (Chunker)
- Optional encryption (Crypt)
- Optional cache (Cache)
- Optional FUSE mount (rclone mount)
- Multi-threaded downloads to local disk
- Can serve local or remote files over HTTP/WebDav/FTP/SFTP/dlna
+Rclone has powerful cloud equivalents to the unix commands rsync,
+cp, mv, mount, ls, ncdu, tree, rm, and cat. Rclone's familiar syntax
+includes shell pipeline support, and --dry-run protection. It is
+used at the command line, in scripts or via its API.
diff --git a/network/rclone/rclone.SlackBuild b/network/rclone/rclone.SlackBuild
index fd8e3b3cab..4855d2c199 100644
--- a/network/rclone/rclone.SlackBuild
+++ b/network/rclone/rclone.SlackBuild
@@ -1,6 +1,6 @@
-#!/bin/sh
+#!/bin/bash
-# Copyright 2019-2020 Andrew Payne <phalange@komputermatrix.com>
+# Copyright 2019-2024 Andrew Payne <phalange@komputermatrix.com>
# Copyright 2017-2018 Rodrigo Gimenez <estrod[at]zoho[dot]com>
# All rights reserved.
#
@@ -21,10 +21,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=rclone
-VERSION=${VERSION:-1.53.3}
+VERSION=${VERSION:-1.66.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
set -e
@@ -43,8 +46,15 @@ else
exit 1
fi
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
-CWD=$(pwd)
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
mkdir -p $TMP $PKG $OUTPUT
@@ -61,20 +71,22 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
rm -rf $PKG
-mkdir -p $PKG/usr/bin/
+mkdir -p $PKG/{usr/bin,opt/$PRGNAM}
+ cp -a rclone $PKG/opt/$PRGNAM
+ ln -s /opt/$PRGNAM/rclone $PKG/usr/bin/$PRGNAM
+
mkdir -p $PKG/usr/man/man1/
-cp rclone $PKG/usr/bin/
cp rclone.1 $PKG/usr/man/man1/
find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/ -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+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
-cp -a README.txt $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM-bin.SlackBuild
+cp -a README.* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
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/network/rclone/rclone.info b/network/rclone/rclone.info
index c20878916e..7ce95fbbcc 100644
--- a/network/rclone/rclone.info
+++ b/network/rclone/rclone.info
@@ -1,10 +1,10 @@
PRGNAM="rclone"
-VERSION="1.53.3"
+VERSION="1.66.0"
HOMEPAGE="https://rclone.org"
-DOWNLOAD="https://github.com/rclone/rclone/releases/download/v1.53.3/rclone-v1.53.3-linux-386.zip"
-MD5SUM="ebed198b49ca4e5227712a05c9b9fa7e"
-DOWNLOAD_x86_64="https://github.com/rclone/rclone/releases/download/v1.53.3/rclone-v1.53.3-linux-amd64.zip"
-MD5SUM_x86_64="fc210fb4bc95ee00c18573f4a5a06246"
+DOWNLOAD="UNSUPPORTED"
+MD5SUM=""
+DOWNLOAD_x86_64="https://github.com/rclone/rclone/releases/download/v1.66.0/rclone-v1.66.0-linux-amd64.zip"
+MD5SUM_x86_64="59a19a5f31c258aacf99970ae7d028cd"
REQUIRES=""
MAINTAINER="Andrew Payne"
EMAIL="phalange@komputermatrix.com"