From dabc3af7bff14df3c54aabbf24171beffa31907f Mon Sep 17 00:00:00 2001 From: Rob van Nues Date: Thu, 2 Jan 2020 21:11:24 -0600 Subject: network/onedrive: Updated for version 2.3.13. Signed-off-by: Robby Workman --- network/onedrive/README | 11 ++++++----- network/onedrive/doinst.sh | 15 +++++++++++++++ network/onedrive/onedrive.SlackBuild | 8 ++++++-- network/onedrive/onedrive.info | 6 +++--- network/onedrive/slack-desc | 2 +- 5 files changed, 31 insertions(+), 11 deletions(-) create mode 100644 network/onedrive/doinst.sh (limited to 'network') diff --git a/network/onedrive/README b/network/onedrive/README index 74e251e20d40..f8d9633540b4 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 000000000000..182d35ba3a72 --- /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 c44dea022157..f84117ed07fa 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 0d84cd1c15c4..a89566999b95 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 4eea71aed5f9..0d4f2812a33a 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: -- cgit v1.2.3