summaryrefslogtreecommitdiffstats
path: root/network
diff options
context:
space:
mode:
author Rob van Nues2020-01-03 04:11:24 +0100
committer Robby Workman2020-01-03 06:33:51 +0100
commitdabc3af7bff14df3c54aabbf24171beffa31907f (patch)
tree6249bfde05c64f414816208a187d6dbff326bb3c /network
parentb9b78f41da53e26d0a85dc7aaead7a4cde003fea (diff)
downloadslackbuilds-dabc3af7bff14df3c54aabbf24171beffa31907f.tar.gz
network/onedrive: Updated for version 2.3.13.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/onedrive/README11
-rw-r--r--network/onedrive/doinst.sh15
-rw-r--r--network/onedrive/onedrive.SlackBuild8
-rw-r--r--network/onedrive/onedrive.info6
-rw-r--r--network/onedrive/slack-desc2
5 files changed, 31 insertions, 11 deletions
diff --git a/network/onedrive/README b/network/onedrive/README
index 74e251e20d..f8d9633540 100644
--- a/network/onedrive/README
+++ b/network/onedrive/README
@@ -1,17 +1,18 @@
A complete tool to interact with OneDrive on Linux.
-Built following the UNIX philosophy
+Built following the UNIX philosophy.
What's missing: while local changes are uploaded right away, remote changes are delayed.
After installing the package:
-1) For configuration and Usage, see
+1) For configuration and Usage, see
/usr/doc/onedrive-$VERSION/docs/USAGE.md,
/usr/doc/onedrive-$VERSION/config and
man onedrive
-2) For Docker support, see
+2) For Docker support, see
/usr/doc/onedrive-$VERSION/docs/Docker.md
-3) For Sharepoint group drive in Office 365 business or education, see
+3) For Sharepoint group drive in Office 365 business or education, see
/usr/doc/onedrive-$VERSION/docs/Office365.md
-4) If you encounter any bugs you can report them here on Github:
+4) If you encounter any bugs you can report them here on Github:
https://github.com/abraunegg/onedrive
(see /usr/doc/onedrive-$VERSION/README.md for more details how to do this)
+
diff --git a/network/onedrive/doinst.sh b/network/onedrive/doinst.sh
new file mode 100644
index 0000000000..182d35ba3a
--- /dev/null
+++ b/network/onedrive/doinst.sh
@@ -0,0 +1,15 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/logrotate.d/onedrive.new
+
diff --git a/network/onedrive/onedrive.SlackBuild b/network/onedrive/onedrive.SlackBuild
index c44dea0221..f84117ed07 100644
--- a/network/onedrive/onedrive.SlackBuild
+++ b/network/onedrive/onedrive.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
# Slackware build script for onedrive
-# Copyright 2019 Rob van Nues
+# Copyright 2019-2020 Rob van Nues
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,7 +22,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=onedrive
-VERSION=${VERSION:-2.3.12}
+VERSION=${VERSION:-2.3.13}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -89,6 +90,8 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
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
+mv $PKG/etc/logrotate.d/onedrive $PKG/etc/logrotate.d/onedrive.new
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
README.md LICENSE CHANGELOG.md docs \
@@ -99,6 +102,7 @@ rm -r $PKG/usr/share
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/network/onedrive/onedrive.info b/network/onedrive/onedrive.info
index 0d84cd1c15..a89566999b 100644
--- a/network/onedrive/onedrive.info
+++ b/network/onedrive/onedrive.info
@@ -1,8 +1,8 @@
PRGNAM="onedrive"
-VERSION="2.3.12"
+VERSION="2.3.13"
HOMEPAGE="https://github.com/abraunegg/onedrive/releases"
-DOWNLOAD="https://github.com/abraunegg/onedrive/archive/v2.3.12/onedrive-2.3.12.tar.gz"
-MD5SUM="34e7b88f60b1d839dbb757dc87dd5d4d"
+DOWNLOAD="https://github.com/abraunegg/onedrive/archive/v2.3.13/onedrive-2.3.13.tar.gz"
+MD5SUM="d36da03e2cdddf747be93c14baa066d6"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="dmd"
diff --git a/network/onedrive/slack-desc b/network/onedrive/slack-desc
index 4eea71aed5..0d4f2812a3 100644
--- a/network/onedrive/slack-desc
+++ b/network/onedrive/slack-desc
@@ -9,7 +9,7 @@
onedrive: onedrive (OneDrive Tool)
onedrive:
onedrive: A complete tool to interact with OneDrive on Linux.
-onedrive: Built following the UNIX philosophy
+onedrive: Built following the UNIX philosophy.
onedrive:
onedrive: https://github.com/abraunegg/onedrive
onedrive: